Skip to content

Commit c7fa5cc

Browse files
authored
Update JS dependencies (go-gitea#20423)
- Update all JS dependencies minus vue ones - Remove workaround for case-insensitive attribute selector - Add new linter rules and fix issues - Tested SVG display and swagger
1 parent b8733e8 commit c7fa5cc

11 files changed

+3270
-3107
lines changed

.eslintrc.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -447,9 +447,11 @@ rules:
447447
unicorn/prefer-date-now: [2]
448448
unicorn/prefer-default-parameters: [0]
449449
unicorn/prefer-event-key: [2]
450+
unicorn/prefer-event-target: [2]
450451
unicorn/prefer-export-from: [2]
451452
unicorn/prefer-includes: [2]
452453
unicorn/prefer-json-parse-buffer: [0]
454+
unicorn/prefer-logical-operator-over-ternary: [2]
453455
unicorn/prefer-math-trunc: [2]
454456
unicorn/prefer-modern-dom-apis: [0]
455457
unicorn/prefer-modern-math-apis: [2]

package-lock.json

+3,241-3,080
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+17-17
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"dependencies": {
1010
"@claviska/jquery-minicolors": "2.3.6",
11-
"@primer/octicons": "17.2.0",
11+
"@primer/octicons": "17.3.0",
1212
"add-asset-webpack-plugin": "2.0.1",
1313
"css-loader": "6.7.1",
1414
"dropzone": "6.0.0-beta.2",
@@ -19,16 +19,16 @@
1919
"font-awesome": "4.7.0",
2020
"jquery": "3.6.0",
2121
"jquery.are-you-sure": "1.9.0",
22-
"less": "4.1.2",
22+
"less": "4.1.3",
2323
"less-loader": "11.0.0",
2424
"license-checker-webpack-plugin": "0.2.1",
25-
"mermaid": "9.1.2",
26-
"mini-css-extract-plugin": "2.6.0",
25+
"mermaid": "9.1.3",
26+
"mini-css-extract-plugin": "2.6.1",
2727
"monaco-editor": "0.33.0",
2828
"monaco-editor-webpack-plugin": "7.0.1",
29-
"pretty-ms": "7.0.1",
29+
"pretty-ms": "8.0.0",
3030
"sortablejs": "1.15.0",
31-
"swagger-ui-dist": "4.11.1",
31+
"swagger-ui-dist": "4.13.0",
3232
"tippy.js": "6.3.7",
3333
"tributejs": "5.1.3",
3434
"uint8-to-base64": "0.2.0",
@@ -37,28 +37,28 @@
3737
"vue-calendar-heatmap": "0.8.4",
3838
"vue-loader": "15.9.8",
3939
"vue-template-compiler": "2.6.14",
40-
"webpack": "5.72.1",
41-
"webpack-cli": "4.9.2",
40+
"webpack": "5.73.0",
41+
"webpack-cli": "4.10.0",
4242
"workbox-routing": "6.5.3",
4343
"workbox-strategies": "6.5.3",
4444
"worker-loader": "3.0.8",
4545
"wrap-ansi": "8.0.1"
4646
},
4747
"devDependencies": {
48-
"@happy-dom/jest-environment": "4.0.1",
48+
"@happy-dom/jest-environment": "6.0.4",
4949
"@stoplight/spectral-cli": "6.4.1",
50-
"eslint": "8.15.0",
50+
"eslint": "8.20.0",
5151
"eslint-plugin-import": "2.26.0",
5252
"eslint-plugin-jquery": "1.5.1",
53-
"eslint-plugin-unicorn": "42.0.0",
54-
"eslint-plugin-vue": "9.0.1",
55-
"jest": "28.1.0",
56-
"jest-extended": "2.0.0",
53+
"eslint-plugin-unicorn": "43.0.2",
54+
"eslint-plugin-vue": "9.2.0",
55+
"jest": "28.1.3",
56+
"jest-extended": "3.0.1",
5757
"postcss-less": "6.0.0",
58-
"stylelint": "14.8.2",
59-
"stylelint-config-standard": "25.0.0",
58+
"stylelint": "14.9.1",
59+
"stylelint-config-standard": "26.0.0",
6060
"svgo": "2.8.0",
61-
"updates": "13.0.5"
61+
"updates": "13.1.2"
6262
},
6363
"browserslist": [
6464
"defaults",
+1
Loading
Loading

public/img/svg/octicon-copilot.svg

+1
Loading

web_src/less/_base.less

+2-2
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ a.commit-statuses-trigger {
326326
.ui.action.input:not([class*="left action"]) > .ui.dropdown.selection {
327327
min-width: 10em;
328328

329-
&:not(:focus):not(:hover) {
329+
&:not(:focus,:hover) {
330330
border-right-color: transparent;
331331
}
332332
}
@@ -1205,7 +1205,7 @@ a.ui.card:hover,
12051205

12061206
&.pagination.menu {
12071207
@media @mediaSm {
1208-
.item:not(.active):not(.navigation),
1208+
.item:not(.active,.navigation),
12091209
.item.navigation span.navigation_label {
12101210
display: none;
12111211
}

web_src/less/_repository.less

+4-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,10 @@
494494
object-fit: contain;
495495
}
496496

497-
/* also see misc.css for one more related rule */
497+
img[src$='.svg' i] {
498+
max-height: 600px !important;
499+
max-width: 600px !important;
500+
}
498501
}
499502

500503
.plain-text {

web_src/less/misc.css

-5
This file was deleted.

web_src/less/themes/theme-arc-green.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ a.ui.basic.green.label:hover {
185185
color: #fff !important;
186186
}
187187

188-
.ui.divider:not(.vertical):not(.horizontal) {
188+
.ui.divider:not(.vertical,.horizontal) {
189189
border-bottom-color: var(--color-secondary);
190190
border-top-color: transparent;
191191
}

webpack.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ export default {
5050
fileURLToPath(new URL('web_src/js/index.js', import.meta.url)),
5151
fileURLToPath(new URL('node_modules/easymde/dist/easymde.min.css', import.meta.url)),
5252
fileURLToPath(new URL('web_src/fomantic/build/semantic.css', import.meta.url)),
53-
fileURLToPath(new URL('web_src/less/misc.css', import.meta.url)),
5453
fileURLToPath(new URL('web_src/less/index.less', import.meta.url)),
5554
],
5655
swagger: [

0 commit comments

Comments
 (0)