diff --git a/.gitignore b/.gitignore
index b9a6eb25..1448995f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,6 @@
# Created by .ignore support plugin (hsz.mobi)
### Gancio production configuration
-config.js
+/config.js
### Node template
# Logs
diff --git a/components/Logo.vue b/components/Logo.vue
deleted file mode 100644
index 6c728541..00000000
--- a/components/Logo.vue
+++ /dev/null
@@ -1,79 +0,0 @@
-
-
-
-
-
diff --git a/components/README.md b/components/README.md
index a079f106..92b3dd1f 100644
--- a/components/README.md
+++ b/components/README.md
@@ -1,7 +1,5 @@
# 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.
_Nuxt.js doesn't supercharge these components._
diff --git a/layouts/README.md b/layouts/README.md
index cad1ad57..a709d79f 100644
--- a/layouts/README.md
+++ b/layouts/README.md
@@ -1,7 +1,5 @@
# LAYOUTS
-**This directory is not required, you can delete it if you don't want to use it.**
-
This directory contains your Application Layouts.
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/views#layouts).
diff --git a/locales/en.js b/locales/en.js
index f01ae3b9..9cd985b3 100644
--- a/locales/en.js
+++ b/locales/en.js
@@ -1,3 +1,3 @@
{
"registration_email": "registration_email"
-}
\ No newline at end of file
+}
diff --git a/middleware/README.md b/middleware/README.md
deleted file mode 100644
index 01595ded..00000000
--- a/middleware/README.md
+++ /dev/null
@@ -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).
diff --git a/package.json b/package.json
index 42c985ff..006df99e 100644
--- a/package.json
+++ b/package.json
@@ -50,7 +50,8 @@
"sqlite3": "^4.0.8",
"v-calendar": "^1.0.0-beta.14",
"vue-awesome": "^3.5.3",
- "vue-i18n": "^8.10.0"
+ "vue-i18n": "^8.10.0",
+ "yargs": "^13.2.4"
},
"devDependencies": {
"@nuxtjs/eslint-config": "^0.0.1",
diff --git a/plugins/element-ui.js b/plugins/element-ui.js
index 7293e6fe..38af0849 100644
--- a/plugins/element-ui.js
+++ b/plugins/element-ui.js
@@ -1,7 +1,7 @@
import Vue from 'vue'
import { Button, Select, Tag, Option, Table, FormItem, Card, Row, Col, Upload, Checkbox,
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'
import localeEn from 'element-ui/lib/locale/lang/en'
import localeIt from 'element-ui/lib/locale/lang/it'
@@ -16,11 +16,8 @@ export default () => {
Vue.use(Checkbox)
Vue.use(Upload)
Vue.use(ButtonGroup)
- Vue.use(Calendar)
Vue.use(Row)
Vue.use(Col)
- Vue.use(Carousel)
- Vue.use(CarouselItem)
Vue.use(Badge)
Vue.use(Dialog)
Vue.use(Menu)
diff --git a/plugins/initialize.js b/plugins/initialize.js
deleted file mode 100644
index 821bfe83..00000000
--- a/plugins/initialize.js
+++ /dev/null
@@ -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 })
-}
diff --git a/plugins/vuex-persist.js b/plugins/vuex-persist.js
deleted file mode 100644
index a0cf9450..00000000
--- a/plugins/vuex-persist.js
+++ /dev/null
@@ -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')
-// }
diff --git a/server/config.js b/server/config.js
new file mode 100644
index 00000000..9d657f2a
--- /dev/null
+++ b/server/config.js
@@ -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)
+
+