mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-20 20:07:03 +01:00
Update JS dependencies (#27922)
- Update all JS dependencies minus @mcaptcha/vanilla-glue (unsolved error, see https://github.com/mCaptcha/glue/issues/65) - Migrate deprecated eslint rules to `@stylistic/eslint-plugin-js` - Enable and autofix `@stylistic/js/no-multiple-empty-lines` - Regenerate poetry.lock with latest poetry - Tested Mermaid, Swagger, Citation, Vue
This commit is contained in:
parent
c823af26db
commit
abd79ddebf
15 changed files with 733 additions and 618 deletions
126
.eslintrc.yaml
126
.eslintrc.yaml
|
@ -10,6 +10,7 @@ parserOptions:
|
||||||
|
|
||||||
plugins:
|
plugins:
|
||||||
- "@eslint-community/eslint-plugin-eslint-comments"
|
- "@eslint-community/eslint-plugin-eslint-comments"
|
||||||
|
- "@stylistic/eslint-plugin-js"
|
||||||
- eslint-plugin-array-func
|
- eslint-plugin-array-func
|
||||||
- eslint-plugin-i
|
- eslint-plugin-i
|
||||||
- eslint-plugin-jquery
|
- eslint-plugin-jquery
|
||||||
|
@ -114,11 +115,74 @@ rules:
|
||||||
"@eslint-community/eslint-comments/no-unused-enable": [2]
|
"@eslint-community/eslint-comments/no-unused-enable": [2]
|
||||||
"@eslint-community/eslint-comments/no-use": [0]
|
"@eslint-community/eslint-comments/no-use": [0]
|
||||||
"@eslint-community/eslint-comments/require-description": [0]
|
"@eslint-community/eslint-comments/require-description": [0]
|
||||||
|
"@stylistic/js/array-bracket-newline": [0]
|
||||||
|
"@stylistic/js/array-bracket-spacing": [2, never]
|
||||||
|
"@stylistic/js/array-element-newline": [0]
|
||||||
|
"@stylistic/js/arrow-parens": [2, always]
|
||||||
|
"@stylistic/js/arrow-spacing": [2, {before: true, after: true}]
|
||||||
|
"@stylistic/js/block-spacing": [0]
|
||||||
|
"@stylistic/js/brace-style": [2, 1tbs, {allowSingleLine: true}]
|
||||||
|
"@stylistic/js/comma-dangle": [2, only-multiline]
|
||||||
|
"@stylistic/js/comma-spacing": [2, {before: false, after: true}]
|
||||||
|
"@stylistic/js/comma-style": [2, last]
|
||||||
|
"@stylistic/js/computed-property-spacing": [2, never]
|
||||||
|
"@stylistic/js/dot-location": [2, property]
|
||||||
|
"@stylistic/js/eol-last": [2]
|
||||||
|
"@stylistic/js/func-call-spacing": [2, never]
|
||||||
|
"@stylistic/js/function-call-argument-newline": [0]
|
||||||
|
"@stylistic/js/function-paren-newline": [0]
|
||||||
|
"@stylistic/js/generator-star-spacing": [0]
|
||||||
|
"@stylistic/js/implicit-arrow-linebreak": [0]
|
||||||
|
"@stylistic/js/indent": [2, 2, {ignoreComments: true, SwitchCase: 1}]
|
||||||
|
"@stylistic/js/key-spacing": [2]
|
||||||
|
"@stylistic/js/keyword-spacing": [2]
|
||||||
|
"@stylistic/js/linebreak-style": [2, unix]
|
||||||
|
"@stylistic/js/lines-around-comment": [0]
|
||||||
|
"@stylistic/js/lines-between-class-members": [0]
|
||||||
|
"@stylistic/js/max-len": [0]
|
||||||
|
"@stylistic/js/max-statements-per-line": [0]
|
||||||
|
"@stylistic/js/multiline-ternary": [0]
|
||||||
|
"@stylistic/js/new-parens": [2]
|
||||||
|
"@stylistic/js/newline-per-chained-call": [0]
|
||||||
|
"@stylistic/js/no-confusing-arrow": [0]
|
||||||
|
"@stylistic/js/no-extra-parens": [0]
|
||||||
|
"@stylistic/js/no-extra-semi": [2]
|
||||||
|
"@stylistic/js/no-floating-decimal": [0]
|
||||||
|
"@stylistic/js/no-mixed-operators": [0]
|
||||||
|
"@stylistic/js/no-mixed-spaces-and-tabs": [2]
|
||||||
|
"@stylistic/js/no-multi-spaces": [2, {ignoreEOLComments: true, exceptions: {Property: true}}]
|
||||||
|
"@stylistic/js/no-multiple-empty-lines": [2, {max: 1, maxEOF: 0, maxBOF: 0}]
|
||||||
|
"@stylistic/js/no-tabs": [2]
|
||||||
|
"@stylistic/js/no-trailing-spaces": [2]
|
||||||
|
"@stylistic/js/no-whitespace-before-property": [2]
|
||||||
|
"@stylistic/js/nonblock-statement-body-position": [2]
|
||||||
|
"@stylistic/js/object-curly-newline": [0]
|
||||||
|
"@stylistic/js/object-curly-spacing": [2, never]
|
||||||
|
"@stylistic/js/object-property-newline": [0]
|
||||||
|
"@stylistic/js/one-var-declaration-per-line": [0]
|
||||||
|
"@stylistic/js/operator-linebreak": [2, after]
|
||||||
|
"@stylistic/js/padded-blocks": [2, never]
|
||||||
|
"@stylistic/js/padding-line-between-statements": [0]
|
||||||
|
"@stylistic/js/quote-props": [0]
|
||||||
|
"@stylistic/js/quotes": [2, single, {avoidEscape: true, allowTemplateLiterals: true}]
|
||||||
|
"@stylistic/js/rest-spread-spacing": [2, never]
|
||||||
|
"@stylistic/js/semi": [2, always, {omitLastInOneLineBlock: true}]
|
||||||
|
"@stylistic/js/semi-spacing": [2, {before: false, after: true}]
|
||||||
|
"@stylistic/js/semi-style": [2, last]
|
||||||
|
"@stylistic/js/space-before-blocks": [2, always]
|
||||||
|
"@stylistic/js/space-before-function-paren": [0]
|
||||||
|
"@stylistic/js/space-in-parens": [2, never]
|
||||||
|
"@stylistic/js/space-infix-ops": [2]
|
||||||
|
"@stylistic/js/space-unary-ops": [2]
|
||||||
|
"@stylistic/js/spaced-comment": [2, always]
|
||||||
|
"@stylistic/js/switch-colon-spacing": [2]
|
||||||
|
"@stylistic/js/template-curly-spacing": [2, never]
|
||||||
|
"@stylistic/js/template-tag-spacing": [2, never]
|
||||||
|
"@stylistic/js/wrap-iife": [2, inside]
|
||||||
|
"@stylistic/js/wrap-regex": [0]
|
||||||
|
"@stylistic/js/yield-star-spacing": [2, after]
|
||||||
accessor-pairs: [2]
|
accessor-pairs: [2]
|
||||||
array-bracket-newline: [0]
|
|
||||||
array-bracket-spacing: [2, never]
|
|
||||||
array-callback-return: [2, {checkForEach: true}]
|
array-callback-return: [2, {checkForEach: true}]
|
||||||
array-element-newline: [0]
|
|
||||||
array-func/avoid-reverse: [2]
|
array-func/avoid-reverse: [2]
|
||||||
array-func/from-map: [2]
|
array-func/from-map: [2]
|
||||||
array-func/no-unnecessary-this-arg: [2]
|
array-func/no-unnecessary-this-arg: [2]
|
||||||
|
@ -126,18 +190,11 @@ rules:
|
||||||
array-func/prefer-flat-map: [0] # handled by unicorn/prefer-array-flat-map
|
array-func/prefer-flat-map: [0] # handled by unicorn/prefer-array-flat-map
|
||||||
array-func/prefer-flat: [0] # handled by unicorn/prefer-array-flat
|
array-func/prefer-flat: [0] # handled by unicorn/prefer-array-flat
|
||||||
arrow-body-style: [0]
|
arrow-body-style: [0]
|
||||||
arrow-parens: [2, always]
|
|
||||||
arrow-spacing: [2, {before: true, after: true}]
|
|
||||||
block-scoped-var: [2]
|
block-scoped-var: [2]
|
||||||
brace-style: [2, 1tbs, {allowSingleLine: true}]
|
|
||||||
camelcase: [0]
|
camelcase: [0]
|
||||||
capitalized-comments: [0]
|
capitalized-comments: [0]
|
||||||
class-methods-use-this: [0]
|
class-methods-use-this: [0]
|
||||||
comma-dangle: [2, only-multiline]
|
|
||||||
comma-spacing: [2, {before: false, after: true}]
|
|
||||||
comma-style: [2, last]
|
|
||||||
complexity: [0]
|
complexity: [0]
|
||||||
computed-property-spacing: [2, never]
|
|
||||||
consistent-return: [0]
|
consistent-return: [0]
|
||||||
consistent-this: [0]
|
consistent-this: [0]
|
||||||
constructor-super: [2]
|
constructor-super: [2]
|
||||||
|
@ -145,25 +202,18 @@ rules:
|
||||||
default-case-last: [2]
|
default-case-last: [2]
|
||||||
default-case: [0]
|
default-case: [0]
|
||||||
default-param-last: [0]
|
default-param-last: [0]
|
||||||
dot-location: [2, property]
|
|
||||||
dot-notation: [0]
|
dot-notation: [0]
|
||||||
eol-last: [2]
|
|
||||||
eqeqeq: [2]
|
eqeqeq: [2]
|
||||||
for-direction: [2]
|
for-direction: [2]
|
||||||
func-call-spacing: [2, never]
|
|
||||||
func-name-matching: [2]
|
func-name-matching: [2]
|
||||||
func-names: [0]
|
func-names: [0]
|
||||||
func-style: [0]
|
func-style: [0]
|
||||||
function-call-argument-newline: [0]
|
|
||||||
function-paren-newline: [0]
|
|
||||||
generator-star-spacing: [0]
|
|
||||||
getter-return: [2]
|
getter-return: [2]
|
||||||
grouped-accessor-pairs: [2]
|
grouped-accessor-pairs: [2]
|
||||||
guard-for-in: [0]
|
guard-for-in: [0]
|
||||||
id-blacklist: [0]
|
id-blacklist: [0]
|
||||||
id-length: [0]
|
id-length: [0]
|
||||||
id-match: [0]
|
id-match: [0]
|
||||||
implicit-arrow-linebreak: [0]
|
|
||||||
i/consistent-type-specifier-style: [0]
|
i/consistent-type-specifier-style: [0]
|
||||||
i/default: [0]
|
i/default: [0]
|
||||||
i/dynamic-import-chunkname: [0]
|
i/dynamic-import-chunkname: [0]
|
||||||
|
@ -207,7 +257,6 @@ rules:
|
||||||
i/order: [0]
|
i/order: [0]
|
||||||
i/prefer-default-export: [0]
|
i/prefer-default-export: [0]
|
||||||
i/unambiguous: [0]
|
i/unambiguous: [0]
|
||||||
indent: [2, 2, {SwitchCase: 1}]
|
|
||||||
init-declarations: [0]
|
init-declarations: [0]
|
||||||
jquery/no-ajax-events: [2]
|
jquery/no-ajax-events: [2]
|
||||||
jquery/no-ajax: [0]
|
jquery/no-ajax: [0]
|
||||||
|
@ -258,27 +307,17 @@ rules:
|
||||||
jquery/no-val: [0]
|
jquery/no-val: [0]
|
||||||
jquery/no-when: [2]
|
jquery/no-when: [2]
|
||||||
jquery/no-wrap: [2]
|
jquery/no-wrap: [2]
|
||||||
key-spacing: [2]
|
|
||||||
keyword-spacing: [2]
|
|
||||||
line-comment-position: [0]
|
line-comment-position: [0]
|
||||||
linebreak-style: [2, unix]
|
|
||||||
lines-around-comment: [0]
|
|
||||||
lines-between-class-members: [0]
|
|
||||||
logical-assignment-operators: [0]
|
logical-assignment-operators: [0]
|
||||||
max-classes-per-file: [0]
|
max-classes-per-file: [0]
|
||||||
max-depth: [0]
|
max-depth: [0]
|
||||||
max-len: [0]
|
|
||||||
max-lines-per-function: [0]
|
max-lines-per-function: [0]
|
||||||
max-lines: [0]
|
max-lines: [0]
|
||||||
max-nested-callbacks: [0]
|
max-nested-callbacks: [0]
|
||||||
max-params: [0]
|
max-params: [0]
|
||||||
max-statements-per-line: [0]
|
|
||||||
max-statements: [0]
|
max-statements: [0]
|
||||||
multiline-comment-style: [2, separate-lines]
|
multiline-comment-style: [2, separate-lines]
|
||||||
multiline-ternary: [0]
|
|
||||||
new-cap: [0]
|
new-cap: [0]
|
||||||
new-parens: [2]
|
|
||||||
newline-per-chained-call: [0]
|
|
||||||
no-alert: [0]
|
no-alert: [0]
|
||||||
no-array-constructor: [2]
|
no-array-constructor: [2]
|
||||||
no-async-promise-executor: [0]
|
no-async-promise-executor: [0]
|
||||||
|
@ -290,7 +329,6 @@ rules:
|
||||||
no-class-assign: [2]
|
no-class-assign: [2]
|
||||||
no-compare-neg-zero: [2]
|
no-compare-neg-zero: [2]
|
||||||
no-cond-assign: [2, except-parens]
|
no-cond-assign: [2, except-parens]
|
||||||
no-confusing-arrow: [0]
|
|
||||||
no-console: [1, {allow: [debug, info, warn, error]}]
|
no-console: [1, {allow: [debug, info, warn, error]}]
|
||||||
no-const-assign: [2]
|
no-const-assign: [2]
|
||||||
no-constant-binary-expression: [2]
|
no-constant-binary-expression: [2]
|
||||||
|
@ -320,10 +358,7 @@ rules:
|
||||||
no-extra-bind: [2]
|
no-extra-bind: [2]
|
||||||
no-extra-boolean-cast: [2]
|
no-extra-boolean-cast: [2]
|
||||||
no-extra-label: [0]
|
no-extra-label: [0]
|
||||||
no-extra-parens: [0]
|
|
||||||
no-extra-semi: [2]
|
|
||||||
no-fallthrough: [2]
|
no-fallthrough: [2]
|
||||||
no-floating-decimal: [0]
|
|
||||||
no-func-assign: [2]
|
no-func-assign: [2]
|
||||||
no-global-assign: [2]
|
no-global-assign: [2]
|
||||||
no-implicit-coercion: [2]
|
no-implicit-coercion: [2]
|
||||||
|
@ -437,10 +472,7 @@ rules:
|
||||||
no-loss-of-precision: [2]
|
no-loss-of-precision: [2]
|
||||||
no-magic-numbers: [0]
|
no-magic-numbers: [0]
|
||||||
no-misleading-character-class: [2]
|
no-misleading-character-class: [2]
|
||||||
no-mixed-operators: [0]
|
|
||||||
no-mixed-spaces-and-tabs: [2]
|
|
||||||
no-multi-assign: [0]
|
no-multi-assign: [0]
|
||||||
no-multi-spaces: [2, {ignoreEOLComments: true, exceptions: {Property: true}}]
|
|
||||||
no-multi-str: [2]
|
no-multi-str: [2]
|
||||||
no-negated-condition: [0]
|
no-negated-condition: [0]
|
||||||
no-nested-ternary: [0]
|
no-nested-ternary: [0]
|
||||||
|
@ -474,12 +506,10 @@ rules:
|
||||||
no-shadow-restricted-names: [2]
|
no-shadow-restricted-names: [2]
|
||||||
no-shadow: [0]
|
no-shadow: [0]
|
||||||
no-sparse-arrays: [2]
|
no-sparse-arrays: [2]
|
||||||
no-tabs: [2]
|
|
||||||
no-template-curly-in-string: [2]
|
no-template-curly-in-string: [2]
|
||||||
no-ternary: [0]
|
no-ternary: [0]
|
||||||
no-this-before-super: [2]
|
no-this-before-super: [2]
|
||||||
no-throw-literal: [2]
|
no-throw-literal: [2]
|
||||||
no-trailing-spaces: [2]
|
|
||||||
no-undef-init: [2]
|
no-undef-init: [2]
|
||||||
no-undef: [2, {typeof: true}]
|
no-undef: [2, {typeof: true}]
|
||||||
no-undefined: [0]
|
no-undefined: [0]
|
||||||
|
@ -509,18 +539,12 @@ rules:
|
||||||
no-var: [2]
|
no-var: [2]
|
||||||
no-void: [2]
|
no-void: [2]
|
||||||
no-warning-comments: [0]
|
no-warning-comments: [0]
|
||||||
no-whitespace-before-property: [2]
|
|
||||||
no-with: [0] # handled by no-restricted-syntax
|
no-with: [0] # handled by no-restricted-syntax
|
||||||
nonblock-statement-body-position: [2]
|
|
||||||
object-curly-newline: [0]
|
|
||||||
object-curly-spacing: [2, never]
|
|
||||||
object-shorthand: [2, always]
|
object-shorthand: [2, always]
|
||||||
one-var-declaration-per-line: [0]
|
one-var-declaration-per-line: [0]
|
||||||
one-var: [0]
|
one-var: [0]
|
||||||
operator-assignment: [2, always]
|
operator-assignment: [2, always]
|
||||||
operator-linebreak: [2, after]
|
operator-linebreak: [2, after]
|
||||||
padded-blocks: [2, never]
|
|
||||||
padding-line-between-statements: [0]
|
|
||||||
prefer-arrow-callback: [2, {allowNamedFunctions: true, allowUnboundThis: true}]
|
prefer-arrow-callback: [2, {allowNamedFunctions: true, allowUnboundThis: true}]
|
||||||
prefer-const: [2, {destructuring: all, ignoreReadBeforeAssign: true}]
|
prefer-const: [2, {destructuring: all, ignoreReadBeforeAssign: true}]
|
||||||
prefer-destructuring: [0]
|
prefer-destructuring: [0]
|
||||||
|
@ -534,7 +558,6 @@ rules:
|
||||||
prefer-rest-params: [2]
|
prefer-rest-params: [2]
|
||||||
prefer-spread: [2]
|
prefer-spread: [2]
|
||||||
prefer-template: [2]
|
prefer-template: [2]
|
||||||
quote-props: [0]
|
|
||||||
quotes: [2, single, {avoidEscape: true, allowTemplateLiterals: true}]
|
quotes: [2, single, {avoidEscape: true, allowTemplateLiterals: true}]
|
||||||
radix: [2, as-needed]
|
radix: [2, as-needed]
|
||||||
regexp/confusing-quantifier: [2]
|
regexp/confusing-quantifier: [2]
|
||||||
|
@ -620,10 +643,6 @@ rules:
|
||||||
require-await: [0]
|
require-await: [0]
|
||||||
require-unicode-regexp: [0]
|
require-unicode-regexp: [0]
|
||||||
require-yield: [2]
|
require-yield: [2]
|
||||||
rest-spread-spacing: [2, never]
|
|
||||||
semi-spacing: [2, {before: false, after: true}]
|
|
||||||
semi-style: [2, last]
|
|
||||||
semi: [2, always, {omitLastInOneLineBlock: true}]
|
|
||||||
sonarjs/cognitive-complexity: [0]
|
sonarjs/cognitive-complexity: [0]
|
||||||
sonarjs/elseif-without-else: [0]
|
sonarjs/elseif-without-else: [0]
|
||||||
sonarjs/max-switch-cases: [0]
|
sonarjs/max-switch-cases: [0]
|
||||||
|
@ -659,16 +678,8 @@ rules:
|
||||||
sort-imports: [0]
|
sort-imports: [0]
|
||||||
sort-keys: [0]
|
sort-keys: [0]
|
||||||
sort-vars: [0]
|
sort-vars: [0]
|
||||||
space-before-blocks: [2, always]
|
|
||||||
space-in-parens: [2, never]
|
|
||||||
space-infix-ops: [2]
|
|
||||||
space-unary-ops: [2]
|
|
||||||
spaced-comment: [2, always]
|
|
||||||
strict: [0]
|
strict: [0]
|
||||||
switch-colon-spacing: [2]
|
|
||||||
symbol-description: [2]
|
symbol-description: [2]
|
||||||
template-curly-spacing: [2, never]
|
|
||||||
template-tag-spacing: [2, never]
|
|
||||||
unicode-bom: [2, never]
|
unicode-bom: [2, never]
|
||||||
unicorn/better-regex: [0]
|
unicorn/better-regex: [0]
|
||||||
unicorn/catch-error-name: [0]
|
unicorn/catch-error-name: [0]
|
||||||
|
@ -807,7 +818,4 @@ rules:
|
||||||
wc/no-typos: [2]
|
wc/no-typos: [2]
|
||||||
wc/require-listener-teardown: [2]
|
wc/require-listener-teardown: [2]
|
||||||
wc/tag-name-matches-class: [2]
|
wc/tag-name-matches-class: [2]
|
||||||
wrap-iife: [2, inside]
|
|
||||||
wrap-regex: [0]
|
|
||||||
yield-star-spacing: [2, after]
|
|
||||||
yoda: [2, never]
|
yoda: [2, never]
|
||||||
|
|
1169
package-lock.json
generated
1169
package-lock.json
generated
File diff suppressed because it is too large
Load diff
39
package.json
39
package.json
|
@ -5,8 +5,8 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@citation-js/core": "0.7.1",
|
"@citation-js/core": "0.7.1",
|
||||||
"@citation-js/plugin-bibtex": "0.7.1",
|
"@citation-js/plugin-bibtex": "0.7.2",
|
||||||
"@citation-js/plugin-csl": "0.7.1",
|
"@citation-js/plugin-csl": "0.7.2",
|
||||||
"@citation-js/plugin-software-formats": "0.6.1",
|
"@citation-js/plugin-software-formats": "0.6.1",
|
||||||
"@claviska/jquery-minicolors": "2.3.6",
|
"@claviska/jquery-minicolors": "2.3.6",
|
||||||
"@github/markdown-toolbar-element": "2.2.1",
|
"@github/markdown-toolbar-element": "2.2.1",
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
"@webcomponents/custom-elements": "1.6.0",
|
"@webcomponents/custom-elements": "1.6.0",
|
||||||
"add-asset-webpack-plugin": "2.0.1",
|
"add-asset-webpack-plugin": "2.0.1",
|
||||||
"ansi_up": "6.0.2",
|
"ansi_up": "6.0.2",
|
||||||
"asciinema-player": "3.6.2",
|
"asciinema-player": "3.6.3",
|
||||||
"clippie": "4.0.6",
|
"clippie": "4.0.6",
|
||||||
"css-loader": "6.8.1",
|
"css-loader": "6.8.1",
|
||||||
"dropzone": "6.0.0-beta.2",
|
"dropzone": "6.0.0-beta.2",
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
"katex": "0.16.9",
|
"katex": "0.16.9",
|
||||||
"license-checker-webpack-plugin": "0.2.1",
|
"license-checker-webpack-plugin": "0.2.1",
|
||||||
"lightningcss-loader": "2.1.0",
|
"lightningcss-loader": "2.1.0",
|
||||||
"mermaid": "10.5.0",
|
"mermaid": "10.6.0",
|
||||||
"mini-css-extract-plugin": "2.7.6",
|
"mini-css-extract-plugin": "2.7.6",
|
||||||
"minimatch": "9.0.3",
|
"minimatch": "9.0.3",
|
||||||
"monaco-editor": "0.44.0",
|
"monaco-editor": "0.44.0",
|
||||||
|
@ -37,49 +37,50 @@
|
||||||
"pdfobject": "2.2.12",
|
"pdfobject": "2.2.12",
|
||||||
"pretty-ms": "8.0.0",
|
"pretty-ms": "8.0.0",
|
||||||
"sortablejs": "1.15.0",
|
"sortablejs": "1.15.0",
|
||||||
"swagger-ui-dist": "5.9.0",
|
"swagger-ui-dist": "5.9.1",
|
||||||
"throttle-debounce": "5.0.0",
|
"throttle-debounce": "5.0.0",
|
||||||
"tinycolor2": "1.6.0",
|
"tinycolor2": "1.6.0",
|
||||||
"tippy.js": "6.3.7",
|
"tippy.js": "6.3.7",
|
||||||
"toastify-js": "1.12.0",
|
"toastify-js": "1.12.0",
|
||||||
"tributejs": "5.1.3",
|
"tributejs": "5.1.3",
|
||||||
"uint8-to-base64": "0.2.0",
|
"uint8-to-base64": "0.2.0",
|
||||||
"vue": "3.3.4",
|
"vue": "3.3.7",
|
||||||
"vue-bar-graph": "2.0.0",
|
"vue-bar-graph": "2.0.0",
|
||||||
"vue-loader": "17.3.0",
|
"vue-loader": "17.3.1",
|
||||||
"vue3-calendar-heatmap": "2.0.5",
|
"vue3-calendar-heatmap": "2.0.5",
|
||||||
"webpack": "5.88.2",
|
"webpack": "5.89.0",
|
||||||
"webpack-cli": "5.1.4",
|
"webpack-cli": "5.1.4",
|
||||||
"wrap-ansi": "8.1.0"
|
"wrap-ansi": "9.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint-community/eslint-plugin-eslint-comments": "4.1.0",
|
"@eslint-community/eslint-plugin-eslint-comments": "4.1.0",
|
||||||
"@playwright/test": "1.38.1",
|
"@playwright/test": "1.39.0",
|
||||||
"@stoplight/spectral-cli": "6.11.0",
|
"@stoplight/spectral-cli": "6.11.0",
|
||||||
|
"@stylistic/eslint-plugin-js": "1.0.0",
|
||||||
"@vitejs/plugin-vue": "4.4.0",
|
"@vitejs/plugin-vue": "4.4.0",
|
||||||
"eslint": "8.51.0",
|
"eslint": "8.53.0",
|
||||||
"eslint-plugin-array-func": "4.0.0",
|
"eslint-plugin-array-func": "4.0.0",
|
||||||
"eslint-plugin-i": "2.28.1",
|
"eslint-plugin-i": "2.29.0",
|
||||||
"eslint-plugin-jquery": "1.5.1",
|
"eslint-plugin-jquery": "1.5.1",
|
||||||
"eslint-plugin-no-jquery": "2.7.0",
|
"eslint-plugin-no-jquery": "2.7.0",
|
||||||
"eslint-plugin-no-use-extend-native": "0.5.0",
|
"eslint-plugin-no-use-extend-native": "0.5.0",
|
||||||
"eslint-plugin-regexp": "2.0.0",
|
"eslint-plugin-regexp": "2.1.1",
|
||||||
"eslint-plugin-sonarjs": "0.21.0",
|
"eslint-plugin-sonarjs": "0.23.0",
|
||||||
"eslint-plugin-unicorn": "48.0.1",
|
"eslint-plugin-unicorn": "49.0.0",
|
||||||
"eslint-plugin-vitest": "0.3.2",
|
"eslint-plugin-vitest": "0.3.9",
|
||||||
"eslint-plugin-vitest-globals": "1.4.0",
|
"eslint-plugin-vitest-globals": "1.4.0",
|
||||||
"eslint-plugin-vue": "9.17.0",
|
"eslint-plugin-vue": "9.18.1",
|
||||||
"eslint-plugin-vue-scoped-css": "2.5.1",
|
"eslint-plugin-vue-scoped-css": "2.5.1",
|
||||||
"eslint-plugin-wc": "2.0.4",
|
"eslint-plugin-wc": "2.0.4",
|
||||||
"jsdom": "22.1.0",
|
"jsdom": "22.1.0",
|
||||||
"markdownlint-cli": "0.37.0",
|
"markdownlint-cli": "0.37.0",
|
||||||
"postcss-html": "1.5.0",
|
"postcss-html": "1.5.0",
|
||||||
"stylelint": "15.10.3",
|
"stylelint": "15.11.0",
|
||||||
"stylelint-declaration-block-no-ignored-properties": "2.7.0",
|
"stylelint-declaration-block-no-ignored-properties": "2.7.0",
|
||||||
"stylelint-declaration-strict-value": "1.9.2",
|
"stylelint-declaration-strict-value": "1.9.2",
|
||||||
"stylelint-stylistic": "0.4.3",
|
"stylelint-stylistic": "0.4.3",
|
||||||
"svgo": "3.0.2",
|
"svgo": "3.0.2",
|
||||||
"updates": "15.0.2",
|
"updates": "15.0.4",
|
||||||
"vite-string-plugin": "1.1.2",
|
"vite-string-plugin": "1.1.2",
|
||||||
"vitest": "0.34.6"
|
"vitest": "0.34.6"
|
||||||
},
|
},
|
||||||
|
|
2
poetry.lock
generated
2
poetry.lock
generated
|
@ -1,4 +1,4 @@
|
||||||
# This file is automatically @generated by Poetry 1.6.1 and should not be changed by hand.
|
# This file is automatically @generated by Poetry 1.7.0 and should not be changed by hand.
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "click"
|
name = "click"
|
||||||
|
|
|
@ -210,7 +210,6 @@ const sfc = {
|
||||||
this.searchRepos();
|
this.searchRepos();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
changePage(page) {
|
changePage(page) {
|
||||||
this.page = page;
|
this.page = page;
|
||||||
if (this.page > this.finalPage) {
|
if (this.page > this.finalPage) {
|
||||||
|
|
|
@ -46,7 +46,6 @@ export function initFootLanguageMenu() {
|
||||||
$('.language-menu a[lang]').on('click', linkLanguageAction);
|
$('.language-menu a[lang]').on('click', linkLanguageAction);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export function initGlobalEnterQuickSubmit() {
|
export function initGlobalEnterQuickSubmit() {
|
||||||
$(document).on('keydown', '.js-quick-submit', (e) => {
|
$(document).on('keydown', '.js-quick-submit', (e) => {
|
||||||
if (((e.ctrlKey && !e.altKey) || e.metaKey) && (e.key === 'Enter')) {
|
if (((e.ctrlKey && !e.altKey) || e.metaKey) && (e.key === 'Enter')) {
|
||||||
|
|
|
@ -90,7 +90,6 @@ class CodeMirrorEditor {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const uploadClipboardImage = async (editor, dropzone, e) => {
|
const uploadClipboardImage = async (editor, dropzone, e) => {
|
||||||
const $dropzone = $(dropzone);
|
const $dropzone = $(dropzone);
|
||||||
const uploadUrl = $dropzone.attr('data-upload-url');
|
const uploadUrl = $dropzone.attr('data-upload-url');
|
||||||
|
|
|
@ -17,4 +17,3 @@ export function setFileFolding(fileContentBox, foldArrow, newFold) {
|
||||||
export function invertFileFolding(fileContentBox, foldArrow) {
|
export function invertFileFolding(fileContentBox, foldArrow) {
|
||||||
setFileFolding(fileContentBox, foldArrow, fileContentBox.getAttribute('data-folded') !== 'true');
|
setFileFolding(fileContentBox, foldArrow, fileContentBox.getAttribute('data-folded') !== 'true');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,6 @@ export function initOrgTeamSettings() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export function initOrgTeamSearchRepoBox() {
|
export function initOrgTeamSearchRepoBox() {
|
||||||
const $searchRepoBox = $('#search-repo-box');
|
const $searchRepoBox = $('#search-repo-box');
|
||||||
$searchRepoBox.search({
|
$searchRepoBox.search({
|
||||||
|
|
|
@ -9,7 +9,6 @@ const viewedCheckboxSelector = '.viewed-file-form'; // Selector under which all
|
||||||
const expandFilesBtnSelector = '#expand-files-btn';
|
const expandFilesBtnSelector = '#expand-files-btn';
|
||||||
const collapseFilesBtnSelector = '#collapse-files-btn';
|
const collapseFilesBtnSelector = '#collapse-files-btn';
|
||||||
|
|
||||||
|
|
||||||
// Refreshes the summary of viewed files if present
|
// Refreshes the summary of viewed files if present
|
||||||
// The data used will be window.config.pageData.prReview.numberOf{Viewed}Files
|
// The data used will be window.config.pageData.prReview.numberOf{Viewed}Files
|
||||||
function refreshViewedFilesSummary() {
|
function refreshViewedFilesSummary() {
|
||||||
|
@ -93,5 +92,3 @@ export function initExpandAndCollapseFilesButton() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,6 @@ function initEditorForm() {
|
||||||
initEditDiffTab($('.repository .edit.form'));
|
initEditDiffTab($('.repository .edit.form'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function getCursorPosition($e) {
|
function getCursorPosition($e) {
|
||||||
const el = $e.get(0);
|
const el = $e.get(0);
|
||||||
let pos = 0;
|
let pos = 0;
|
||||||
|
|
|
@ -9,7 +9,6 @@ const threshold = 50;
|
||||||
let files = [];
|
let files = [];
|
||||||
let $repoFindFileInput, $repoFindFileTableBody, $repoFindFileNoResult;
|
let $repoFindFileInput, $repoFindFileTableBody, $repoFindFileNoResult;
|
||||||
|
|
||||||
|
|
||||||
// return the case-insensitive sub-match result as an array: [unmatched, matched, unmatched, matched, ...]
|
// return the case-insensitive sub-match result as an array: [unmatched, matched, unmatched, matched, ...]
|
||||||
// res[even] is unmatched, res[odd] is matched, see unit tests for examples
|
// res[even] is unmatched, res[odd] is matched, see unit tests for examples
|
||||||
// argument subLower must be a lower-cased string.
|
// argument subLower must be a lower-cased string.
|
||||||
|
|
|
@ -308,7 +308,6 @@ export function initRepoIssueReferenceRepositorySearch() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export function initRepoIssueWipTitle() {
|
export function initRepoIssueWipTitle() {
|
||||||
$('.title_wip_desc > a').on('click', (e) => {
|
$('.title_wip_desc > a').on('click', (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
@ -552,7 +551,6 @@ export function initRepoIssueWipToggle() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export function initRepoIssueTitleEdit() {
|
export function initRepoIssueTitleEdit() {
|
||||||
// Edit issue title
|
// Edit issue title
|
||||||
const $issueTitle = $('#issue-title');
|
const $issueTitle = $('#issue-title');
|
||||||
|
|
|
@ -301,7 +301,6 @@ export function initRepoCommentForm() {
|
||||||
selectItem('.select-assignee', '#assignee_id');
|
selectItem('.select-assignee', '#assignee_id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
async function onEditContent(event) {
|
async function onEditContent(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
|
@ -539,7 +538,6 @@ export function initRepository() {
|
||||||
initRepoDiffConversationNav();
|
initRepoDiffConversationNav();
|
||||||
initRepoIssueReferenceIssue();
|
initRepoIssueReferenceIssue();
|
||||||
|
|
||||||
|
|
||||||
initRepoIssueCommentDelete();
|
initRepoIssueCommentDelete();
|
||||||
initRepoIssueDependencyDelete();
|
initRepoIssueDependencyDelete();
|
||||||
initRepoIssueCodeCommentCancel();
|
initRepoIssueCodeCommentCancel();
|
||||||
|
|
|
@ -66,7 +66,6 @@ export function initRepoSettingSearchTeamBox() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export function initRepoSettingGitHook() {
|
export function initRepoSettingGitHook() {
|
||||||
if ($('.edit.githook').length === 0) return;
|
if ($('.edit.githook').length === 0) return;
|
||||||
const filename = document.querySelector('.hook-filename').textContent;
|
const filename = document.querySelector('.hook-filename').textContent;
|
||||||
|
|
Loading…
Reference in a new issue