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
34ce91f9
Unverified
Commit
34ce91f9
authored
Sep 21, 2018
by
Van
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/2.9.5-dev' into 2.9.5-dev
# Conflicts: # src/main/webapp/skins
parents
5e1a70cb
1bd6dfff
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
14 deletions
+16
-14
src/main/java/org/b3log/solo/processor/IndexProcessor.java
src/main/java/org/b3log/solo/processor/IndexProcessor.java
+2
-1
src/main/java/org/b3log/solo/processor/OAuthGitHubProcessor.java
...n/java/org/b3log/solo/processor/OAuthGitHubProcessor.java
+1
-1
src/main/resources/lang_en_US.properties
src/main/resources/lang_en_US.properties
+3
-1
src/main/resources/lang_zh_CN.properties
src/main/resources/lang_zh_CN.properties
+3
-1
src/main/webapp/init.ftl
src/main/webapp/init.ftl
+3
-4
src/main/webapp/login.ftl
src/main/webapp/login.ftl
+2
-3
src/main/webapp/register.ftl
src/main/webapp/register.ftl
+2
-3
No files found.
src/main/java/org/b3log/solo/processor/IndexProcessor.java
View file @
34ce91f9
...
...
@@ -20,6 +20,7 @@ package org.b3log.solo.processor;
import
freemarker.template.Template
;
import
org.apache.commons.lang.StringUtils
;
import
org.b3log.latke.Keys
;
import
org.b3log.latke.Latkes
;
import
org.b3log.latke.ioc.inject.Inject
;
import
org.b3log.latke.logging.Level
;
import
org.b3log.latke.logging.Logger
;
...
...
@@ -219,7 +220,7 @@ public class IndexProcessor {
final
Map
<
String
,
Object
>
dataModel
=
renderer
.
getDataModel
();
try
{
final
Map
<
String
,
String
>
langs
=
langPropsService
.
getAll
(
L
ocales
.
getLocale
(
request
));
final
Map
<
String
,
String
>
langs
=
langPropsService
.
getAll
(
L
atkes
.
getLocale
(
));
dataModel
.
putAll
(
langs
);
final
JSONObject
preference
=
preferenceQueryService
.
getPreference
();
filler
.
fillCommon
(
request
,
response
,
dataModel
,
preference
);
...
...
src/main/java/org/b3log/solo/processor/OAuthGitHubProcessor.java
View file @
34ce91f9
...
...
@@ -138,7 +138,7 @@ public class OAuthGitHubProcessor {
* @throws Exception exception
*/
@RequestProcessing
(
value
=
"/oauth/github"
,
method
=
HTTPRequestMethod
.
GET
)
public
void
showGitHubCallback
(
final
HttpServletRequest
request
,
final
HttpServletResponse
response
)
throws
Exception
{
public
synchronized
void
showGitHubCallback
(
final
HttpServletRequest
request
,
final
HttpServletResponse
response
)
throws
Exception
{
final
String
state
=
request
.
getParameter
(
"state"
);
String
referer
=
STATES
.
get
(
state
);
if
(
StringUtils
.
isBlank
(
referer
))
{
...
...
src/main/resources/lang_en_US.properties
View file @
34ce91f9
...
...
@@ -18,12 +18,14 @@
#
# Description: Solo language configurations(en_US).
# Version: 2.2
2
.0.0, Sep 21, 2018
# Version: 2.2
3
.0.0, Sep 21, 2018
# Author: Liang Ding
# Author: Liyuan Li
# Author: Dongxu Wang
#
useGitHubAccountLoginLabel
=
Use GitHub account
useLocalAccountLabel
=
Use local account
chageLabel
=
Change
useTumbnailLabel
=
Use Tumbnail
iconLabel
=
Icon
...
...
src/main/resources/lang_zh_CN.properties
View file @
34ce91f9
...
...
@@ -18,12 +18,14 @@
#
# Description: Solo default language configurations(zh_CN).
# Version: 2.2
2
.0.0, Sep 21, 2018
# Version: 2.2
3
.0.0, Sep 21, 2018
# Author: Liang Ding
# Author: Liyuan Li
# Author: Dongxu Wang
#
useGitHubAccountLoginLabel
=
\u
4F7F
\u7528
GitHub
\u
8D26
\u
53F7
\u
767B
\u
5F55
useLocalAccountLabel
=
\u
4F7F
\u7528\u
672C
\u5730\u
8D26
\u
53F7
chageLabel
=
\u
66F4
\u6362
useTumbnailLabel
=
\u
542F
\u7528\u
914D
\u
56FE
iconLabel
=
\u
56FE
\u6807
...
...
src/main/webapp/init.ftl
View file @
34ce91f9
...
...
@@ -32,9 +32,9 @@
<a class="github__icon" href="${servePath}/oauth/github/redirect">
<img src="${staticServePath}/images/github-init.gif"/>
</a>
<button class="hover" onclick="window.location.href = '${servePath}/oauth/github/redirect'">
使用 GitHub 账号初始化
</button>
<button class="hover" onclick="window.location.href = '${servePath}/oauth/github/redirect'">
${useGitHubAccountLoginLabel}
</button>
<br>
<span onclick="$('#github').hide();$('#user').show()">
使用本地账号
</span>
<span onclick="$('#github').hide();$('#user').show()">
${useLocalAccountLabel}
</span>
</div>
<div id="user" class="form none">
<label for="userEmail">
...
...
@@ -53,14 +53,13 @@
${userPasswordConfirm1Label}
</label>
<input type="password" id="userPasswordConfirm"/>
<button class="hover" onclick="window.location.href = '${servePath}/oauth/github/redirect'">使用 GitHub 账号初始化</button>
<button onclick='getUserInfo();'>${nextStepLabel}</button>
<span id="tip"></span>
</div>
<div id="sys" class="none">
${initIntroLabel}
<button onclick='initSys();' id="initButton">${initLabel}</button>
<button onclick='returnTo();'>${previousStepLabel}</button>
<button onclick='initSys();' id="initButton">${initLabel}</button>
<span id="tipInit"></span>
<span class="clear"></span>
</div>
...
...
src/main/webapp/login.ftl
View file @
34ce91f9
...
...
@@ -27,9 +27,9 @@ ${loginLabel}
<a class="github__icon" href="${servePath}/oauth/github/redirect">
<img src="${staticServePath}/images/github-init.gif"/>
</a>
<button class="hover" onclick="window.location.href = '${servePath}/oauth/github/redirect'">
使用 GitHub 账号登录
</button>
<button class="hover" onclick="window.location.href = '${servePath}/oauth/github/redirect'">
${useGitHubAccountLoginLabel}
</button>
<br>
<span onclick="$('#github').hide();$('.form').show()">
使用本地账号
</span>
<span onclick="$('#github').hide();$('.form').show()">
${useLocalAccountLabel}
</span>
</div>
<div class="form none">
...
...
@@ -41,7 +41,6 @@ ${loginLabel}
${userPasswordLabel} <a href="${servePath}/forgot">(${forgotLabel})</a>
</label>
<input type="password" id="userPassword" tabindex="2" />
<button class="hover" onclick="window.location.href = '${servePath}/oauth/github/redirect'">使用 GitHub 账号登录</button>
<button onclick='login();'>${loginLabel}</button>
<span id="tip">${resetMsg}</span>
</div>
...
...
src/main/webapp/register.ftl
View file @
34ce91f9
...
...
@@ -25,9 +25,9 @@
<a class="github__icon" href="${servePath}/oauth/github/redirect">
<img src="${staticServePath}/images/github-init.gif"/>
</a>
<button class="hover" onclick="window.location.href = '${servePath}/oauth/github/redirect'">
使用 GitHub 账号注册
</button>
<button class="hover" onclick="window.location.href = '${servePath}/oauth/github/redirect'">
${useGitHubAccountLoginLabel}
</button>
<br>
<span onclick="$('#github').hide();$('.form').show()">
使用本地账号
</span>
<span onclick="$('#github').hide();$('.form').show()">
${useLocalAccountLabel}
</span>
</div>
<div class="form none">
<label for="userEmail">
...
...
@@ -50,7 +50,6 @@
${userPasswordConfirm1Label}
</label>
<input type="password" id="userPasswordConfirm" />
<button class="hover" onclick="window.location.href = '${servePath}/oauth/github/redirect'">使用 GitHub 账号注册</button>
<button onclick='getUserInfo();'>${registerSoloUserLabel}</button>
<span id="tip" ></span>
</div>
...
...
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