26 lines
670 B
Vue
26 lines
670 B
Vue
|
|
<template>
|
||
|
|
<button
|
||
|
|
type="button"
|
||
|
|
data-controller-ignore
|
||
|
|
class="flex items-center gap-1.5 px-3 py-2 rounded-lg text-white/80 hover:bg-white/10 hover:text-white transition-colors"
|
||
|
|
title="Open CLI (⌘C / Ctrl+C)"
|
||
|
|
@click="openCLI"
|
||
|
|
>
|
||
|
|
<div class="relative">
|
||
|
|
<div class="w-2 h-2 rounded-full bg-green-400"></div>
|
||
|
|
<div class="absolute inset-0 w-2 h-2 rounded-full bg-green-400 animate-ping opacity-50"></div>
|
||
|
|
</div>
|
||
|
|
<span class="text-xs">Online</span>
|
||
|
|
</button>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script setup lang="ts">
|
||
|
|
import { useCLIStore } from '@/stores/cli'
|
||
|
|
|
||
|
|
const cliStore = useCLIStore()
|
||
|
|
|
||
|
|
function openCLI() {
|
||
|
|
cliStore.open()
|
||
|
|
}
|
||
|
|
</script>
|