Browse Source

wip: storage

Ahmad Kholid 3 years ago
parent
commit
7e83113357

+ 6 - 0
src/components/newtab/app/AppSidebar.vue

@@ -115,6 +115,12 @@ const tabs = [
     path: '/schedule',
     path: '/schedule',
     shortcut: getShortcut('page:schedule', '/triggers'),
     shortcut: getShortcut('page:schedule', '/triggers'),
   },
   },
+  {
+    id: 'storage',
+    icon: 'riHardDrive2Line',
+    path: '/storage',
+    shortcut: getShortcut('page:storage', '/storage'),
+  },
   {
   {
     id: 'collection',
     id: 'collection',
     icon: 'riFolderLine',
     icon: 'riFolderLine',

+ 4 - 0
src/composable/shortcut.js

@@ -24,6 +24,10 @@ const defaultShortcut = {
     id: 'page:logs',
     id: 'page:logs',
     combo: 'option+l',
     combo: 'option+l',
   },
   },
+  'page:storage': {
+    id: 'page:storage',
+    combo: 'option+a',
+  },
   'page:settings': {
   'page:settings': {
     id: 'page:settings',
     id: 'page:settings',
     combo: 'option+s',
     combo: 'option+s',

+ 2 - 0
src/lib/vRemixicon.js

@@ -88,6 +88,7 @@ import {
   riStrikethrough2,
   riStrikethrough2,
   riFileUploadLine,
   riFileUploadLine,
   riCodeSSlashLine,
   riCodeSSlashLine,
+  riHardDrive2Line,
   riDeleteBin7Line,
   riDeleteBin7Line,
   riArrowLeftSLine,
   riArrowLeftSLine,
   riFullscreenLine,
   riFullscreenLine,
@@ -202,6 +203,7 @@ export const icons = {
   riStrikethrough2,
   riStrikethrough2,
   riFileUploadLine,
   riFileUploadLine,
   riCodeSSlashLine,
   riCodeSSlashLine,
+  riHardDrive2Line,
   riDeleteBin7Line,
   riDeleteBin7Line,
   riArrowLeftSLine,
   riArrowLeftSLine,
   riFullscreenLine,
   riFullscreenLine,

+ 1 - 0
src/locales/en/common.json

@@ -26,6 +26,7 @@
     "save": "Save",
     "save": "Save",
     "data": "data",
     "data": "data",
     "stop": "Stop",
     "stop": "Stop",
+    "storage": "Storage",
     "editor": "Editor",
     "editor": "Editor",
     "running": "Running",
     "running": "Running",
     "globalData": "Global data",
     "globalData": "Global data",

+ 4 - 1
src/locales/en/newtab.json

@@ -44,6 +44,9 @@
     "start": "Started on {date}",
     "start": "Started on {date}",
     "message": "This only display the last 5 logs"
     "message": "This only display the last 5 logs"
   },
   },
+  "storage": {
+    "title": "Storage"
+  },
   "settings": {
   "settings": {
     "theme": "Theme",
     "theme": "Theme",
     "shortcuts": {
     "shortcuts": {
@@ -199,7 +202,7 @@
       "executeBy": "Executed by: \"{name}\""
       "executeBy": "Executed by: \"{name}\""
     },
     },
     "table": {
     "table": {
-      "title": "Table",
+      "title": "Table | Tables",
       "placeholder": "Search or add column",
       "placeholder": "Search or add column",
       "select": "Select column",
       "select": "Select column",
       "column": {
       "column": {

+ 22 - 0
src/newtab/pages/Storage.vue

@@ -0,0 +1,22 @@
+<template>
+  <div class="container py-8 pb-4">
+    <h1 class="text-2xl font-semibold">
+      {{ t('common.storage') }}
+    </h1>
+    <ui-tabs v-model="state.activeTab" class="mt-5">
+      <ui-tab value="tables">
+        {{ t('workflow.table.title', 2) }}
+      </ui-tab>
+    </ui-tabs>
+  </div>
+</template>
+<script setup>
+import { reactive } from 'vue';
+import { useI18n } from 'vue-i18n';
+
+const { t } = useI18n();
+
+const state = reactive({
+  activeTab: 'tables',
+});
+</script>

+ 6 - 0
src/newtab/router.js

@@ -7,6 +7,7 @@ import ScheduledWorkflow from './pages/ScheduledWorkflow.vue';
 import Collections from './pages/Collections.vue';
 import Collections from './pages/Collections.vue';
 import CollectionsDetails from './pages/collections/[id].vue';
 import CollectionsDetails from './pages/collections/[id].vue';
 import Logs from './pages/Logs.vue';
 import Logs from './pages/Logs.vue';
+import Storage from './pages/Storage.vue';
 import LogsDetails from './pages/logs/[id].vue';
 import LogsDetails from './pages/logs/[id].vue';
 import LogsRunning from './pages/logs/Running.vue';
 import LogsRunning from './pages/logs/Running.vue';
 import Settings from './pages/Settings.vue';
 import Settings from './pages/Settings.vue';
@@ -32,6 +33,11 @@ const routes = [
     path: '/workflows',
     path: '/workflows',
     component: Workflows,
     component: Workflows,
   },
   },
+  {
+    name: 'storage',
+    path: '/storage',
+    component: Storage,
+  },
   {
   {
     name: 'schedule',
     name: 'schedule',
     path: '/schedule',
     path: '/schedule',