mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
ci: remove useless packtracker
This commit is contained in:
1 parent
2def671b62
commit
2a54b0aa25
3 files changed
+6
-20
No files matched your search
@@ -11,7 +11,6 @@ import CopyWebpackPlugin from 'copy-webpack-plugin';
|
||||
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
|
||||
import SpeedMeasurePlugin from 'speed-measure-webpack-plugin';
|
||||
import WebpackBar from 'webpackbar';
|
||||
import PacktrackerPlugin from '@packtracker/webpack-plugin';
|
||||
import mapWebpackUrlPrefix from '../utils/mapWebpackUrlPrefix';
|
||||
import root from '../utils/root';
|
||||
|
||||
@@ -19,7 +18,6 @@ const beautifyOutputUrl = mapWebpackUrlPrefix([
|
||||
{ prefix: 'misc/.iconfont', replace: './ui/iconfont' },
|
||||
]);
|
||||
const smp = new SpeedMeasurePlugin();
|
||||
const event = process.env.GITHUB_EVENT_PATH ? require(process.env.GITHUB_EVENT_PATH) : {};
|
||||
|
||||
export default function (env = {}) {
|
||||
function esbuildLoader() {
|
||||
@@ -234,17 +232,6 @@ export default function (env = {}) {
|
||||
}],
|
||||
}),
|
||||
...env.measure ? [new BundleAnalyzerPlugin({ analyzerPort: 'auto' })] : [],
|
||||
...process.env.PT_PROJECT_TOKEN ? [new PacktrackerPlugin({
|
||||
project_token: process.env.PT_PROJECT_TOKEN,
|
||||
upload: true,
|
||||
fail_build: false,
|
||||
branch: event.ref.replace('refs/heads/', ''),
|
||||
author: event.head_commit.author.email,
|
||||
message: event.head_commit.message,
|
||||
commit: process.env.GITHUB_SHA,
|
||||
committed_at: parseInt(+new Date(event.head_commit.timestamp) / 1000, 10),
|
||||
prior_commit: event.before,
|
||||
})] : [],
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
@@ -32,12 +32,6 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||
// eslint-disable-next-line camelcase
|
||||
try { __webpack_public_path__ = UiContext.cdn_prefix; } catch (e) { }
|
||||
|
||||
const res = await fetch(`/constant/${UiContext.constantVersion}`, { cache: 'force-cache' });
|
||||
const data = await res.json();
|
||||
eval(data[0]); // eslint-disable-line no-eval
|
||||
data.shift();
|
||||
window.Hydro.preload = data;
|
||||
|
||||
const e = document.createElement('style');
|
||||
const dark = UiContext.domain.nav_logo_dark || UiContext.nav_logo_dark;
|
||||
const dark2x = UiContext.domain.nav_logo_dark_2x || UiContext.nav_logo_dark_2x;
|
||||
@@ -54,5 +48,11 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||
}` : ''}`;
|
||||
document.body.appendChild(e);
|
||||
|
||||
const res = await fetch(`/constant/${UiContext.constantVersion}`, { cache: 'force-cache' });
|
||||
const data = await res.json();
|
||||
eval(data[0]); // eslint-disable-line no-eval
|
||||
data.shift();
|
||||
window.Hydro.preload = data;
|
||||
|
||||
import('./hydro');
|
||||
}, false);
|
||||
@@ -20,7 +20,6 @@
|
||||
"@fontsource/source-code-pro": "^4.5.10",
|
||||
"@fontsource/ubuntu-mono": "^4.5.10",
|
||||
"@hydrooj/utils": "workspace:*",
|
||||
"@packtracker/webpack-plugin": "^2.3.0",
|
||||
"@types/gulp-if": "^0.0.34",
|
||||
"@types/jquery": "^3.5.14",
|
||||
"@types/json-schema": "^7.0.11",
|
||||
|
||||
Reference in new issue
Block a user