Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Moecube Store
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 Store
Commits
2308cae2
Commit
2308cae2
authored
Mar 11, 2017
by
HJISTC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up items, working on the new page.
parent
a0a2bcd8
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
69 additions
and
17 deletions
+69
-17
public/USFlag.jpg
public/USFlag.jpg
+0
-0
public/cubbit-full-512.png
public/cubbit-full-512.png
+0
-0
public/flag-cn.png
public/flag-cn.png
+0
-0
public/flag-us.png
public/flag-us.png
+0
-0
public/front-page-background.jpg
public/front-page-background.jpg
+0
-0
public/logo.png
public/logo.png
+0
-0
public/moecube-product.png
public/moecube-product.png
+0
-0
src/About.js
src/About.js
+55
-1
src/App.css
src/App.css
+5
-5
src/App.js
src/App.js
+7
-7
src/Nav.js
src/Nav.js
+2
-4
No files found.
public/USFlag.jpg
deleted
100644 → 0
View file @
a0a2bcd8
29.7 KB
public/
Cubbit_Full_
512.png
→
public/
cubbit-full-
512.png
View file @
2308cae2
File moved
public/
CNFlag
.png
→
public/
flag-cn
.png
View file @
2308cae2
File moved
public/
USFlag
.png
→
public/
flag-us
.png
View file @
2308cae2
File moved
public/
FrontPageBackG
round.jpg
→
public/
front-page-backg
round.jpg
View file @
2308cae2
File moved
public/logo.png
View replaced file @
a0a2bcd8
View file @
2308cae2
49.2 KB
|
W:
|
H:
68.9 KB
|
W:
|
H:
2-up
Swipe
Onion skin
public/
MoeCubeP
roduct.png
→
public/
moecube-p
roduct.png
View file @
2308cae2
File moved
src/About.js
View file @
2308cae2
import
React
from
'
react
'
import
React
from
'
react
'
import
enquire
from
'
enquire.js
'
import
{
Layout
}
from
'
antd
'
import
Nav
from
'
./Nav
'
const
{
Content
,
Footer
,
Header
}
=
Layout
export
default
class
About
extends
React
.
Component
{
export
default
class
About
extends
React
.
Component
{
constructor
(
props
)
{
super
(
props
)
this
.
state
=
{
isMobile
:
false
,
stats
:
{
signups
:
null
,
online
:
null
},
latest
:
{
win32
:
{},
drawin
:
{}
},
platform
:
navigator
.
platform
.
match
(
/Mac/i
)
?
'
drawin
'
:
'
win32
'
}
}
async
componentDidMount
()
{
enquire
.
register
(
'
only screen and (max-width: 767px)
'
,
{
match
:
()
=>
{
this
.
setState
({
isMobile
:
true
})
},
unmatch
:
()
=>
{
this
.
setState
({
isMobile
:
false
})
}
})
const
initState
=
{
stats
:
{
signups
:
await
this
.
get_stats_signups
(),
online
:
await
this
.
get_stats_online
()
}
}
const
initLatest
=
{
latest
:
{
win32
:
await
this
.
get_latest_win32
(),
drawin
:
await
this
.
get_latest_drawin
()
}
}
this
.
setState
(
initState
)
this
.
setState
(
initLatest
)
}
render
()
{
render
()
{
const
{
latest
,
isMobile
,
stats
}
=
this
.
state
return
(
return
(
<
div
>
about
<
/div
>
<
Layout
>
{
!
isMobile
?
(
<
Header
style
=
{{
width
:
'
100%
'
}}
>
<
Nav
isMobile
=
{
isMobile
}
/
>
<
/Header>
)
:
(
<
Header
style
=
{{
width
:
'
100%
'
,
padding
:
0
}}
>
<
Nav
isMobile
=
{
isMobile
}
/
>
<
/Header
>
)}
<
/Layout
>
)
)
}
}
}
}
\ No newline at end of file
src/App.css
View file @
2308cae2
@import
'~antd/dist/antd.css'
;
@import
'~antd/dist/antd.css'
;
.
App-Logo
span
{
.
ant-menu
{
font-size
:
1rem
;
padding-top
:
4px
;
color
:
rgba
(
255
,
255
,
255
,
0.75
)
font-size
:
10pt
;
}
}
.App-Logo
{
.App-Logo
{
width
:
120px
;
width
:
120px
;
height
:
31px
;
height
:
31px
;
border-radius
:
6px
;
border-radius
:
6px
;
margin
:
16px
24
px
16px
0
;
margin
:
16px
40
px
16px
0
;
float
:
left
;
float
:
left
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
.App-Content1
{
.App-Content1
{
height
:
450px
;
height
:
450px
;
background
:
url(../public/
FrontPageBackG
round.jpg)
100%
/
cover
;
background
:
url(../public/
front-page-backg
round.jpg)
100%
/
cover
;
background-position
:
center
;
background-position
:
center
;
overflow
:
hidden
;
overflow
:
hidden
;
width
:
100%
;
width
:
100%
;
...
...
src/App.js
View file @
2308cae2
...
@@ -105,12 +105,12 @@ export default class App extends Component {
...
@@ -105,12 +105,12 @@ export default class App extends Component {
<
Menu
style
=
{{
transform
:
'
translateX(-16px)
'
}}
>
<
Menu
style
=
{{
transform
:
'
translateX(-16px)
'
}}
>
<
Menu
.
Item
key
=
"
0
"
>
<
Menu
.
Item
key
=
"
0
"
>
<
a
onClick
=
{()
=>
this
.
changeLanguage
(
'
en-US
'
)}
className
=
'
changelanguage
'
>
<
a
onClick
=
{()
=>
this
.
changeLanguage
(
'
en-US
'
)}
className
=
'
changelanguage
'
>
<
img
alt
=
"
img
"
src
=
{
require
(
'
../public/
USFlag
.png
'
)}
/>
<
img
alt
=
"
img
"
src
=
{
require
(
'
../public/
flag-us
.png
'
)}
/>
&
nbsp
;
English
<
/a
>
&
nbsp
;
English
<
/a
>
<
/Menu.Item
>
<
/Menu.Item
>
<
Menu
.
Item
key
=
"
1
"
>
<
Menu
.
Item
key
=
"
1
"
>
<
a
onClick
=
{()
=>
this
.
changeLanguage
(
'
zh-CN
'
)}
className
=
'
changelanguage
'
>
<
a
onClick
=
{()
=>
this
.
changeLanguage
(
'
zh-CN
'
)}
className
=
'
changelanguage
'
>
<
img
alt
=
"
img
"
src
=
{
require
(
'
../public/
CNFlag
.png
'
)}
/>
<
img
alt
=
"
img
"
src
=
{
require
(
'
../public/
flag-cn
.png
'
)}
/>
&
nbsp
;
中文
<
/a
>
&
nbsp
;
中文
<
/a
>
<
/Menu.Item
>
<
/Menu.Item
>
<
/Menu
>
<
/Menu
>
...
@@ -131,7 +131,7 @@ export default class App extends Component {
...
@@ -131,7 +131,7 @@ export default class App extends Component {
(
<
Row
type
=
"
flex
"
justify
=
"
space-around
"
align
=
"
middle
"
>
(
<
Row
type
=
"
flex
"
justify
=
"
space-around
"
align
=
"
middle
"
>
<
Col
span
=
{
24
}
style
=
{{
display
:
"
flex
"
,
flexDirection
:
'
column
'
,
alignItems
:
'
center
'
}}
>
<
Col
span
=
{
24
}
style
=
{{
display
:
"
flex
"
,
flexDirection
:
'
column
'
,
alignItems
:
'
center
'
}}
>
<
img
alt
=
"
img
"
src
=
{
require
(
'
../public/
Cubbit_Full_
512.png
'
)}
className
=
"
App-Poster
"
/>
<
img
alt
=
"
img
"
src
=
{
require
(
'
../public/
cubbit-full-
512.png
'
)}
className
=
"
App-Poster
"
/>
<
div
className
=
"
App-Poster-Content
"
>
<
div
className
=
"
App-Poster-Content
"
>
<
div
className
=
"
title
"
>
<
div
className
=
"
title
"
>
...
@@ -207,7 +207,7 @@ export default class App extends Component {
...
@@ -207,7 +207,7 @@ export default class App extends Component {
<
Timeline
.
Item
>
{
stats
.
online
||
'
loading..
'
}
<
FormattedMessage
id
=
"
IsPlaying
"
/>
<
/Timeline.Item
>
<
Timeline
.
Item
>
{
stats
.
online
||
'
loading..
'
}
<
FormattedMessage
id
=
"
IsPlaying
"
/>
<
/Timeline.Item
>
<
/Timeline
>
<
/Timeline
>
<
div
className
=
"
MoeCubeProduct
"
>
<
div
className
=
"
MoeCubeProduct
"
>
<
img
alt
=
"
MoeCubeProduct
"
width
=
"
100%
"
src
=
{
require
(
'
../public/
MoeCubeP
roduct.png
'
)}
/
>
<
img
alt
=
"
MoeCubeProduct
"
width
=
"
100%
"
src
=
{
require
(
'
../public/
moecube-p
roduct.png
'
)}
/
>
<
/div
>
<
/div
>
<
a
href
=
""
><
Button
id
=
"
Card3Button
"
type
=
"
primary
"
icon
=
"
star
"
><
FormattedMessage
id
=
{
"
CardAction3
"
}
/></
Button
><
/a
>
<
a
href
=
""
><
Button
id
=
"
Card3Button
"
type
=
"
primary
"
icon
=
"
star
"
><
FormattedMessage
id
=
{
"
CardAction3
"
}
/></
Button
><
/a
>
<
/Card
>
<
/Card
>
...
@@ -265,7 +265,7 @@ export default class App extends Component {
...
@@ -265,7 +265,7 @@ export default class App extends Component {
<
/Timeline
>
<
/Timeline
>
<
div
className
=
"
MoeCubeProduct
"
>
<
div
className
=
"
MoeCubeProduct
"
>
<
img
alt
=
"
MoeCubeProduct
"
width
=
"
100%
"
src
=
{
require
(
'
../public/
MoeCubeP
roduct.png
'
)}
/
>
<
img
alt
=
"
MoeCubeProduct
"
width
=
"
100%
"
src
=
{
require
(
'
../public/
moecube-p
roduct.png
'
)}
/
>
<
/div
>
<
/div
>
<
a
href
=
""
><
Button
id
=
"
Card3Button
"
type
=
"
primary
"
icon
=
"
heart
"
><
FormattedMessage
id
=
{
"
CardAction3
"
}
/></
Button
><
/a
>
<
a
href
=
""
><
Button
id
=
"
Card3Button
"
type
=
"
primary
"
icon
=
"
heart
"
><
FormattedMessage
id
=
{
"
CardAction3
"
}
/></
Button
><
/a
>
...
@@ -313,10 +313,10 @@ export default class App extends Component {
...
@@ -313,10 +313,10 @@ export default class App extends Component {
<
Dropdown
overlay
=
{
menu
}
trigger
=
{[
'
click
'
]}
>
<
Dropdown
overlay
=
{
menu
}
trigger
=
{[
'
click
'
]}
>
{
language
===
'
en-US
'
?
{
language
===
'
en-US
'
?
(
<
a
className
=
"
ant-dropdown-link changelanguage
"
href
=
"
#
"
>
(
<
a
className
=
"
ant-dropdown-link changelanguage
"
href
=
"
#
"
>
<
img
alt
=
"
img
"
src
=
{
require
(
'
../public/
USFlag
.png
'
)}
/
>
<
img
alt
=
"
img
"
src
=
{
require
(
'
../public/
flag-us
.png
'
)}
/
>
&
nbsp
;
English
<
Icon
type
=
"
down
"
className
=
"
flag
"
/>
&
nbsp
;
English
<
Icon
type
=
"
down
"
className
=
"
flag
"
/>
<
/a>
)
:
(
<a className="ant-dropdown-link changelanguage" href="#"
>
<
/a>
)
:
(
<a className="ant-dropdown-link changelanguage" href="#"
>
<
img
alt
=
"
img
"
src
=
{
require
(
'
../public/
CNFlag
.png
'
)}
/
>
<
img
alt
=
"
img
"
src
=
{
require
(
'
../public/
flag-cn
.png
'
)}
/
>
&
nbsp
;
中文
<
Icon
type
=
"
down
"
className
=
"
flag
"
/>
&
nbsp
;
中文
<
Icon
type
=
"
down
"
className
=
"
flag
"
/>
<
/a>
)
}
<
/a>
)
}
<
/Dropdown
>
<
/Dropdown
>
...
...
src/Nav.js
View file @
2308cae2
...
@@ -19,8 +19,7 @@ export default class Nav_Mobile extends React.Component{
...
@@ -19,8 +19,7 @@ export default class Nav_Mobile extends React.Component{
return
(
return
(
<
div
>
<
div
>
<
div
className
=
"
App-Logo
"
>
<
div
className
=
"
App-Logo
"
>
<
img
alt
=
"
img
"
src
=
{
require
(
"
../public/logo.png
"
)}
style
=
{{
width
:
'
45px
'
,
margin
:
'
10px
'
}}
/
>
<
img
alt
=
"
img
"
src
=
{
require
(
"
../public/logo.png
"
)}
style
=
{{
width
:
'
140px
'
,
margin
:
'
10px
'
}}
/>
<
span
>
MoeCube
<
/span>
<
/div
>
<
/div
>
<
Menu
<
Menu
theme
=
"
dark
"
theme
=
"
dark
"
...
@@ -44,8 +43,7 @@ export default class Nav_Mobile extends React.Component{
...
@@ -44,8 +43,7 @@ export default class Nav_Mobile extends React.Component{
<
div
>
<
div
>
<
div
style
=
{{
position
:
'
fixed
'
,
zIndex
:
10
,
width
:
'
100%
'
,
background
:
'
#404040
'
}}
>
<
div
style
=
{{
position
:
'
fixed
'
,
zIndex
:
10
,
width
:
'
100%
'
,
background
:
'
#404040
'
}}
>
<
div
className
=
"
App-Logo
"
>
<
div
className
=
"
App-Logo
"
>
<
img
alt
=
"
img
"
src
=
{
require
(
"
../public/logo.png
"
)}
style
=
{{
width
:
'
45px
'
,
margin
:
'
10px
'
}}
/
>
<
img
alt
=
"
img
"
src
=
{
require
(
"
../public/logo.png
"
)}
style
=
{{
width
:
'
140px
'
,
margin
:
'
10px
'
}}
/>
<
span
>
MoeCube
<
/span>
<
/div
>
<
/div
>
<
div
className
=
"
square
"
onClick
=
{
this
.
caidan
}
>
<
div
className
=
"
square
"
onClick
=
{
this
.
caidan
}
>
<
Icon
type
=
"
down-circle-o
"
/>
<
Icon
type
=
"
down-circle-o
"
/>
...
...
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