Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4a81644

Browse files
committed
feat: update ui
Change-Id: Id114e880835bfd6d9a526670a132cf160089549f
1 parent 39b5256 commit 4a81644

File tree

16 files changed

+2178
-2320
lines changed

16 files changed

+2178
-2320
lines changed

‎.eslintrc.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ module.exports = {
6464
'import/no-extraneous-dependencies': 0,
6565
'global-require': 0,
6666
'no-continue': 0,
67+
'linebreak-style': 0,
6768
},
6869
parserOptions: {
6970
parser: '@typescript-eslint/parser',

‎package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gridea",
3-
"version": "0.9.2",
3+
"version": "0.9.3",
44
"private": true,
55
"description": "A static blog writing client. You can use it to record your life, mood, knowledge, notes and ideas...",
66
"keywords": [
@@ -34,7 +34,7 @@
3434
"fs-extra": "^7.0.1",
3535
"gray-matter": "^4.0.1",
3636
"hpagent": "^1.0.0",
37-
"isomorphic-git": "^1.17.1",
37+
"isomorphic-git": "1.17.1",
3838
"junk": "^3.1.0",
3939
"less": "^3.9.0",
4040
"lowdb": "^1.0.0",
@@ -51,7 +51,7 @@
5151
"markdown-it-sup": "^1.0.0",
5252
"markdown-it-toc-and-anchor": "^4.2.0",
5353
"moment": "^2.24.0",
54-
"monaco-markdown": "^0.0.12",
54+
"monaco-markdown": "^0.0.6",
5555
"node-ssh": "^6.0.0",
5656
"normalize-path": "^3.0.0",
5757
"prismjs": "^1.16.0",
Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
2-
<meta charset="utf-8" >
3-
4-
<title><%= siteTitle %></title>
5-
<meta name="description" content="<%= themeConfig.siteDescription %>">
6-
7-
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
8-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css">
9-
10-
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
11-
<link rel="shortcut icon" href="<%= themeConfig.domain %>/favicon.ico?v=<%= site.utils.now %>">
12-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.10.0/katex.min.css">
13-
<link rel="stylesheet" href="<%= themeConfig.domain %>/styles/main.css">
14-
15-
<% if (typeof commentSetting !== 'undefined' && commentSetting.showComment) { %>
16-
<% if (commentSetting.commentPlatform === 'gitalk') { %>
17-
<link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css" />
18-
<% } %>
19-
20-
<% if (commentSetting.commentPlatform === 'disqus') { %>
21-
<link rel="stylesheet" href="https://unpkg.com/disqusjs@1.1/dist/disqusjs.css" />
22-
<% } %>
23-
<% } %>
24-
25-
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
26-
<script src="https://cdn.bootcss.com/highlight.js/9.12.0/highlight.min.js"></script>
27-
28-
<% if (site.customConfig.ga) { %>
29-
<script async src="https://www.googletagmanager.com/gtag/js?id=<%= site.customConfig.ga %>"></script>
30-
<script>
31-
window.dataLayer = window.dataLayer || [];
32-
function gtag(){dataLayer.push(arguments);}
33-
gtag('js', new Date());
34-
35-
gtag('config', '<%= site.customConfig.ga %>');
36-
</script>
37-
<% } %>
1+
2+
<meta charset="utf-8" >
3+
4+
<title><%= siteTitle %></title>
5+
<meta name="description" content="<%= themeConfig.siteDescription %>">
6+
7+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
8+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css">
9+
10+
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
11+
<link rel="shortcut icon" href="<%= themeConfig.domain %>/favicon.ico?v=<%= site.utils.now %>">
12+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.10.0/katex.min.css">
13+
<link rel="stylesheet" href="<%= themeConfig.domain %>/styles/main.css">
14+
15+
<% if (typeof commentSetting !== 'undefined' && commentSetting.showComment) { %>
16+
<% if (commentSetting.commentPlatform === 'gitalk') { %>
17+
<link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css" />
18+
<% } %>
19+
20+
<% if (commentSetting.commentPlatform === 'disqus') { %>
21+
<link rel="stylesheet" href="https://unpkg.com/disqusjs@1.1/dist/disqusjs.css" />
22+
<% } %>
23+
<% } %>
24+
25+
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
26+
<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.5.1/build/highlight.min.js"></script>
27+
28+
<% if (site.customConfig.ga) { %>
29+
<script async src="https://www.googletagmanager.com/gtag/js?id=<%= site.customConfig.ga %>"></script>
30+
<script>
31+
window.dataLayer = window.dataLayer || [];
32+
function gtag(){dataLayer.push(arguments);}
33+
gtag('js', new Date());
34+
35+
gtag('config', '<%= site.customConfig.ga %>');
36+
</script>
37+
<% } %>

‎public/default-files/themes/fly/templates/post.ejs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</span>
3232
<% } %>
3333
</div>
34-
<div class="post-content">
34+
<div class="post-content"v-pre>
3535
<%- post.content %>
3636
</div>
3737
</div>

‎public/default-files/themes/notes/templates/post.ejs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta name="description" content="<%- post.description %>" />
55
<meta name="keywords" content="<%- post.tags.map(tag => tag.name).join(',') %>" />
66
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.10.0/katex.min.css">
7-
<script src="https://cdn.bootcss.com/highlight.js/9.12.0/highlight.min.js"></script>
7+
<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.5.1/build/highlight.min.js"></script>
88
</head>
99
<body>
1010
<div class="main">
@@ -32,7 +32,7 @@
3232
<img class="post-feature-image" src="<%= post.feature %>" alt="">
3333
<% } %>
3434
<div class="post-content-wrapper">
35-
<div class="post-content">
35+
<div class="post-content"v-pre>
3636
<%- post.content %>
3737
</div>
3838
<div class="toc-container">
Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
<meta charset="utf-8" >
2-
3-
<title><%= siteTitle %></title>
4-
<meta name="description" content="<%= themeConfig.siteDescription %>">
5-
6-
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
7-
<link rel="shortcut icon" href="<%= themeConfig.domain %>/favicon.ico?v=<%= site.utils.now %>">
8-
9-
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
10-
<link rel="stylesheet" href="https://unpkg.com/papercss@1.6.1/dist/paper.min.css" />
11-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.10.0/katex.min.css">
12-
<link rel="stylesheet" href="<%= themeConfig.domain %>/styles/main.css">
13-
14-
<% if (typeof commentSetting !== 'undefined' && commentSetting.showComment) { %>
15-
<% if (commentSetting.commentPlatform === 'gitalk') { %>
16-
<link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css" />
17-
<% } %>
18-
19-
<% if (commentSetting.commentPlatform === 'disqus') { %>
20-
<link rel="stylesheet" href="https://unpkg.com/disqusjs@1.1/dist/disqusjs.css" />
21-
<% } %>
22-
<% } %>
23-
<script src="https://cdn.bootcss.com/highlight.js/9.12.0/highlight.min.js"></script>
24-
25-
26-
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
27-
<% if (site.customConfig.ga) { %>
28-
<script async src="https://www.googletagmanager.com/gtag/js?id=<%= site.customConfig.ga %>"></script>
29-
<script>
30-
window.dataLayer = window.dataLayer || [];
31-
function gtag(){dataLayer.push(arguments);}
32-
gtag('js', new Date());
33-
34-
gtag('config', '<%= site.customConfig.ga %>');
35-
</script>
36-
<% } %>
1+
<meta charset="utf-8" >
2+
3+
<title><%= siteTitle %></title>
4+
<meta name="description" content="<%= themeConfig.siteDescription %>">
5+
6+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
7+
<link rel="shortcut icon" href="<%= themeConfig.domain %>/favicon.ico?v=<%= site.utils.now %>">
8+
9+
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
10+
<link rel="stylesheet" href="https://unpkg.com/papercss@1.6.1/dist/paper.min.css" />
11+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.10.0/katex.min.css">
12+
<link rel="stylesheet" href="<%= themeConfig.domain %>/styles/main.css">
13+
14+
<% if (typeof commentSetting !== 'undefined' && commentSetting.showComment) { %>
15+
<% if (commentSetting.commentPlatform === 'gitalk') { %>
16+
<link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css" />
17+
<% } %>
18+
19+
<% if (commentSetting.commentPlatform === 'disqus') { %>
20+
<link rel="stylesheet" href="https://unpkg.com/disqusjs@1.1/dist/disqusjs.css" />
21+
<% } %>
22+
<% } %>
23+
<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.5.1/build/highlight.min.js"></script>
24+
25+
26+
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
27+
<% if (site.customConfig.ga) { %>
28+
<script async src="https://www.googletagmanager.com/gtag/js?id=<%= site.customConfig.ga %>"></script>
29+
<script>
30+
window.dataLayer = window.dataLayer || [];
31+
function gtag(){dataLayer.push(arguments);}
32+
gtag('js', new Date());
33+
34+
gtag('config', '<%= site.customConfig.ga %>');
35+
</script>
36+
<% } %>

