summaryrefslogtreecommitdiff
path: root/packages/client/src/components/taskmanager.api-window.vue
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-01-07 15:05:45 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-01-07 15:05:45 +0900
commit82854236f3006a3b01dc5e90925e92db25ea0a65 (patch)
treeaa3c6573376e5db6c508913c6d31005993515ae7 /packages/client/src/components/taskmanager.api-window.vue
parentrefactor(client): use composition api (diff)
downloadsharkey-82854236f3006a3b01dc5e90925e92db25ea0a65.tar.gz
sharkey-82854236f3006a3b01dc5e90925e92db25ea0a65.tar.bz2
sharkey-82854236f3006a3b01dc5e90925e92db25ea0a65.zip
clean up
Diffstat (limited to 'packages/client/src/components/taskmanager.api-window.vue')
-rw-r--r--packages/client/src/components/taskmanager.api-window.vue72
1 files changed, 0 insertions, 72 deletions
diff --git a/packages/client/src/components/taskmanager.api-window.vue b/packages/client/src/components/taskmanager.api-window.vue
deleted file mode 100644
index 6ec4da3a59..0000000000
--- a/packages/client/src/components/taskmanager.api-window.vue
+++ /dev/null
@@ -1,72 +0,0 @@
-<template>
-<XWindow ref="window"
- :initial-width="370"
- :initial-height="450"
- :can-resize="true"
- @close="$refs.window.close()"
- @closed="$emit('closed')"
->
- <template #header>Req Viewer</template>
-
- <div class="rlkneywz">
- <MkTab v-model="tab" style="border-bottom: solid 0.5px var(--divider);">
- <option value="req">Request</option>
- <option value="res">Response</option>
- </MkTab>
-
- <code v-if="tab === 'req'" class="_monospace">{{ reqStr }}</code>
- <code v-if="tab === 'res'" class="_monospace">{{ resStr }}</code>
- </div>
-</XWindow>
-</template>
-
-<script lang="ts">
-import { defineComponent } from 'vue';
-import * as JSON5 from 'json5';
-import XWindow from '@/components/ui/window.vue';
-import MkTab from '@/components/tab.vue';
-
-export default defineComponent({
- components: {
- XWindow,
- MkTab,
- },
-
- props: {
- req: {
- required: true,
- }
- },
-
- emits: ['closed'],
-
- data() {
- return {
- tab: 'req',
- reqStr: JSON5.stringify(this.req.req, null, '\t'),
- resStr: JSON5.stringify(this.req.res, null, '\t'),
- }
- },
-
- methods: {
- }
-});
-</script>
-
-<style lang="scss" scoped>
-.rlkneywz {
- display: flex;
- flex-direction: column;
- height: 100%;
-
- > code {
- display: block;
- flex: 1;
- padding: 8px;
- overflow: auto;
- font-size: 0.9em;
- tab-size: 2;
- white-space: pre;
- }
-}
-</style>