Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Moecube Accounts Web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Moecube Accounts Web
Commits
a27d9604
Commit
a27d9604
authored
Apr 06, 2017
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
# Conflicts: # src/models/auth.js # src/routes/Index.js
parents
861e9909
bcd4546f
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
223 additions
and
228 deletions
+223
-228
.idea/workspace.xml
.idea/workspace.xml
+215
-215
src/models/auth.js
src/models/auth.js
+1
-1
src/routes/Activate.js
src/routes/Activate.js
+0
-1
src/routes/Index.js
src/routes/Index.js
+7
-11
No files found.
.idea/workspace.xml
View file @
a27d9604
This diff is collapsed.
Click to expand it.
src/models/auth.js
View file @
a27d9604
...
...
@@ -24,7 +24,7 @@ export default {
signOut
(
state
)
{
console
.
log
(
'
sign out
'
);
localStorage
.
removeItem
(
'
token
'
);
loca
lStorage
.
removeItem
(
'
user
'
)
;
loca
tion
.
href
=
'
/
'
;
return
state
;
},
change
(
state
,
action
)
{
...
...
src/routes/Activate.js
View file @
a27d9604
...
...
@@ -29,5 +29,4 @@ function mapStateToProps(state) {
loading
,
};
}
export
default
connect
(
mapStateToProps
)(
Active
);
src/routes/Index.js
View file @
a27d9604
...
...
@@ -124,12 +124,12 @@ const particleConfig = {
function
Index
({
children
,
messages
,
dispatch
})
{
return
(
<
div
style
=
{{
display
:
'
flex
'
,
flexDirection
:
'
column
'
,
minHeight
:
'
100%
'
}}
>
<
DocumentTitle
title
=
{
messages
.
title
||
'
Moe Cube
'
}
/
>
<
div
style
=
{{
height
:
'
100%
'
}}
>
<
DocumentTitle
title
=
{
messages
.
title
||
'
Moe Cube
'
}
/
>
<
Header
style
=
{{
display
:
'
flex
'
,
alignItems
:
'
center
'
}}
>
<
Link
to
=
"
/
"
style
=
{{
marginTop
:
'
20px
'
}}
>
<
img
src
=
{
logo
}
style
=
{{
width
:
'
140px
'
,
height
:
'
44px
'
}}
alt
=
"
logo
"
/>
<
img
src
=
{
logo
}
style
=
{{
width
:
'
140px
'
,
height
:
'
44px
'
}}
/
>
<
/Link
>
<
Menu
...
...
@@ -151,15 +151,11 @@ function Index({ children, messages, dispatch }) {
defaultSelectedKeys
=
{[
'
1
'
]}
style
=
{{
lineHeight
:
'
64px
'
,
position
:
'
absolute
'
,
right
:
'
50px
'
}}
>
{
localStorage
.
getItem
(
'
user
'
)
?
(
<
Menu
.
Item
key
=
"
1
"
>
<
div
onClick
=
{()
=>
{
dispatch
({
type
:
'
auth/signOut
'
});
}}
>
{
localStorage
.
getItem
(
'
token
'
)
?
(
<
Menu
.
Item
key
=
"
1
"
>
<
div
onClick
=
{()
=>
{
dispatch
({
type
:
'
auth/signOut
'
})
}}
>
<
Format
id
=
"
sign-out
"
/>
<
/div
>
<
/Menu.Item>
)
:
(
<div/
>
)
<
/Menu.Item>
)
:
(
''
)
}
<
/Menu
>
<
/Header
>
...
...
@@ -172,7 +168,7 @@ function Index({ children, messages, dispatch }) {
/
>
{
children
}
<
Footer
style
=
{{
position
:
'
absolute
'
,
width
:
'
100%
'
}}
>
<
Footer
style
=
{{
position
:
'
absolute
'
,
width
:
'
100%
'
}}
>
<
div
>
©
MoeCube
2017
all
right
reserved
.
<
/div
>
<
/Footer
>
<
/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