‎public/default-files/themes/paper/templates/post.ejs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<% if (post.feature) { %>
2323
<img src="<%= post.feature %>" alt="<%= post.title %>">
2424
<% } %>
25-
<div class="post-content">
25+
<div class="post-content"v-pre>
2626
<%- post.content %>
2727
</div>
2828
</article>

‎public/default-files/themes/simple/templates/_blocks/scripts.ejs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var app = new Vue({
1313
</script>
1414

1515
<% if (site.customConfig.renderCode) { %>
16-
<script src="https://cdn.bootcss.com/highlight.js/9.12.0/highlight.min.js"></script>
16+
<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.5.1/build/highlight.min.js"></script>
1717
<script>
1818
hljs.initHighlightingOnLoad()
1919
</script>

‎src/assets/styles/custom.less‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
.ant-table-thead > tr > th {
1515
background: #ffffff;
16-
color: #434343b0;
16+
color: #1b1b18b0;
1717
font-weight: normal;
1818
}
1919

@@ -52,6 +52,9 @@
5252
margin-left: 8px;
5353
outline: none;
5454
transition: all 0.3s;
55+
display: flex;
56+
justify-content: center;
57+
align-items: center;
5558
i {
5659
font-weight: bold;
5760
}
@@ -156,14 +159,14 @@
156159
padding: 4px 8px;
157160
margin-bottom: 8px;
158161
color: #b1b1b1;
159-
border-radius: 2px;
162+
border-radius: 6px;
160163
transition: all 0.3s;
161164
&:hover {
162165
background: #efefef;
163166
}
164167
}
165168
.ant-tabs-tab-active {
166-
color: #434343;
169+
color: #1b1b18;
167170
}
168171
}
169172

@@ -206,6 +209,9 @@
206209
background: #f3f7f9;
207210
margin: 12px;
208211
font-size: 14px;
212+
display: inline-flex;
213+
justify-content: center;
214+
align-items: center;
209215
}
210216

