Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add plugins localy, because not working CDN of CKEDITOR #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
16 changes: 16 additions & 0 deletions assets/src/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Configurations to normalize the IDE behavior.
# http://editorconfig.org/

root = true

[*]
indent_style = tab
tab_width = 4
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true

[*.yml]
indent_style = space
indent_size = 2
18 changes: 18 additions & 0 deletions assets/src/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
* text=auto

*.htaccess eol=lf
*.cgi eol=lf
*.sh eol=lf

*.css text
*.htm text
*.html text
*.js text
*.json text
*.php text
*.txt text
*.md text

*.png -text
*.gif -text
*.jpg -text
37 changes: 37 additions & 0 deletions assets/src/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# These files will be ignored by Git and by our linting tools:
# grunt jshint
# grunt jscs
#
# Be sure to append /** to folders to have everything inside them ignored.

# All "dot directories".
.*/**

node_modules/**
build/**
coverage/**

dev/builder/release/**
dev/builder/ckbuilder/**
dev/langtool/po/**
dev/langtool/cklangtool/**

samples/toolbarconfigurator/.bender/**
samples/toolbarconfigurator/node_modules/**
samples/toolbarconfigurator/docs/**

tests/security
tests/plugins/mathjax/_assets/mathjax/**

*.css.map

bender-*.log

!.github/**
!.npm/*
.DS_Store

# Ignore package-lock.json
# - we don't intent to force specific 3rd party dependency version via `package-lock.json` file
# Such information should be specified in the package.json file.
package-lock.json
60 changes: 60 additions & 0 deletions assets/src/.jscsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"es3": true,
"requireCurlyBraces": [
"switch", "try", "catch"
],
"requireSpaceBeforeKeywords": true,
"requireSpaceAfterKeywords": [
"do", "for", "if", "else", "switch", "case", "try", "catch", "void", "while", "with", "return", "typeof"
],
"requireSpaceBeforeBlockStatements": true,
"requireParenthesesAroundIIFE": true,
"requireSpacesInConditionalExpression": {
"afterTest": true,
"beforeConsequent": true,
"afterConsequent": true,
"beforeAlternate": true
},
"requireSpacesInFunction": {
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInFunction": {
"beforeOpeningRoundBrace": true
},
"requireSpacesInsideBrackets": true,
"disallowSpacesInCallExpression": true,
"requireBlocksOnNewline": true,
"requireSpacesInsideObjectBrackets": "all",
"requireSpacesInsideArrayBrackets": "all",
"requireSpacesInsideParentheses": "all",
"disallowSpaceAfterObjectKeys": true,
"requireSpaceBeforeObjectValues": true,
"requireCommaBeforeLineBreak": true,
"requireOperatorBeforeLineBreak": true,
"disallowSpaceAfterPrefixUnaryOperators": true,
"disallowSpaceBeforePostfixUnaryOperators": true,
"requireSpaceBeforeBinaryOperators": true,
"requireSpaceAfterBinaryOperators": true,
"disallowKeywords": [
"with"
],
"disallowMultipleLineStrings": true,
"disallowMixedSpacesAndTabs": true,
"disallowTrailingWhitespace": true,
"maximumLineLength": 200,
"requireDotNotation": {
"allExcept": [ "keywords" ]
},
"disallowYodaConditions": true,
"disallowNewlineBeforeBlockStatements": true,
"validateLineBreaks": "LF",
"validateQuoteMarks": {
"mark": "'",
"escape": true
},
"validateIndentation": {
"value": "\t",
"allExcept": [ "comments", "emptyLines" ]
},
"requireLineFeedAtFileEnd": true
}
25 changes: 25 additions & 0 deletions assets/src/.jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"browser": true,

"es3": true,
"immed": true,
"latedef": "nofunc",
"nonbsp": true,
"undef": true,
"unused": true,

"newcap": false,
"noempty": false,
"strict": false,

"boss": true,
"eqnull": true,
"evil": true,
"expr": true,
"funcscope": true,
"globalstrict": true,
"loopfunc": true,
"validthis": true,

"predef": [ "CKEDITOR", "assert", "arrayAssert", "bender", "JSON", "objectAssert", "resume", "sinon", "wait", "YUITest" ]
}
31 changes: 31 additions & 0 deletions assets/src/.mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Aleksander Nowodzinski <a.nowodzinski@cksource.com>
Alfonso Martínez de Lizarrondo <amla70@gmail.com> <alfonsoml@da63caf2-3823-0410-a1e8-d69ccee00dfb>
Alfonso Martínez de Lizarrondo <amla70@gmail.com> <a.martinez@cksource.com>
Anna <Anna@da63caf2-3823-0410-a1e8-d69ccee00dfb>
Anna Tomanek <a.tomanek@cksource.com>
Artur Formella <arczi@da63caf2-3823-0410-a1e8-d69ccee00dfb>
Brooks Guo <brooks@da63caf2-3823-0410-a1e8-d69ccee00dfb>
CKSource Robot <cksource_robot@da63caf2-3823-0410-a1e8-d69ccee00dfb>
Frederico Knabben <f.knabben@cksource.com> fredck
Frederico Knabben <f.knabben@cksource.com> <fredck@da63caf2-3823-0410-a1e8-d69ccee00dfb>
Garry Yao <garry.yao@cksource.com> <yaojun85@gmail.com>
Garry Yao <garry.yao@cksource.com> <garry.yao@da63caf2-3823-0410-a1e8-d69ccee00dfb>
Jakub Swiderski <j.swiderski@cksource.com>
Jakub Swiderski <j.swiderski@cksource.com> <j.swiderski@da63caf2-3823-0410-a1e8-d69ccee00dfb>
Maciej Guzek <m.guzek@cksource.com>
Maciej Guzek <m.guzek@cksource.com> <kezugo@gmail.com>
mani <mani@da63caf2-3823-0410-a1e8-d69ccee00dfb>
Marek Lewandowski <m.lewandowski@cksource.com>
Marek Lewandowski <m.lewandowski@cksource.com> <marek@mlewandowski.com>
Martin Kou <martinkou@da63caf2-3823-0410-a1e8-d69ccee00dfb>
Nguyen Ming <m.nguyen@da63caf2-3823-0410-a1e8-d69ccee00dfb>
paho <paho@da63caf2-3823-0410-a1e8-d69ccee00dfb>
Piotr Jasiun <p.jasiun@cksource.com> <pjasiun@gmail.com> <piotr@jasiun.pl> <pjasiun+git@gmail.com>
Piotr Jasiun <p.jasiun@cksource.com> <pjasiun+git@gmail.com>
Piotrek Reinmar Koszuliński <p.koszulinski@cksource.com> <pkoszulinski@gmail.com>
Piotrek Reinmar Koszuliński <p.koszulinski@cksource.com> <Reinmar@da63caf2-3823-0410-a1e8-d69ccee00dfb>
Ryunosuke Sato <tricknotes.rs@gmail.com>
Saare <Saare@da63caf2-3823-0410-a1e8-d69ccee00dfb>
Sebastian Stefanov <s.stefanov@cksource.com>
Tobiasz Cudnik <tobiasz.cudnik@da63caf2-3823-0410-a1e8-d69ccee00dfb>
Wiktor Walc <w.walc@cksource.com> <wwalc@da63caf2-3823-0410-a1e8-d69ccee00dfb>
1 change: 1 addition & 0 deletions assets/src/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10
104 changes: 104 additions & 0 deletions assets/src/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
branches:
only:
- next
- master
- major
- stable
- latest
- /^\d+\.\d+(\.\d+)?(-\S*)?$/
- /^release\/\d+\.\d+\.x$/
- /^[\d]{4,5}security$/

git:
depth: false

env:
global:
- FULL_RUN=$(if [ "$FULL_RUN_TRAVIS_CFG" != "" ]; then echo "$FULL_RUN_TRAVIS_CFG"; elif [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then echo "fullRun"; else echo ""; fi)
- REPO_NAME=$(IFS='/' read -r -a array <<< "$TRAVIS_REPO_SLUG"; echo ${array[1]};)
- TARGET_BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then echo "$TRAVIS_BRANCH^"; else echo "$TRAVIS_BRANCH"; fi)
- CURRENT_BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then echo "$TRAVIS_BRANCH"; else echo "$TRAVIS_PULL_REQUEST_BRANCH"; fi)

jobs:
exclude:
- language: ruby
include:
- name: Chrome (Linux)
os: linux
dist: xenial
language: node_js
node_js: 10
services:
- xvfb
addons:
chrome: stable
install:
- npm install npm@7 -g
- npm --version
before_script:
- echo $TRAVIS_EVENT_TYPE
# Setup xvfb
- 'export DISPLAY=:99.0'
- 'sleep 3'
# Setup CKEditor 4 testing environment
- pwd
- npm install benderjs-cli -g
- npm i
# Setup additional dependency
- |
if [[ "$EXTRA_DEPS_TRAVIS" == "true" ]]; then
git clone $DEPS_TRAVIS $DEPS_LOCATION_TRAVIS --quiet
cd $DEPS_LOCATION_TRAVIS
git checkout $TRAVIS_PULL_REQUEST_BRANCH || true
cd ../..
fi
# Setup bender test runner
- cd ..
- pwd
- git clone https://github.com/ckeditor/ckeditor4-benderjs-runner.git --branch v1.2.0 --single-branch
- cd ckeditor4-benderjs-runner
- npm i
script:
- pwd
- echo "Running tests based on diff between $TARGET_BRANCH and $CURRENT_BRANCH"
- npm run start -- --configFile "../../$REPO_NAME/bender-runner.config.json" --targetBranch "$TARGET_BRANCH" --currentBranch "$CURRENT_BRANCH" --browser "chrome" --fullRun "$FULL_RUN" --repoPath "../$REPO_NAME/" --prRepoSlug "$TRAVIS_PULL_REQUEST_SLUG"

- name: Firefox (Linux)
os: linux
dist: xenial
language: node_js
node_js: 10
services:
- xvfb
addons:
firefox: latest
install:
- npm install npm@7 -g
- npm --version
before_script:
- echo $TRAVIS_EVENT_TYPE
# Setup xvfb
- 'export DISPLAY=:99.0'
- 'sleep 3'
# Setup CKEditor 4 testing environment
- pwd
- npm install benderjs-cli -g
- npm i
# Setup additional dependency
- |
if [[ "$EXTRA_DEPS_TRAVIS" == "true" ]]; then
git clone $DEPS_TRAVIS $DEPS_LOCATION_TRAVIS --quiet
cd $DEPS_LOCATION_TRAVIS
git checkout $TRAVIS_PULL_REQUEST_BRANCH || true
cd ../..
fi
# Setup bender test runner
- cd ..
- pwd
- git clone https://github.com/ckeditor/ckeditor4-benderjs-runner.git --branch v1.2.0 --single-branch
- cd ckeditor4-benderjs-runner
- npm i
script:
- pwd
- echo "Running tests based on diff between $TARGET_BRANCH and $CURRENT_BRANCH"
- npm run start -- --configFile "../../$REPO_NAME/bender-runner.config.json" --targetBranch "$TARGET_BRANCH" --currentBranch "$CURRENT_BRANCH" --browser "firefox" --fullRun "$FULL_RUN" --repoPath "../$REPO_NAME/" --prRepoSlug "$TRAVIS_PULL_REQUEST_SLUG"
Loading