├── .github └── workflows │ └── releases.yml ├── .gitignore ├── .vscode └── extensions.json ├── README-zh_CN.md ├── README.md ├── imgs └── banner.png ├── package.json ├── pnpm-lock.yaml ├── popup.html ├── public ├── _locales │ ├── en │ │ └── messages.json │ └── zh_CN │ │ └── messages.json ├── icon128.png ├── icon48.png └── manifest.json ├── scripts ├── injectWebComponent.js ├── utils.js └── zipDist.js ├── src ├── App.vue ├── ShareImage.ce.vue ├── assets │ └── 引号.svg ├── components │ └── Overlay.ce.vue ├── content.ts ├── main.ts ├── popup │ ├── App.vue │ └── main.ts ├── utils │ ├── canvas.ts │ ├── info.ts │ └── text.ts └── vite-env.d.ts ├── text-camera-extension.zip ├── tsconfig.app.json ├── tsconfig.json ├── tsconfig.node.json ├── vite.config.popup.ts └── vite.config.ts /.github/workflows/releases.yml: -------------------------------------------------------------------------------- 1 | name: 'Create Releases' 2 | 3 | on: 4 | push: 5 | tags: 6 | - 'v1.*.*' 7 | workflow_dispatch: 8 | 9 | jobs: 10 | releases: 11 | runs-on: ubuntu-latest 12 | steps: 13 | - name: Checkout repository 14 | uses: actions/checkout@v4 15 | 16 | - name: Use pnpm 17 | uses: pnpm/action-setup@v4 18 | with: 19 | version: 7 20 | 21 | - name: Use Node.js 22 | uses: actions/setup-node@v4 23 | with: 24 | node-version: '22.x' 25 | cache: 'pnpm' 26 | 27 | - name: Cache 28 | id: cache-dependencies 29 | uses: actions/cache@v4 30 | with: 31 | path: | 32 | **/node_modules 33 | key: ${{runner.OS}}-${{hashFiles('pnpm-lock.yaml')}} 34 | 35 | - name: Installing Dependencies 36 | if: steps.cache-dependencies.outputs.cache-hit != 'true' 37 | run: pnpm install 38 | 39 | - name: Build 40 | run: pnpm zip 41 | 42 | - name: Create Releases 43 | uses: softprops/action-gh-release@v2 44 | with: 45 | draft: true 46 | generate_release_notes: true 47 | files: text-camera-extension.zip 48 | token: ${{ secrets.RELEASE_GITHUB_TOKEN }} 49 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | dist 12 | dist-ssr 13 | *.local 14 | 15 | # Editor directories and files 16 | .vscode/* 17 | !.vscode/extensions.json 18 | .idea 19 | .DS_Store 20 | *.suo 21 | *.ntvs* 22 | *.njsproj 23 | *.sln 24 | *.sw? 25 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": ["Vue.volar"] 3 | } 4 | -------------------------------------------------------------------------------- /README-zh_CN.md: -------------------------------------------------------------------------------- 1 |