completely initial commit + paginagtion
This commit is contained in:
parent
9de617eea4
commit
49f2192fd9
@ -1,6 +1,6 @@
|
||||
# ctf-frontend
|
||||
|
||||
> UFML ctf cources frontend
|
||||
> A Vue.js project
|
||||
|
||||
## Build Setup
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ctf-frontend",
|
||||
"version": "1.0.0",
|
||||
"description": "UFML ctf cources frontend",
|
||||
"description": "A Vue.js project",
|
||||
"author": "Dm1tr1y147 <me@dmitriy.icu>",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
@ -1,8 +1,6 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<img src="./assets/logo.png">
|
||||
<router-view/>
|
||||
</div>
|
||||
<template lang="pug">
|
||||
#app
|
||||
router-view
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@ -12,12 +10,5 @@ export default {
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#app {
|
||||
font-family: 'Avenir', Helvetica, Arial, sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
text-align: center;
|
||||
color: #2c3e50;
|
||||
margin-top: 60px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 6.7 KiB |
@ -1,50 +0,0 @@
|
||||
<template>
|
||||
<div class="hello">
|
||||
<h1>{{ msg }}</h1>
|
||||
<h2>Essential Links</h2>
|
||||
<ul>
|
||||
<li><a href="https://vuejs.org" target="_blank">Core Docs</a></li>
|
||||
<li><a href="https://forum.vuejs.org" target="_blank">Forum</a></li>
|
||||
<li><a href="https://chat.vuejs.org" target="_blank">Community Chat</a></li>
|
||||
<li><a href="https://twitter.com/vuejs" target="_blank">Twitter</a></li>
|
||||
<br>
|
||||
<li><a href="http://vuejs-templates.github.io/webpack/" target="_blank">Docs for This Template</a></li>
|
||||
</ul>
|
||||
<h2>Ecosystem</h2>
|
||||
<ul>
|
||||
<li><a href="http://router.vuejs.org/" target="_blank">vue-router</a></li>
|
||||
<li><a href="http://vuex.vuejs.org/" target="_blank">vuex</a></li>
|
||||
<li><a href="http://vue-loader.vuejs.org/" target="_blank">vue-loader</a></li>
|
||||
<li><a href="https://github.com/vuejs/awesome-vue" target="_blank">awesome-vue</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'HelloWorld',
|
||||
data () {
|
||||
return {
|
||||
msg: 'Welcome to Your Vue.js App'
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style scoped>
|
||||
h1, h2 {
|
||||
font-weight: normal;
|
||||
}
|
||||
ul {
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
}
|
||||
li {
|
||||
display: inline-block;
|
||||
margin: 0 10px;
|
||||
}
|
||||
a {
|
||||
color: #42b983;
|
||||
}
|
||||
</style>
|
19
ctf-frontend/src/components/index.vue
Normal file
19
ctf-frontend/src/components/index.vue
Normal file
@ -0,0 +1,19 @@
|
||||
<template>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'index',
|
||||
data () {
|
||||
return {
|
||||
msg: 'index'
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style scoped>
|
||||
|
||||
</style>
|
19
ctf-frontend/src/components/login.vue
Normal file
19
ctf-frontend/src/components/login.vue
Normal file
@ -0,0 +1,19 @@
|
||||
<template>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'index',
|
||||
data () {
|
||||
return {
|
||||
msg: 'index'
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style scoped>
|
||||
|
||||
</style>
|
19
ctf-frontend/src/components/register.vue
Normal file
19
ctf-frontend/src/components/register.vue
Normal file
@ -0,0 +1,19 @@
|
||||
<template>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'index',
|
||||
data () {
|
||||
return {
|
||||
msg: 'index'
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style scoped>
|
||||
|
||||
</style>
|
19
ctf-frontend/src/components/scoreboard.vue
Normal file
19
ctf-frontend/src/components/scoreboard.vue
Normal file
@ -0,0 +1,19 @@
|
||||
<template>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'index',
|
||||
data () {
|
||||
return {
|
||||
msg: 'index'
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style scoped>
|
||||
|
||||
</style>
|
19
ctf-frontend/src/components/task.vue
Normal file
19
ctf-frontend/src/components/task.vue
Normal file
@ -0,0 +1,19 @@
|
||||
<template>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'index',
|
||||
data () {
|
||||
return {
|
||||
msg: 'index'
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style scoped>
|
||||
|
||||
</style>
|
19
ctf-frontend/src/components/taskList.vue
Normal file
19
ctf-frontend/src/components/taskList.vue
Normal file
@ -0,0 +1,19 @@
|
||||
<template>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'index',
|
||||
data () {
|
||||
return {
|
||||
msg: 'index'
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style scoped>
|
||||
|
||||
</style>
|
19
ctf-frontend/src/components/template.vue
Normal file
19
ctf-frontend/src/components/template.vue
Normal file
@ -0,0 +1,19 @@
|
||||
<template>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'template',
|
||||
data () {
|
||||
return {
|
||||
msg: 'template'
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style scoped>
|
||||
|
||||
</style>
|
@ -1,15 +1,47 @@
|
||||
import Vue from 'vue'
|
||||
import Router from 'vue-router'
|
||||
import HelloWorld from '@/components/HelloWorld'
|
||||
import index from '@/components/index'
|
||||
import login from '@/components/login'
|
||||
import register from '@/components/register'
|
||||
import scoreboard from '@/components/scoreboard'
|
||||
import taskList from '@/components/taskList'
|
||||
import task from '@/components/task'
|
||||
|
||||
|
||||
Vue.use(Router)
|
||||
|
||||
export default new Router({
|
||||
mode: 'history',
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
name: 'HelloWorld',
|
||||
component: HelloWorld
|
||||
name: 'index',
|
||||
component: index
|
||||
},
|
||||
{
|
||||
path: '/login',
|
||||
name: 'login',
|
||||
component: login
|
||||
},
|
||||
{
|
||||
path: '/register',
|
||||
name: 'register',
|
||||
component: register
|
||||
},
|
||||
{
|
||||
path: '/scoreboard',
|
||||
name: 'scoreboard',
|
||||
component: scoreboard
|
||||
},
|
||||
{
|
||||
path: '/taskList',
|
||||
name: 'taskList',
|
||||
component: taskList
|
||||
},
|
||||
{
|
||||
path: '/task',
|
||||
name: 'task',
|
||||
component: task
|
||||
}
|
||||
]
|
||||
})
|
||||
|
7695
ctf-frontend/yarn.lock
Normal file
7695
ctf-frontend/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user