bump version

This commit is contained in:
undefined committed 2023-01-30 13:01:24 +08:00
1 parent a8f9c49c4c
commit 518915ceab
10 files changed
+42 -21

No files matched your search

+1
View File
@@ -91,6 +91,7 @@ class SWConfigHandler extends Handler {
SystemModel.get('server.url'),
SystemModel.get('server.cdn'),
],
domains: SystemModel.get('ui-default.domains') || [],
};
}
}
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.46.2",
"version": "4.47.0",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "index.ts",
@@ -24,7 +24,7 @@
"@fontsource/source-code-pro": "^4.5.14",
"@fontsource/ubuntu-mono": "^4.5.11",
"@hydrooj/utils": "workspace:*",
"@simplewebauthn/browser": "^7.0.0",
"@simplewebauthn/browser": "^7.0.1",
"@svgr/webpack": "^6.5.1",
"@types/gulp-if": "^0.0.34",
"@types/jquery": "^3.5.16",
@@ -36,8 +36,8 @@
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"@types/redux-logger": "^3.0.9",
"@types/serviceworker": "^0.0.61",
"@types/sharedworker": "^0.0.90",
"@types/serviceworker": "^0.0.62",
"@types/sharedworker": "^0.0.91",
"@types/webpack-env": "^1.18.0",
"@vscode/codicons": "^0.0.32",
"autoprefixer": "^10.4.13",
@@ -88,12 +88,12 @@
"react-redux": "^8.0.5",
"react-split-pane": "^0.1.92",
"reconnecting-websocket": "^4.4.0",
"redux": "^4.2.0",
"redux": "^4.2.1",
"redux-logger": "^3.0.6",
"redux-promise-middleware": "^6.1.3",
"redux-thunk": "^2.4.2",
"rupture": "^0.7.1",
"schemastery": "^3.6.1",
"schemastery": "^3.7.0",
"slideout": "^1.0.1",
"sticky-kit": "^1.1.3",
"tether": "1.4.7",
+1 -2
View File
@@ -53,7 +53,7 @@ async function initConfig() {
const res = await fetch('/sw-config');
config = await res.json();
config.hosts ||= [];
config.domains ||= [location.host];
if (!config.domains?.length) config.domains = [location.host];
}
self.addEventListener('install', (event) => event.waitUntil((async () => {
@@ -77,7 +77,6 @@ self.addEventListener('activate', (event) => {
caches.keys(),
initConfig(),
]);
config.domains ||= ['beta.hydro.ac', 'next.hydro.ac'];
console.log('Config: ', config);
await Promise.all(names.filter((name) => !valid.includes(name)).map((p) => caches.delete(p)));
self.clients.claim();