1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-27 11:26:22 -07:00

Update NPM packages

This commit is contained in:
Eggbertx 2025-02-18 12:34:51 -08:00
parent e0ee76bce1
commit 9bdf9d58d9
5 changed files with 2846 additions and 3587 deletions

File diff suppressed because it is too large Load diff

View file

@ -19,28 +19,28 @@
"license": "BSD-2-Clause",
"dependencies": {
"jquery": "^3.7.1",
"jquery-ui": "^1.13.2",
"jquery-ui": "^1.14.1",
"path-browserify": "^1.0.1",
"webstorage-polyfill": "^1.0.1"
},
"devDependencies": {
"@babel/preset-env": "^7.21.5",
"@babel/preset-typescript": "^7.21.5",
"@jest/globals": "^29.5.0",
"@types/jquery": "^3.5.29",
"@types/jqueryui": "^1.12.21",
"@types/path-browserify": "^1.0.2",
"@typescript-eslint/eslint-plugin": "^6.13.2",
"eslint": "^8.55.0",
"jest": "^29.5.0",
"jest-config": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"sass": "^1.69.5",
"ts-jest": "^29.1.1",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.1",
"typescript": "^5.3.3",
"webpack": "^5.94.0",
"webpack-cli": "^5.1.4"
"@babel/preset-env": "^7.26.9",
"@babel/preset-typescript": "^7.26.0",
"@jest/globals": "^29.7.0",
"@types/jquery": "^3.5.32",
"@types/jqueryui": "^1.12.23",
"@types/path-browserify": "^1.0.3",
"@typescript-eslint/eslint-plugin": "^8.24.1",
"eslint": "^9.20.1",
"jest": "^29.7.0",
"jest-config": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"sass": "^1.85.0",
"ts-jest": "^29.2.5",
"ts-loader": "^9.5.2",
"ts-node": "^10.9.2",
"typescript": "^5.7.3",
"webpack": "^5.98.0",
"webpack-cli": "^6.0.1"
}
}

View file

@ -1,11 +1,9 @@
import $ from "jquery";
import "jquery-ui/ui/version";
import "jquery-ui/ui/plugin";
import "jquery-ui/ui/safe-active-element";
import "jquery-ui/ui/widget";
import "jquery-ui/ui/scroll-parent";
import "jquery-ui/ui/widgets/mouse";
import "jquery-ui/ui/safe-blur";
import "jquery-ui/ui/widgets/draggable";
import { upArrow, downArrow } from "../vars";

View file

@ -54,7 +54,7 @@ function onReaderLoad(name:string, e:ProgressEvent<FileReader>) {
"href": "#"
}).text("X").on("click", (e:JQuery.ClickEvent) => {
const $target = $(e.target);
const $browseBtn = $target.parents<HTMLInputElement>("#upload-box").siblings("input[name=imagefile]");
const $browseBtn = $target.parents<HTMLInputElement>("#upload-box").siblings<HTMLInputElement>("input[name=imagefile]");
$browseBtn.each((_, el) => {
el.value = null;
});

View file

@ -8,11 +8,10 @@ function canNotify() {
&& (typeof Notification !== "undefined");
}
export function notify(title: string, body: string, img = noteIcon) {
export function notify(title: string, body: string, icon = noteIcon) {
const n = new Notification(title, {
body: body,
image: img,
icon: noteIcon
icon: icon
});
setTimeout(() => {
n.close();