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
c04e12f0
Unverified
Commit
c04e12f0
authored
Jun 21, 2018
by
Liang Ding
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.9.1-dev'
parents
2e3b0b34
9d19b353
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
40 deletions
+4
-40
src/main/java/org/b3log/solo/processor/console/AdminConsole.java
...n/java/org/b3log/solo/processor/console/AdminConsole.java
+1
-23
src/main/webapp/admin-label.ftl
src/main/webapp/admin-label.ftl
+0
-5
src/main/webapp/js/admin/editorCodeMirror.js
src/main/webapp/js/admin/editorCodeMirror.js
+1
-3
src/main/webapp/js/admin/latkeAdmin.js
src/main/webapp/js/admin/latkeAdmin.js
+1
-3
src/main/webapp/js/admin/latkeAdmin.min.js
src/main/webapp/js/admin/latkeAdmin.min.js
+1
-1
src/test/resources/admin-label.ftl
src/test/resources/admin-label.ftl
+0
-5
No files found.
src/main/java/org/b3log/solo/processor/console/AdminConsole.java
View file @
c04e12f0
...
@@ -74,7 +74,7 @@ import java.util.*;
...
@@ -74,7 +74,7 @@ import java.util.*;
* Admin console render processing.
* Admin console render processing.
*
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.7.0.
2, Apr 5
, 2018
* @version 1.7.0.
3, Jun 21
, 2018
* @since 0.4.1
* @since 0.4.1
*/
*/
@RequestProcessor
@RequestProcessor
...
@@ -171,28 +171,6 @@ public class AdminConsole {
...
@@ -171,28 +171,6 @@ public class AdminConsole {
}
}
try
{
try
{
final
JSONObject
qiniu
=
optionQueryService
.
getOptions
(
Option
.
CATEGORY_C_QINIU
);
dataModel
.
put
(
Option
.
ID_C_QINIU_DOMAIN
,
""
);
dataModel
.
put
(
"qiniuUploadToken"
,
""
);
if
(
null
!=
qiniu
&&
StringUtils
.
isNotBlank
(
qiniu
.
optString
(
Option
.
ID_C_QINIU_ACCESS_KEY
))
&&
StringUtils
.
isNotBlank
(
qiniu
.
optString
(
Option
.
ID_C_QINIU_SECRET_KEY
))
&&
StringUtils
.
isNotBlank
(
qiniu
.
optString
(
Option
.
ID_C_QINIU_BUCKET
))
&&
StringUtils
.
isNotBlank
(
qiniu
.
optString
(
Option
.
ID_C_QINIU_DOMAIN
)))
{
try
{
final
Auth
auth
=
Auth
.
create
(
qiniu
.
optString
(
Option
.
ID_C_QINIU_ACCESS_KEY
),
qiniu
.
optString
(
Option
.
ID_C_QINIU_SECRET_KEY
));
final
String
uploadToken
=
auth
.
uploadToken
(
qiniu
.
optString
(
Option
.
ID_C_QINIU_BUCKET
),
null
,
3600
*
6
,
null
);
dataModel
.
put
(
"qiniuUploadToken"
,
uploadToken
);
dataModel
.
put
(
Option
.
ID_C_QINIU_DOMAIN
,
qiniu
.
optString
(
Option
.
ID_C_QINIU_DOMAIN
));
}
catch
(
final
Exception
e
)
{
LOGGER
.
log
(
Level
.
ERROR
,
"Qiniu settings error"
,
e
);
}
}
final
JSONObject
preference
=
preferenceQueryService
.
getPreference
();
final
JSONObject
preference
=
preferenceQueryService
.
getPreference
();
dataModel
.
put
(
Option
.
ID_C_LOCALE_STRING
,
preference
.
getString
(
Option
.
ID_C_LOCALE_STRING
));
dataModel
.
put
(
Option
.
ID_C_LOCALE_STRING
,
preference
.
getString
(
Option
.
ID_C_LOCALE_STRING
));
...
...
src/main/webapp/admin-label.ftl
View file @
c04e12f0
...
@@ -24,11 +24,6 @@
...
@@ -24,11 +24,6 @@
"isLoggedIn": "true"
"isLoggedIn": "true"
};
};
var qiniu = {
"qiniuUploadToken": "${qiniuUploadToken}",
"qiniuDomain": "${qiniuDomain}"
};
var Label = {
var Label = {
"skinDirName": "${skinDirName}",
"skinDirName": "${skinDirName}",
"editorType": "${editorType}",
"editorType": "${editorType}",
...
...
src/main/webapp/js/admin/editorCodeMirror.js
View file @
c04e12f0
...
@@ -251,10 +251,8 @@ admin.editors.CodeMirror = {
...
@@ -251,10 +251,8 @@ admin.editors.CodeMirror = {
Util
.
initUploadFile
({
Util
.
initUploadFile
({
"
id
"
:
conf
.
id
+
'
fileUpload
'
,
"
id
"
:
conf
.
id
+
'
fileUpload
'
,
"
pasteZone
"
:
$
(
'
#
'
+
conf
.
id
).
next
().
next
(),
"
pasteZone
"
:
$
(
'
#
'
+
conf
.
id
).
next
().
next
(),
"
qiniuUploadToken
"
:
qiniu
.
qiniuUploadToken
,
"
editor
"
:
commentEditor
.
codemirror
,
"
editor
"
:
commentEditor
.
codemirror
,
"
uploadingLabel
"
:
''
,
"
uploadingLabel
"
:
''
"
qiniuDomain
"
:
'
//
'
+
qiniu
.
qiniuDomain
});
});
this
[
conf
.
id
]
=
commentEditor
.
codemirror
;
this
[
conf
.
id
]
=
commentEditor
.
codemirror
;
...
...
src/main/webapp/js/admin/latkeAdmin.js
View file @
c04e12f0
...
@@ -861,10 +861,8 @@ admin.editors.CodeMirror = {
...
@@ -861,10 +861,8 @@ admin.editors.CodeMirror = {
Util
.
initUploadFile
({
Util
.
initUploadFile
({
"
id
"
:
conf
.
id
+
'
fileUpload
'
,
"
id
"
:
conf
.
id
+
'
fileUpload
'
,
"
pasteZone
"
:
$
(
'
#
'
+
conf
.
id
).
next
().
next
(),
"
pasteZone
"
:
$
(
'
#
'
+
conf
.
id
).
next
().
next
(),
"
qiniuUploadToken
"
:
qiniu
.
qiniuUploadToken
,
"
editor
"
:
commentEditor
.
codemirror
,
"
editor
"
:
commentEditor
.
codemirror
,
"
uploadingLabel
"
:
''
,
"
uploadingLabel
"
:
''
"
qiniuDomain
"
:
'
//
'
+
qiniu
.
qiniuDomain
});
});
this
[
conf
.
id
]
=
commentEditor
.
codemirror
;
this
[
conf
.
id
]
=
commentEditor
.
codemirror
;
...
...
src/main/webapp/js/admin/latkeAdmin.min.js
View file @
c04e12f0
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/test/resources/admin-label.ftl
View file @
c04e12f0
...
@@ -23,11 +23,6 @@
...
@@ -23,11 +23,6 @@
"servePath": "${servePath}"
"servePath": "${servePath}"
};
};
var qiniu = {
"qiniuUploadToken": "${qiniuUploadToken}",
"qiniuDomain": "${qiniuDomain}"
};
var Label = {
var Label = {
"skinDirName": "${skinDirName}",
"skinDirName": "${skinDirName}",
"editorType": "${editorType}",
"editorType": "${editorType}",
...
...
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