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
0c2f4ecc
Unverified
Commit
0c2f4ecc
authored
Feb 29, 2020
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
静态站点生成自动记录最近生成的网址
parent
ec7ef602
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
src/main/resources/js/admin/admin.min.js
src/main/resources/js/admin/admin.min.js
+1
-1
src/main/resources/js/admin/staticsite.js
src/main/resources/js/admin/staticsite.js
+9
-1
No files found.
src/main/resources/js/admin/admin.min.js
View file @
0c2f4ecc
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/main/resources/js/admin/staticsite.js
View file @
0c2f4ecc
...
@@ -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.0.0.
1, Jan 14
, 2020
* @version 1.0.0.
2, Feb 29
, 2020
*/
*/
/* staticsite 相关操作 */
/* staticsite 相关操作 */
...
@@ -30,6 +30,11 @@ admin.staticsite = {
...
@@ -30,6 +30,11 @@ admin.staticsite = {
*/
*/
init
:
function
()
{
init
:
function
()
{
$
(
'
#loadMsg
'
).
text
(
''
)
$
(
'
#loadMsg
'
).
text
(
''
)
const
ssgURL
=
window
.
localStorage
.
getItem
(
"
solo_ssgurl
"
)
if
(
ssgURL
)
{
$
(
'
#siteURL
'
).
val
(
ssgURL
)
}
},
},
/*
/*
* @description 更新
* @description 更新
...
@@ -50,6 +55,9 @@ admin.staticsite = {
...
@@ -50,6 +55,9 @@ admin.staticsite = {
success
:
function
(
result
)
{
success
:
function
(
result
)
{
$
(
'
#tipMsg
'
).
text
(
result
.
msg
)
$
(
'
#tipMsg
'
).
text
(
result
.
msg
)
$
(
'
#loadMsg
'
).
text
(
''
)
$
(
'
#loadMsg
'
).
text
(
''
)
console
.
log
(
requestJSONObject
.
url
)
window
.
localStorage
.
setItem
(
"
solo_ssgurl
"
,
requestJSONObject
.
url
)
},
},
})
})
},
},
...
...
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