diff --git a/packages/word/.github/FUNDING.yml b/packages/word/.github/FUNDING.yml deleted file mode 100644 index 74e9ebc..0000000 --- a/packages/word/.github/FUNDING.yml +++ /dev/null @@ -1,2 +0,0 @@ -github: Hufe921 -custom: https://hufe.club/donate.jpg diff --git a/packages/word/.github/ISSUE_TEMPLATE/bug_report.yml b/packages/word/.github/ISSUE_TEMPLATE/bug_report.yml deleted file mode 100644 index 79a5961..0000000 --- a/packages/word/.github/ISSUE_TEMPLATE/bug_report.yml +++ /dev/null @@ -1,71 +0,0 @@ -name: "\U0001F41E Bug report" -description: Create a report to help us improve -body: - - type: markdown - attributes: - value: | - **Before You Start...** - - This form is only for submitting bug reports. If you have a usage question - or are unsure if this is really a bug, make sure to: - - - Read the [docs](https://hufe.club/canvas-editor-docs/) - - Also try to search for your issue - it may have already been answered or even fixed in the development branch. - However, if you find that an old, closed issue still persists in the latest version, - you should open a new issue using the form below instead of commenting on the old issue. - - type: input - id: version - attributes: - label: version - validations: - required: true - - type: input - id: reproduction-link - attributes: - label: Link to minimal reproduction - description: | - Provide a link address that can reproduce the bug. The following link is recommended: - https://codesandbox.io/ - https://codepen.io/ - https://stackblitz.com/ - placeholder: Reproduction Link - - type: textarea - id: steps-to-reproduce - attributes: - label: Steps to reproduce - description: | - What do we need to do after opening your repro in order to make the bug happen? Clear and concise reproduction instructions are important for us to be able to triage your issue in a timely manner. Note that you can use [Markdown](https://guides.github.com/features/mastering-markdown/) to format lists and code. - placeholder: Steps to reproduce - validations: - required: true - - type: textarea - id: expected - attributes: - label: What is expected? - validations: - required: true - - type: textarea - id: actually-happening - attributes: - label: What is actually happening? - validations: - required: true - - type: textarea - id: editor-value - attributes: - label: Editor Value - description: Output of `instance.command.getValue()` - render: json - - type: textarea - id: system-info - attributes: - label: System Info - description: Output of `npx envinfo --system --binaries --browsers` - render: shell - placeholder: System, Binaries, Browsers - - type: textarea - id: additional-comments - attributes: - label: Any additional comments? - description: e.g. some background/context of how you ran into this bug. diff --git a/packages/word/.github/ISSUE_TEMPLATE/config.yml b/packages/word/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index 8bc9dce..0000000 --- a/packages/word/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,5 +0,0 @@ -blank_issues_enabled: true -contact_links: - - name: docs - url: https://hufe.club/canvas-editor-docs/ - about: Official documents \ No newline at end of file diff --git a/packages/word/.github/ISSUE_TEMPLATE/feature_request.yml b/packages/word/.github/ISSUE_TEMPLATE/feature_request.yml deleted file mode 100644 index f6cc0f7..0000000 --- a/packages/word/.github/ISSUE_TEMPLATE/feature_request.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: "\U0001F680 New feature proposal" -description: Suggest an idea for this project -labels: [":sparkles: feature request"] -body: - - type: markdown - attributes: - value: | - **Before You Start...** - - This form is only for submitting feature requests. If you have a usage question - or are unsure if this is really a bug, make sure to: - - - Read the [docs](https://hufe.club/canvas-editor-docs/) - - Also try to search for your issue - another user may have already requested something similar! - - - type: textarea - id: problem-description - attributes: - label: What problem does this feature solve? - description: | - Explain your use case, context, and rationale behind this feature request. More importantly, what is the **end user experience** you are trying to build that led to the need for this feature? - placeholder: Problem description - validations: - required: true - - type: textarea - id: proposed-API - attributes: - label: What does the proposed API look like? - description: | - Describe how you propose to solve the problem and provide code samples of how the API would work once implemented. Note that you can use [Markdown](https://guides.github.com/features/mastering-markdown/) to format your code blocks. - placeholder: Steps to reproduce - validations: - required: true \ No newline at end of file diff --git a/packages/word/.github/workflows/build.yml b/packages/word/.github/workflows/build.yml deleted file mode 100644 index db5d75d..0000000 --- a/packages/word/.github/workflows/build.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: build - -on: - push: - branches: [main] - paths: - - '.github/workflows/build.yml' - - 'src/**' - - 'index.html' - - 'package.json' - - 'vite.config.ts' - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm i yarn -g - - run: yarn - - run: yarn run build - - run: mv dist canvas-editor - - name: Copy folder content recursively to remote - uses: appleboy/scp-action@v0.1.7 - with: - source: canvas-editor - target: ${{ secrets.PATH }} - host: ${{ secrets.HOST }} - username: ${{ secrets.USERNAME }} - password: ${{ secrets.PASSWORD }} - overwrite: true - - name: Executing remote ssh commands - uses: appleboy/ssh-action@v1.0.3 - with: - host: ${{ secrets.HOST }} - username: ${{ secrets.USERNAME }} - password: ${{ secrets.PASSWORD }} - script: sed -i 's/<\/body>/${{ secrets.SCRIPT }}<\/body>/g' ${{ secrets.PATH }}/canvas-editor/index.html diff --git a/packages/word/.github/workflows/cypress.yml b/packages/word/.github/workflows/cypress.yml deleted file mode 100644 index 683dd6d..0000000 --- a/packages/word/.github/workflows/cypress.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: cypress - -on: - push: - branches: [main] - paths: - - '.github/workflows/*' - - 'cypress/**' - - 'src/**' - - 'index.html' - - 'package.json' - - 'vite.config.ts' - -jobs: - cypress: - runs-on: ubuntu-latest - container: cypress/browsers:node16.17.0-chrome106 - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm i yarn serve@14.0.1 -g - - run: yarn - - run: yarn run build - - run: mv dist canvas-editor - - run: serve . -l 3000 & - - run: yarn run cypress:run \ No newline at end of file diff --git a/packages/word/.github/workflows/docs.yml b/packages/word/.github/workflows/docs.yml deleted file mode 100644 index 215cd4a..0000000 --- a/packages/word/.github/workflows/docs.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: docs - -on: - push: - branches: [main] - paths: - - '.github/workflows/docs.yml' - - 'docs/**' - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm i yarn -g - - run: yarn - - run: yarn run docs:build - - run: mv ./docs/.vitepress/dist ./docs/.vitepress/canvas-editor-docs - - name: Copy folder content recursively to remote - uses: appleboy/scp-action@v0.1.7 - with: - source: docs/.vitepress/canvas-editor-docs - target: ${{ secrets.DOCS_PATH }} - host: ${{ secrets.HOST }} - username: ${{ secrets.USERNAME }} - password: ${{ secrets.PASSWORD }} - overwrite: true - strip_components: 2 diff --git a/packages/word/index.html b/packages/word/index.html index ce182d3..f61c3a7 100644 --- a/packages/word/index.html +++ b/packages/word/index.html @@ -412,6 +412,10 @@ +