Skip to content

Commit

Permalink
perf: 显著提升页面加载速度
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxian521 committed Nov 22, 2024
1 parent a4e424d commit d4b4e35
Show file tree
Hide file tree
Showing 179 changed files with 7,509 additions and 5,792 deletions.
Binary file modified docs/.vuepress/public/img/build/after-gzip.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/build/before-gzip.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/build/check-nginx-config.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/build/dist-small.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/build/dist.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/build/nginx-config.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/build/no-output.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/build/optimize.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/build/output.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/docker/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/electron/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/electron/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/electron/3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/ep/dialog-dark.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/ep/dialog.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/ep/drawer-dark.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/ep/drawer.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/ep/ep1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/ep/ep2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/ep/ep3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/ep/ep4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/ep/messagebox-dark.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/ep/messagebox.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/ep/notification-dark.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/ep/notification.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/img/guide/cloc.jpg
Binary file modified docs/.vuepress/public/img/guide/config-logo.jpg
Binary file modified docs/.vuepress/public/img/guide/error1.png
Binary file modified docs/.vuepress/public/img/guide/eslint.jpg
Binary file modified docs/.vuepress/public/img/guide/eslint1.jpg
Binary file modified docs/.vuepress/public/img/guide/github.png
Binary file modified docs/.vuepress/public/img/guide/grey.jpg
Binary file modified docs/.vuepress/public/img/guide/hotlog.png
Binary file modified docs/.vuepress/public/img/guide/i18n.jpg
Binary file modified docs/.vuepress/public/img/guide/i18nAlly.jpg
Binary file modified docs/.vuepress/public/img/guide/i18nRouter.jpg
Binary file modified docs/.vuepress/public/img/guide/i18nVue.png
Binary file modified docs/.vuepress/public/img/guide/iconfont.png
Binary file modified docs/.vuepress/public/img/guide/lodash.png
Binary file modified docs/.vuepress/public/img/guide/log.png
Binary file modified docs/.vuepress/public/img/guide/logo.jpg
Binary file modified docs/.vuepress/public/img/guide/mac.png
Binary file modified docs/.vuepress/public/img/guide/namespace.jpg
Binary file modified docs/.vuepress/public/img/guide/nodejs.jpg
Binary file modified docs/.vuepress/public/img/guide/npm1.jpg
Binary file modified docs/.vuepress/public/img/guide/npm2.jpg
Binary file modified docs/.vuepress/public/img/guide/npm3.jpg
Binary file modified docs/.vuepress/public/img/guide/optimized.png
Binary file modified docs/.vuepress/public/img/guide/package.jpg
Binary file modified docs/.vuepress/public/img/guide/pinia.png
Binary file modified docs/.vuepress/public/img/guide/rank.png
Binary file modified docs/.vuepress/public/img/guide/recommended1.jpg
Binary file modified docs/.vuepress/public/img/guide/recommended2.jpg
Binary file modified docs/.vuepress/public/img/guide/report.jpg
Binary file modified docs/.vuepress/public/img/guide/routePath.png
Binary file modified docs/.vuepress/public/img/guide/sass.png
Binary file modified docs/.vuepress/public/img/guide/snip.png
Binary file modified docs/.vuepress/public/img/guide/snip30.jpg
Binary file modified docs/.vuepress/public/img/guide/snip32.jpg
Binary file modified docs/.vuepress/public/img/guide/snip33.jpg
Binary file modified docs/.vuepress/public/img/guide/theme.jpg
Binary file modified docs/.vuepress/public/img/guide/unexpected.jpg
Binary file modified docs/.vuepress/public/img/guide/vite.png
Binary file modified docs/.vuepress/public/img/guide/vscode-tailwindcss.png
Binary file modified docs/.vuepress/public/img/guide/vscode.png
Binary file modified docs/.vuepress/public/img/guide/xrk1.jpg
Binary file modified docs/.vuepress/public/img/guide/xrk2.jpg
Binary file modified docs/.vuepress/public/img/guide/yarn.png
Binary file modified docs/.vuepress/public/img/http/type.jpg
Binary file modified docs/.vuepress/public/img/icon/ant-icon.png
Binary file modified docs/.vuepress/public/img/icon/ant-install.png
Binary file modified docs/.vuepress/public/img/icon/ant-install2.png
Binary file modified docs/.vuepress/public/img/icon/ep-icon.png
Binary file modified docs/.vuepress/public/img/icon/icon-online.png
Binary file modified docs/.vuepress/public/img/icon/iconfont.png
Binary file modified docs/.vuepress/public/img/icon/menu-if.png
Binary file modified docs/.vuepress/public/img/icon/menu-local.jpg
Binary file modified docs/.vuepress/public/img/icon/menu-svg.png
Binary file modified docs/.vuepress/public/img/icon/online-click.png
Binary file modified docs/.vuepress/public/img/icon/online.jpg
Binary file modified docs/.vuepress/public/img/icon/svg.png
Binary file modified docs/.vuepress/public/img/icon/useRenderIcon.png
Binary file modified docs/.vuepress/public/img/icon/vscode-iconify.png
Binary file modified docs/.vuepress/public/img/icon/vscode-iconify2.png
Binary file modified docs/.vuepress/public/img/js/1.jpg
Binary file modified docs/.vuepress/public/img/js/2.jpg
Binary file modified docs/.vuepress/public/img/js/3.jpg
Binary file modified docs/.vuepress/public/img/js/4.jpg
Binary file modified docs/.vuepress/public/img/js/5.jpg
Binary file modified docs/.vuepress/public/img/js/6.jpg
Binary file modified docs/.vuepress/public/img/js/full.jpg
Binary file modified docs/.vuepress/public/img/layout/double.jpg
Binary file modified docs/.vuepress/public/img/layout/horizontal-detail.jpg
Binary file modified docs/.vuepress/public/img/layout/horizontal.jpg
Binary file modified docs/.vuepress/public/img/layout/mixNav-detail.jpg
Binary file modified docs/.vuepress/public/img/layout/mixNav.jpg
Binary file modified docs/.vuepress/public/img/layout/vertical-detail.jpg
Binary file modified docs/.vuepress/public/img/layout/vertical.jpg
Binary file modified docs/.vuepress/public/img/login/no1.jpg
Binary file modified docs/.vuepress/public/img/max/dict/1.jpg
Binary file modified docs/.vuepress/public/img/max/dict/2.jpg
Binary file modified docs/.vuepress/public/img/max/dict/3.jpg
Binary file modified docs/.vuepress/public/img/max/double/1.jpg
Binary file modified docs/.vuepress/public/img/max/double/2.jpg
Binary file modified docs/.vuepress/public/img/max/double/3.jpg
Binary file modified docs/.vuepress/public/img/max/double/4.jpg
Binary file modified docs/.vuepress/public/img/max/double/5.jpg
Binary file modified docs/.vuepress/public/img/max/float-button/1.jpg
Binary file modified docs/.vuepress/public/img/max/locales/1.jpg
Binary file modified docs/.vuepress/public/img/max/locales/2.jpg
Binary file modified docs/.vuepress/public/img/max/locales/3.jpg
Binary file modified docs/.vuepress/public/img/max/overall-style/1.jpg
Binary file modified docs/.vuepress/public/img/max/overall-style/2.jpg
Binary file modified docs/.vuepress/public/img/max/pure-admin-cli.gif
Binary file modified docs/.vuepress/public/img/max/tenant/1.jpg
Binary file modified docs/.vuepress/public/img/max/tenant/2.jpg
Binary file modified docs/.vuepress/public/img/max/tenant/3.jpg
Binary file modified docs/.vuepress/public/img/max/tenant/4.jpg
Binary file modified docs/.vuepress/public/img/polite.jpg
Binary file modified docs/.vuepress/public/img/rbac/auths.jpg
Binary file modified docs/.vuepress/public/img/rbac/permissions.jpg
Binary file modified docs/.vuepress/public/img/rbac/roles.jpg
Binary file modified docs/.vuepress/public/img/router/async1.jpg
Binary file modified docs/.vuepress/public/img/router/async10.jpg
Binary file modified docs/.vuepress/public/img/router/async2.jpg
Binary file modified docs/.vuepress/public/img/router/async3.jpg
Binary file modified docs/.vuepress/public/img/router/async4.jpg
Binary file modified docs/.vuepress/public/img/router/async5.jpg
Binary file modified docs/.vuepress/public/img/router/async6.jpg
Binary file modified docs/.vuepress/public/img/router/async7.jpg
Binary file modified docs/.vuepress/public/img/router/async8.jpg
Binary file modified docs/.vuepress/public/img/router/async9.jpg
Binary file modified docs/.vuepress/public/img/router/more.jpg
Binary file modified docs/.vuepress/public/img/router/same1.jpg
Binary file modified docs/.vuepress/public/img/router/same2.jpg
Binary file modified docs/.vuepress/public/img/router/same4.jpg
Binary file modified docs/.vuepress/public/img/router/static1.jpg
Binary file modified docs/.vuepress/public/img/router/static10.jpg
Binary file modified docs/.vuepress/public/img/router/static11.jpg
Binary file modified docs/.vuepress/public/img/router/static12.jpg
Binary file modified docs/.vuepress/public/img/router/static13.jpg
Binary file modified docs/.vuepress/public/img/router/static14.jpg
Binary file modified docs/.vuepress/public/img/router/static15.jpg
Binary file modified docs/.vuepress/public/img/router/static16.jpg
Binary file modified docs/.vuepress/public/img/router/static2.jpg
Binary file modified docs/.vuepress/public/img/router/static3.jpg
Binary file modified docs/.vuepress/public/img/router/static4.jpg
Binary file modified docs/.vuepress/public/img/router/static5.jpg
Binary file modified docs/.vuepress/public/img/router/static6.jpg
Binary file modified docs/.vuepress/public/img/router/static7.jpg
Binary file modified docs/.vuepress/public/img/router/static8.jpg
Binary file modified docs/.vuepress/public/img/router/static9.jpg
Binary file removed docs/.vuepress/public/img/sponsors/aitools.jpg
Diff not rendered.
20 changes: 0 additions & 20 deletions docs/.vuepress/public/img/sponsors/aitools.svg
Diff not rendered.
Binary file modified docs/.vuepress/public/img/support/addWx.jpg
Binary file modified docs/.vuepress/public/img/support/ali.png
Binary file modified docs/.vuepress/public/img/support/chrome_48x48.png
Binary file modified docs/.vuepress/public/img/support/edge_48x48.png
Binary file modified docs/.vuepress/public/img/support/firefox_48x48.png
Binary file modified docs/.vuepress/public/img/support/safari_48x48.png
Binary file modified docs/.vuepress/public/img/support/wx.jpg
Binary file modified docs/.vuepress/public/img/tauri/1.jpg
Binary file modified docs/.vuepress/public/img/type/after.jpg
Binary file modified docs/.vuepress/public/img/type/before.jpg
Binary file modified docs/.vuepress/public/img/type/com1.jpg
Binary file modified docs/.vuepress/public/img/type/com2.jpg
Binary file modified docs/.vuepress/public/img/type/shims-vue1.jpg
Binary file modified docs/.vuepress/public/img/type/shims-vue2.jpg
Binary file modified docs/.vuepress/public/img/type/shims-vue3.jpg
Binary file modified docs/.vuepress/public/img/type/whole.jpg
Binary file modified docs/.vuepress/public/img/watermarks/buildgood.jpg
Binary file modified docs/.vuepress/public/img/watermarks/rbac.jpg
Binary file not shown.
6 changes: 4 additions & 2 deletions docs/03.JS版本/01.JS版本.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ function updateCountdown(isServer) {
const seconds = Math.floor((diff % (1000 * 60)) / 1000);

if (!isServer) {
document.getElementById('js-time').textContent =
`距离恢复原价还剩 ${padZero(days)}${padZero(hours)} 小时 ${padZero(minutes)} 分钟 ${padZero(seconds)}`;
const element = document.getElementById('js-time');
if (element) {
element.textContent = `距离恢复原价还剩 ${padZero(days)}${padZero(hours)} 小时 ${padZero(minutes)} 分钟 ${padZero(seconds)}`;
}
} else {
console.log(`距离恢复原价还剩 ${padZero(days)}${padZero(hours)} 小时 ${padZero(minutes)} 分钟 ${padZero(seconds)}`);
}
Expand Down
6 changes: 4 additions & 2 deletions docs/04.Max版本/01.Max版本.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ function updateCountdown(isServer) {
const seconds = Math.floor((diff % (1000 * 60)) / 1000);

if (!isServer) {
document.getElementById('max-time').textContent =
`距离恢复原价还剩 ${padZero(days)}${padZero(hours)} 小时 ${padZero(minutes)} 分钟 ${padZero(seconds)}`;
const element = document.getElementById('max-time');
if (element) {
element.textContent = `距离恢复原价还剩 ${padZero(days)}${padZero(hours)} 小时 ${padZero(minutes)} 分钟 ${padZero(seconds)}`;
}
} else {
console.log(`距离恢复原价还剩 ${padZero(days)}${padZero(hours)} 小时 ${padZero(minutes)} 分钟 ${padZero(seconds)}`);
}
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"chalk": "^5.0.0",
"dayjs": "^1.10.7",
"docsearch.js": "^2.6.3",
"element-ui": "^2.15.13",
"esno": "^0.16.3",
"express": "^4.18.2",
"good-storage": "^1.1.1",
Expand All @@ -41,8 +40,7 @@
},
"dependencies": {
"babel-plugin-component": "^1.1.1",
"core-js": "2.6.11",
"remixicon": "^2.5.0"
"core-js": "2.6.11"
},
"pnpm": {
"peerDependencyRules": {
Expand Down
Loading

0 comments on commit d4b4e35

Please sign in to comment.