From cf33e483f7e6f40e8cbbbc0118a7df70bdaf651f Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 29 Mar 2018 20:32:18 +0900 Subject: 整理した MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/app/dev/script.ts | 44 +++++++++++++++ src/client/app/dev/style.styl | 10 ++++ src/client/app/dev/views/app.vue | 39 +++++++++++++ src/client/app/dev/views/apps.vue | 37 ++++++++++++ src/client/app/dev/views/index.vue | 10 ++++ src/client/app/dev/views/new-app.vue | 105 +++++++++++++++++++++++++++++++++++ src/client/app/dev/views/ui.vue | 20 +++++++ 7 files changed, 265 insertions(+) create mode 100644 src/client/app/dev/script.ts create mode 100644 src/client/app/dev/style.styl create mode 100644 src/client/app/dev/views/app.vue create mode 100644 src/client/app/dev/views/apps.vue create mode 100644 src/client/app/dev/views/index.vue create mode 100644 src/client/app/dev/views/new-app.vue create mode 100644 src/client/app/dev/views/ui.vue (limited to 'src/client/app/dev') diff --git a/src/client/app/dev/script.ts b/src/client/app/dev/script.ts new file mode 100644 index 0000000000..c043813b40 --- /dev/null +++ b/src/client/app/dev/script.ts @@ -0,0 +1,44 @@ +/** + * Developer Center + */ + +import Vue from 'vue'; +import VueRouter from 'vue-router'; +import BootstrapVue from 'bootstrap-vue'; +import 'bootstrap/dist/css/bootstrap.css'; +import 'bootstrap-vue/dist/bootstrap-vue.css'; + +// Style +import './style.styl'; + +import init from '../init'; + +import Index from './views/index.vue'; +import Apps from './views/apps.vue'; +import AppNew from './views/new-app.vue'; +import App from './views/app.vue'; +import ui from './views/ui.vue'; + +Vue.use(BootstrapVue); + +Vue.component('mk-ui', ui); + +/** + * init + */ +init(launch => { + // Init router + const router = new VueRouter({ + mode: 'history', + base: '/dev/', + routes: [ + { path: '/', component: Index }, + { path: '/apps', component: Apps }, + { path: '/app/new', component: AppNew }, + { path: '/app/:id', component: App }, + ] + }); + + // Launch the app + launch(router); +}); diff --git a/src/client/app/dev/style.styl b/src/client/app/dev/style.styl new file mode 100644 index 0000000000..e635897b17 --- /dev/null +++ b/src/client/app/dev/style.styl @@ -0,0 +1,10 @@ +@import "../app" +@import "../reset" + +// Bootstrapのデザインを崩すので: +* + position initial + background-clip initial !important + +html + background-color #fff diff --git a/src/client/app/dev/views/app.vue b/src/client/app/dev/views/app.vue new file mode 100644 index 0000000000..a35b032b73 --- /dev/null +++ b/src/client/app/dev/views/app.vue @@ -0,0 +1,39 @@ + + + diff --git a/src/client/app/dev/views/apps.vue b/src/client/app/dev/views/apps.vue new file mode 100644 index 0000000000..7e0b107a30 --- /dev/null +++ b/src/client/app/dev/views/apps.vue @@ -0,0 +1,37 @@ + + + diff --git a/src/client/app/dev/views/index.vue b/src/client/app/dev/views/index.vue new file mode 100644 index 0000000000..3f572b3907 --- /dev/null +++ b/src/client/app/dev/views/index.vue @@ -0,0 +1,10 @@ + + + diff --git a/src/client/app/dev/views/new-app.vue b/src/client/app/dev/views/new-app.vue new file mode 100644 index 0000000000..e407ca00d7 --- /dev/null +++ b/src/client/app/dev/views/new-app.vue @@ -0,0 +1,105 @@ + + + diff --git a/src/client/app/dev/views/ui.vue b/src/client/app/dev/views/ui.vue new file mode 100644 index 0000000000..4a0fcee635 --- /dev/null +++ b/src/client/app/dev/views/ui.vue @@ -0,0 +1,20 @@ + + + -- cgit v1.2.3-freya