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
2b74257c
Unverified
Commit
2b74257c
authored
Feb 18, 2019
by
Van
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
fix #12653
parent
ab6dc83d
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
9 deletions
+15
-9
src/main/webapp/admin/admin-index.ftl
src/main/webapp/admin/admin-index.ftl
+2
-2
src/main/webapp/js/admin/admin.min.js
src/main/webapp/js/admin/admin.min.js
+1
-1
src/main/webapp/js/admin/editor.js
src/main/webapp/js/admin/editor.js
+4
-1
src/main/webapp/js/page.js
src/main/webapp/js/page.js
+7
-4
src/main/webapp/js/page.min.js
src/main/webapp/js/page.min.js
+1
-1
No files found.
src/main/webapp/admin/admin-index.ftl
View file @
2b74257c
...
...
@@ -31,7 +31,7 @@
<title>
${adminConsoleLabel} - ${blogTitle}
</title>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"${staticServePath}/css/default-base${miniPostfix}.css?${staticResourceVersion}"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"${staticServePath}/css/default-admin${miniPostfix}.css?${staticResourceVersion}"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"https://vditor.b3log.org/0.
1.8
/index.classic.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"https://vditor.b3log.org/0.
2.0
/index.classic.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"${staticServePath}/js/lib/highlight-9.13.1/styles/github.css?${staticResourceVersion}"
/>
<link
rel=
"icon"
type=
"image/png"
href=
"${staticServePath}/favicon.png"
/>
<link
rel=
"manifest"
href=
"${servePath}/manifest.json"
>
...
...
@@ -169,7 +169,7 @@
</div>
</div>
<script
src=
"${staticServePath}/js/lib/compress/admin-lib.min.js"
></script>
<script
src=
"https://vditor.b3log.org/0.
1.8
/index.min.js"
></script>
<script
src=
"https://vditor.b3log.org/0.
2.0
/index.min.js"
></script>
<script
src=
"${staticServePath}/js/common${miniPostfix}.js"
></script>
<
#if
""
==
miniPostfix
>
<script
src=
"${staticServePath}/js/admin/admin.js"
></script>
...
...
src/main/webapp/js/admin/admin.min.js
View file @
2b74257c
This diff is collapsed.
Click to expand it.
src/main/webapp/js/admin/editor.js
View file @
2b74257c
...
...
@@ -19,7 +19,7 @@
* @fileoverview editor
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @version 1.2.0.
2, Feb 15
, 2019
* @version 1.2.0.
3, Feb 18
, 2019
*/
admin
.
editors
=
{}
...
...
@@ -43,6 +43,9 @@ $.extend(SoloEditor.prototype, {
init
:
function
()
{
this
.
editor
=
new
Vditor
(
this
.
conf
.
id
,
{
cache
:
true
,
hint
:
{
emojiPath
:
latkeConfig
.
staticServePath
+
'
/js/lib/emojify.js-1.1.0/images/basic
'
},
preview
:
{
delay
:
500
,
show
:
this
.
conf
.
previewShow
,
...
...
src/main/webapp/js/page.js
View file @
2b74257c
...
...
@@ -20,7 +20,7 @@
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 2.0.0.
1, Feb 15
, 2019
* @version 2.0.0.
2, Feb 18
, 2019
*/
var
Page
=
function
(
tips
)
{
this
.
currentCommentId
=
''
...
...
@@ -105,11 +105,11 @@ $.extend(Page.prototype, {
if
(
typeof
Vditor
===
'
undefined
'
)
{
$
(
'
head
'
).
append
(
$
(
'
<link rel=
\'
stylesheet
\'
href=
\'
https://vditor.b3log.org/0.
1.8
/index.classic.css
\'
>
'
))
$
(
'
<link rel=
\'
stylesheet
\'
href=
\'
https://vditor.b3log.org/0.
2.0
/index.classic.css
\'
>
'
))
$
.
ajax
({
method
:
'
GET
'
,
url
:
'
https://vditor.b3log.org/0.
1.8
/index.min.js
'
,
url
:
'
https://vditor.b3log.org/0.
2.0
/index.min.js
'
,
dataType
:
'
script
'
,
cache
:
true
,
async
:
false
,
...
...
@@ -117,6 +117,9 @@ $.extend(Page.prototype, {
window
.
vditor
=
new
Vditor
(
'
soloEditorComment
'
,
{
placeholder
:
that
.
tips
.
commentContentCannotEmptyLabel
,
height
:
180
,
hint
:
{
emojiPath
:
latkeConfig
.
staticServePath
+
'
/js/lib/emojify.js-1.1.0/images/basic
'
},
esc
:
function
()
{
$
(
'
#soloEditorCancel
'
).
click
()
},
...
...
@@ -334,7 +337,7 @@ $.extend(Page.prototype, {
type
=
'
page
'
}
if
(
vditor
.
getValue
().
length
>
2
&&
vditor
.
getValue
().
length
<
500
)
{
if
(
vditor
.
getValue
().
length
>
1
&&
vditor
.
getValue
().
length
<
500
)
{
$
(
'
#soloEditorAdd
'
).
attr
(
'
disabled
'
,
'
disabled
'
)
var
requestJSONObject
=
{
'
oId
'
:
tips
.
oId
,
...
...
src/main/webapp/js/page.min.js
View file @
2b74257c
This diff is collapsed.
Click to expand it.
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