From 462fcc36f53fe392c194409ddcbdb61db5b773a2 Mon Sep 17 00:00:00 2001 From: BingBlog Date: Wed, 22 Nov 2017 16:02:52 +0800 Subject: [PATCH] add stlye class prefix --- visualdl/frontend/.gitignore | 1 - visualdl/frontend/package.json | 1 - visualdl/frontend/src/App.san | 63 +++++++++---------- .../src/common/fun/adjustConentHeight.js | 16 ----- visualdl/frontend/src/style/variables.styl | 1 + 5 files changed, 32 insertions(+), 50 deletions(-) delete mode 100644 visualdl/frontend/src/common/fun/adjustConentHeight.js create mode 100644 visualdl/frontend/src/style/variables.styl diff --git a/visualdl/frontend/.gitignore b/visualdl/frontend/.gitignore index 4bc16365..a7a3b001 100644 --- a/visualdl/frontend/.gitignore +++ b/visualdl/frontend/.gitignore @@ -1,4 +1,3 @@ /node_modules -/dist /.vscode package-lock.json diff --git a/visualdl/frontend/package.json b/visualdl/frontend/package.json index 3f3f41ec..ccdf9684 100644 --- a/visualdl/frontend/package.json +++ b/visualdl/frontend/package.json @@ -8,7 +8,6 @@ "release": "cross-env NODE_ENV=production node ./tool/build.js", "build": "cross-env NODE_ENV=dev node ./tool/build.js", "dev": "cross-env NODE_ENV=dev node tool/dev-server.js", - "deploy": "fis3 release --root=./dist/ --file=./tool/fis-conf.js", "analyzer": "npm run release -- analyzer", "lint": "./node_modules/fecs/bin/fecs --rule", "precommit": "npm run lint", diff --git a/visualdl/frontend/src/App.san b/visualdl/frontend/src/App.san index 4ced7beb..3e8f7d7f 100644 --- a/visualdl/frontend/src/App.san +++ b/visualdl/frontend/src/App.san @@ -1,24 +1,22 @@ diff --git a/visualdl/frontend/src/common/fun/adjustConentHeight.js b/visualdl/frontend/src/common/fun/adjustConentHeight.js deleted file mode 100644 index 72aaf541..00000000 --- a/visualdl/frontend/src/common/fun/adjustConentHeight.js +++ /dev/null @@ -1,16 +0,0 @@ -const adjustConentHeight = function () { - let elContentContainer = document.getElementById('content-container'); - let contentHeight = window.innerHeight - 140; - elContentContainer.style.minHeight = contentHeight + 'px'; -}; - -const resizeContentHeightWhenScroll = function () { - window.addEventListener('resize', () => { - adjustConentHeight(); - }); -}; - -export const resizeContentHeight = function () { - adjustConentHeight(); - resizeContentHeightWhenScroll(); -}; diff --git a/visualdl/frontend/src/style/variables.styl b/visualdl/frontend/src/style/variables.styl new file mode 100644 index 00000000..c93c863a --- /dev/null +++ b/visualdl/frontend/src/style/variables.styl @@ -0,0 +1 @@ +prefix = 'visual-dl-' -- GitLab