diff --git a/.cnb.yml b/.cnb.yml new file mode 100644 index 0000000..efa2a57 --- /dev/null +++ b/.cnb.yml @@ -0,0 +1,35 @@ +# .cnb.yml +$: + vscode: + - docker: + image: docker.cnb.cool/kevisual/dev-env:latest + services: + - vscode + - docker + imports: https://cnb.cool/kevisual/env/-/blob/main/env.yml + # 开发环境启动后会执行的任务 + stages: + - name: pnpm install + script: pnpm install + + +main: + web_trigger_sync_to_gitea: + - services: + - docker + imports: + # 这里修改为自己的env仓库地址 + - https://cnb.cool/kevisual/env/-/blob/main/env.yml + stages: + - name: sync to gitea + image: tencentcom/git-sync + settings: + # 修改为你的gitea仓库地址 + target_url: https://git.xiongxiao.me/kevisual/ai-images.git + auth_type: https + username: "oauth2" + password: ${GITEA_TOKEN} + git_user: "abearxiong" + git_email: "xiongxiao@xiongxiao.me" + sync_mode: rebase + branch: main \ No newline at end of file diff --git a/.cnb/web_trigger.yml b/.cnb/web_trigger.yml new file mode 100644 index 0000000..bc16ea8 --- /dev/null +++ b/.cnb/web_trigger.yml @@ -0,0 +1,8 @@ +# .cnb/web_trigger.yml +branch: + # 如下按钮在分支名以 main 开头的分支详情页面显示 + - reg: "^main" + buttons: + - name: 同步代码到gitea + desc: 同步代码到gitea + event: web_trigger_sync_to_gitea \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ec6578a --- /dev/null +++ b/.gitignore @@ -0,0 +1,68 @@ +node_modules + +# mac +.DS_Store + +.env* +!.env*example + +dist +build +logs + +.turbo + +pack-dist + +# astro +.astro + +# next +.next + +# nuxt +.nuxt + +# vercel +.vercel + +# vuepress +.vuepress/dist + +# coverage +coverage/ + +# typescript +*.tsbuildinfo + +# debug logs +*.log +*.tmp + +# vscode +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json + +# idea +.idea + +# system +Thumbs.db +ehthumbs.db +Desktop.ini + +# temp files +*.tmp +*.temp + +# local development +*.local + +public/r + +.pnpm-store + +storage/ \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..09d554d --- /dev/null +++ b/package.json @@ -0,0 +1,17 @@ +{ + "name": "@kevisual/ai-images", + "version": "0.0.1", + "description": "", + "main": "index.js", + "scripts": { + "dev": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [], + "author": "abearxiong (https://www.xiongxiao.me)", + "license": "MIT", + "packageManager": "pnpm@10.16.1", + "type": "module", + "devDependencies": { + "@types/node": "^24.4.0" + } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..491ef8e --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,29 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + '@types/node': + specifier: ^24.4.0 + version: 24.4.0 + +packages: + + '@types/node@24.4.0': + resolution: {integrity: sha512-gUuVEAK4/u6F9wRLznPUU4WGUacSEBDPoC2TrBkw3GAnOLHBL45QdfHOXp1kJ4ypBGLxTOB+t7NJLpKoC3gznQ==} + + undici-types@7.11.0: + resolution: {integrity: sha512-kt1ZriHTi7MU+Z/r9DOdAI3ONdaR3M3csEaRc6ewa4f4dTvX4cQCbJ4NkEn0ohE4hHtq85+PhPSTY+pO/1PwgA==} + +snapshots: + + '@types/node@24.4.0': + dependencies: + undici-types: 7.11.0 + + undici-types@7.11.0: {} diff --git a/readme.md b/readme.md index 388af2b..c4f46fe 100644 --- a/readme.md +++ b/readme.md @@ -1,2 +1,5 @@ # 图片生成的SDK的库 +## 1. 阿里云的图片生成的方案 + +## 2. 火山字节的图片生成的方案