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
3bc97fde
Unverified
Commit
3bc97fde
authored
Aug 06, 2019
by
Van
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
⬆
vditor
parent
31f12b8e
Changes
11
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
46 additions
and
45 deletions
+46
-45
package-lock.json
package-lock.json
+30
-30
package.json
package.json
+1
-1
src/main/webapp/js/admin/admin.min.js
src/main/webapp/js/admin/admin.min.js
+2
-2
src/main/webapp/js/admin/article.js
src/main/webapp/js/admin/article.js
+3
-3
src/main/webapp/js/admin/editor.js
src/main/webapp/js/admin/editor.js
+2
-2
src/main/webapp/js/page.js
src/main/webapp/js/page.js
+3
-2
src/main/webapp/js/page.min.js
src/main/webapp/js/page.min.js
+1
-1
src/main/webapp/scss/admin.css
src/main/webapp/scss/admin.css
+1
-1
src/main/webapp/scss/base.css
src/main/webapp/scss/base.css
+1
-1
src/main/webapp/scss/start.css
src/main/webapp/scss/start.css
+1
-1
src/main/webapp/skins
src/main/webapp/skins
+1
-1
No files found.
package-lock.json
View file @
3bc97fde
...
...
@@ -1165,9 +1165,9 @@
"integrity"
:
"sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw=="
},
"acorn-globals"
:
{
"version"
:
"4.3.
2
"
,
"resolved"
:
"https://registry.npmjs.org/acorn-globals/-/acorn-globals-4.3.
2
.tgz"
,
"integrity"
:
"sha512-
BbzvZhVtZP+Bs1J1HcwrQe8ycfO0wStkSGxuul3He3GkHOIZ6eTqOkPuw9IP1X3+IkOo4wiJmwkobzXYz4wew
Q=="
,
"version"
:
"4.3.
3
"
,
"resolved"
:
"https://registry.npmjs.org/acorn-globals/-/acorn-globals-4.3.
3
.tgz"
,
"integrity"
:
"sha512-
vkR40VwS2SYO98AIeFvzWWh+xyc2qi9s7OoXSFEGIP/rOJKzjnhykaZJNnHdoq4BL2gGxI5EZOU16z896EYnO
Q=="
,
"requires"
:
{
"acorn"
:
"^6.0.1"
,
"acorn-walk"
:
"^6.0.1"
...
...
@@ -1469,9 +1469,9 @@
"dev"
:
true
},
"async-limiter"
:
{
"version"
:
"1.0.
0
"
,
"resolved"
:
"https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.
0
.tgz"
,
"integrity"
:
"sha512-
jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg
=="
"version"
:
"1.0.
1
"
,
"resolved"
:
"https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.
1
.tgz"
,
"integrity"
:
"sha512-
csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ
=="
},
"async-settle"
:
{
"version"
:
"1.0.0"
,
...
...
@@ -1772,9 +1772,9 @@
}
},
"caniuse-lite"
:
{
"version"
:
"1.0.3000098
8
"
,
"resolved"
:
"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.3000098
8
.tgz"
,
"integrity"
:
"sha512-
lPj3T8poYrRc/bniW5SQPND3GRtSrQdUM/R4mCYTbZxyi3jQiggLvZH4+BYUuX0t4TXjU+vMM7KFDQg+rSzZUQ
=="
"version"
:
"1.0.3000098
9
"
,
"resolved"
:
"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.3000098
9
.tgz"
,
"integrity"
:
"sha512-
vrMcvSuMz16YY6GSVZ0dWDTJP8jqk3iFQ/Aq5iqblPwxSVVZI+zxDyTX0VPqtQsDnfdrBDcsmhgTEOh5R8Lbpw
=="
},
"caseless"
:
{
"version"
:
"0.12.0"
,
...
...
@@ -2208,9 +2208,9 @@
"integrity"
:
"sha512-ejINPfPSNdGFKEOAtnBtdkpr24c4d4jsei6Lg98mxf424ivoDP2956/5HDpIAtmHo85lqT4pruy+zEgvRUBqaQ=="
},
"d3-brush"
:
{
"version"
:
"1.
0.6
"
,
"resolved"
:
"https://registry.npmjs.org/d3-brush/-/d3-brush-1.
0.6
.tgz"
,
"integrity"
:
"sha512-
lGSiF5SoSqO5/mYGD5FAeGKKS62JdA1EV7HPrU2b5rTX4qEJJtpjaGLJngjnkewQy7UnGstnFd3168wpf5z76w
=="
,
"version"
:
"1.
1.1
"
,
"resolved"
:
"https://registry.npmjs.org/d3-brush/-/d3-brush-1.
1.1
.tgz"
,
"integrity"
:
"sha512-
nVIsduqChMBemov7NvTj3imYvDcihqf73RzoLULW0FrDmIlaWuP8Q9P+rPQB5SpqQjbrr4m0DoaHQewVcPhZsQ
=="
,
"requires"
:
{
"d3-dispatch"
:
"1"
,
"d3-drag"
:
"1"
,
...
...
@@ -2234,9 +2234,9 @@
"integrity"
:
"sha512-ii0/r5f4sjKNTfh84Di+DpztYwqKhEyUlKoPrzUFfeSkWxjW49xU2QzO9qrPrNkpdI0XJkfzvmTu8V2Zylln6A=="
},
"d3-color"
:
{
"version"
:
"1.
2.8
"
,
"resolved"
:
"https://registry.npmjs.org/d3-color/-/d3-color-1.
2.8
.tgz"
,
"integrity"
:
"sha512-
yeANXzP37PHk0DbSTMNPhnJD+Nn4G//O5E825bR6fAfHH43hobSBpgB9G9oWVl9+XgUaQ4yCnsX1H+l8DoaL9A
=="
"version"
:
"1.
3.0
"
,
"resolved"
:
"https://registry.npmjs.org/d3-color/-/d3-color-1.
3.0
.tgz"
,
"integrity"
:
"sha512-
NHODMBlj59xPAwl2BDiO2Mog6V+PrGRtBfWKqKRrs9MCqlSkIEb0Z/SfY7jW29ReHTDC/j+vwXhnZcXI3+3fbg
=="
},
"d3-contour"
:
{
"version"
:
"1.3.2"
,
...
...
@@ -2321,9 +2321,9 @@
}
},
"d3-path"
:
{
"version"
:
"1.0.
7
"
,
"resolved"
:
"https://registry.npmjs.org/d3-path/-/d3-path-1.0.
7
.tgz"
,
"integrity"
:
"sha512-
q0cW1RpvA5c5ma2rch62mX8AYaiLX0+bdaSM2wxSU9tXjU4DNvkx9qiUvjkuWCj3p22UO/hlPivujqMiR9PDzA
=="
"version"
:
"1.0.
8
"
,
"resolved"
:
"https://registry.npmjs.org/d3-path/-/d3-path-1.0.
8
.tgz"
,
"integrity"
:
"sha512-
J6EfUNwcMQ+aM5YPOB8ZbgAZu6wc82f/0WFxrxwV6Ll8wBwLaHLKCqQ5Imub02JriCVVdPjgI+6P3a4EWJCxAg
=="
},
"d3-polygon"
:
{
"version"
:
"1.0.5"
,
...
...
@@ -2652,9 +2652,9 @@
}
},
"documentation"
:
{
"version"
:
"12.1.
0
"
,
"resolved"
:
"https://registry.npmjs.org/documentation/-/documentation-12.1.
0
.tgz"
,
"integrity"
:
"sha512-
iAllbFhy1P5DvKAcrPw0h5R5rNMnaXAjExj3XKUzW/eBvQ6JhTbDELQnN8k3SrBvQAnm70+6NLsmxA+csp4f/
Q=="
,
"version"
:
"12.1.
1
"
,
"resolved"
:
"https://registry.npmjs.org/documentation/-/documentation-12.1.
1
.tgz"
,
"integrity"
:
"sha512-
OmvNJ6gddKy9K8lx+eA9w+dTxs//vetBnzhaGrTnXbKkE1qgAP0DXaEE8pva2ptSDw3Wa6oDm3C7fKgXdobjP
Q=="
,
"requires"
:
{
"@babel/core"
:
"^7.1.2"
,
"@babel/generator"
:
"^7.1.3"
,
...
...
@@ -2953,9 +2953,9 @@
}
},
"electron-to-chromium"
:
{
"version"
:
"1.3.2
09
"
,
"resolved"
:
"https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.2
09
.tgz"
,
"integrity"
:
"sha512-
KxRvLp5jUapyKIcMaecwgmUpJEsJKuHn0DJJPZjZh2valqYlzdmGvaE/nTAqwKqQwf0jIKv7Go4FYHu9wKWzO
g=="
"version"
:
"1.3.2
15
"
,
"resolved"
:
"https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.2
15
.tgz"
,
"integrity"
:
"sha512-
ZV3OnwF0FlIygwxAG2H92yt7WGjWBpawyFAFu8e9k7xJatY+BPowID0D0Bs3PMACYAJATEejw/I9cawO27ZvT
g=="
},
"emoji-regex"
:
{
"version"
:
"6.1.1"
,
...
...
@@ -7412,9 +7412,9 @@
"integrity"
:
"sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw=="
},
"terser"
:
{
"version"
:
"4.1.
2
"
,
"resolved"
:
"https://registry.npmjs.org/terser/-/terser-4.1.
2
.tgz"
,
"integrity"
:
"sha512-
jvNoEQSPXJdssFwqPSgWjsOrb+ELoE+ILpHPKXC83tIxOlh2U75F1KuB2luLD/3a6/7K3Vw5pDn+hvu0C4AzSw
=="
,
"version"
:
"4.1.
3
"
,
"resolved"
:
"https://registry.npmjs.org/terser/-/terser-4.1.
3
.tgz"
,
"integrity"
:
"sha512-
on13d+cnpn5bMouZu+J8tPYQecsdRJCJuxFJ+FVoPBoLJgk5bCBkp+Uen2hWyi0KIUm6eDarnlAlH+KgIx/PuQ
=="
,
"requires"
:
{
"commander"
:
"^2.20.0"
,
"source-map"
:
"~0.6.1"
,
...
...
@@ -7968,9 +7968,9 @@
"integrity"
:
"sha1-HCQ6ULWVwb5Up1S/7OhWO5/42BM="
},
"vditor"
:
{
"version"
:
"1.
6.11
"
,
"resolved"
:
"https://registry.npmjs.org/vditor/-/vditor-1.
6.11
.tgz"
,
"integrity"
:
"sha512-
hJpkyGR4xSyD8k/lM3mVofFLszTCv+3qVdvgQ0tpx3no3mOGFH876lF/t6+Xo/VYkjQrHII50AmbsqtykQe2X
A=="
,
"version"
:
"1.
7.0
"
,
"resolved"
:
"https://registry.npmjs.org/vditor/-/vditor-1.
7.0
.tgz"
,
"integrity"
:
"sha512-
KHYh2dtnNFGAnq/vRYZpuaAIqABdu6vPPaIt/JiE8ckBUqrf+5D9fCiqIg7DJ9jTnQEc7OP5rMqfEOMqjFE1i
A=="
,
"requires"
:
{
"echarts"
:
"^4.2.1"
,
"highlight.js"
:
"^9.15.8"
,
...
...
package.json
View file @
3bc97fde
...
...
@@ -36,6 +36,6 @@
"
gulp-uglify
"
:
"
^3.0.2
"
},
"dependencies"
:
{
"
vditor
"
:
"
^1.
6.12
"
"
vditor
"
:
"
^1.
7.0
"
}
}
src/main/webapp/js/admin/admin.min.js
View file @
3bc97fde
This diff is collapsed.
Click to expand it.
src/main/webapp/js/admin/article.js
View file @
3bc97fde
...
...
@@ -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 1.6.0.
4, Mar 4
, 2019
* @version 1.6.0.
5, Aug 6
, 2019
*/
admin
.
article
=
{
// 当发文章,取消发布,更新文章时设置为 false。不需在离开编辑器时进行提示。
...
...
@@ -417,14 +417,14 @@ admin.article = {
id
:
'
articleContent
'
,
height
:
500
,
fun
:
fun
,
preview
Show
:
true
,
preview
Mode
:
'
both
'
,
resize
:
false
,
})
admin
.
editors
.
abstractEditor
=
new
SoloEditor
({
id
:
'
abstract
'
,
height
:
200
,
preview
Show
:
false
,
preview
Mode
:
'
editor
'
,
resize
:
true
,
})
...
...
src/main/webapp/js/admin/editor.js
View file @
3bc97fde
...
...
@@ -19,7 +19,7 @@
* @fileoverview editor
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @version 1.3.0.
0, Jun 1
, 2019
* @version 1.3.0.
1, Aug 6
, 2019
*/
admin
.
editors
=
{}
...
...
@@ -49,7 +49,7 @@ $.extend(SoloEditor.prototype, {
},
preview
:
{
delay
:
500
,
show
:
this
.
conf
.
previewShow
,
mode
:
this
.
conf
.
previewMode
,
url
:
Label
.
servePath
+
'
/console/markdown/2html
'
,
parse
:
function
(
element
)
{
if
(
element
.
style
.
display
===
'
none
'
)
{
...
...
src/main/webapp/js/page.js
View file @
3bc97fde
...
...
@@ -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.4.0.
0, Jul 11
, 2019
* @version 2.4.0.
1, Aug 6
, 2019
*/
var
Page
=
function
(
tips
)
{
this
.
currentCommentId
=
''
...
...
@@ -128,6 +128,7 @@ $.extend(Page.prototype, {
'
link
'
,
'
table
'
,
'
|
'
,
'
both
'
,
'
preview
'
,
'
fullscreen
'
,
'
info
'
,
...
...
@@ -164,7 +165,7 @@ $.extend(Page.prototype, {
},
preview
:
{
delay
:
500
,
show
:
false
,
mode
:
'
editor
'
,
url
:
Label
.
servePath
+
'
/console/markdown/2html
'
,
hljs
:
{
enable
:
true
,
...
...
src/main/webapp/js/page.min.js
View file @
3bc97fde
This diff is collapsed.
Click to expand it.
src/main/webapp/scss/admin.css
View file @
3bc97fde
This diff is collapsed.
Click to expand it.
src/main/webapp/scss/base.css
View file @
3bc97fde
This diff is collapsed.
Click to expand it.
src/main/webapp/scss/start.css
View file @
3bc97fde
This diff is collapsed.
Click to expand it.
skins
@
609fd087
Subproject commit
1960541a7ede6ab4304a1030fb17f756ae90f227
Subproject commit
609fd087e2ec75a0e29c2e2fce8da230f44b5b13
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