Skip to content

Commit

Permalink
add special characters ckeditor#4119
Browse files Browse the repository at this point in the history
  • Loading branch information
zadam committed Jan 27, 2024
2 parents d42e772 + 9521219 commit e07a7f9
Show file tree
Hide file tree
Showing 5,755 changed files with 80,735 additions and 53,867 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
44 changes: 44 additions & 0 deletions .circleci/.stale-bot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/**
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/* eslint-env node */
/* eslint-disable max-len */

'use strict';

module.exports = {
GITHUB_TOKEN: process.env.CKE5_GITHUB_TOKEN,
REPOSITORY_SLUG: 'ckeditor/ckeditor5',
DAYS_BEFORE_STALE: 365,
DAYS_BEFORE_CLOSE: 30,
IGNORED_ISSUE_LABELS: [
'support:1',
'support:2',
'support:3',
'domain:accessibility'
],
IGNORED_PR_LABELS: [
'support:1',
'support:2',
'support:3',
'domain:accessibility'
],
IGNORED_ACTIVITY_LABELS: [
'stale'
],
STALE_LABELS: [
'status:stale'
],
CLOSE_ISSUE_LABELS: [
'resolution:expired'
],
CLOSE_PR_LABELS: [
'resolution:expired'
],
STALE_ISSUE_MESSAGE: 'There has been no activity on this issue for the past year. We\'ve marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you\'re interested in the solution, leave a comment or reaction under this issue.',
STALE_PR_MESSAGE: 'There has been no activity on this PR for the past year. We\'ve marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you\'re interested in the contribution, leave a comment or reaction under this PR.',
CLOSE_ISSUE_MESSAGE: 'We\'ve closed your issue due to inactivity over the last year. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it).',
CLOSE_PR_MESSAGE: 'We\'ve closed your PR due to inactivity over the last year. While time has passed, the core of your contribution might still be relevant. If you\'re able, consider reopening a similar PR.'
};
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ parameters:
isNightly:
type: boolean
default: false
isStaleBot:
type: boolean
default: false

orbs:
continuation: circleci/[email protected]
Expand Down
32 changes: 29 additions & 3 deletions .circleci/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ parameters:
isNightly:
type: boolean
default: false
isStaleBot:
type: boolean
default: false

commands:
halt_if_short_flow:
Expand Down Expand Up @@ -103,8 +106,8 @@ jobs:
command: yarn run check-dependencies:versions-match
- run:
when: always
name: Validate icons specified in "ckeditor5-metadata.json" files
command: node scripts/ci/validate-metadata-icons.js
name: Validate "ckeditor5-metadata.json" files
command: node scripts/ci/validate-metadata-files.js
- run:
when: always
name: Check if all SVG files are optimized
Expand Down Expand Up @@ -195,6 +198,10 @@ jobs:
name: Check if packages are ready to be released
command:
yarn run release:prepare-packages --compile-only --verbose
- run:
name: Lint generated packages
command:
yarn run release:lint-packages

notify_ci_failure:
machine: true
Expand All @@ -214,11 +221,23 @@ jobs:
command: yarn ckeditor5-dev-ci-circle-workflow-notifier
no_output_timeout: 2h

stale_bot:
machine: true
steps:
- checkout_command
- bootstrap_repository_command
- run:
name: Run stale bot
command: yarn ckeditor5-dev-stale-bot --config-path .circleci/.stale-bot.js

workflows:
version: 2
# `cke5_tests_framework` and `cke5_tests_features` jobs are generated by the `scripts/ci/generate-config-tests.js` script.
main:
unless: << pipeline.parameters.isNightly >>
when:
and:
- equal: [ false, << pipeline.parameters.isNightly >> ]
- equal: [ false, << pipeline.parameters.isStaleBot >> ]
jobs:
- cke5_tests_framework:
filters:
Expand Down Expand Up @@ -295,3 +314,10 @@ workflows:
branches:
only:
- master

stale_bot:
when: << pipeline.parameters.isStaleBot >>
jobs:
- stale_bot
- notify_ci_failure:
hideAuthor: "true"
12 changes: 9 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

Expand All @@ -19,11 +19,17 @@ module.exports = {
'ckeditor5-rules/license-header': [ 'error', {
headerLines: [
'/**',
' * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.',
' * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.',
' * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license',
' */'
]
} ]
} ],
'ckeditor5-rules/require-file-extensions-in-imports': [
'error',
{
extensions: [ '.ts', '.js', '.json' ]
}
]
},
overrides: [
{
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/7-docs-issue-community.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "User-generated documentation issue report"
description: "Semi-automated documentation issue template for user-generated reports. To be invoked from within the docs guides only."
title: "Docs issue report from '...' guide"
labels: [ "squad:ccx", "type:docs" ]
labels: [ "squad:core", "type:docs" ]
body:
- type: markdown
attributes:
Expand Down
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/8-question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: "❓ Question"
about: "Ask a question"
title: ''
labels: type:question
assignees: ''

---

## 📝 Ask a question

_What is your question? Please be as specific as possible to help us understand it._
30 changes: 0 additions & 30 deletions .github/workflows/stale.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
# @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
# For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license

. "$(dirname -- "$0")/_/husky.sh"
Expand Down
2 changes: 1 addition & 1 deletion .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"headerLines": [
"/*",
" * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.",
" * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.",
" * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license",
" */"
]
Expand Down
11 changes: 9 additions & 2 deletions .vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,20 @@ BasedOnStyles = CKEditor, Vale, Microsoft, proselint, write-good, Readability
Microsoft.Avoid = NO
Microsoft.Contractions = NO
Microsoft.Dashes = NO
# The rule to use "address" instead of URL makes no sense for our audience.
Microsoft.GeneralURL = NO
# Replaced by a custom CKEditor style to make exceptions possible.
Microsoft.HeadingAcronyms = NO
# The Passive rule appears in write-good too, with a better description.
Microsoft.Passive = NO
proselint.Cliches = warning
# Sometimes extending the acronym is deliberate.
proselint.RASSyndrome = warning
proselint.Typography = NO
write-good.E-Prime = NO
write-good.ThereIs = suggestion
# Ignore HTML links.
IgnoredScopes = a
# Ignore internal documentation links ({@link} and URLs typed verbatim or in Markdown notation.
# Ignore internal snippet links.
TokenIgnores = {@link [^{}]+}, https?://[^\s]+, {@snippet [^{}]+}
# Ignore internal snippet, exec, and icon links.
TokenIgnores = {@link [^{}]+}, https?://[^\s]+, {@snippet [^{}]+}, {@exec [^{}]+}, {@icon [^{}]+}, \[@ckeditor/ckeditor5-[A-Za-z0-9-]+\]
Loading

0 comments on commit e07a7f9

Please sign in to comment.