Compare commits
No commits in common. "9fb82dcfaa3ce309eaca921971f407df0b3600d0" and "4ee00885fe015ce782a98b65c89e7b4295f08d30" have entirely different histories.
9fb82dcfaa
...
4ee00885fe
7 changed files with 40 additions and 114 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,2 @@
|
||||||
**/node_modules
|
**/node_modules
|
||||||
**/fftcg.db
|
**/fftcg.db
|
||||||
**/org.vue.*.json
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
"favorite": 0,
|
"favorite": 0,
|
||||||
"type": "vue",
|
"type": "vue",
|
||||||
"name": "frontend",
|
"name": "frontend",
|
||||||
"openDate": 1556789720710,
|
"openDate": 1556529929207,
|
||||||
"widgets": [
|
"widgets": [
|
||||||
{
|
{
|
||||||
"id": "5sGiztidd",
|
"id": "5sGiztidd",
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,37 @@
|
||||||
<template>
|
<template>
|
||||||
<v-app>
|
<v-app>
|
||||||
<router-view />
|
<v-toolbar app>
|
||||||
|
<v-toolbar-title class="headline text-uppercase">
|
||||||
|
<span>Vuetify</span>
|
||||||
|
<span class="font-weight-light">MATERIAL DESIGN</span>
|
||||||
|
</v-toolbar-title>
|
||||||
|
<v-spacer></v-spacer>
|
||||||
|
<v-btn flat :to="{ path: '/' }">Home</v-btn>
|
||||||
|
<v-btn flat :to="{ path: '/about' }">About</v-btn>
|
||||||
|
<v-btn flat :to="{ path: '/game' }">Game</v-btn>
|
||||||
|
<v-btn
|
||||||
|
flat
|
||||||
|
href="https://github.com/vuetifyjs/vuetify/releases/latest"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
<span class="mr-2">Latest Release</span>
|
||||||
|
<v-icon>open_in_new</v-icon>
|
||||||
|
</v-btn>
|
||||||
|
</v-toolbar>
|
||||||
|
|
||||||
|
<v-content>
|
||||||
|
<router-view />
|
||||||
|
</v-content>
|
||||||
</v-app>
|
</v-app>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'App'
|
name: 'App',
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -1,36 +0,0 @@
|
||||||
<template>
|
|
||||||
<v-app>
|
|
||||||
<v-toolbar app>
|
|
||||||
<v-toolbar-title class="headline text-uppercase">
|
|
||||||
<span>Vuetify</span>
|
|
||||||
<span class="font-weight-light">MATERIAL DESIGN</span>
|
|
||||||
</v-toolbar-title>
|
|
||||||
<v-spacer></v-spacer>
|
|
||||||
<v-btn flat :to="{ path: '/' }">Home</v-btn>
|
|
||||||
<v-btn flat :to="{ path: '/about' }">About</v-btn>
|
|
||||||
<v-btn
|
|
||||||
flat
|
|
||||||
href="https://github.com/vuetifyjs/vuetify/releases/latest"
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
<span class="mr-2">Latest Release</span>
|
|
||||||
<v-icon>open_in_new</v-icon>
|
|
||||||
</v-btn>
|
|
||||||
</v-toolbar>
|
|
||||||
|
|
||||||
<v-content>
|
|
||||||
<router-view />
|
|
||||||
</v-content>
|
|
||||||
</v-app>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
name: 'ExampleApp',
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
//
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
<template>
|
|
||||||
<v-dialog v-model="dialog" width="500">
|
|
||||||
<v-btn slot="activator" color="red lighten-2" dark>
|
|
||||||
Login
|
|
||||||
</v-btn>
|
|
||||||
|
|
||||||
<v-card>
|
|
||||||
<v-card-title class="headline grey lighten-2" primary-title>
|
|
||||||
Log In
|
|
||||||
</v-card-title>
|
|
||||||
|
|
||||||
<v-card-text>
|
|
||||||
Some form
|
|
||||||
</v-card-text>
|
|
||||||
|
|
||||||
<v-divider></v-divider>
|
|
||||||
|
|
||||||
<v-card-actions>
|
|
||||||
<v-spacer></v-spacer>
|
|
||||||
<v-btn color="primary" flat @click="dialog = false">
|
|
||||||
Login
|
|
||||||
</v-btn>
|
|
||||||
</v-card-actions>
|
|
||||||
</v-card>
|
|
||||||
</v-dialog>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
name: "LoginForm"
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="css" scoped>
|
|
||||||
</style>
|
|
||||||
|
|
@ -1,32 +1,21 @@
|
||||||
<template lang="html">
|
<template lang="html">
|
||||||
<div ref="game" />
|
<div ref="game"></div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'Game',
|
name: 'Game',
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$nextTick(function() {
|
this.$nextTick(function() {
|
||||||
try {
|
// framework
|
||||||
// framework
|
require('craftyjs/dist/crafty')
|
||||||
require('craftyjs/dist/crafty')
|
|
||||||
|
|
||||||
// initialize on ref="game"
|
// initialize on ref="game"
|
||||||
window.Crafty.init(this.$refs.game)
|
window.Crafty.init(this.$refs.game)
|
||||||
window.Crafty.stage.fullscreen = true
|
|
||||||
|
|
||||||
// load fftcg
|
// load fftcg
|
||||||
require('@/crafty/Game.coffee')
|
require('@/crafty/Game.coffee')
|
||||||
} catch (e) {
|
|
||||||
window.location.reload()
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
},
|
|
||||||
|
|
||||||
beforeDestroy() {
|
|
||||||
window.Crafty.stop(true)
|
|
||||||
delete window.Crafty
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -1,31 +1,14 @@
|
||||||
<template>
|
<template>
|
||||||
<v-container>
|
<HelloWorld />
|
||||||
<v-flex mb-4>
|
|
||||||
<h1 class="display-2 font-weight-bold mb-3">
|
|
||||||
Hello World!
|
|
||||||
</h1>
|
|
||||||
<p class="subheading font-weight-regular">
|
|
||||||
App under development, please don't submit any valuable data!
|
|
||||||
</p>
|
|
||||||
</v-flex>
|
|
||||||
|
|
||||||
<LoginForm />
|
|
||||||
|
|
||||||
</v-container>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import LoginForm from '@/components/forms/Login.vue'
|
// @ is an alias to /src
|
||||||
|
import HelloWorld from '@/components/HelloWorld.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Home',
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
dialog: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
components: {
|
components: {
|
||||||
LoginForm
|
HelloWorld
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Reference in a new issue