Skip to content

Commit 03995ac

Browse files
committed
Fix article display error, add article comment, user login, user add, post article, user center...
1 parent 05fbfbd commit 03995ac

Some content is hidden

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

44 files changed

+1247
-249
lines changed

README.md

Lines changed: 45 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@
2020
2121
> 3. modify `src/utils/api.js` file, change youre config. *「E.g: site url, site language, site protocol etc.」*
2222
23+
> 4. After vueWPress 0.23 release, you need to install a plugin JWT Authentication for WP-API, Can be downloaded via background plugin search or [check here](https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/)
24+
25+
> 4.1 Modify the wp-config.php file in Wordpress root
26+
27+
> 4.1.2 Find: `define('NONCE_SALT'`
28+
29+
> 4.1.3 Add the following to the line under `define('NONCE_SALT'`
30+
31+
``` bash
32+
define('JWT_AUTH_SECRET_KEY', 'you-64-secret-key');
33+
#the random key here https://api.wordpress.org/secret-key/1.1/salt/
34+
define('JWT_AUTH_CORS_ENABLE', true);
35+
```
36+
37+
> 4.1.4 `you-64-secret-key` Is a 64-bit random key, more: [check here](https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/)
2338
2439
## Build Setup
2540

@@ -44,79 +59,89 @@ npm run build
4459
4560
> 3. Show topic on the topic page. [jump](#topic) 「ver: 0.12」
4661
47-
> 4. Show topic detail on the detail page. [jump](#page) 「ver: 0.12」
62+
> 4. Show topic detail on the detail page. 「ver: 0.12」
4863
4964
> 5. Show tags on the tags page. [jump](#tags) 「ver: 0.16」
5065
51-
> 6. Show tag detail on the detail page. [jump](#tag) 「ver: 0.16」
66+
> 6. Show tag detail on the detail page. 「ver: 0.16」
67+
68+
> 7. Show All media on the gallery page. 「ver: 0.16」
5269
53-
> 7. Show All media on the gallery page. [jump](#media) 「ver: 0.16
70+
> 8. Show All comment on the comments page. 「ver: 0.19
5471
55-
> 8. Show All comment on the comments page. [jump](#comments) 「ver: 0.19
72+
> 9. Show article on the articles page. [jump](#articles) 「ver: 0.23
5673
57-
> 9. Show article on the articles page. [jump](#Articles) 「ver: 0.19
74+
> 10. Added comments on article page. [jump](#comment) 「ver: 0.31
5875
59-
> 10. More features are in development ...
76+
> 11. Increase article publishing capabilities. [jump](#post) 「ver: 0.31」
77+
78+
> 12. Added user center to display nicknames, avatars, and logouts. [jump](#member) 「ver: 0.31」
79+
80+
> 13. Added login and registration functions. [jump](#login) 「ver: 0.31」
81+
82+
> 14. More features are in development ...
6083
6184
## Preview Me
6285
### Home
63-
![home](./previews/home.png)
86+
![home](./previews/home_en.png)
6487

6588
[Back Up](#vuewpress)
6689

6790
---
6891

6992
### Articles
70-
![home](./previews/articles.png)
93+
![home](./previews/articles_en.png)
7194

7295
[Back Up](#vuewpress)
7396

7497
---
7598

7699
### Article
77-
![home](./previews/article.png)
100+
![home](./previews/article_en.png)
78101

79102
[Back Up](#vuewpress)
80103

81104
---
82105

83106
### Topic
84-
![topic](./previews/topic.png)
107+
![topic](./previews/topic_en.png)
85108

86109
[Back Up](#vuewpress)
87110

88111
---
89112

90-
### Page
91-
![page](./previews/page.png)
113+
### Tags
114+
![page](./previews/tags_en.png)
92115

93116
[Back Up](#vuewpress)
94117

95118
---
96119

97-
### Tags
98-
![page](./previews/tags.png)
120+
### Member
121+
![page](./previews/member_en.png)
99122

100123
[Back Up](#vuewpress)
101124

102125
---
103126

104-
### Tag
105-
![page](./previews/tag.png)
127+
### Login
128+
![page](./previews/login_en.png)
106129

107130
[Back Up](#vuewpress)
108131

109132
---
110133

111-
### Media
112-
![page](./previews/tag.png)
134+
135+
### Post
136+
![page](./previews/post_en.png)
113137

114138
[Back Up](#vuewpress)
115139

116140
---
117141

118-
### Comments
119-
![page](./previews/comments.png)
142+
143+
### Comment
144+
![page](./previews/comment_en.png)
120145

121146
[Back Up](#vuewpress)
122147

README_CN.md

Lines changed: 40 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@
1919
2020
> 3. 修改 `src/utils/api.js` 文件, 修改成你的博客配置 *「例如: 你的站点地址, 你的站点语言, 你的站点协议等等」*
2121
22+
> 4. vueWPress 0.23 版本以后,需要安装一个插件 JWT Authentication for WP-API ,可通过后台插件搜索或者[查看这里](https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/)下载
23+
24+
> 4.1 修改 Wordpress 根目录下的 wp-config.php 文件
25+
26+
> 4.1.2 查找:`define('NONCE_SALT'`
27+
28+
> 4.1.3 在 `define('NONCE_SALT'` 下方新增如下内容
29+
30+
``` bash
31+
define('JWT_AUTH_SECRET_KEY', 'you-64-secret-key');
32+
#这里查看随机密钥 https://api.wordpress.org/secret-key/1.1/salt/
33+
define('JWT_AUTH_CORS_ENABLE', true);
34+
```
35+
36+
> 4.1.4 `you-64-secret-key` 是64位的随机密钥,更多配置 [点击这里](https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/)
2237
2338
## 使用步骤
2439

@@ -45,19 +60,27 @@ npm run build
4560
4661
> 3. 专题页显示页面专题。 [Jump](#专题中心) 「ver: 0.12」
4762
48-
> 4. 专题详情页显示专题内容。 [Jump](#专题详情) 「ver: 0.12」
63+
> 4. 专题详情页显示专题内容。「ver: 0.12」
4964
5065
> 5. 标签云页显示标签集合。 [Jump](#标签云) 「ver: 0.16」
5166
52-
> 6. 标签页显示标签相关文章。 [Jump](#标签页) 「ver: 0.16」
67+
> 6. 标签页显示标签相关文章。「ver: 0.16」
68+
69+
> 7. 图库页显示所有媒体文件。「ver: 0.16」
70+
71+
> 8. 言论页显示所有评论。「ver: 0.19」
5372
54-
> 7. 图库页显示所有媒体文件[jump](#图库中心) 「ver: 0.16
73+
> 9. 文章列表页显示所有文章[jump](#文章列表) 「ver: 0.23
5574
56-
> 8. 言论页显示所有评论[jump](#言论中心) 「ver: 0.19
75+
> 10. 文章页面新增评论[jump](#文章评论) 「ver: 0.31
5776
58-
> 9. 文章列表页显示所有文章。 [jump](#文章列表) 「ver: 0.19
77+
> 11. 增加发布文章功能。 [jump](#发布文章) 「ver: 0.31
5978
60-
> 10. 更多功能正在开发中 ...
79+
> 12. 新增用户中心,可显示昵称、头像,退出登录。 [jump](#用户中心) 「ver: 0.19」
80+
81+
> 13. 新增登录、注册功能。 [jump](#登录) 「ver: 0.19」
82+
83+
> 14. 更多功能正在开发中 ...
6184
6285
## 预览界面
6386
### 首页
@@ -88,36 +111,36 @@ npm run build
88111

89112
---
90113

91-
### 专题详情
92-
![专题详情](./previews/page.png)
114+
### 标签云
115+
![page](./previews/tags.png)
93116

94-
[返回](#vuewpress)
117+
[Back Up](#vuewpress)
95118

96119
---
97120

98-
### 标签云
99-
![page](./previews/tags.png)
121+
### 用户中心
122+
![page](./previews/member.png)
100123

101124
[Back Up](#vuewpress)
102125

103126
---
104127

105-
### 标签页
106-
![page](./previews/tag.png)
128+
### 登录
129+
![page](./previews/login.png)
107130

108131
[Back Up](#vuewpress)
109132

110133
---
111134

112-
### 图库中心
113-
![page](./previews/tag.png)
135+
### 发布文章
136+
![page](./previews/post.png)
114137

115138
[Back Up](#vuewpress)
116139

117140
---
118141

119-
### 言论中心
120-
![page](./previews/comments.png)
142+
### 文章评论
143+
![page](./previews/comment.png)
121144

122145
[Back Up](#vuewpress)
123146

previews/article.png

-27.1 KB
Loading

previews/article_en.png

33.9 KB
Loading

previews/articles.png

-1.87 KB
Loading

previews/articles_en.png

37 KB
Loading

previews/comment.png

17.9 KB
Loading

previews/comment_en.png

17 KB
Loading

previews/comments.png

-20.3 KB
Binary file not shown.

previews/home.png

19 KB
Loading

previews/home_en.png

64.3 KB
Loading

previews/login.png

6.52 KB
Loading

previews/login_en.png

6.7 KB
Loading

previews/media.png

-125 KB
Binary file not shown.

previews/member.png

10.7 KB
Loading

previews/member_en.png

10.7 KB
Loading

previews/page.png

-44.2 KB
Binary file not shown.

previews/post.png

12.4 KB
Loading

previews/post_en.png

15 KB
Loading

previews/tag.png

-25.5 KB
Binary file not shown.

previews/tags.png

1.48 KB
Loading

previews/tags_en.png

19.5 KB
Loading

previews/topic.png

3.07 KB
Loading

previews/topic_en.png

56.2 KB
Loading

src/assets/css/reset.css

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
/* reset normal */
9090

9191
* {
92-
-webkit-box-sizing: border-box;
9392
box-sizing: border-box;
9493
}
9594

@@ -194,19 +193,17 @@ body {
194193

195194
a,
196195
a:visited {
197-
color: inherit;
196+
/* color: inherit; */
198197
text-decoration: none;
199198
opacity: 1;
200199
outline: none;
201-
-webkit-transition: all 0.15s linear;
202-
-o-transition: all 0.15s linear;
203200
transition: all 0.15s linear;
204201
}
205202

206203
a:hover,
207204
a:active,
208205
a:focus {
209-
color: inherit;
206+
/* color: inherit; */
210207
}
211208

212209
blockquote,
@@ -262,45 +259,38 @@ img {
262259
height: auto;
263260
}
264261

265-
input[type="text"],
262+
/* input[type="text"],
266263
input[type="password"],
267264
input[type="email"],
268265
input[type="number"],
269266
input[type="search"],
270267
input[type="tel"],
271-
input[type="url"] {
268+
input[type="url"] { */
269+
input{
272270
display: block;
273271
width: 100%;
274-
/* height: 2.0rem; */
275272
padding: 0.375rem 0.75rem;
276273
font-size: 0.875rem;
277274
line-height: 1.5;
278275
color: #555;
279276
background-color: #fff;
280277
background-image: none;
281278
border: 1px solid #ccc;
282-
-webkit-border-radius: 0.25rem;
283-
border-radius: 0.25rem;
284-
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
285-
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
286-
-webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
287-
transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
288-
-o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
289-
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
290-
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
279+
border-radius:0;
280+
box-shadow: none;
291281
}
292-
282+
/*
293283
input[type="text"]:focus,
294284
input[type="password"]:focus,
295285
input[type="email"]:focus,
296286
input[type="number"]:focus,
297287
input[type="search"]:focus,
298288
input[type="tel"]:focus,
299-
input[type="url"]:focus {
289+
input[type="url"]:focus { */
290+
/* input:focus{
300291
border-color: #66afe9;
301-
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 0.5rem rgba(102, 175, 233, .6);
302-
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 0.5rem rgba(102, 175, 233, .6);
303-
}
292+
box-shadow: none;
293+
} */
304294

305295
input::-webkit-input-placeholder,
306296
input::-moz-placeholder,
@@ -326,7 +316,6 @@ input[type="reset"] {
326316
padding: 0.375rem 0.75rem;
327317
font-size: 0.875rem;
328318
line-height: 1.5;
329-
-webkit-border-radius: 0.25rem;
330319
border-radius: 0.25rem;
331320
border: none;
332321
cursor: pointer;

0 commit comments

Comments
 (0)