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
2abf0df2
Unverified
Commit
2abf0df2
authored
Jun 07, 2019
by
Van
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#12796
parent
9b0e610b
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
11 deletions
+11
-11
package-lock.json
package-lock.json
+3
-3
package.json
package.json
+1
-1
src/main/webapp/admin/admin-index.ftl
src/main/webapp/admin/admin-index.ftl
+1
-1
src/main/webapp/js/common.js
src/main/webapp/js/common.js
+3
-3
src/main/webapp/js/common.min.js
src/main/webapp/js/common.min.js
+1
-1
src/main/webapp/js/page.js
src/main/webapp/js/page.js
+1
-1
src/main/webapp/js/page.min.js
src/main/webapp/js/page.min.js
+1
-1
No files found.
package-lock.json
View file @
2abf0df2
...
...
@@ -5485,9 +5485,9 @@
"dev"
:
true
},
"vditor"
:
{
"version"
:
"1.5.
2
"
,
"resolved"
:
"https://registry.npmjs.org/vditor/-/vditor-1.5.
2
.tgz"
,
"integrity"
:
"sha512-
NOmvjkg6NgEZUKTQB4lqlZoZTJcJ9tDoj+7odtcWO2fpi1RpRmrBnJjhDbuJy5mstM8KBXD9k17gSrlDT+UbeA
=="
,
"version"
:
"1.5.
4
"
,
"resolved"
:
"https://registry.npmjs.org/vditor/-/vditor-1.5.
4
.tgz"
,
"integrity"
:
"sha512-
LaykVAMCW+PwI2ujBhhs5gS0xvqPF665B5hLYPQuT4DeN9eUtUiHGKjFc5icB9eI/jcvXDy786cvz8G+/+WFjg
=="
,
"requires"
:
{
"echarts"
:
"^4.2.1"
,
"highlight.js"
:
"^9.15.6"
,
...
...
package.json
View file @
2abf0df2
...
...
@@ -36,6 +36,6 @@
"
gulp-uglify
"
:
"
^3.0.2
"
},
"dependencies"
:
{
"
vditor
"
:
"
^1.5.
2
"
"
vditor
"
:
"
^1.5.
4
"
}
}
src/main/webapp/admin/admin-index.ftl
View file @
2abf0df2
...
...
@@ -165,7 +165,7 @@
</div>
</div>
<script
src=
"${staticServePath}/js/lib/compress/admin-lib.min.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/vditor@1.5.
2
/dist/index.min.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/vditor@1.5.
4
/dist/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/common.js
View file @
2abf0df2
...
...
@@ -147,7 +147,7 @@ var Util = {
if
(
$
(
'
.vditor-reset pre > code
'
).
length
===
0
)
{
return
}
Util
.
addStyle
(
'
https://cdn.jsdelivr.net/npm/vditor@1.5.
2
/dist/js/highlight.js@9.15.8/styles/
'
+
Util
.
addStyle
(
'
https://cdn.jsdelivr.net/npm/vditor@1.5.
4
/dist/js/highlight.js@9.15.8/styles/
'
+
Label
.
hljsStyle
+
'
.css
'
,
'
vditorHljsStyle
'
)
var
initHljs
=
function
()
{
...
...
@@ -158,7 +158,7 @@ var Util = {
if
(
!
Label
.
markedAvailable
)
{
if
(
typeof
hljs
===
'
undefined
'
)
{
$
.
ajax
({
url
:
'
https://cdn.jsdelivr.net/npm/vditor@1.5.
2
/dist/js/highlight.js@9.15.8/highlight.pack.js
'
,
url
:
'
https://cdn.jsdelivr.net/npm/vditor@1.5.
4
/dist/js/highlight.js@9.15.8/highlight.pack.js
'
,
dataType
:
'
script
'
,
cache
:
true
,
success
:
function
()
{
...
...
@@ -182,7 +182,7 @@ var Util = {
return
}
Util
.
addScript
(
'
https://cdn.jsdelivr.net/npm/vditor@1.5.
2
/dist/index.min.js
'
,
Util
.
addScript
(
'
https://cdn.jsdelivr.net/npm/vditor@1.5.
4
/dist/index.min.js
'
,
'
vditorScript
'
)
Vditor
.
mermaidRender
(
document
.
body
)
...
...
src/main/webapp/js/common.min.js
View file @
2abf0df2
This diff is collapsed.
Click to expand it.
src/main/webapp/js/page.js
View file @
2abf0df2
...
...
@@ -102,7 +102,7 @@ $.extend(Page.prototype, {
if
(
!
$
(
'
#soloEditorComment
'
).
hasClass
(
'
vditor
'
))
{
var
that
=
this
Util
.
addScript
(
'
https://cdn.jsdelivr.net/npm/vditor@1.5.
2
/dist/index.min.js
'
,
'
vditorScript
'
)
Util
.
addScript
(
'
https://cdn.jsdelivr.net/npm/vditor@1.5.
4
/dist/index.min.js
'
,
'
vditorScript
'
)
window
.
vditor
=
new
Vditor
(
'
soloEditorComment
'
,
{
placeholder
:
that
.
tips
.
commentContentCannotEmptyLabel
,
height
:
180
,
...
...
src/main/webapp/js/page.min.js
View file @
2abf0df2
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