-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'tiptap-next/main'
- Loading branch information
Showing
902 changed files
with
62,508 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
insert_final_newline = true | ||
max_line_length = 100 | ||
trim_trailing_whitespace = true | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
**/dist/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
module.exports = { | ||
parserOptions: { | ||
parser: '@typescript-eslint/parser', | ||
sourceType: 'module', | ||
}, | ||
env: { | ||
es6: true, | ||
node: true, | ||
}, | ||
overrides: [ | ||
{ | ||
files: [ | ||
'./**/*.ts', | ||
'./**/*.tsx', | ||
'./**/*.js', | ||
'./**/*.jsx', | ||
'./**/*.vue', | ||
], | ||
plugins: [ | ||
'html', | ||
'cypress', | ||
'@typescript-eslint', | ||
], | ||
env: { | ||
'cypress/globals': true, | ||
}, | ||
globals: { | ||
document: false, | ||
window: false, | ||
}, | ||
extends: [ | ||
'plugin:@typescript-eslint/eslint-recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:vue/strongly-recommended', | ||
'airbnb-base', | ||
], | ||
rules: { | ||
'no-alert': 'off', | ||
'no-console': ['warn', { allow: ['warn', 'error'] }], | ||
semi: ['error', 'never'], | ||
'import/order': 'off', | ||
'import/extensions': 'off', | ||
'import/no-extraneous-dependencies': 'off', | ||
'import/no-unresolved': 'off', | ||
'import/no-dynamic-require': 'off', | ||
'arrow-parens': ['error', 'as-needed'], | ||
'padded-blocks': 'off', | ||
'class-methods-use-this': 'off', | ||
'global-require': 'off', | ||
'func-names': ['error', 'never'], | ||
'arrow-body-style': 'off', | ||
'max-len': 'off', | ||
'vue/one-component-per-file': 'off', | ||
'vue/this-in-template': ['error', 'never'], | ||
'vue/max-attributes-per-line': ['error', { | ||
singleline: 3, | ||
multiline: { | ||
max: 1, | ||
allowFirstLine: false, | ||
}, | ||
}], | ||
'vue/singleline-html-element-content-newline': 'off', | ||
'no-param-reassign': 'off', | ||
'import/prefer-default-export': 'off', | ||
'consistent-return': 'off', | ||
'prefer-destructuring': 'off', | ||
'no-redeclare': 'off', | ||
'@typescript-eslint/no-redeclare': ['error'], | ||
'no-unused-vars': 'off', | ||
'@typescript-eslint/no-unused-vars': ['error'], | ||
'no-use-before-define': 'off', | ||
'@typescript-eslint/no-use-before-define': ['error'], | ||
'no-dupe-class-members': 'off', | ||
'@typescript-eslint/no-dupe-class-members': ['error'], | ||
'lines-between-class-members': 'off', | ||
'no-shadow': 'off', | ||
'@typescript-eslint/no-shadow': ['error'], | ||
'@typescript-eslint/lines-between-class-members': ['error'], | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-empty-interface': 'off', | ||
'@typescript-eslint/explicit-module-boundary-type': 'off', | ||
'@typescript-eslint/no-var-requires': 'off', | ||
'@typescript-eslint/ban-ts-comment': 'off', | ||
'@typescript-eslint/ban-types': 'off', | ||
'@typescript-eslint/comma-dangle': ['error', 'always-multiline'], | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
}, | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
url: https://github.com/ueberdosis/tiptap-next/issues/new | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
--- | ||
|
||
**What happens?** | ||
A clear and concise description of what the bug is. | ||
|
||
**How can others reproduce the issue?** | ||
Steps to reproduce the behavior: | ||
1. Go to … | ||
2. Type in … | ||
3. Click on … | ||
4. See error message | ||
|
||
Create a new Codesandbox replicating your error | ||
https://codesandbox.io/s/tiptap-issue-template-b83rr?file=/src/components/Tiptap.vue (Vue) | ||
https://codesandbox.io/s/tiptap-react-08yxr (React) | ||
|
||
**What behavior did you expect?** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Do you have a screenshot?** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**What’s your environment?** | ||
- Operating system | ||
- Browser | ||
- Mobile/desktop | ||
|
||
**What else?** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
# - name: Ask a question | ||
# url: https://github.com/ueberdosis/tiptap/discussions/new | ||
# about: Ask the community for help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest a new feature for tiptap | ||
title: '' | ||
labels: feature request | ||
assignees: '' | ||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. For example: I’m always frustrated when … | ||
|
||
**Describe the solution you’d like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you’ve considered** | ||
A clear and concise description of any alternative solutions or features you’ve considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Feedback on the documentation | ||
about: Share what we need to explain better | ||
url: https://github.com/ueberdosis/tiptap-next/issues/new | ||
title: '' | ||
labels: documentation | ||
assignees: '' | ||
--- | ||
|
||
**Which part of the documentation have you read?** | ||
I’ve been to the following page of the documentation … | ||
|
||
**Did you find the content helpful?** | ||
I think this part is really good: … | ||
|
||
**What was hard to understand, missing or misleading?** | ||
But you really need to improve … | ||
|
||
**What else?** | ||
Add any other context here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Dependabot creates pull requests to keep your dependencies secure and up-to-date. | ||
# Documentation: https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
|
||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
open-pull-requests-limit: 10 | ||
schedule: | ||
interval: 'weekly' | ||
day: 'monday' | ||
reviewers: | ||
- 'hanspagel' | ||
|
||
- package-ecosystem: 'npm' | ||
directory: '/' | ||
open-pull-requests-limit: 10 | ||
schedule: | ||
interval: 'weekly' | ||
day: 'monday' | ||
reviewers: | ||
- 'philippkuehn' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
# Automate, customize, and execute your software development workflows right in your repository with GitHub Actions. | ||
# Documentation: https://docs.github.com/en/actions | ||
|
||
name: build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14] | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v2.3.4 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2.1.5 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Load cached dependencies | ||
uses: actions/cache@v2.1.4 | ||
id: cache | ||
with: | ||
path: | | ||
**/node_modules | ||
/home/runner/.cache/Cypress | ||
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }} | ||
|
||
- name: Install dependencies | ||
id: install-dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: yarn install | ||
|
||
- name: Fix code style linting errors | ||
id: lint-fix | ||
run: yarn lint:fix | ||
continue-on-error: true | ||
|
||
- name: Commit fixed linting errors | ||
id: commit | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: "ci: fix code style linting errors" | ||
|
||
- name: Lint code | ||
id: lint | ||
run: yarn lint | ||
|
||
- name: Send Slack notifications | ||
uses: act10ns/slack@v1 | ||
if: failure() | ||
with: | ||
status: ${{ job.status }} | ||
steps: ${{ toJson(steps) }} | ||
channel: '#tiptap-notifications' | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14] | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v2.3.4 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2.1.5 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Run tests with Cypress | ||
id: cypress | ||
uses: cypress-io/github-action@v2 | ||
with: | ||
cache-key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }} | ||
start: yarn start | ||
wait-on: 'http://localhost:3000' | ||
project: ./tests | ||
browser: chrome | ||
quiet: true | ||
|
||
- name: Export screenshots (on failure only) | ||
uses: actions/upload-artifact@v2.2.2 | ||
if: failure() | ||
with: | ||
name: cypress-screenshots | ||
path: tests/cypress/screenshots | ||
retention-days: 7 | ||
|
||
- name: Export screen recordings (on failure only) | ||
uses: actions/upload-artifact@v2.2.2 | ||
if: failure() | ||
with: | ||
name: cypress-videos | ||
path: tests/cypress/videos | ||
retention-days: 7 | ||
|
||
- name: Send Slack notifications | ||
uses: act10ns/slack@v1 | ||
if: failure() | ||
with: | ||
status: ${{ job.status }} | ||
steps: ${{ toJson(steps) }} | ||
channel: '#tiptap-notifications' | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
|
||
needs: lint | ||
|
||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14] | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v2.3.4 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2.1.5 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Load cached dependencies | ||
uses: actions/cache@v2.1.4 | ||
id: cache | ||
with: | ||
path: | | ||
**/node_modules | ||
/home/runner/.cache/Cypress | ||
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }} | ||
|
||
- name: Install dependencies | ||
id: install-dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: yarn install | ||
|
||
- name: Try to build the packages | ||
id: build-packages | ||
run: yarn build:ci | ||
|
||
- name: Send Slack notifications | ||
uses: act10ns/slack@v1 | ||
if: failure() | ||
with: | ||
status: ${{ job.status }} | ||
steps: ${{ toJson(steps) }} | ||
channel: '#tiptap-notifications' |
Oops, something went wrong.