no longer needed; a bot generates the webpacked files
This commit is contained in:
Charles Kerr 2023-01-25 15:00:23 -06:00 committed by GitHub
parent f01191edbc
commit a6713dbcd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 4472 additions and 2840 deletions

View File

@ -1,9 +0,0 @@
# Notes
- Node.js and npm are only needed for building.
The result is a static file, `transmission-app.js`, which can be
served from an Transmission session, e.g. transmission-daemon.
- package.json's `devDependencies` are *intentionally* old to make
building on older stock systems possible, e.g. Ubuntu 20.04 which
ships with Node.js 10. Please don't bump deps without asking first.

7241
web/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,7 @@
"license": "MIT",
"scripts": {
"dev": "WEBPACK_MODE=development webpack serve --config webpack.config.js",
"build": "webpack --config webpack.config.js --no-stats",
"build": "webpack --config webpack.config.js",
"css": "sass --no-source-map assets/css/",
"css:map": "sass assets/css/",
"lint": "run-p --silent lint:eslint lint:stylelint lint:prettier",
@ -17,37 +17,34 @@
"lint:stylelint": "stylelint assets/css/*scss",
"lint:stylelint:fix": "stylelint --fix assets/css/*scss"
},
"engines": {
"node": ">= 10.19.0"
},
"devDependencies": {
"@babel/core": "~7.20.12",
"@babel/eslint-parser": "~7.19.1",
"@babel/plugin-proposal-class-properties": "~7.18.6",
"@primer/css": "17.4.0",
"css-loader": "~5.2.7",
"css-minimizer-webpack-plugin": "~2.0.0",
"eslint": "~7.32.0",
"eslint-plugin-sonarjs": "~0.10.0",
"eslint-plugin-unicorn": "~31.0.0",
"file-loader": "~6.2.0",
"mini-css-extract-plugin": "~1.5.1",
"npm-run-all": "~4.1.5",
"prettier": "~2.8.3",
"sass": "~1.33.0",
"sass-loader": "~10.2.0",
"style-loader": "~2.0.0",
"stylelint": "~13.13.1",
"stylelint-config-prettier": "~8.0.1",
"stylelint-config-primer": "~10.0.1",
"stylelint-config-sass-guidelines": "~8.0.0",
"stylelint-config-standard": "~22.0.0",
"terser-webpack-plugin": "~5.3.6",
"webpack": "~5.75.0",
"webpack-bundle-analyzer": "~4.7.0",
"webpack-cli": "~4.7.2"
"@babel/core": "^7.20.12",
"@babel/eslint-parser": "^7.19.1",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@primer/stylelint-config": "^12.7.0",
"css-loader": "^6.7.3",
"css-minimizer-webpack-plugin": "^4.2.2",
"eslint": "^8.32.0",
"eslint-plugin-sonarjs": "^0.18.0",
"eslint-plugin-unicorn": "^45.0.2",
"file-loader": "^6.2.0",
"mini-css-extract-plugin": "^2.7.2",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.3",
"sass": "^1.57.1",
"sass-loader": "^13.2.0",
"style-loader": "^3.3.1",
"stylelint": "^14.16.1",
"stylelint-config-prettier": "^9.0.4",
"stylelint-config-sass-guidelines": "^9.0.1",
"stylelint-config-standard": "^29.0.0",
"terser-webpack-plugin": "^5.3.6",
"webpack": "^5.75.0",
"webpack-bundle-analyzer": "^4.7.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.11.1"
},
"dependencies": {
"lodash.isequal": "~4.5.0"
"lodash.isequal": "^4.5.0"
}
}

View File

@ -62,6 +62,7 @@ export class Prefs extends EventTarget {
static _setCookie(key, value) {
const date = new Date();
date.setFullYear(date.getFullYear() + 1);
// eslint-disable-next-line unicorn/no-document-cookie
document.cookie = `${key}=${value}; SameSite=Strict; expires=${date.toGMTString()}`;
}

View File

@ -5,8 +5,8 @@ module.exports = {
"stylelint-config-prettier"
],
"plugins": [
"stylelint-config-primer/plugins/no-undefined-vars",
"stylelint-config-primer/plugins/no-unused-vars"
"@primer/stylelint-config/plugins/no-undefined-vars",
"@primer/stylelint-config/plugins/no-unused-vars"
],
"rules": {
"block-no-empty": true,