Skip to content

Commit

Permalink
重构管理后台
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglu committed Mar 31, 2022
1 parent 926582e commit e9a65bc
Show file tree
Hide file tree
Showing 167 changed files with 1,382 additions and 6,091 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ dist
draft.md
data
data/*
public
public/*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
Expand All @@ -37,6 +39,10 @@ coverage
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

public
public/*
./public

# Bower dependency directory (https://bower.io/)
bower_components

Expand Down
1 change: 0 additions & 1 deletion dev.sh

This file was deleted.

4 changes: 2 additions & 2 deletions docker.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
docker build -t mereith/van-nav:v0.6.5 .
docker push mereith/van-nav:v0.6.5
docker build -t mereith/van-nav:v0.6.6 .
docker push mereith/van-nav:v0.6.6
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ func main() {
admin.PUT("/catelog/:id", UpdateCatelogHandler)
}
}
fmt.Println("应用启动成功,网址: http://localhost:8233")
router.Run(":8233")
fmt.Println("应用启动成功,网址: http://localhost:6412")
router.Run(":6412")
}

func importTools(data []Tool) {
Expand Down
12 changes: 6 additions & 6 deletions public/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"files": {
"main.css": "/static/css/main.324933ba.chunk.css",
"main.js": "/static/js/main.08d0dbb5.chunk.js",
"main.js.map": "/static/js/main.08d0dbb5.chunk.js.map",
"main.css": "/static/css/main.a865332e.chunk.css",
"main.js": "/static/js/main.0f906426.chunk.js",
"main.js.map": "/static/js/main.0f906426.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.bd3f33bc.js",
"runtime-main.js.map": "/static/js/runtime-main.bd3f33bc.js.map",
"static/js/2.a3da8219.chunk.js": "/static/js/2.a3da8219.chunk.js",
"static/js/2.a3da8219.chunk.js.map": "/static/js/2.a3da8219.chunk.js.map",
"static/js/3.5dfeb866.chunk.js": "/static/js/3.5dfeb866.chunk.js",
"static/js/3.5dfeb866.chunk.js.map": "/static/js/3.5dfeb866.chunk.js.map",
"index.html": "/index.html",
"static/css/main.324933ba.chunk.css.map": "/static/css/main.324933ba.chunk.css.map",
"static/css/main.a865332e.chunk.css.map": "/static/css/main.a865332e.chunk.css.map",
"static/js/2.a3da8219.chunk.js.LICENSE.txt": "/static/js/2.a3da8219.chunk.js.LICENSE.txt"
},
"entrypoints": [
"static/js/runtime-main.bd3f33bc.js",
"static/js/2.a3da8219.chunk.js",
"static/css/main.324933ba.chunk.css",
"static/js/main.08d0dbb5.chunk.js"
"static/css/main.a865332e.chunk.css",
"static/js/main.0f906426.chunk.js"
]
}
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="cn"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Van Nav"/><link rel="manifest" href="/manifest.json"/><script>const mode=window.localStorage.getItem("theme");if(mode&&"dark"==mode){const e=document.querySelector("body");e&&e.classList.toggle("dark-mode",!0)}</script><link href="/static/css/main.324933ba.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,i,a=t[0],c=t[1],l=t[2],s=0,p=[];s<a.length;s++)i=a[s],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(t);p.length;)p.shift()();return u.push.apply(u,l||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,a=1;a<r.length;a++){var c=r[a];0!==o[c]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={1:0},u=[];function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],r=o[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"5dfeb866"}[e]+".chunk.js"}(e);var c=new Error;u=function(t){a.onerror=a.onload=null,clearTimeout(l);var r=o[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),u=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,r[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:a})}),12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=this.webpackJsonptool=this.webpackJsonptool||[],c=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;l<a.length;l++)t(a[l]);var f=c;r()}([])</script><script src="/static/js/2.a3da8219.chunk.js"></script><script src="/static/js/main.08d0dbb5.chunk.js"></script></body></html>
<!doctype html><html lang="cn"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Van Nav"/><link rel="manifest" href="/manifest.json"/><script>const mode=window.localStorage.getItem("theme");if(mode&&"dark"==mode){const e=document.querySelector("body");e&&e.classList.toggle("dark-mode",!0)}</script><link href="/static/css/main.a865332e.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,i,a=t[0],c=t[1],l=t[2],s=0,p=[];s<a.length;s++)i=a[s],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(t);p.length;)p.shift()();return u.push.apply(u,l||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,a=1;a<r.length;a++){var c=r[a];0!==o[c]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={1:0},u=[];function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],r=o[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"5dfeb866"}[e]+".chunk.js"}(e);var c=new Error;u=function(t){a.onerror=a.onload=null,clearTimeout(l);var r=o[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),u=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,r[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:a})}),12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=this.webpackJsonptool=this.webpackJsonptool||[],c=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;l<a.length;l++)t(a[l]);var f=c;r()}([])</script><script src="/static/js/2.a3da8219.chunk.js"></script><script src="/static/js/main.0f906426.chunk.js"></script></body></html>
2 changes: 0 additions & 2 deletions public/static/css/main.324933ba.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion public/static/css/main.324933ba.chunk.css.map

This file was deleted.

Loading

0 comments on commit e9a65bc

Please sign in to comment.