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
10470369
Commit
10470369
authored
Apr 05, 2017
by
2breakegg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitignore
parent
4356914e
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
111 additions
and
11466 deletions
+111
-11466
.gitignore
.gitignore
+1
-1
.idea/workspace.xml
.idea/workspace.xml
+70
-54
src/routes/Index.js
src/routes/Index.js
+40
-41
yarn-error.log
yarn-error.log
+0
-5658
yarn.lock
yarn.lock
+0
-5712
No files found.
.gitignore
View file @
10470369
...
...
@@ -8,6 +8,6 @@
# misc
.DS_Store
npm-debug
.log*
*
.log*
/utils/config.js
.idea/workspace.xml
View file @
10470369
This diff is collapsed.
Click to expand it.
src/routes/Index.js
View file @
10470369
import
React
from
'
react
'
;
import
{
connect
}
from
'
dva
'
;
import
styles
from
'
./Index.less
'
;
import
Particles
from
'
react-particles-js
'
import
DocumentTitle
from
'
react-document-title
'
import
React
from
'
react
'
;
import
DocumentTitle
from
'
react-document-title
'
;
import
Particles
from
'
react-particles-js
'
;
function
Index
({
children
,
messages
})
{
return
(
<
div
style
=
{{
height
:
"
100%
"
}}
>
<
div
style
=
{{
height
:
'
100%
'
}}
>
<
DocumentTitle
title
=
{
messages
[
'
title
'
]
||
'
Moe Cube
'
}
>
<
Particles
params
=
{{
...
...
@@ -15,28 +14,28 @@ function Index({ children, messages }) {
'
value
'
:
20
,
'
density
'
:
{
'
enable
'
:
true
,
'
value_area
'
:
1000
}
'
value_area
'
:
1000
,
}
,
},
'
color
'
:
{
'
value
'
:
'
#888
'
,
'
opacity
'
:
0.4
'
opacity
'
:
0.4
,
},
'
shape
'
:
{
'
type
'
:
'
circle
'
,
'
stroke
'
:
{
'
width
'
:
4
,
'
color
'
:
'
#888
'
,
'
opacity
'
:
0.4
'
opacity
'
:
0.4
,
},
'
polygon
'
:
{
'
nb_sides
'
:
5
'
nb_sides
'
:
5
,
},
'
image
'
:
{
'
src
'
:
'
img/github.svg
'
,
'
width
'
:
100
,
'
height
'
:
100
}
'
height
'
:
100
,
}
,
},
'
opacity
'
:
{
'
value
'
:
0.5
,
...
...
@@ -45,8 +44,8 @@ function Index({ children, messages }) {
'
enable
'
:
false
,
'
speed
'
:
1
,
'
opacity_min
'
:
0.1
,
'
sync
'
:
false
}
'
sync
'
:
false
,
}
,
},
'
size
'
:
{
'
value
'
:
3
,
...
...
@@ -55,15 +54,15 @@ function Index({ children, messages }) {
'
enable
'
:
false
,
'
speed
'
:
1
,
'
size_min
'
:
0.1
,
'
sync
'
:
false
}
'
sync
'
:
false
,
}
,
},
'
line_linked
'
:
{
'
enable
'
:
true
,
'
distance
'
:
150
,
'
color
'
:
'
#888
'
,
'
opacity
'
:
0.4
,
'
width
'
:
1
'
width
'
:
1
,
},
'
move
'
:
{
'
enable
'
:
true
,
...
...
@@ -76,9 +75,9 @@ function Index({ children, messages }) {
'
attract
'
:
{
'
enable
'
:
false
,
'
rotateX
'
:
600
,
'
rotateY
'
:
1200
}
}
'
rotateY
'
:
1200
,
}
,
}
,
},
'
interactivity
'
:
{
'
detect_on
'
:
'
canvas
'
,
...
...
@@ -86,58 +85,58 @@ function Index({ children, messages }) {
'
onhover
'
:
{
'
enable
'
:
true
,
'
mode
'
:
'
grab
'
,
'
nb
'
:
2
'
nb
'
:
2
,
},
'
onclick
'
:
{
'
enable
'
:
true
,
'
mode
'
:
'
push
'
'
mode
'
:
'
push
'
,
},
'
resize
'
:
true
'
resize
'
:
true
,
},
'
modes
'
:
{
'
grab
'
:
{
'
distance
'
:
400
,
'
line_linked
'
:
{
'
opacity
'
:
0.4
}
'
opacity
'
:
0.4
,
}
,
},
'
bubble
'
:
{
'
distance
'
:
400
,
'
size
'
:
20
,
'
duration
'
:
2
,
'
opacity
'
:
8
,
'
speed
'
:
1
'
speed
'
:
1
,
},
'
repulse
'
:
{
'
distance
'
:
200
,
'
duration
'
:
0.4
'
duration
'
:
0.4
,
},
'
push
'
:
{
'
particles_nb
'
:
4
'
particles_nb
'
:
4
,
},
'
remove
'
:
{
'
particles_nb
'
:
2
}
}
'
particles_nb
'
:
2
,
}
,
}
,
},
'
retina_detect
'
:
true
}}
'
retina_detect
'
:
true
,
}}
style
=
{{
position
:
"
fixed
"
}}
/
>
<
/DocumentTitle>
{
children
}
position
:
'
fixed
'
,
}}
/
>
<
/DocumentTitle
>
{
children
}
<
/div
>
);
}
function
mapStateToProps
(
state
)
{
const
{
common
:
{
messages
}
}
=
state
common
:
{
messages
},
}
=
state
;
return
{
messages
messages
,
};
}
...
...
yarn-error.log
deleted
100644 → 0
View file @
4356914e
This diff is collapsed.
Click to expand it.
yarn.lock
deleted
100644 → 0
View file @
4356914e
This diff is collapsed.
Click to expand it.
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