Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
Ygopro Arena 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
Ygopro Arena Web
Commits
5336cb16
Commit
5336cb16
authored
Sep 11, 2017
by
ganjingcun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vote
parent
d5de2740
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
435 additions
and
11 deletions
+435
-11
package.json
package.json
+8
-8
src/api.js
src/api.js
+9
-0
src/components/Download.vue
src/components/Download.vue
+4
-3
src/components/Vote.vue
src/components/Vote.vue
+408
-0
src/router/index.js
src/router/index.js
+6
-0
No files found.
package.json
View file @
5336cb16
...
...
@@ -12,14 +12,14 @@
"
bootstrap
"
:
"
^3.3.7
"
,
"
datatables.net
"
:
"
^1.10.13
"
,
"
datatables.net-bs
"
:
"
^1.10.13
"
,
"
element-ui
"
:
"
^1.
2.8
"
,
"
element-ui
"
:
"
^1.
4.4
"
,
"
moment
"
:
"
^2.18.1
"
,
"
shelljs
"
:
"
^0.7.7
"
,
"
swiper
"
:
"
^3.4.2
"
,
"
vue
"
:
"
^2.
2
.2
"
,
"
vue-resource
"
:
"
^1.3.
1
"
,
"
vue
"
:
"
^2.
4
.2
"
,
"
vue-resource
"
:
"
^1.3.
4
"
,
"
vue-router
"
:
"
^2.2.0
"
,
"
vuex
"
:
"
^2.
2.1
"
"
vuex
"
:
"
^2.
4.0
"
},
"devDependencies"
:
{
"
autoprefixer
"
:
"
^6.7.2
"
,
...
...
@@ -41,17 +41,17 @@
"
function-bind
"
:
"
^1.1.0
"
,
"
html-webpack-plugin
"
:
"
^2.28.0
"
,
"
http-proxy-middleware
"
:
"
^0.17.3
"
,
"
webpack-bundle-analyzer
"
:
"
^2.2.1
"
,
"
semver
"
:
"
^5.3.0
"
,
"
opn
"
:
"
^4.0.2
"
,
"
optimize-css-assets-webpack-plugin
"
:
"
^1.3.0
"
,
"
ora
"
:
"
^1.1.0
"
,
"
rimraf
"
:
"
^2.6.0
"
,
"
semver
"
:
"
^5.3.0
"
,
"
url-loader
"
:
"
^0.5.7
"
,
"
vue-loader
"
:
"
^11.
1
.4
"
,
"
vue-loader
"
:
"
^11.
3
.4
"
,
"
vue-style-loader
"
:
"
^2.0.0
"
,
"
vue-template-compiler
"
:
"
^2.
2.4
"
,
"
vue-template-compiler
"
:
"
^2.
4.2
"
,
"
webpack
"
:
"
^2.2.1
"
,
"
webpack-bundle-analyzer
"
:
"
^2.2.1
"
,
"
webpack-dev-middleware
"
:
"
^1.10.0
"
,
"
webpack-hot-middleware
"
:
"
^2.16.1
"
,
"
webpack-merge
"
:
"
^2.6.1
"
...
...
src/api.js
View file @
5336cb16
...
...
@@ -72,4 +72,13 @@ export default class Api {
return
Vue
.
http
.
get
(
`
${
URL
}
/report`
,
{
'
params
'
:
opt
});
}
static
getVoteList
(
opt
)
{
return
Vue
.
http
.
get
(
`
${
URL
}
/votes`
,
{
'
params
'
:
opt
});
}
static
saveVote
(
opt
)
{
const
url
=
`
${
URL
}
/votes`
return
Vue
.
http
.
post
(
url
,
opt
,
{
'
emulateJSON
'
:
true
});
}
}
src/components/Download.vue
View file @
5336cb16
...
...
@@ -9,18 +9,19 @@
<div
@
click=
"gogo('windows')"
class=
"col-md-4 col-sm-6 item1"
>
<div
class=
"box"
><i
class=
"fa fa-windows"
></i>
<h3
class=
"name"
>
Windows
</h3>
<!--
<p
class=
"title"
>
asd
</p>
-->
<!--
<p
class=
"title"
>
</p>
-->
</div>
</div>
<div
@
click=
"gogo('mac')"
class=
"col-md-4 col-sm-6 item1"
>
<div
class=
"box"
><i
class=
"fa fa-apple"
></i>
<h3
class=
"name"
>
Mac
</h3>
<!--
<p
class=
"title"
>
asd
</p>
-->
<!--
<p
class=
"title"
>
</p>
-->
</div>
</div>
<div
@
click=
"gogo('android')"
class=
"col-md-4 col-sm-6 item1"
>
<div
class=
"box"
><i
class=
"fa fa-android"
></i>
<h3
class=
"name"
>
Android (YGOMobile)
</h3>
<h3
class=
"name"
>
Android
</h3>
<!--
<p
class=
"title"
>
(YGOMobile)
</p>
-->
</div>
</div>
...
...
src/components/Vote.vue
0 → 100644
View file @
5336cb16
This diff is collapsed.
Click to expand it.
src/router/index.js
View file @
5336cb16
...
...
@@ -10,6 +10,7 @@ import Cardinfo from '@/components/Cardinfo'
import
History
from
'
@/components/History
'
import
Deck
from
'
@/components/Deck
'
import
Report
from
'
@/components/Report
'
import
Vote
from
'
@/components/Vote
'
Vue
.
use
(
Router
)
...
...
@@ -65,5 +66,10 @@ export default new Router({
name
:
'
Report
'
,
component
:
Report
},
{
path
:
'
/vote
'
,
name
:
'
Vote
'
,
component
:
Vote
},
]
})
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