-
Notifications
You must be signed in to change notification settings - Fork 83
chore: rename client dir to devtools #668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
49da481
016340a
c368161
9b0ada8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| export default defineAppConfig({ | ||
| ui: { | ||
| colors: { | ||
| primary: 'green', | ||
| neutral: 'neutral', | ||
| }, | ||
| button: { | ||
| defaultVariant: 'ghost', | ||
| }, | ||
| badge: { | ||
| defaultVariant: 'subtle', | ||
| }, | ||
| tooltip: { | ||
| delayDuration: 200, | ||
| }, | ||
| }, | ||
| }) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| <script setup lang="ts"> | ||
| import { computed } from 'vue' | ||
| import { initRegistry, version } from './composables/state' | ||
| import './composables/rpc' | ||
|
|
||
| await loadShiki() | ||
| await initRegistry() | ||
|
|
||
| const route = useRoute() | ||
| const currentTab = computed(() => { | ||
| const path = route.path | ||
| if (path.startsWith('/first-party')) | ||
| return 'first-party' | ||
| if (path.startsWith('/registry')) | ||
| return 'registry' | ||
| if (path.startsWith('/docs')) | ||
| return 'docs' | ||
| return 'scripts' | ||
| }) | ||
|
|
||
| const navItems = [ | ||
| { value: 'scripts', to: '/', icon: 'carbon:script', label: 'Scripts', devOnly: false }, | ||
| { value: 'first-party', to: '/first-party', icon: 'carbon:security', label: 'First-Party Mode', devOnly: true }, | ||
| { value: 'registry', to: '/registry', icon: 'carbon:catalog', label: 'Registry', devOnly: true }, | ||
| { value: 'docs', to: '/docs', icon: 'carbon:book', label: 'Docs', devOnly: false }, | ||
| ] | ||
|
|
||
| const runtimeVersion = computed(() => version.value) | ||
| </script> | ||
|
|
||
| <template> | ||
| <DevtoolsLayout | ||
| :active-tab="currentTab" | ||
| title="Scripts" | ||
| icon="carbon:script" | ||
| :version="runtimeVersion" | ||
| :nav-items="navItems" | ||
| github-url="https://github.com/nuxt/scripts" | ||
| :loading="false" | ||
| > | ||
| <NuxtPage /> | ||
| </DevtoolsLayout> | ||
| </template> | ||
Uh oh!
There was an error while loading. Please reload this page.