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
b4e7522e
Unverified
Commit
b4e7522e
authored
Feb 10, 2019
by
Van
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
缩略图
parent
70506356
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
src/main/webapp/css/default-admin.css
src/main/webapp/css/default-admin.css
+4
-3
src/main/webapp/js/admin/article.js
src/main/webapp/js/admin/article.js
+3
-3
src/main/webapp/skins
src/main/webapp/skins
+1
-1
No files found.
src/main/webapp/css/default-admin.css
View file @
b4e7522e
...
@@ -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 2.6.0.
1, Feb 8
, 2019
* @version 2.6.0.
2, Feb 10
, 2019
*/
*/
/* start resset */
/* start resset */
...
@@ -872,8 +872,9 @@ table.form th {
...
@@ -872,8 +872,9 @@ table.form th {
background-size
:
cover
;
background-size
:
cover
;
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
background-position
:
50%
;
background-position
:
50%
;
height
:
648px
;
height
:
432px
;
width
:
100%
;
width
:
768px
;
margin
:
0
auto
;
}
}
.article__thumbnail
button
{
.article__thumbnail
button
{
...
...
src/main/webapp/js/admin/article.js
View file @
b4e7522e
...
@@ -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.6.0.
0, Feb 6
, 2019
* @version 1.6.0.
1, Feb 10
, 2019
*/
*/
admin
.
article
=
{
admin
.
article
=
{
// 当发文章,取消发布,更新文章时设置为 false。不需在离开编辑器时进行提示。
// 当发文章,取消发布,更新文章时设置为 false。不需在离开编辑器时进行提示。
...
@@ -235,7 +235,7 @@ admin.article = {
...
@@ -235,7 +235,7 @@ admin.article = {
articleAbstract
=
admin
.
editors
.
abstractEditor
.
getContent
()
articleAbstract
=
admin
.
editors
.
abstractEditor
.
getContent
()
if
(
$
(
'
#articleThumbnail
'
).
prop
(
'
checked
'
))
{
if
(
$
(
'
#articleThumbnail
'
).
prop
(
'
checked
'
))
{
var
bgImage
=
$
(
'
.thumbnail__img
'
).
css
(
'
background-image
'
)
var
bgImage
=
$
(
'
.thumbnail__img
'
).
css
(
'
background-image
'
)
articleContent
=
'

+
articleContent
=
'

.
replace
(
'
w/768
'
,
'
w/960
'
).
replace
(
'
h/432
'
,
'
h/540
'
)
+
'
)
\n\n
'
+
articleContent
'
)
\n\n
'
+
articleContent
}
}
var
requestJSONObject
=
{
var
requestJSONObject
=
{
...
@@ -461,7 +461,7 @@ admin.article = {
...
@@ -461,7 +461,7 @@ admin.article = {
// thumbnail
// thumbnail
$
(
'
#articleThumbnailBtn
'
).
click
(
function
()
{
$
(
'
#articleThumbnailBtn
'
).
click
(
function
()
{
$
.
ajax
({
// Gets all tags
$
.
ajax
({
// Gets all tags
url
:
latkeConfig
.
servePath
+
'
/console/thumbs?n=1
'
,
url
:
latkeConfig
.
servePath
+
'
/console/thumbs?n=1
&w=768&h=432
'
,
type
:
'
GET
'
,
type
:
'
GET
'
,
cache
:
false
,
cache
:
false
,
success
:
function
(
result
,
textStatus
)
{
success
:
function
(
result
,
textStatus
)
{
...
...
skins
@
2248d258
Subproject commit
bb908f197414ccdff6c24ed282ccc018efd5cebc
Subproject commit
2248d25866e509e090ab43c4a653f9646419d376
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