loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Run stylelint on .vue files (#24865)

- Run stylelint on .vue files
- Fix discovered issues
- Suppress warning spam from `declaration-strict-value` rule

Co-authored-by: Giteabot <teabot@gitea.io>

authored by

silverwind
Giteabot
and committed by
GitHub
a9d41734 116066ec

+66 -10
+3 -1
.stylelintrc.yaml
··· 11 11 - files: ["**/chroma/*", "**/codemirror/*"] 12 12 rules: 13 13 block-no-empty: null 14 + - files: ["**/*.vue"] 15 + customSyntax: postcss-html 14 16 15 17 rules: 16 18 alpha-value-notation: null ··· 96 98 property-no-vendor-prefix: null 97 99 rule-empty-line-before: null 98 100 rule-selector-property-disallowed-list: null 99 - scale-unlimited/declaration-strict-value: [[color, background-color, border-color, font-weight], {ignoreValues: /^(inherit|transparent|unset|initial|currentcolor|none)$/, ignoreFunctions: false}] 101 + scale-unlimited/declaration-strict-value: [[color, background-color, border-color, font-weight], {ignoreValues: /^(inherit|transparent|unset|initial|currentcolor|none)$/, ignoreFunctions: false, disableFix: true}] 100 102 selector-attribute-name-disallowed-list: null 101 103 selector-attribute-operator-allowed-list: null 102 104 selector-attribute-operator-disallowed-list: null
+2 -2
Makefile
··· 372 372 373 373 .PHONY: lint-css 374 374 lint-css: node_modules 375 - npx stylelint --color --max-warnings=0 web_src/css 375 + npx stylelint --color --max-warnings=0 web_src/css web_src/js/components/*.vue 376 376 377 377 .PHONY: lint-css-fix 378 378 lint-css-fix: node_modules 379 - npx stylelint --color --max-warnings=0 web_src/css --fix 379 + npx stylelint --color --max-warnings=0 web_src/css web_src/js/components/*.vue --fix 380 380 381 381 .PHONY: lint-swagger 382 382 lint-swagger: node_modules
+53
package-lock.json
··· 74 74 "eslint-plugin-wc": "1.5.0", 75 75 "jsdom": "22.0.0", 76 76 "markdownlint-cli": "0.34.0", 77 + "postcss-html": "1.5.0", 77 78 "stylelint": "15.6.2", 78 79 "stylelint-declaration-strict-value": "1.9.2", 79 80 "svgo": "3.0.2", ··· 5679 5680 "url": "https://github.com/sponsors/sindresorhus" 5680 5681 } 5681 5682 }, 5683 + "node_modules/htmlparser2": { 5684 + "version": "8.0.2", 5685 + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.2.tgz", 5686 + "integrity": "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==", 5687 + "dev": true, 5688 + "funding": [ 5689 + "https://github.com/fb55/htmlparser2?sponsor=1", 5690 + { 5691 + "type": "github", 5692 + "url": "https://github.com/sponsors/fb55" 5693 + } 5694 + ], 5695 + "dependencies": { 5696 + "domelementtype": "^2.3.0", 5697 + "domhandler": "^5.0.3", 5698 + "domutils": "^3.0.1", 5699 + "entities": "^4.4.0" 5700 + } 5701 + }, 5702 + "node_modules/htmlparser2/node_modules/entities": { 5703 + "version": "4.5.0", 5704 + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", 5705 + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", 5706 + "dev": true, 5707 + "engines": { 5708 + "node": ">=0.12" 5709 + }, 5710 + "funding": { 5711 + "url": "https://github.com/fb55/entities?sponsor=1" 5712 + } 5713 + }, 5682 5714 "node_modules/http-errors": { 5683 5715 "version": "2.0.0", 5684 5716 "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", ··· 7870 7902 "engines": { 7871 7903 "node": "^10 || ^12 || >=14" 7872 7904 } 7905 + }, 7906 + "node_modules/postcss-html": { 7907 + "version": "1.5.0", 7908 + "resolved": "https://registry.npmjs.org/postcss-html/-/postcss-html-1.5.0.tgz", 7909 + "integrity": "sha512-kCMRWJRHKicpA166kc2lAVUGxDZL324bkj/pVOb6RhjB0Z5Krl7mN0AsVkBhVIRZZirY0lyQXG38HCVaoKVNoA==", 7910 + "dev": true, 7911 + "dependencies": { 7912 + "htmlparser2": "^8.0.0", 7913 + "js-tokens": "^8.0.0", 7914 + "postcss": "^8.4.0", 7915 + "postcss-safe-parser": "^6.0.0" 7916 + }, 7917 + "engines": { 7918 + "node": "^12 || >=14" 7919 + } 7920 + }, 7921 + "node_modules/postcss-html/node_modules/js-tokens": { 7922 + "version": "8.0.1", 7923 + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-8.0.1.tgz", 7924 + "integrity": "sha512-3AGrZT6tuMm1ZWWn9mLXh7XMfi2YtiLNPALCVxBCiUVq0LD1OQMxV/AdS/s7rLJU5o9i/jBZw/N4vXXL5dm29A==", 7925 + "dev": true 7873 7926 }, 7874 7927 "node_modules/postcss-media-query-parser": { 7875 7928 "version": "0.2.3",
+1
package.json
··· 74 74 "eslint-plugin-wc": "1.5.0", 75 75 "jsdom": "22.0.0", 76 76 "markdownlint-cli": "0.34.0", 77 + "postcss-html": "1.5.0", 77 78 "stylelint": "15.6.2", 78 79 "stylelint-declaration-strict-value": "1.9.2", 79 80 "svgo": "3.0.2",
+7 -7
web_src/js/components/RepoActionView.vue
··· 429 429 /* action view header */ 430 430 431 431 .action-view-header { 432 - margin: 20px 0px; 432 + margin: 20px 0; 433 433 } 434 434 435 435 .action-info-summary { ··· 452 452 .action-commit-summary { 453 453 display: flex; 454 454 gap: 5px; 455 - margin: 10px 0px 10px 25px; 455 + margin: 10px 0 10px 25px; 456 456 } 457 457 458 458 /* ================ */ ··· 472 472 .job-artifacts-title { 473 473 font-size: 18px; 474 474 margin-top: 16px; 475 - padding: 16px 10px 0px 20px; 475 + padding: 16px 10px 0 20px; 476 476 border-top: 1px solid var(--color-secondary); 477 477 } 478 478 ··· 639 639 } 640 640 641 641 .job-step-section .job-step-logs { 642 - font-family: monospace, monospace; 643 - margin: 8px 0px; 642 + font-family: monospace; 643 + margin: 8px 0; 644 644 font-size: 12px; 645 645 } 646 646 ··· 673 673 margin-left: 10px; 674 674 } 675 675 676 - /* TODO: group support */ 676 + /* TODO: group support 677 677 678 678 .job-log-group { 679 679 ··· 683 683 } 684 684 .job-log-list { 685 685 686 - } 686 + } */ 687 687 </style>