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
862f4dc4
Unverified
Commit
862f4dc4
authored
Mar 17, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
#12706
parent
de875966
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
22 additions
and
14 deletions
+22
-14
CHANGE_LOGS.html
CHANGE_LOGS.html
+1
-1
src/main/java/org/b3log/solo/processor/IndexProcessor.java
src/main/java/org/b3log/solo/processor/IndexProcessor.java
+8
-1
src/main/java/org/b3log/solo/processor/console/AdminConsole.java
...n/java/org/b3log/solo/processor/console/AdminConsole.java
+5
-2
src/main/java/org/b3log/solo/service/DataModelService.java
src/main/java/org/b3log/solo/service/DataModelService.java
+1
-2
src/main/webapp/CHANGE_LOGS.html
src/main/webapp/CHANGE_LOGS.html
+1
-1
src/main/webapp/WEB-INF/static-resources.xml
src/main/webapp/WEB-INF/static-resources.xml
+0
-1
src/main/webapp/admin/admin-index.ftl
src/main/webapp/admin/admin-index.ftl
+1
-1
src/main/webapp/favicon.png
src/main/webapp/favicon.png
+0
-0
src/main/webapp/macro-common-page.ftl
src/main/webapp/macro-common-page.ftl
+2
-2
src/main/webapp/search.ftl
src/main/webapp/search.ftl
+3
-3
No files found.
CHANGE_LOGS.html
View file @
862f4dc4
...
...
@@ -5,7 +5,7 @@
<meta
name=
"viewport"
content=
"initial-scale=1.0,user-scalable=no,maximum-scale=1"
media=
"(device-height: 568px)"
>
<title>
Solo Change Logs
</title>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<link
rel=
"apple-touch-icon"
href=
"
/favicon
.png"
>
<link
rel=
"apple-touch-icon"
href=
"
https://static.b3log.org/images/brand/solo-32
.png"
>
<style>
a
{
color
:
#4285f4
;
...
...
src/main/java/org/b3log/solo/processor/IndexProcessor.java
View file @
862f4dc4
...
...
@@ -176,8 +176,15 @@ public class IndexProcessor {
dataModel
.
put
(
Common
.
REFERER
,
referer
);
Keys
.
fillRuntime
(
dataModel
);
dataModelService
.
fillMinified
(
dataModel
);
Solos
.
addGoogleNoIndex
(
context
);
try
{
final
JSONObject
preference
=
optionQueryService
.
getPreference
();
dataModelService
.
fillCommon
(
context
,
dataModel
,
preference
);
}
catch
(
final
Exception
e
)
{
LOGGER
.
log
(
Level
.
ERROR
,
e
.
getMessage
(),
e
);
context
.
sendError
(
HttpServletResponse
.
SC_INTERNAL_SERVER_ERROR
);
}
}
/**
...
...
src/main/java/org/b3log/solo/processor/console/AdminConsole.java
View file @
862f4dc4
...
...
@@ -41,7 +41,10 @@ import org.b3log.latke.servlet.renderer.AbstractFreeMarkerRenderer;
import
org.b3log.latke.util.Execs
;
import
org.b3log.latke.util.Strings
;
import
org.b3log.solo.SoloServletListener
;
import
org.b3log.solo.model.*
;
import
org.b3log.solo.model.Common
;
import
org.b3log.solo.model.Option
;
import
org.b3log.solo.model.Skin
;
import
org.b3log.solo.model.UserExt
;
import
org.b3log.solo.service.DataModelService
;
import
org.b3log.solo.service.ExportService
;
import
org.b3log.solo.service.OptionQueryService
;
...
...
@@ -142,7 +145,6 @@ public class AdminConsole {
dataModel
.
put
(
Common
.
YEAR
,
String
.
valueOf
(
Calendar
.
getInstance
().
get
(
Calendar
.
YEAR
)));
dataModel
.
put
(
Option
.
ID_C_ARTICLE_LIST_DISPLAY_COUNT
,
preference
.
getInt
(
Option
.
ID_C_ARTICLE_LIST_DISPLAY_COUNT
));
dataModel
.
put
(
Option
.
ID_C_ARTICLE_LIST_PAGINATION_WINDOW_SIZE
,
preference
.
getInt
(
Option
.
ID_C_ARTICLE_LIST_PAGINATION_WINDOW_SIZE
));
dataModel
.
put
(
Option
.
ID_C_LOCALE_STRING
,
preference
.
getString
(
Option
.
ID_C_LOCALE_STRING
));
dataModel
.
put
(
Skin
.
SKIN_DIR_NAME
,
preference
.
getString
(
Skin
.
SKIN_DIR_NAME
));
Keys
.
fillRuntime
(
dataModel
);
dataModelService
.
fillMinified
(
dataModel
);
...
...
@@ -158,6 +160,7 @@ public class AdminConsole {
dataModel
.
put
(
Common
.
UPLOAD_URL
,
upload
.
optString
(
Common
.
UPLOAD_URL
));
dataModel
.
put
(
Common
.
UPLOAD_MSG
,
upload
.
optString
(
Common
.
UPLOAD_MSG
));
}
dataModelService
.
fillCommon
(
context
,
dataModel
,
preference
);
}
catch
(
final
Exception
e
)
{
LOGGER
.
log
(
Level
.
ERROR
,
"Admin index render failed"
,
e
);
}
...
...
src/main/java/org/b3log/solo/service/DataModelService.java
View file @
862f4dc4
...
...
@@ -545,8 +545,7 @@ public class DataModelService {
* @param preference the specified preference
* @throws ServiceException service exception
*/
public
void
fillCommon
(
final
RequestContext
context
,
final
Map
<
String
,
Object
>
dataModel
,
final
JSONObject
preference
)
throws
ServiceException
{
public
void
fillCommon
(
final
RequestContext
context
,
final
Map
<
String
,
Object
>
dataModel
,
final
JSONObject
preference
)
throws
ServiceException
{
fillSide
(
context
,
dataModel
,
preference
);
fillBlogHeader
(
context
,
dataModel
,
preference
);
fillBlogFooter
(
context
,
dataModel
,
preference
);
...
...
src/main/webapp/CHANGE_LOGS.html
View file @
862f4dc4
...
...
@@ -5,7 +5,7 @@
<meta
name=
"viewport"
content=
"initial-scale=1.0,user-scalable=no,maximum-scale=1"
media=
"(device-height: 568px)"
>
<title>
Solo Change Logs
</title>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<link
rel=
"apple-touch-icon"
href=
"
/favicon
.png"
>
<link
rel=
"apple-touch-icon"
href=
"
https://static.b3log.org/images/brand/solo-32
.png"
>
<style>
a
{
color
:
#4285f4
;
...
...
src/main/webapp/WEB-INF/static-resources.xml
View file @
862f4dc4
...
...
@@ -27,7 +27,6 @@
<static-files>
<!-- Uses the STANDARD Ant Path Pattern to configure these paths! -->
<include
path=
"/favicon.png"
/>
<include
path=
"/robots.txt"
/>
<include
path=
"/sw.js"
/>
<include
path=
"/manifest.json"
/>
...
...
src/main/webapp/admin/admin-index.ftl
View file @
862f4dc4
...
...
@@ -31,7 +31,7 @@
<title>
${adminConsoleLabel} - ${blogTitle}
</title>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"${staticServePath}/scss/admin.css?${staticResourceVersion}"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"https://cdn.jsdelivr.net/npm/highlight.js@9.15.6/styles/atom-one-light.min.css"
/>
<link
rel=
"icon"
type=
"image/png"
href=
"${
staticServePath}/favicon.png
"
/>
<link
rel=
"icon"
type=
"image/png"
href=
"${
faviconURL}
"
/>
<link
rel=
"manifest"
href=
"${servePath}/manifest.json"
>
</head>
<body
onhashchange=
"admin.setCurByHash();"
>
...
...
src/main/webapp/favicon.png
deleted
100644 → 0
View file @
de875966
5.22 KB
src/main/webapp/macro-common-page.ftl
View file @
862f4dc4
...
...
@@ -28,8 +28,8 @@
<title>
${title}
<
#if
blogTitle
??
>
- ${blogTitle}
</
#
if></title>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"${staticServePath}/scss/start.css?${staticResourceVersion}"
charset=
"utf-8"
/>
<link
rel=
"icon"
type=
"image/png"
href=
"${
staticServePath}/favicon.png
"
/>
<link
rel=
"apple-touch-icon"
href=
"${
staticServePath}/favicon.png
"
>
<link
rel=
"icon"
type=
"image/png"
href=
"${
faviconURL}
"
/>
<link
rel=
"apple-touch-icon"
href=
"${
faviconURL}
"
>
</head>
<body>
<div
class=
"wrap"
>
...
...
src/main/webapp/search.ftl
View file @
862f4dc4
...
...
@@ -26,12 +26,12 @@
<title>
${searchLabel} - ${blogTitle}${searchLabel}
</title>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"${staticServePath}/scss/start.css?${staticResourceVersion}"
charset=
"utf-8"
/>
<link
rel=
"icon"
type=
"image/png"
href=
"${
staticServePath}/favicon.png
"
/>
<link
rel=
"apple-touch-icon"
href=
"${
staticServePath}/favicon.png
"
>
<link
rel=
"icon"
type=
"image/png"
href=
"${
faviconURL}
"
/>
<link
rel=
"apple-touch-icon"
href=
"${
faviconURL}
"
>
</head>
<body
class=
"search__body"
>
<div
class=
"search__header fn-clear"
>
<a
href=
"${servePath}"
><img
width=
"
44"
border=
"0"
alt=
"Solo"
title=
"Solo"
src=
"${staticServePath}/favicon.png
"
/></a>
<a
href=
"${servePath}"
><img
width=
"
32"
border=
"0"
alt=
"Solo"
title=
"Solo"
src=
"${faviconURL}
"
/></a>
<div
class=
"search__input"
>
<input
value=
"${keyword}"
id=
"keyword"
type=
"text"
onkeypress=
"if(event.keyCode===13){document.getElementById('searchBtn').click()}"
>
<button
id=
"searchBtn"
onclick=
"window.location.href='${servePath}/search?keyword=' + document.getElementById('keyword').value"
>
搜索
</button>
...
...
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