mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: set target to chrome60
This commit is contained in:
1 parent
b51620d634
commit
0d49c4d399
5 files changed
+17
-12
No files matched your search
@@ -156,7 +156,12 @@ env.addGlobal('formatSeconds', misc.formatSeconds);
|
||||
env.addGlobal('lib', global.Hydro.lib);
|
||||
env.addGlobal('model', global.Hydro.model);
|
||||
env.addGlobal('ui', global.Hydro.ui);
|
||||
env.addGlobal('isIE', (str) => (str ? (str.includes('MSIE') || str.includes('rv:11.0')) : false));
|
||||
env.addGlobal('isIE', (str) => {
|
||||
if (!str) return false;
|
||||
if (['MSIE', 'rv:11.0'].some((i) => str.includes(i))) return true;
|
||||
if (str.includes('Chrome/') && +str.split('Chrome/')[1].split('.')[0] < 60) return true;
|
||||
return false;
|
||||
});
|
||||
env.addGlobal('set', (obj, key, val) => {
|
||||
if (val !== undefined) obj[key] = val;
|
||||
else Object.assign(obj, key);
|
||||
|
||||
@@ -19,7 +19,7 @@ export default function (env: { watch?: boolean, production?: boolean, measure?:
|
||||
loader: 'esbuild-loader',
|
||||
options: {
|
||||
loader: 'tsx',
|
||||
target: 'chrome80',
|
||||
target: 'chrome60',
|
||||
sourcemap: true,
|
||||
},
|
||||
};
|
||||
@@ -221,7 +221,7 @@ export default function (env: { watch?: boolean, production?: boolean, measure?:
|
||||
minifyIdentifiers: true,
|
||||
treeShaking: true,
|
||||
target: [
|
||||
'chrome80',
|
||||
'chrome60',
|
||||
],
|
||||
exclude: [/mathmaps/, /\.min\.js$/],
|
||||
})],
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.42.3",
|
||||
"version": "4.42.4",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "index.ts",
|
||||
@@ -10,8 +10,8 @@
|
||||
"lint": "eslint"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blueprintjs/core": "4.11.3",
|
||||
"@blueprintjs/select": "4.8.3",
|
||||
"@blueprintjs/core": "4.11.4",
|
||||
"@blueprintjs/select": "4.8.4",
|
||||
"@fontsource/dm-mono": "^4.5.10",
|
||||
"@fontsource/fira-code": "^4.5.12",
|
||||
"@fontsource/inconsolata": "^4.5.9",
|
||||
|
||||
Reference in new issue
Block a user