切换导航条
切换导航条
当前项目
正在载入...
登录
术习电报
/
electron-vue-template
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
构建
提交
问题看板
文件
提交
网络
比较
分支
标签
作者
张恒
2019-08-13 21:01:58 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
提交
4529879042f475ee967c87492622b2e4ad3a3ebc
45298790
1 个父辈
f89c234f
激进更新依赖,将所有依赖提升至最新,已通过打包测试和服务测试
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
161 行增加
和
54 行删除
.babelrc
.electron-vue/webpack.main.config.js
.electron-vue/webpack.renderer.config.js
.electron-vue/webpack.web.config.js
package.json
src/renderer/layout/components/Navbar.vue
.babelrc
查看文件 @
4529879
{
"comments"
:
false
,
"env"
:
{
"test"
:
{
"presets"
:
[
[
"env"
,
{
"targets"
:
{
"node"
:
7
}
}],
"stage-0"
],
"plugins"
:
[
"istanbul"
]
},
"main"
:
{
"presets"
:
[
[
"env"
,
{
"targets"
:
{
"node"
:
7
}
}],
"stage-0"
[
"@babel/preset-env"
,
{
"targets"
:
{
"node"
:
7
}
}
]
],
"plugins"
:
[
"@babel/plugin-syntax-dynamic-import"
,
"@babel/plugin-syntax-import-meta"
,
"@babel/plugin-proposal-class-properties"
,
"@babel/plugin-proposal-json-strings"
,
[
"@babel/plugin-proposal-decorators"
,
{
"legacy"
:
true
}
],
"@babel/plugin-proposal-function-sent"
,
"@babel/plugin-proposal-export-namespace-from"
,
"@babel/plugin-proposal-numeric-separator"
,
"@babel/plugin-proposal-throw-expressions"
,
"@babel/plugin-proposal-export-default-from"
,
"@babel/plugin-proposal-logical-assignment-operators"
,
"@babel/plugin-proposal-optional-chaining"
,
[
"@babel/plugin-proposal-pipeline-operator"
,
{
"proposal"
:
"minimal"
}
],
"@babel/plugin-proposal-nullish-coalescing-operator"
,
"@babel/plugin-proposal-do-expressions"
,
"@babel/plugin-proposal-function-bind"
]
},
"renderer"
:
{
"presets"
:
[
[
"env"
,
{
"modules"
:
false
}],
"stage-3"
[
"@babel/preset-env"
,
{
"modules"
:
false
}
]
],
"plugins"
:
[
"@babel/plugin-syntax-dynamic-import"
,
"@babel/plugin-syntax-import-meta"
,
"@babel/plugin-proposal-class-properties"
,
"@babel/plugin-proposal-json-strings"
,
[
"@babel/plugin-proposal-decorators"
,
{
"legacy"
:
true
}
],
"@babel/plugin-proposal-function-sent"
,
"@babel/plugin-proposal-export-namespace-from"
,
"@babel/plugin-proposal-numeric-separator"
,
"@babel/plugin-proposal-throw-expressions"
,
"@babel/plugin-proposal-export-default-from"
,
"@babel/plugin-proposal-logical-assignment-operators"
,
"@babel/plugin-proposal-optional-chaining"
,
[
"@babel/plugin-proposal-pipeline-operator"
,
{
"proposal"
:
"minimal"
}
],
"@babel/plugin-proposal-nullish-coalescing-operator"
,
"@babel/plugin-proposal-do-expressions"
,
"@babel/plugin-proposal-function-bind"
]
},
"web"
:
{
"presets"
:
[
[
"env"
,
{
"modules"
:
false
}],
"stage-3"
[
"@babel/preset-env"
,
{
"modules"
:
false
}
]
],
"plugins"
:
[
"@babel/plugin-syntax-dynamic-import"
,
"@babel/plugin-syntax-import-meta"
,
"@babel/plugin-proposal-class-properties"
,
"@babel/plugin-proposal-json-strings"
,
[
"@babel/plugin-proposal-decorators"
,
{
"legacy"
:
true
}
],
"@babel/plugin-proposal-function-sent"
,
"@babel/plugin-proposal-export-namespace-from"
,
"@babel/plugin-proposal-numeric-separator"
,
"@babel/plugin-proposal-throw-expressions"
,
"@babel/plugin-proposal-export-default-from"
,
"@babel/plugin-proposal-logical-assignment-operators"
,
"@babel/plugin-proposal-optional-chaining"
,
[
"@babel/plugin-proposal-pipeline-operator"
,
{
"proposal"
:
"minimal"
}
],
"@babel/plugin-proposal-nullish-coalescing-operator"
,
"@babel/plugin-proposal-do-expressions"
,
"@babel/plugin-proposal-function-bind"
]
}
},
"plugins"
:
[
"transform-runtime"
,
"dynamic-import-webpack"
]
"plugins"
:
[
"@babel/transform-runtime"
,
"@babel/plugin-syntax-dynamic-import"
]
}
...
...
.electron-vue/webpack.main.config.js
查看文件 @
4529879
...
...
@@ -6,7 +6,7 @@ const path = require('path')
const
{
dependencies
}
=
require
(
'../package.json'
)
const
webpack
=
require
(
'webpack'
)
const
BabiliWebpackPlugin
=
require
(
'babili-webpack-plugin'
)
const
MinifyPlugin
=
require
(
"babel-minify-webpack-plugin"
);
let
mainConfig
=
{
entry
:
{
...
...
@@ -73,7 +73,7 @@ if (process.env.NODE_ENV !== 'production') {
*/
if
(
process
.
env
.
NODE_ENV
===
'production'
)
{
mainConfig
.
plugins
.
push
(
new
BabiliWebpack
Plugin
(),
new
Minify
Plugin
(),
new
webpack
.
DefinePlugin
({
'process.env.NODE_ENV'
:
'"production"'
})
...
...
.electron-vue/webpack.renderer.config.js
查看文件 @
4529879
...
...
@@ -7,7 +7,7 @@ const { dependencies } = require('../package.json')
const
webpack
=
require
(
'webpack'
)
const
config
=
require
(
'../config'
)
const
BabiliWebpackPlugin
=
require
(
'babili-webpack-plugin'
)
const
MinifyPlugin
=
require
(
"babel-minify-webpack-plugin"
);
const
CopyWebpackPlugin
=
require
(
'copy-webpack-plugin'
)
const
MiniCssExtractPlugin
=
require
(
'mini-css-extract-plugin'
)
const
HtmlWebpackPlugin
=
require
(
'html-webpack-plugin'
)
...
...
@@ -186,7 +186,7 @@ if (process.env.NODE_ENV === 'production') {
rendererConfig
.
devtool
=
''
rendererConfig
.
plugins
.
push
(
new
BabiliWebpack
Plugin
(),
new
Minify
Plugin
(),
new
CopyWebpackPlugin
([
{
from
:
path
.
join
(
__dirname
,
'../static'
),
...
...
.electron-vue/webpack.web.config.js
查看文件 @
4529879
...
...
@@ -5,7 +5,7 @@ process.env.BABEL_ENV = 'web'
const
path
=
require
(
'path'
)
const
webpack
=
require
(
'webpack'
)
const
BabiliWebpackPlugin
=
require
(
'babili-webpack-plugin'
)
const
MinifyPlugin
=
require
(
"babel-minify-webpack-plugin"
);
const
CopyWebpackPlugin
=
require
(
'copy-webpack-plugin'
)
const
MiniCssExtractPlugin
=
require
(
'mini-css-extract-plugin'
)
const
HtmlWebpackPlugin
=
require
(
'html-webpack-plugin'
)
...
...
@@ -144,7 +144,7 @@ if (process.env.NODE_ENV === 'production') {
webConfig
.
devtool
=
''
webConfig
.
plugins
.
push
(
new
BabiliWebpack
Plugin
(),
new
Minify
Plugin
(),
new
CopyWebpackPlugin
([
{
from
:
path
.
join
(
__dirname
,
'../static'
),
...
...
package.json
查看文件 @
4529879
...
...
@@ -66,43 +66,59 @@
"vuex-electron"
:
"^1.0.3"
},
"devDependencies"
:
{
"ajv"
:
"^6.5.0"
,
"babel-core"
:
"^6.26.3"
,
"babel-eslint"
:
"^8.2.3"
,
"babel-loader"
:
"^7.1.4"
,
"babel-plugin-dynamic-import-webpack"
:
"^1.1.0"
,
"babel-plugin-transform-runtime"
:
"^6.23.0"
,
"babel-preset-env"
:
"^1.7.0"
,
"babel-preset-stage-0"
:
"^6.24.1"
,
"babel-register"
:
"^6.26.0"
,
"babili-webpack-plugin"
:
"^0.1.2"
,
"@babel/core"
:
"^7.5.5"
,
"@babel/plugin-proposal-class-properties"
:
"^7.0.0"
,
"@babel/plugin-proposal-decorators"
:
"^7.0.0"
,
"@babel/plugin-proposal-do-expressions"
:
"^7.0.0"
,
"@babel/plugin-proposal-export-default-from"
:
"^7.0.0"
,
"@babel/plugin-proposal-export-namespace-from"
:
"^7.0.0"
,
"@babel/plugin-proposal-function-bind"
:
"^7.0.0"
,
"@babel/plugin-proposal-function-sent"
:
"^7.0.0"
,
"@babel/plugin-proposal-json-strings"
:
"^7.0.0"
,
"@babel/plugin-proposal-logical-assignment-operators"
:
"^7.0.0"
,
"@babel/plugin-proposal-nullish-coalescing-operator"
:
"^7.0.0"
,
"@babel/plugin-proposal-numeric-separator"
:
"^7.0.0"
,
"@babel/plugin-proposal-optional-chaining"
:
"^7.0.0"
,
"@babel/plugin-proposal-pipeline-operator"
:
"^7.0.0"
,
"@babel/plugin-proposal-throw-expressions"
:
"^7.0.0"
,
"@babel/plugin-syntax-dynamic-import"
:
"^7.0.0"
,
"@babel/plugin-syntax-import-meta"
:
"^7.0.0"
,
"@babel/plugin-transform-runtime"
:
"^7.5.5"
,
"@babel/polyfill"
:
"^7.4.4"
,
"@babel/preset-env"
:
"^7.5.5"
,
"@babel/register"
:
"^7.5.5"
,
"@babel/runtime"
:
"^7.5.5"
,
"ajv"
:
"^6.10.2"
,
"babel-eslint"
:
"^9.0.0"
,
"babel-loader"
:
"^8.0.6"
,
"babel-minify-webpack-plugin"
:
"^0.3.1"
,
"cfonts"
:
"^2.1.2"
,
"chalk"
:
"^2.4.
1
"
,
"copy-webpack-plugin"
:
"^
4.5.1
"
,
"chalk"
:
"^2.4.
2
"
,
"copy-webpack-plugin"
:
"^
5.0.4
"
,
"cross-env"
:
"^5.1.6"
,
"css-loader"
:
"^3.1.0"
,
"del"
:
"^5.0.0"
,
"devtron"
:
"^1.4.0"
,
"electron"
:
"^6.0.
1
"
,
"electron"
:
"^6.0.
2
"
,
"electron-builder"
:
"^21.2.0"
,
"electron-debug"
:
"^3.0.1"
,
"electron-devtools-installer"
:
"^2.2.4"
,
"eslint"
:
"^
4.19.1
"
,
"eslint-config-standard"
:
"^1
1.0.0
"
,
"eslint"
:
"^
6.1.0
"
,
"eslint-config-standard"
:
"^1
3.0.1
"
,
"eslint-friendly-formatter"
:
"^4.0.1"
,
"eslint-loader"
:
"^2.
0.0
"
,
"eslint-plugin-html"
:
"^
4.0.3
"
,
"eslint-plugin-import"
:
"^2.1
7
.2"
,
"eslint-plugin-node"
:
"^
6.0.1
"
,
"eslint-plugin-promise"
:
"^
3.8.0
"
,
"eslint-plugin-standard"
:
"^
3.1
.0"
,
"file-loader"
:
"^
1.1.11
"
,
"eslint-loader"
:
"^2.
2.1
"
,
"eslint-plugin-html"
:
"^
6.0.0
"
,
"eslint-plugin-import"
:
"^2.1
8
.2"
,
"eslint-plugin-node"
:
"^
9.1.0
"
,
"eslint-plugin-promise"
:
"^
4.2.1
"
,
"eslint-plugin-standard"
:
"^
4.0
.0"
,
"file-loader"
:
"^
4.2.0
"
,
"html-webpack-plugin"
:
"^3.2.0"
,
"mini-css-extract-plugin"
:
"0.8.0"
,
"multispinner"
:
"^0.2.1"
,
"node-sass"
:
"^4.12.0"
,
"sass-loader"
:
"^7.0.3"
,
"style-loader"
:
"^
0.21
.0"
,
"style-loader"
:
"^
1.0
.0"
,
"svg-sprite-loader"
:
"^4.1.6"
,
"url-loader"
:
"^2.1.0"
,
"vue-html-loader"
:
"^1.2.4"
,
...
...
src/renderer/layout/components/Navbar.vue
查看文件 @
4529879
...
...
@@ -20,10 +20,10 @@
<i class="el-icon-picture-outline"></i>
</div>
</el-image>
<
span
class="el-dropdown-link">
<
div
class="el-dropdown-link">
这里是用户名
<i class="el-icon-arrow-down el-icon--right"></i>
</
span
>
</
div
>
</div>
<el-dropdown-menu slot="dropdown">
<router-link to="/">
...
...
@@ -139,6 +139,7 @@ export default {
.avatar {
width: 30px;
height: 30px;
margin-right: 10px;
/deep/ img {
width: 100%;
height: 100%;
...
...
@@ -159,10 +160,14 @@ export default {
font-size: 6px;
}
.select-right {
.el-dropdown-link {
/deep/
.el-dropdown-link {
color: #333333;
font-weight: 400;
}
/deep/ .el-dropdown-selfdefine {
display: flex;
align-items: center;
}
}
}
}
...
...
请
注册
或
登录
后发表评论