Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web
Project
Project
Details
Activity
Releases
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
中汽测评-信息安全测评系统
web
Commits
b27f98b4
Commit
b27f98b4
authored
Mar 01, 2024
by
jiaxu.yan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(格式化): 项目名称
parent
0441bc92
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
151 additions
and
152 deletions
+151
-152
.editorconfig
.editorconfig
+22
-22
.env.development
.env.development
+1
-1
.env.production
.env.production
+1
-1
.gitignore
.gitignore
+0
-1
babel.config copy.js
babel.config copy.js
+12
-12
babel.config.js
babel.config.js
+12
-12
package.bat
bin/package.bat
+11
-11
run-web.bat
bin/run-web.bat
+11
-11
index.js
build/index.js
+35
-35
ie.html
public/html/ie.html
+45
-45
robots.txt
public/robots.txt
+1
-1
No files found.
.editorconfig
View file @
b27f98b4
# 告诉EditorConfig插件,这是根文件,不用继续往上查找
root = true
# 匹配全部文件
[*]
# 设置字符集
charset = utf-8
# 缩进风格,可选space、tab
indent_style = space
# 缩进的空格数
indent_size = 2
# 结尾换行符,可选lf、cr、crlf
end_of_line = lf
# 在文件结尾插入新行
insert_final_newline = true
# 删除一行中的前后空格
trim_trailing_whitespace = true
# 匹配md结尾的文件
[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
# 告诉EditorConfig插件,这是根文件,不用继续往上查找
root = true
# 匹配全部文件
[*]
# 设置字符集
charset = utf-8
# 缩进风格,可选space、tab
indent_style = space
# 缩进的空格数
indent_size = 2
# 结尾换行符,可选lf、cr、crlf
end_of_line = lf
# 在文件结尾插入新行
insert_final_newline = true
# 删除一行中的前后空格
trim_trailing_whitespace = true
# 匹配md结尾的文件
[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
.env.development
View file @
b27f98b4
# 页面标题
VUE_APP_TITLE =
安全信息
检测平台
VUE_APP_TITLE =
周期性
检测平台
# 开发环境配置
ENV = 'development'
...
...
.env.production
View file @
b27f98b4
# 页面标题
VUE_APP_TITLE =
安全信息
检测平台
VUE_APP_TITLE =
周期性
检测平台
# 生产环境配置
ENV = 'production'
...
...
.gitignore
View file @
b27f98b4
.DS_Store
node_modules/
dist/
构建产物/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
...
...
babel.config copy.js
View file @
b27f98b4
module
.
exports
=
{
presets
:
[
// https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
'@vue/cli-plugin-babel/preset'
],
'env'
:
{
'development'
:
{
// babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
// This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
'plugins'
:
[
'dynamic-import-node'
]
}
}
module
.
exports
=
{
presets
:
[
// https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
'@vue/cli-plugin-babel/preset'
],
'env'
:
{
'development'
:
{
// babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
// This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
'plugins'
:
[
'dynamic-import-node'
]
}
}
}
\ No newline at end of file
babel.config.js
View file @
b27f98b4
module
.
exports
=
{
presets
:
[
// https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
'@vue/cli-plugin-babel/preset'
],
'env'
:
{
'development'
:
{
// babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
// This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
'plugins'
:
[
'dynamic-import-node'
]
}
}
module
.
exports
=
{
presets
:
[
// https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
'@vue/cli-plugin-babel/preset'
],
'env'
:
{
'development'
:
{
// babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
// This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
'plugins'
:
[
'dynamic-import-node'
]
}
}
}
\ No newline at end of file
bin/package.bat
View file @
b27f98b4
@echo off
echo.
echo [信息] 安装Web工程,生成node_modules文件。
echo.
%~d0
cd %~dp0
cd ..
npm install --registry=https://registry.npmmirror.com
@echo off
echo.
echo [信息] 安装Web工程,生成node_modules文件。
echo.
%~d0
cd %~dp0
cd ..
npm install --registry=https://registry.npmmirror.com
pause
\ No newline at end of file
bin/run-web.bat
View file @
b27f98b4
@echo off
echo.
echo [信息] 使用 Vue CLI 命令运行 Web 工程。
echo.
%~d0
cd %~dp0
cd ..
npm run dev
@echo off
echo.
echo [信息] 使用 Vue CLI 命令运行 Web 工程。
echo.
%~d0
cd %~dp0
cd ..
npm run dev
pause
\ No newline at end of file
build/index.js
View file @
b27f98b4
const
{
run
}
=
require
(
'runjs'
)
const
chalk
=
require
(
'chalk'
)
const
config
=
require
(
'../vue.config.js'
)
const
rawArgv
=
process
.
argv
.
slice
(
2
)
const
args
=
rawArgv
.
join
(
' '
)
if
(
process
.
env
.
npm_config_preview
||
rawArgv
.
includes
(
'--preview'
))
{
const
report
=
rawArgv
.
includes
(
'--report'
)
run
(
`vue-cli-service build
${
args
}
`
)
const
port
=
9526
const
publicPath
=
config
.
publicPath
var
connect
=
require
(
'connect'
)
var
serveStatic
=
require
(
'serve-static'
)
const
app
=
connect
()
app
.
use
(
publicPath
,
serveStatic
(
'./dist'
,
{
index
:
[
'index.html'
,
'/'
]
})
)
app
.
listen
(
port
,
function
()
{
console
.
log
(
chalk
.
green
(
`> Preview at http://localhost:
${
port
}${
publicPath
}
`
))
if
(
report
)
{
console
.
log
(
chalk
.
green
(
`> Report at http://localhost:
${
port
}${
publicPath
}
report.html`
))
}
})
}
else
{
run
(
`vue-cli-service build
${
args
}
`
)
}
const
{
run
}
=
require
(
'runjs'
)
const
chalk
=
require
(
'chalk'
)
const
config
=
require
(
'../vue.config.js'
)
const
rawArgv
=
process
.
argv
.
slice
(
2
)
const
args
=
rawArgv
.
join
(
' '
)
if
(
process
.
env
.
npm_config_preview
||
rawArgv
.
includes
(
'--preview'
))
{
const
report
=
rawArgv
.
includes
(
'--report'
)
run
(
`vue-cli-service build
${
args
}
`
)
const
port
=
9526
const
publicPath
=
config
.
publicPath
var
connect
=
require
(
'connect'
)
var
serveStatic
=
require
(
'serve-static'
)
const
app
=
connect
()
app
.
use
(
publicPath
,
serveStatic
(
'./dist'
,
{
index
:
[
'index.html'
,
'/'
]
})
)
app
.
listen
(
port
,
function
()
{
console
.
log
(
chalk
.
green
(
`> Preview at http://localhost:
${
port
}${
publicPath
}
`
))
if
(
report
)
{
console
.
log
(
chalk
.
green
(
`> Report at http://localhost:
${
port
}${
publicPath
}
report.html`
))
}
})
}
else
{
run
(
`vue-cli-service build
${
args
}
`
)
}
public/html/ie.html
View file @
b27f98b4
This diff is collapsed.
Click to expand it.
public/robots.txt
View file @
b27f98b4
User-agent: *
User-agent: *
Disallow: /
\ No newline at end of file
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