Skip to content

Commit 15296d1

Browse files
author
chenkuan
committed
19-1-21
0 parents  commit 15296d1

File tree

30,046 files changed

+3324434
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

30,046 files changed

+3324434
-0
lines changed

.browserslistrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not ie <= 8

.env

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# 所有环境默认
2+
3+
# 页面 title 前缀
4+
VUE_APP_TITLE=D2Admin
5+
6+
# 网络请求公用地址
7+
VUE_APP_API=http://121.41.14.139:21021/api/

.env.development

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# 开发环境
2+
3+
# 页面 title 前缀
4+
VUE_APP_TITLE=OplugAdmin Dev
5+
6+
# 网络请求公用地址
7+
VUE_APP_API=http://localhost:21021/api/

.env.travis

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# travis
2+
3+
# 指定构建模式
4+
NODE_ENV=production
5+
6+
# 标记当前是 CI 自动构建
7+
VUE_APP_BUILD_MODE=TRAVIS

.eslintignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# 忽略目录
2+
build/
3+
tests/
4+
node_modules/
5+
6+
# node 覆盖率文件
7+
coverage/
8+
9+
# 忽略文件
10+
**/*-min.js
11+
**/*.min.js

.eslintrc.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true
5+
},
6+
'extends': [
7+
'plugin:vue/essential',
8+
'@vue/standard'
9+
],
10+
rules: {
11+
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
12+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
13+
},
14+
parserOptions: {
15+
parser: 'babel-eslint'
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// 引入 public.scss 后可以访问全局变量和样式
2+
@import '~@/assets/style/public.scss';
3+
4+
// 这个页面的样式
5+
// 如果页面不需要定义样式,请删除下列代码
6+
// - 此文件
7+
// - <%= upperName %>.vue 中的 style 标签
8+
// - <%= upperName %>.vue 中 d2-container 组件上自动生成的 class="page-<%= name %>"
9+
10+
// 你可以像下面这样编写 SCSS 代码(BEM 规范):
11+
12+
$block: 'page-<%= name %>';
13+
.#{$block} {
14+
&.#{$block}--dark {
15+
background-color: #CCC;
16+
}
17+
.#{$block}__title {
18+
font-size: 14px;
19+
&.#{$block}__title--large {
20+
font-size: 16px;
21+
}
22+
}
23+
}
+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<template>
2+
<!-- d2-container 文档 https://doc.d2admin.fairyever.com/zh/sys-components/container.html -->
3+
<d2-container class="page-<%= name %>">
4+
<template slot="header"><%= name %></template>
5+
<%_ blocks.forEach(function(block) { _%>
6+
<<%= block.name %>/>
7+
<%_ }); _%>
8+
<template slot="footer">自动生成 <%= blocks.length %> 个组件</template>
9+
</d2-container>
10+
</template>
11+
12+
<script>
13+
// 组件
14+
<%_ blocks.forEach(function(block) { _%>
15+
import <%= block.className %> from '<%= block.path %>'
16+
<%_ }); _%>
17+
// 请删除下面代码中你不需要的部分
18+
export default {
19+
name: '<%= name %>',
20+
components: {
21+
<%_ blocks.forEach(function(block, index) { _%>
22+
<%= block.className %><%= index !== blocks.length - 1 ? ',' : '' %>
23+
<%_ }); _%>
24+
},
25+
// 数据
26+
data () {
27+
return {}
28+
},
29+
// 计算属性
30+
computed: {},
31+
// 侦听器
32+
watch: {},
33+
// 生命周期钩子
34+
beforeCreate () {},
35+
created () {},
36+
beforeMount () {},
37+
mounted () {},
38+
beforeUpdate () {},
39+
updated () {},
40+
activated () {},
41+
deactivated () {},
42+
beforeDestroy () {},
43+
destroyed () {},
44+
// 事件处理方法
45+
methods: {}
46+
}
47+
</script>
48+
49+
<style lang="scss" scoped>
50+
@import './<%= upperName %>.scss';
51+
</style>

.iceworks/pageTemplate/index.js.ejs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import <%= upperName %> from './<%= upperName %>'
2+
3+
export default <%= upperName %>

.iceworks/scaffoldrc.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"version": "0.1.0",
3+
"menuConfigFilePath": "${workspaceRoot}/src/menuConfig.js",
4+
"routerConfigFilePath": "${workspaceRoot}/src/routerConfig.js",
5+
"templates": {
6+
"pageFolder": "${workspaceRoot}/.iceworks/pageTemplate/"
7+
}
8+
}

.postcssrc.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
plugins: {
3+
autoprefixer: {}
4+
}
5+
}

.vs/D2AdminICE/v15/.suo

18.5 KB
Binary file not shown.

.vs/ProjectSettings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"CurrentProjectSetting": null
3+
}

.vs/VSWorkspaceState.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"ExpandedNodes": [
3+
""
4+
],
5+
"PreviewInSolutionExplorer": false
6+
}

.vs/slnx.sqlite

152 KB
Binary file not shown.

.vscode/settings.json

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{
2+
}

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 李杨
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

5.8 KB
Binary file not shown.

babel.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/app'
4+
]
5+
}

cdnrefresh-dirs.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://ice.d2admin.fairyever.com/

jest.config.js

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
module.exports = {
2+
moduleFileExtensions: [
3+
'js',
4+
'jsx',
5+
'json',
6+
'vue'
7+
],
8+
transform: {
9+
'^.+\\.vue$': 'vue-jest',
10+
'.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
11+
'^.+\\.jsx?$': 'babel-jest'
12+
},
13+
moduleNameMapper: {
14+
'^@/(.*)$': '<rootDir>/src/$1'
15+
},
16+
snapshotSerializers: [
17+
'jest-serializer-vue'
18+
],
19+
testMatch: [
20+
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
21+
],
22+
testURL: 'http://localhost/'
23+
}

node_modules/.bin/acorn

+15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/acorn.cmd

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/ansi-html

+15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/ansi-html.cmd

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/atob

+15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/atob.cmd

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/autoprefixer

+15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/autoprefixer.cmd

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/babylon

+15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/babylon.cmd

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/browserslist

+15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/browserslist.cmd

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/css-beautify

+15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)