Skip to content

Commit bde0e14

Browse files
authored
refactor: update devtools ui (#76)
* refactor: update devtools ui * fix: update ui * feat: add create collection and delete * feat: imrpove schema detection * fix: minor bugs * chore: lint
1 parent 850c781 commit bde0e14

File tree

30 files changed

+3816
-2109
lines changed

30 files changed

+3816
-2109
lines changed

.vscode/settings.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"eslint.useFlatConfig": true,
3+
"files.associations": {
4+
"*.css": "tailwindcss"
5+
},
6+
"editor.quickSuggestions": {
7+
"strings": "on"
8+
},
9+
"tailwindCSS.classAttributes": ["class", "ui"],
10+
"tailwindCSS.experimental.classRegex": [
11+
["ui:\\s*{([^)]*)\\s*}", "(?:'|\"|`)([^']*)(?:'|\"|`)"]
12+
]
13+
}

client/app.vue

Lines changed: 0 additions & 15 deletions
This file was deleted.

client/app/app.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export default defineAppConfig({
2+
ui: {
3+
colors: {
4+
neutral: 'neutral',
5+
},
6+
},
7+
})

client/app/app.vue

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<script setup lang="ts">
2+
import { computedAsync } from '@vueuse/core'
3+
import { rpc } from './composables/rpc'
4+
5+
const connectionInfo = computedAsync(async () => await rpc.value?.connectionInfo())
6+
</script>
7+
8+
<template>
9+
<UApp>
10+
<NuxtLoadingIndicator />
11+
<NuxtLayout v-if="connectionInfo?.connectionState === 1">
12+
<NuxtPage />
13+
</NuxtLayout>
14+
<LoadingScreen
15+
v-else
16+
:info="connectionInfo"
17+
/>
18+
</UApp>
19+
</template>

client/app/assets/css/main.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@import "tailwindcss";
2+
@import "@nuxt/ui";

client/app/assets/db.svg

Lines changed: 1 addition & 0 deletions
Loading

client/app/assets/logo.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)