Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
solo-1
Commits
bd016bb5
Unverified
Commit
bd016bb5
authored
Jan 13, 2019
by
Van
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
fix #12620
parent
0ba0ac12
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
6 deletions
+44
-6
src/main/webapp/WEB-INF/static-resources.xml
src/main/webapp/WEB-INF/static-resources.xml
+3
-1
src/main/webapp/css/default-admin.min.css
src/main/webapp/css/default-admin.min.css
+1
-1
src/main/webapp/js/common.js
src/main/webapp/js/common.js
+11
-2
src/main/webapp/js/common.min.js
src/main/webapp/js/common.min.js
+1
-1
src/main/webapp/skins
src/main/webapp/skins
+1
-1
src/main/webapp/sw.js
src/main/webapp/sw.js
+27
-0
No files found.
src/main/webapp/WEB-INF/static-resources.xml
View file @
bd016bb5
...
@@ -20,8 +20,9 @@
...
@@ -20,8 +20,9 @@
-->
-->
<!--
<!--
Description: Static resources definition.
Description: Static resources definition.
Version: 2.
7.6.6, Dec 10, 2016
Version: 2.
8.0.60, Jan 13, 2019
Author: Liang Ding
Author: Liang Ding
Author: Liyuan Li
-->
-->
<static-files>
<static-files>
<!-- Uses the STANDARD Ant Path Pattern to configure these paths! -->
<!-- Uses the STANDARD Ant Path Pattern to configure these paths! -->
...
@@ -29,6 +30,7 @@
...
@@ -29,6 +30,7 @@
<include
path=
"/favicon.ico"
/>
<include
path=
"/favicon.ico"
/>
<include
path=
"/favicon.png"
/>
<include
path=
"/favicon.png"
/>
<include
path=
"/robots.txt"
/>
<include
path=
"/robots.txt"
/>
<include
path=
"/sw.js"
/>
<include
path=
"/manifest.json"
/>
<include
path=
"/manifest.json"
/>
<include
path=
"/js/**.js"
/>
<include
path=
"/js/**.js"
/>
...
...
src/main/webapp/css/default-admin.min.css
View file @
bd016bb5
This diff is collapsed.
Click to expand it.
src/main/webapp/js/common.js
View file @
bd016bb5
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
*
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.
4.1.1, Oct 27, 2018
* @version 1.
5.0.0, Jan 13, 2019
*/
*/
/**
/**
...
@@ -318,10 +318,19 @@ var Util = {
...
@@ -318,10 +318,19 @@ var Util = {
* @description 页面初始化执行的函数
* @description 页面初始化执行的函数
*/
*/
init
:
function
()
{
init
:
function
()
{
//window.onerror = Util.error;
//window.onerror = Util.error;
Util
.
killIE
();
Util
.
killIE
();
Util
.
setTopBar
();
Util
.
setTopBar
();
Util
.
parseMarkdown
();
Util
.
parseMarkdown
();
Util
.
initSW
();
},
/**
* @description 注册 Service Work
*/
initSW
:
function
()
{
if
(
navigator
.
serviceWorker
)
{
navigator
.
serviceWorker
.
register
(
'
/sw.js
'
,
{
scope
:
'
/
'
});
}
},
},
/**
/**
* @description 替换侧边栏表情为图片
* @description 替换侧边栏表情为图片
...
...
src/main/webapp/js/common.min.js
View file @
bd016bb5
This diff is collapsed.
Click to expand it.
skins
@
91f7a9f8
Subproject commit
889f6c797b8d9f7a661880a54940b9063f58b63d
Subproject commit
91f7a9f828d35f16a810d82fa7f9854612df6d97
src/main/webapp/sw.js
0 → 100644
View file @
bd016bb5
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
/**
* @fileoverview 注册 Service Work,目前为空,只为触发添加到桌面。
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @version 0.1.0.0, Jan 13, 2019
*/
self
.
addEventListener
(
'
fetch
'
,
function
(
event
)
{
// fix 'cannot be installed: does not work offline'
})
\ 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