summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2019-07-04 20:26:12 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-07-04 20:26:12 +0900
commit40276d7f1a20184a5390575697ef5660eaa34f07 (patch)
tree06e32273fbf99d250371e4a995b44e0a707c3e2e /src
parentUpdate CHANGELOG.md (diff)
downloadsharkey-40276d7f1a20184a5390575697ef5660eaa34f07.tar.gz
sharkey-40276d7f1a20184a5390575697ef5660eaa34f07.tar.bz2
sharkey-40276d7f1a20184a5390575697ef5660eaa34f07.zip
テストページ廃止
Diffstat (limited to 'src')
-rw-r--r--src/client/app/boot.js1
-rw-r--r--src/client/app/test/script.ts25
-rw-r--r--src/client/app/test/style.styl6
-rw-r--r--src/client/app/test/views/index.vue82
4 files changed, 0 insertions, 114 deletions
diff --git a/src/client/app/boot.js b/src/client/app/boot.js
index 9af58076e7..6cb1488e40 100644
--- a/src/client/app/boot.js
+++ b/src/client/app/boot.js
@@ -41,7 +41,6 @@
if (`${url.pathname}/`.startsWith('/dev/')) app = 'dev';
if (`${url.pathname}/`.startsWith('/auth/')) app = 'auth';
if (`${url.pathname}/`.startsWith('/admin/')) app = 'admin';
- if (`${url.pathname}/`.startsWith('/test/')) app = 'test';
//#endregion
// Script version
diff --git a/src/client/app/test/script.ts b/src/client/app/test/script.ts
deleted file mode 100644
index 44fe224cbc..0000000000
--- a/src/client/app/test/script.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import VueRouter from 'vue-router';
-
-// Style
-import './style.styl';
-
-import init from '../init';
-import Index from './views/index.vue';
-import NotFound from '../common/views/pages/not-found.vue';
-
-init(launch => {
- document.title = 'Misskey';
-
- // Init router
- const router = new VueRouter({
- mode: 'history',
- base: '/test/',
- routes: [
- { path: '/', component: Index },
- { path: '*', component: NotFound }
- ]
- });
-
- // Launch the app
- launch(router);
-});
diff --git a/src/client/app/test/style.styl b/src/client/app/test/style.styl
deleted file mode 100644
index ae1a28226a..0000000000
--- a/src/client/app/test/style.styl
+++ /dev/null
@@ -1,6 +0,0 @@
-@import "../app"
-@import "../reset"
-
-html
- height 100%
- background var(--bg)
diff --git a/src/client/app/test/views/index.vue b/src/client/app/test/views/index.vue
deleted file mode 100644
index e0725d42a7..0000000000
--- a/src/client/app/test/views/index.vue
+++ /dev/null
@@ -1,82 +0,0 @@
-<template>
-<main>
- <ui-card>
- <template #title>MFM Playground</template>
- <section class="fit-top">
- <ui-textarea v-model="mfm">
- <span>MFM</span>
- </ui-textarea>
- </section>
- <section>
- <header>Preview</header>
- <mfm :text="mfm" :i="$store.state.i"/>
- </section>
- <section>
- <header style="margin-bottom:0;">AST</header>
- <ui-textarea v-model="mfmAst" readonly tall style="margin-top:16px;"></ui-textarea>
- </section>
- </ui-card>
-
- <ui-card>
- <template #title>Dialog Generator</template>
- <section class="fit-top">
- <ui-select v-model="dialogType" placeholder="">
- <option value="info">Information</option>
- <option value="success">Success</option>
- <option value="warning">Warning</option>
- <option value="error">Error</option>
- </ui-select>
- <ui-input v-model="dialogTitle">
- <span>Title</span>
- </ui-input>
- <ui-input v-model="dialogText">
- <span>Text</span>
- </ui-input>
- <ui-switch v-model="dialogShowCancelButton">With cancel button</ui-switch>
- <ui-button @click="showDialog">Show</ui-button>
- </section>
- </ui-card>
-</main>
-</template>
-
-<script lang="ts">
-import Vue from 'vue';
-import { parse } from '../../../../mfm/parse';
-import * as JSON5 from 'json5';
-
-export default Vue.extend({
- data() {
- return {
- mfm: '',
- dialogType: 'success',
- dialogTitle: '',
- dialogText: 'Hello World!',
- dialogShowCancelButton: false
- };
- },
-
- computed: {
- mfmAst(): any {
- return JSON5.stringify(parse(this.mfm), null, 2);
- }
- },
-
- methods: {
- showDialog() {
- this.$root.dialog({
- type: this.dialogType,
- title: this.dialogTitle,
- text: this.dialogText,
- showCancelButton: this.dialogShowCancelButton
- });
- }
- }
-});
-</script>
-
-<style lang="stylus" scoped>
-main
- max-width 700px
- margin 0 auto
-
-</style>