This commit is contained in:
lesion
2019-06-08 14:25:33 +02:00
parent 96acf79123
commit 26ab25efe8
11 changed files with 12 additions and 116 deletions

2
.gitignore vendored
View File

@@ -1,6 +1,6 @@
# Created by .ignore support plugin (hsz.mobi) # Created by .ignore support plugin (hsz.mobi)
### Gancio production configuration ### Gancio production configuration
config.js /config.js
### Node template ### Node template
# Logs # Logs

View File

@@ -1,79 +0,0 @@
<template>
<div class="VueToNuxtLogo">
<div class="Triangle Triangle--two" />
<div class="Triangle Triangle--one" />
<div class="Triangle Triangle--three" />
<div class="Triangle Triangle--four" />
</div>
</template>
<style>
.VueToNuxtLogo {
display: inline-block;
animation: turn 2s linear forwards 1s;
transform: rotateX(180deg);
position: relative;
overflow: hidden;
height: 180px;
width: 245px;
}
.Triangle {
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
}
.Triangle--one {
border-left: 105px solid transparent;
border-right: 105px solid transparent;
border-bottom: 180px solid #41b883;
}
.Triangle--two {
top: 30px;
left: 35px;
animation: goright 0.5s linear forwards 3.5s;
border-left: 87.5px solid transparent;
border-right: 87.5px solid transparent;
border-bottom: 150px solid #3b8070;
}
.Triangle--three {
top: 60px;
left: 35px;
animation: goright 0.5s linear forwards 3.5s;
border-left: 70px solid transparent;
border-right: 70px solid transparent;
border-bottom: 120px solid #35495e;
}
.Triangle--four {
top: 120px;
left: 70px;
animation: godown 0.5s linear forwards 3s;
border-left: 35px solid transparent;
border-right: 35px solid transparent;
border-bottom: 60px solid #fff;
}
@keyframes turn {
100% {
transform: rotateX(0deg);
}
}
@keyframes godown {
100% {
top: 180px;
}
}
@keyframes goright {
100% {
left: 70px;
}
}
</style>

View File

@@ -1,7 +1,5 @@
# COMPONENTS # COMPONENTS
**This directory is not required, you can delete it if you don't want to use it.**
The components directory contains your Vue.js Components. The components directory contains your Vue.js Components.
_Nuxt.js doesn't supercharge these components._ _Nuxt.js doesn't supercharge these components._

View File

@@ -1,7 +1,5 @@
# LAYOUTS # LAYOUTS
**This directory is not required, you can delete it if you don't want to use it.**
This directory contains your Application Layouts. This directory contains your Application Layouts.
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/views#layouts). More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/views#layouts).

View File

@@ -1,8 +0,0 @@
# MIDDLEWARE
**This directory is not required, you can delete it if you don't want to use it.**
This directory contains your application middleware.
Middleware let you define custom functions that can be run before rendering either a page or a group of pages.
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/routing#middleware).

View File

@@ -50,7 +50,8 @@
"sqlite3": "^4.0.8", "sqlite3": "^4.0.8",
"v-calendar": "^1.0.0-beta.14", "v-calendar": "^1.0.0-beta.14",
"vue-awesome": "^3.5.3", "vue-awesome": "^3.5.3",
"vue-i18n": "^8.10.0" "vue-i18n": "^8.10.0",
"yargs": "^13.2.4"
}, },
"devDependencies": { "devDependencies": {
"@nuxtjs/eslint-config": "^0.0.1", "@nuxtjs/eslint-config": "^0.0.1",

View File

@@ -1,7 +1,7 @@
import Vue from 'vue' import Vue from 'vue'
import { Button, Select, Tag, Option, Table, FormItem, Card, Row, Col, Upload, Checkbox, import { Button, Select, Tag, Option, Table, FormItem, Card, Row, Col, Upload, Checkbox,
Form, Tabs, TabPane, Switch, Input, Loading, TimeSelect, Badge, ButtonGroup, Divider, Step, Steps, Form, Tabs, TabPane, Switch, Input, Loading, TimeSelect, Badge, ButtonGroup, Divider, Step, Steps,
TableColumn, ColorPicker, Pagination, Popover, Tooltip, Dialog, Calendar, Carousel, CarouselItem, TableColumn, ColorPicker, Pagination, Popover, Tooltip, Dialog,
Container, Footer , Timeline, TimelineItem, Menu, MenuItem } from 'element-ui' Container, Footer , Timeline, TimelineItem, Menu, MenuItem } from 'element-ui'
import localeEn from 'element-ui/lib/locale/lang/en' import localeEn from 'element-ui/lib/locale/lang/en'
import localeIt from 'element-ui/lib/locale/lang/it' import localeIt from 'element-ui/lib/locale/lang/it'
@@ -16,11 +16,8 @@ export default () => {
Vue.use(Checkbox) Vue.use(Checkbox)
Vue.use(Upload) Vue.use(Upload)
Vue.use(ButtonGroup) Vue.use(ButtonGroup)
Vue.use(Calendar)
Vue.use(Row) Vue.use(Row)
Vue.use(Col) Vue.use(Col)
Vue.use(Carousel)
Vue.use(CarouselItem)
Vue.use(Badge) Vue.use(Badge)
Vue.use(Dialog) Vue.use(Dialog)
Vue.use(Menu) Vue.use(Menu)

View File

@@ -1,9 +0,0 @@
// TOFIX: not needed in any case (eg. embed)
export default async ({ store, $axios }) => {
// const now = new Date()
// const events = await $axios.$get(`/event/${now.getMonth()}/${now.getFullYear()}`)
// store.commit('setEvents', events)
// const { tags, places } = await $axios.$get('/event/meta')
// store.commit('update', { tags, places })
}

View File

@@ -1,9 +0,0 @@
// // ~/plugins/vuex-persist.js
// import VuexPersistence from 'vuex-persist'
// export default ({ store }) => {
// const per = new VuexPersistence({
// reducer: state => ({ logged: state.logged, user: state.user, token: state.token })
// }).plugin(store)
// store.dispatch('login')
// }

7
server/config.js Normal file
View File

@@ -0,0 +1,7 @@
const argv = require('yargs').argv
const path = require('path')
const config_path = path.resolve(argv.config || './config.js')
module.exports = require(config_path)