Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Dec 19, 2023
1 parent 4d95e66 commit f6a7dd8
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 3 deletions.
48 changes: 48 additions & 0 deletions docs/.vitepress/components/UseModeList.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<script setup lang="ts">
import { useRouter } from 'vitepress'
const router = useRouter()
const list = [
{
name: 'Vite Plugin',
logo: '/features/vite-logo.svg',
link: '/guide/vite-plugin',
},
{
name: 'Standalone App',
logo: '/features/electron-logo.svg',
link: '/guide/standalone',
},
{
name: 'Chrome Extension (Coming Soon)',
logo: '/features/chrome-logo.svg',
link: '/guide/browser-extension',
disabled: true,
},
]
</script>

<template>
<ul class="flex flex-col mx-0! px-0!">
<li
v-for="(item, index) in list"
:key="index"
class="group cursor-pointer list-none rounded pr-5 hover:b-$vp-c-brand-1"
:class="{
'opacity-50': item.disabled,
'pointer-events-none': item.disabled,
}"
border="~ solid base" flex="~ flex-row items-center"
>
<a
:href="item.link"
class="group text-! h-full w-full flex cursor-pointer list-none items-center rounded pr-5 hover:b-$vp-c-brand-1 text-$vp-c-text-1! decoration-none!"
>
<img :src="item.logo" :alt="item.name" class="mx-2 h-10">
<p class="group-hover:text-$vp-c-brand-1">
{{ item.name }}
</p>
</a>
</li>
</ul>
</template>
4 changes: 1 addition & 3 deletions docs/guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

**Vue DevTools is a tool designed to enhance the Vue developer experience,** It provides some [features](/guide/features) to help you better understand your Vue application.There are several ways to use Vue DevTools in your Vue project:

- **[Recommended]** [Vite Plugin](/guide/vite-plugin.md)
- **[Coming soon]** [Browser Extension](/guide/browser-extension.md)
- [Standalone App](/guide/standalone.md)
<UseModeList />

<!-- ## Trying Vue DevTools Online -->

Expand Down
1 change: 1 addition & 0 deletions docs/public/features/chrome-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/public/features/electron-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions docs/public/features/vite-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f6a7dd8

Please sign in to comment.