From c15331343b6ffac0cb1e82a4d7abdd232155e100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Tue, 28 Feb 2023 20:01:49 +0100 Subject: [PATCH] feat: add storage tab (#100) Co-authored-by: Anthony Fu --- .gitignore | 1 + .../playground/pages/index.vue | 2 +- .../src/components/NDropdown.vue | 2 +- packages/devtools/build.config.ts | 2 + packages/devtools/client/app.vue | 2 + .../devtools/client/components/DrawerItem.vue | 6 +- .../devtools/client/components/IframeView.vue | 1 - .../client/components/SettingsPanel.vue | 4 + .../client/components/StateEditor.vue | 22 -- packages/devtools/client/composables/state.ts | 6 +- .../devtools/client/composables/storage.ts | 1 + packages/devtools/client/nuxt.config.ts | 9 +- .../devtools/client/pages/modules/storage.vue | 219 ++++++++++++++++++ packages/devtools/client/setup/client-rpc.ts | 3 + packages/devtools/client/styles/global.css | 20 ++ packages/devtools/client/unocss.config.ts | 2 + packages/devtools/src/rpc.ts | 61 +++++ packages/devtools/src/types.ts | 9 + 18 files changed, 336 insertions(+), 36 deletions(-) create mode 100644 packages/devtools/client/pages/modules/storage.vue diff --git a/.gitignore b/.gitignore index 76555f3471..427f298836 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,7 @@ dist .build-* .env .netlify +.data # Env .env diff --git a/packages/devtools-ui-kit/playground/pages/index.vue b/packages/devtools-ui-kit/playground/pages/index.vue index f5d3f39f6f..da526316f3 100644 --- a/packages/devtools-ui-kit/playground/pages/index.vue +++ b/packages/devtools-ui-kit/playground/pages/index.vue @@ -8,7 +8,7 @@ const radio = ref('a') diff --git a/packages/devtools/client/components/StateEditor.vue b/packages/devtools/client/components/StateEditor.vue index af82938702..f2dde00d34 100644 --- a/packages/devtools/client/components/StateEditor.vue +++ b/packages/devtools/client/components/StateEditor.vue @@ -1,6 +1,5 @@ + +