completely initial commit + paginagtion

This commit is contained in:
Dm1tr1y147 2019-09-14 01:06:57 +03:00
parent 9de617eea4
commit 49f2192fd9
15 changed files with 7879 additions and 78 deletions

View File

@ -1,6 +1,6 @@
# ctf-frontend # ctf-frontend
> UFML ctf cources frontend > A Vue.js project
## Build Setup ## Build Setup

View File

@ -1,7 +1,7 @@
{ {
"name": "ctf-frontend", "name": "ctf-frontend",
"version": "1.0.0", "version": "1.0.0",
"description": "UFML ctf cources frontend", "description": "A Vue.js project",
"author": "Dm1tr1y147 <me@dmitriy.icu>", "author": "Dm1tr1y147 <me@dmitriy.icu>",
"private": true, "private": true,
"scripts": { "scripts": {

View File

@ -1,23 +1,14 @@
<template> <template lang="pug">
<div id="app"> #app
<img src="./assets/logo.png"> router-view
<router-view/>
</div>
</template> </template>
<script> <script>
export default { export default {
name: 'app' name: 'app'
} }
</script> </script>
<style> <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> </style>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

View File

@ -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>

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>

View File

@ -8,8 +8,8 @@ Vue.config.productionTip = false
/* eslint-disable no-new */ /* eslint-disable no-new */
new Vue({ new Vue({
el: '#app', el: '#app',
router, router,
template: '<App/>', template: '<App/>',
components: { App } components: { App }
}) })

View File

@ -1,15 +1,47 @@
import Vue from 'vue' import Vue from 'vue'
import Router from 'vue-router' 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) Vue.use(Router)
export default new Router({ export default new Router({
routes: [ mode: 'history',
{ routes: [
path: '/', {
name: 'HelloWorld', path: '/',
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

File diff suppressed because it is too large Load Diff