Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "feat: 控制面板" #191

Merged
merged 1 commit into from
Nov 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Vue-blog-API
Submodule Vue-blog-API updated 3 files
+1 −3 .gitignore
+1 −2 package.json
+26 −121 src/index.ts
1,641 changes: 624 additions & 1,017 deletions package-lock.json

Large diffs are not rendered by default.

25 changes: 9 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,24 @@
"@types/webpack": "^5.28.5",
"@vue/language-server": "^2.1.10",
"@vuepress/bundler-vite": "2.0.0-rc.18",
"@vuepress/plugin-cache": "2.0.0-rc.61",
"@vuepress/plugin-docsearch": "2.0.0-rc.61",
"@vuepress/plugin-feed": "2.0.0-rc.61",
"@vuepress/plugin-notice": "2.0.0-rc.61",
"@vuepress/plugin-prismjs": "2.0.0-rc.61",
"@vuepress/plugin-pwa": "2.0.0-rc.61",
"@vuepress/plugin-umami-analytics": "2.0.0-rc.61",
"@vueup/vue-quill": "^1.2.0",
"@vuepress/plugin-cache": "2.0.0-rc.54",
"@vuepress/plugin-docsearch": "2.0.0-rc.60",
"@vuepress/plugin-feed": "2.0.0-rc.60",
"@vuepress/plugin-notice": "2.0.0-rc.60",
"@vuepress/plugin-prismjs": "2.0.0-rc.60",
"@vuepress/plugin-pwa": "2.0.0-rc.60",
"@vuepress/plugin-umami-analytics": "2.0.0-rc.60",
"ansi-to-html": "^0.7.2",
"asciinema-player": "^3.8.1",
"brace": "^0.11.1",
"git-describe": "^4.1.1",
"highlight.js": "^11.10.0",
"js-cookie": "^3.0.5",
"lodash": "^4.17.21",
"marked": "^15.0.0",
"moment": "^2.30.1",
"monaco-editor": "^0.52.0",
"nodejieba": "^3.4.3",
"prismjs": "^1.29.0",
"pysio-vuepress-components": "^1.0.3",
"sanitize-html": "^2.13.1",
"sass-embedded": "^1.79.4",
"typescript": "^5.6.3",
"vue": "^3.5.13",
"vue": "^3.5.12",
"vuepress": "2.0.0-rc.18",
"vuepress-plugin-search-pro": "2.0.0-rc.59",
"vuepress-theme-hope": "2.0.0-rc.59"
Expand All @@ -57,6 +50,6 @@
"katex": "^0.16.11",
"mathjax-full": "^3.2.2",
"mermaid": "^11.3.0",
"vuepress-plugin-remove-html-extension": "1.15.0"
"vuepress-plugin-remove-html-extension": "^1.15.0"
}
}
11 changes: 0 additions & 11 deletions src/.vuepress/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import Randompicturecount from "./components/Randompicturecount.vue";
import GameofLife from "./components/GameofLife.vue";
import Langtonsant from "./components/Langtonsant.vue";
import DNSLeak from "./components/DNSLeak.vue";
import AdminPanel from "./components/AdminPanel.vue";


export default defineClientConfig({
Expand All @@ -38,16 +37,6 @@ export default defineClientConfig({
app.component("GameofLife", GameofLife);
app.component("Langtonsant", Langtonsant);
app.component("DNSLeak", DNSLeak);
app.component("AdminPanel", AdminPanel);

router.beforeEach((to, from, next) => {
if (to.path === '/admin' && !localStorage.getItem('github_token')) {
next('/');
} else {
next();
}
});

Sentry.init({
dsn: "https://188c5d205854b35b009d4ad76674d3bc@o4508158776705024.ingest.us.sentry.io/4508158792826880", // 替换为你的 Sentry DSN
integrations: [
Expand Down
Loading