Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-cli
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gic-web
gic-cli
Commits
1e3e159e
Commit
1e3e159e
authored
Oct 28, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: gic-cli
parent
790989aa
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
63 additions
and
39 deletions
+63
-39
.editorconfig
.editorconfig
+18
-0
.eslintrc.js
.eslintrc.js
+8
-6
babel.config.js
babel.config.js
+1
-1
App.vue
src/App.vue
+3
-3
index.js
src/config/index.js
+1
-1
public-path.js
src/config/public-path.js
+1
-1
main.js
src/main.js
+11
-7
index.js
src/router/index.js
+8
-8
index.js
src/store/index.js
+2
-2
vue.config.js
vue.config.js
+10
-10
No files found.
.editorconfig
0 → 100644
View file @
1e3e159e
# we recommend you to keep these unchanged
[*]
# 缩进样式=空格
indent_style = space
# 缩进大小=2
indent_size = 2
# 字符集=utf-8
charset = utf-8
# 删除行尾空格 = 是
trim_trailing_whitespace = true
# 插入最后一行=真
insert_final_newline = true
[*.md]
# 删除行尾空格 = 否
trim_trailing_whitespace = false
.eslintrc.js
View file @
1e3e159e
...
...
@@ -4,15 +4,17 @@ module.exports = {
node
:
true
,
},
extends
:
[
"plugin:vue/essential"
,
"eslint:recommended"
,
"plugin:prettier/recommended"
,
'plugin:vue/essential'
,
'eslint:recommended'
,
'plugin:prettier/recommended'
,
],
parserOptions
:
{
parser
:
"@babel/eslint-parser"
,
parser
:
'@babel/eslint-parser'
,
},
rules
:
{
"no-console"
:
process
.
env
.
NODE_ENV
===
"production"
?
"warn"
:
"off"
,
"no-debugger"
:
process
.
env
.
NODE_ENV
===
"production"
?
"warn"
:
"off"
,
'no-console'
:
process
.
env
.
NODE_ENV
===
'production'
?
'warn'
:
'off'
,
'no-debugger'
:
process
.
env
.
NODE_ENV
===
'production'
?
'warn'
:
'off'
,
'linebreak-style'
:
'off'
,
'prettier/prettier'
:
[
'error'
,
{
singleQuote
:
true
}],
},
};
babel.config.js
View file @
1e3e159e
module
.
exports
=
{
presets
:
[
"@vue/cli-plugin-babel/preset"
],
presets
:
[
'@vue/cli-plugin-babel/preset'
],
};
src/App.vue
View file @
1e3e159e
...
...
@@ -7,9 +7,9 @@
</
template
>
<
script
>
import
{
projectName
}
from
"@/config/index.js"
;
import
{
projectName
}
from
'@/config/index.js'
;
export
default
{
name
:
"App"
,
name
:
'App'
,
data
()
{
return
{
projectName
,
...
...
@@ -29,7 +29,7 @@ export default {
const
isKeepAlive
=
to
.
meta
.
fromPath
.
some
((
el
)
=>
{
let
menuUrlReg
=
el
;
let
pathConfigReg
=
/
(
:.*
)(\/?)
/
;
const
pathRegStr
=
"([
\\
-]*[
\\
d
\\
w]+[
\\
-]*[
\\
d
\\
w]*)"
;
const
pathRegStr
=
'([
\\
-]*[
\\
d
\\
w]+[
\\
-]*[
\\
d
\\
w]*)'
;
while
(
pathConfigReg
.
test
(
menuUrlReg
))
{
menuUrlReg
=
menuUrlReg
.
replace
(
pathConfigReg
,
`
${
pathRegStr
}
$2`
);
}
...
...
src/config/index.js
View file @
1e3e159e
export
const
projectName
=
"gic-web"
;
export
const
projectName
=
'gic-web'
;
src/config/public-path.js
View file @
1e3e159e
module
.
exports
=
{
publicPath
:
"/gic-web"
,
publicPath
:
'/gic-web'
,
};
src/main.js
View file @
1e3e159e
import
Vue
from
"vue"
;
import
axios
from
"axios"
;
import
App
from
"./App.vue"
;
import
router
from
"./router"
;
import
store
from
"./store"
;
import
Vue
from
'vue'
;
import
axios
from
'axios'
;
import
App
from
'./App.vue'
;
import
router
from
'./router'
;
import
store
from
'./store'
;
axios
.
defaults
.
withCredentials
=
true
;
Vue
.
config
.
productionTip
=
false
;
Vue
.
prototype
.
axios
=
axios
;
const
abc
=
{
cbc
:
'cbc'
,
};
console
.
log
(
abc
);
window
.
getLimit
(
router
,
"gic-cli"
).
then
(()
=>
{
window
.
getLimit
(
router
,
'gic-cli'
).
then
(()
=>
{
new
Vue
({
router
,
store
,
render
:
(
h
)
=>
h
(
App
),
}).
$mount
(
"#app"
);
}).
$mount
(
'#app'
);
});
src/router/index.js
View file @
1e3e159e
import
Vue
from
"vue"
;
import
VueRouter
from
"vue-router"
;
import
HomeView
from
"../views/HomeView.vue"
;
import
Vue
from
'vue'
;
import
VueRouter
from
'vue-router'
;
import
HomeView
from
'../views/HomeView.vue'
;
Vue
.
use
(
VueRouter
);
const
routes
=
[
{
path
:
"/"
,
name
:
"home"
,
path
:
'/'
,
name
:
'home'
,
component
:
HomeView
,
},
{
path
:
"/about"
,
name
:
"about"
,
path
:
'/about'
,
name
:
'about'
,
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component
:
()
=>
import
(
/* webpackChunkName: "about" */
"../views/AboutView.vue"
),
import
(
/* webpackChunkName: "about" */
'../views/AboutView.vue'
),
},
];
...
...
src/store/index.js
View file @
1e3e159e
import
Vue
from
"vue"
;
import
Vuex
from
"vuex"
;
import
Vue
from
'vue'
;
import
Vuex
from
'vuex'
;
Vue
.
use
(
Vuex
);
...
...
vue.config.js
View file @
1e3e159e
const
{
defineConfig
}
=
require
(
"@vue/cli-service"
);
const
{
publicPath
}
=
require
(
"./src/config/public-path.js"
);
const
{
defineConfig
}
=
require
(
'@vue/cli-service'
);
const
{
publicPath
}
=
require
(
'./src/config/public-path.js'
);
const
path
=
require
(
"path"
);
const
path
=
require
(
'path'
);
module
.
exports
=
defineConfig
({
transpileDependencies
:
true
,
configureWebpack
:
(
config
)
=>
{
config
.
resolve
.
alias
=
{
"@"
:
path
.
resolve
(
__dirname
,
"./src"
),
'@'
:
path
.
resolve
(
__dirname
,
'./src'
),
};
config
.
externals
=
{
vue
:
"Vue"
,
axios
:
"axios"
,
vuex
:
"Vuex"
,
"vue-router"
:
"VueRouter"
,
"element-ui"
:
"ELEMENT"
,
vue
:
'Vue'
,
axios
:
'axios'
,
vuex
:
'Vuex'
,
'vue-router'
:
'VueRouter'
,
'element-ui'
:
'ELEMENT'
,
};
},
css
:
{
...
...
@@ -28,7 +28,7 @@ module.exports = defineConfig({
// 本地运行配置,及反向代理配置
devServer
:
{
port
:
8080
,
host
:
"localhost"
,
host
:
'localhost'
,
// https: false,
// open: true, // 在服务器启动时自动在浏览器中打开应用程序
// static: {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment