Skip to content

Commit 1c58b2f

Browse files
committed
first commit
0 parents  commit 1c58b2f

Some content is hidden

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

47 files changed

+10315
-0
lines changed

.babelrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"presets": [
3+
"es2015",
4+
"stage-3"
5+
],
6+
"plugins": []
7+
}

.eslintrc.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
module.exports = {
2+
"env": {
3+
"browser": true,
4+
"es6": true,
5+
"jquery": true,
6+
"node": true
7+
},
8+
"globals": {
9+
"require": true,
10+
"__dirname": true,
11+
"module": true,
12+
"weui": true
13+
},
14+
"extends": "eslint:recommended",
15+
"parserOptions": {
16+
"ecmaVersion": 6,
17+
"sourceType": "module",
18+
"ecmaFeatures": {
19+
"jsx": true
20+
}
21+
},
22+
"rules": {
23+
"indent": ["error", 2],
24+
"strict": "off",
25+
"no-unused-vars": "warn",
26+
"no-console": "warn",
27+
"comma-dangle": ["off", "always"],
28+
"eqeqeq": "warn",
29+
"linebreak-style": ["error", "unix"],
30+
"quotes": ["off", "double"],
31+
"semi": ["error", "always"]
32+
}
33+
};

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# VuePress
2+
3+
4+
## Prerequisites
5+
6+
Need to install and running WordPress above version 4.1 and open REST API.
7+
8+
9+
## Build Setup
10+
11+
``` bash
12+
# install dependencies
13+
npm install
14+
15+
# serve with hot reload at localhost:8088
16+
npm run strat
17+
18+
# build for development
19+
npm run dev
20+
21+
# build for production
22+
npm run build
23+
```
24+
25+
26+
## What Can I Do ?
27+
1. See article on the home page [jump](#home)
28+
29+
30+
## Preview Me
31+
![home]()

dist/fonts/iconfont.eot

5.94 KB
Binary file not shown.

dist/fonts/iconfont.ttf

5.77 KB
Binary file not shown.

dist/images/iconfont.svg

Lines changed: 87 additions & 0 deletions
Loading

dist/index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html lang="zh-Hans">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
8+
<title>VueWPress</title>
9+
<link href="style.css" rel="stylesheet"></head>
10+
11+
<body>
12+
<div id="app"></div>
13+
<script type="text/javascript" src="js/main.9804ef3cabf5dce20242.js"></script></body>
14+
15+
</html>

dist/js/main.9804ef3cabf5dce20242.js

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/main.9804ef3cabf5dce20242.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/style.css

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/style.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

favicon.ico

16.6 KB
Binary file not shown.

index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html lang="zh-Hans">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
8+
<title>VueWPress</title>
9+
</head>
10+
11+
<body>
12+
<div id="app"></div>
13+
</body>
14+
15+
</html>

package.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"name": "vwpress",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "./src/index.js",
6+
"author": "",
7+
"license": "ISC",
8+
"dependencies": {},
9+
"devDependencies": {
10+
"autoprefixer": "^8.2.0",
11+
"axios": "^0.18.0",
12+
"babel-core": "^6.26.0",
13+
"babel-loader": "^7.1.4",
14+
"babel-preset-env": "^1.6.1",
15+
"babel-preset-stage-3": "^6.24.1",
16+
"css-loader": "^0.28.11",
17+
"eslint-plugin-html": "^4.0.2",
18+
"extract-text-webpack-plugin": "^4.0.0-beta.0",
19+
"file-loader": "^1.1.11",
20+
"html-webpack-plugin": "^3.2.0",
21+
"iview": "^2.12.0",
22+
"node-sass": "^4.8.3",
23+
"optimize-css-assets-webpack-plugin": "^4.0.0",
24+
"postcss-loader": "^2.1.3",
25+
"sass-loader": "^6.0.7",
26+
"style-loader": "^0.20.3",
27+
"url-loader": "^1.0.1",
28+
"vue": "^2.5.16",
29+
"vue-loader": "^14.2.2",
30+
"vue-router": "^3.0.1",
31+
"vue-style-loader": "^4.1.0",
32+
"vue-template-compiler": "^2.5.16",
33+
"vuex": "^3.0.1",
34+
"vux": "^2.8.1",
35+
"webpack": "^4.4.1",
36+
"webpack-cli": "^2.0.13",
37+
"webpack-dev-server": "^3.1.1"
38+
},
39+
"scripts": {
40+
"test": "echo \"Error: no test specified\" && exit 1",
41+
"dev": "webpack --mode development --config webpack.config.js --progress --watch --color",
42+
"start": "webpack-dev-server --mode development --config webpack.config.js",
43+
"build": "webpack --mode production --config webpack.config.js --progress"
44+
},
45+
"browserslist": [
46+
"defaults",
47+
"not ie < 9",
48+
"last 15 versions",
49+
"> 10%",
50+
"iOS 7",
51+
"last 10 iOS versions"
52+
]
53+
}

postcss.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
plugins: [
3+
require('autoprefixer')
4+
]
5+
};

src/app.vue

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<template>
2+
<div id="app">
3+
<fixed_header></fixed_header>
4+
<router-view v-on:xxxloading = "onShowLoadingChange"></router-view>
5+
<Loading :loading="loading"></Loading>
6+
<fixed_footer></fixed_footer>
7+
</div>
8+
</template>
9+
10+
<script>
11+
import fixed_header from "./compoments/fixedHeader.vue";
12+
import fixed_footer from "./compoments/fixedFooter.vue";
13+
14+
export default {
15+
name: "app",
16+
data() {
17+
return {
18+
loading: false
19+
};
20+
},
21+
components: {
22+
fixed_header,
23+
fixed_footer
24+
},
25+
mounted: function () {
26+
this.isHome = true;
27+
},
28+
methods: {
29+
onShowLoadingChange() {
30+
this.loading = !this.loading;
31+
}
32+
}
33+
};
34+
</script>

src/assets/css/highlight.css

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
@charset "UTF-8";
2+
.dp-highlighter { font: 14px "Microsoft YaHei", "微软雅黑", "宋体", Helvetica, Arial, Lucida Grande, Tahoma, sans-serif; background: #fafafa; width: 96%; word-break: break-all; white-space: normal; overflow: auto; margin: 10px auto; padding: 5px; border-left: 3px solid #3abc9d; }
3+
.dp-highlighter ::-moz-selection { background: #328FFE; color: #fff; }
4+
.dp-highlighter ::selection { background: #328FFE; color: #fff; }
5+
.dp-highlighter ::-moz-selection { background: #328FFE; color: #fff; }
6+
.dp-highlighter ::selection { background: #328FFE; color: #fff; }
7+
.dp-highlighter ::-moz-selection { background: #328FFE; color: #fff; }
8+
.dp-highlighter ::-webkit-selection { background: #328FFE; color: #fff; }
9+
.dp-highlighter:hover { }
10+
.dp-highlighter .bar { padding: 2px; }
11+
.dp-highlighter .collapsed .bar,
12+
.dp-highlighter .nogutter .bar { padding-left: 0px }
13+
.dp-highlighter ol { margin: 0px 0px 1px 30px; padding: 2px; color: #666; list-style: decimal; }
14+
.dp-highlighter ol > li { list-style: decimal; }
15+
.dp-highlighter.nogutter ol { list-style-type: none; margin-left: 0px; }
16+
.dp-highlighter ol li,
17+
.dp-highlighter .columns div { border-left: 1px dashed #ddd; padding-left: 10px; line-height: 1.5; }
18+
.dp-highlighter .nogutter ol li,
19+
.dp-highlighter .nogutter .columns div { border: 0; }
20+
.dp-highlighter .columns { color: gray; width: 100%; }
21+
.dp-highlighter .columns div { padding-bottom: 5px; }
22+
/* .dp-highlighter ol li.alt { background: #fcfcfc; } */
23+
.dp-highlighter ol li:hover { background: #f1f1f1; }
24+
.dp-highlighter ol li span { color: Black; }
25+
.dp-highlighter .collapsed ol { margin: 0px; }
26+
.dp-highlighter .collapsed ol li { display: none; }
27+
.dp-highlighter .printing { border: none; }
28+
.dp-highlighter .printing .tools { display: none !important; }
29+
.dp-highlighter .printing li { display: list-item !important; }
30+
.dp-highlighter .tools { padding: 3px 8px 3px 15px; border-bottom: 1px solid #2B91AF; color: silver; }
31+
.dp-highlighter .collapsed .tools { border-bottom: 0; }
32+
.dp-highlighter .tools a { font-size: 9pt; color: gray; text-decoration: none; margin-right: 10px; }
33+
.dp-highlighter .tools a:hover { color: red; text-decoration: underline; }
34+
.dp-about { background-color: #fff; margin: 0px; padding: 0px; }
35+
.dp-about table { width: 100%; height: 100%; }
36+
.dp-about td { padding: 10px; vertical-align: top; }
37+
.dp-about .copy { border-bottom: 1px solid #ACA899; height: 95%; }
38+
.dp-about .title { color: red; font-weight: bold; }
39+
.dp-about .para { margin: 0 0 4px 0; }
40+
.dp-about .footer { background-color: #ECEADB; border-top: 1px solid #fff; text-align: right; }
41+
.dp-about .close { background-color: #ECEADB; width: 60px; height: 22px; }
42+
.dp-c { }
43+
.dp-c .comment { color: green; }
44+
.dp-c .string { color: blue; }
45+
.dp-c .preprocessor { color: gray; }
46+
.dp-c .keyword { color: blue; }
47+
.dp-c .vars { color: #d00; }
48+
.dp-vb { }
49+
.dp-vb .comment { color: green; }
50+
.dp-vb .string { color: blue; }
51+
.dp-vb .preprocessor { color: gray; }
52+
.dp-vb .keyword { color: blue; }
53+
.dp-sql { }
54+
.dp-sql .comment { color: green; }
55+
.dp-sql .string { color: red; }
56+
.dp-sql .keyword { color: rgb(127, 0, 85); }
57+
.dp-sql .func { color: #ff1493; }
58+
.dp-sql .op { color: blue; }
59+
.dp-xml { }
60+
.dp-xml .cdata { color: #ff1493; }
61+
.dp-xml .comments { color: green; }
62+
.dp-xml .tag { font-weight: bold; color: blue; }
63+
.dp-xml .tag-name { color: rgb(127, 0, 85); font-weight: bold; }
64+
.dp-xml .attribute { color: red }
65+
.dp-xml .attribute-value { color: blue }
66+
.dp-delphi { }
67+
.dp-delphi .comment { color: #008200; font-style: italic; }
68+
.dp-delphi .string { color: blue; }
69+
.dp-delphi .number { color: blue; }
70+
.dp-delphi .directive { color: #008284; }
71+
.dp-delphi .keyword { font-weight: bold; color: navy; }
72+
.dp-delphi .vars { color: #000; }
73+
.dp-py { }
74+
.dp-py .comment { color: green; }
75+
.dp-py .string { color: red; }
76+
.dp-py .docstring { color: green; }
77+
.dp-py .keyword { color: blue; font-weight: bold; }
78+
.dp-py .builtins { color: #ff1493; }
79+
.dp-py .magicmethods { color: #808080; }
80+
.dp-py .exceptions { color: brown; }
81+
.dp-py .types { color: brown; font-style: italic }
82+
.dp-py .commonlibs { color: #8A2BE2; font-style: italic; }
83+
.dp-rb { }
84+
.dp-rb .comment { color: #c00; }
85+
.dp-rb .string { color: #f0c; }
86+
.dp-rb .symbol { color: #02b902; }
87+
.dp-rb .keyword { color: #069; }
88+
.dp-rb .variable { color: #6cf; }
89+
.dp-css { }
90+
.dp-css .comment { color: green; }
91+
.dp-css .string { color: red; }
92+
.dp-css .keyword { color: blue; }
93+
.dp-css .colors { color: darkred; }
94+
.dp-css .vars { color: #d00; }
95+
.dp-j { }
96+
.dp-j .comment { color: rgb(63, 127, 95); }
97+
.dp-j .string { color: rgb(42, 0, 255); }
98+
.dp-j .keyword { color: rgb(127, 0, 85); font-weight: bold; }
99+
.dp-j .annotation { color: #646464; }
100+
.dp-j .number { color: #C00000; }
101+
.dp-cpp { }
102+
.dp-cpp .comment { color: #e00; }
103+
.dp-cpp .string { color: red }
104+
.dp-cpp .preprocessor { color: #CD00CD; font-weight: bold; }
105+
.dp-cpp .keyword { color: #5697D9; font-weight: bold; }
106+
.dp-cpp .datatypes { color: #2E8B57; font-weight: bold; }
107+
.dp-perl { }
108+
.dp-perl .comment { color: green; }
109+
.dp-perl .string { color: red; }
110+
.dp-perl .keyword { color: rgb(127, 0, 85); }
111+
.dp-perl .func { color: #ff1493; }
112+
.dp-perl .declarations { color: blue; }
113+
.dp-css .vars { color: #d00; }
114+
.dp-g { }
115+
.dp-g .comment { color: rgb(63, 127, 95); }
116+
.dp-g .string { color: rgb(42, 0, 255); }
117+
.dp-g .keyword { color: rgb(127, 0, 85); font-weight: bold; }
118+
.dp-g .type { color: rgb(0, 127, 0); font-weight: bold; }
119+
.dp-g .modifier { color: rgb(100, 0, 100); font-weight: bold; }
120+
.dp-g .constant { color: rgb(255, 0, 0); font-weight: bold; }
121+
.dp-g .method { color: rgb(255, 96, 0); font-weight: bold; }
122+
.dp-g .number { color: #C00000; }

0 commit comments

Comments
 (0)