211217
.ant-modal-close {
@@ -228,7 +234,7 @@
228234
.ant-menu-inline .ant-menu-item, .ant-menu-inline .ant-menu-submenu-title {
229235
width: 90%;
230236
margin-left: 5%;
231-
border-radius: 8px;
237+
border-radius: 6px;
232238
color: #666;
233239
}
234240

‎src/assets/styles/var.less‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
@primary-color: #555;
2-
@primary-bg: #f7f6f6;
3-
@danger-color: #fa5252;
4-
5-
@border-radius-base : 2px;
6-
@link-color: #1a5ccf;
7-
@border-color: #e8e8e88a;
8-
9-
@btn-default-border: #eaeaea;
10-
11-
@label-color: #555;
12-
13-
@font-family: PingFang SC,-apple-system,SF UI Text,Lucida Grande,STheiti,Microsoft YaHei,sans-serif;
14-
1+
@primary-color: #1b1b18;
2+
@primary-bg: #f7f6f6;
3+
@danger-color: #fa5252;
4+
5+
@border-radius-base : 6px;
6+
@link-color: #1a5ccf;
7+
@border-color: #e8e8e88a;
8+
9+
@btn-default-border: #eaeaea;
10+
11+
@label-color: #1b1b18;
12+
13+
@font-family: PingFang SC,-apple-system,SF UI Text,Lucida Grande,STheiti,Microsoft YaHei,sans-serif;
14+
1515
@input-hover-border-color: #999;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /