forked from Drop-OSS/archived-drop-app
Some checks failed
publish / publish-tauri (, ubuntu-22.04) (release) Failing after 14m38s
publish / publish-tauri (, windows-latest) (release) Has been cancelled
publish / publish-tauri (--target aarch64-apple-darwin, macos-14) (release) Has been cancelled
publish / publish-tauri (--target aarch64-unknown-linux-gnu, ubuntu-22.04-arm) (release) Has been cancelled
publish / publish-tauri (--target x86_64-apple-darwin, macos-14) (release) Has been cancelled
* feat: depot api downloads * feat: frontend fixes and experimental webview store * feat: sync downloader * feat: cleanup and fixes * feat: encrypted database and fixed resuming * feat: launch option selector * fix: autostart when no options * fix: clippy * fix: clippy x2 * feat: executor launch * feat: executor launch * feat: not installed error handling * feat: better offline handling * feat: dependency popup * fix: cancelation and resuming issues * feat: dedup by platform * feat: new ui for additional components and fix dl manager clog * feat: auto-queue dependencies * feat: depot scanning and ranking * feat: new library fetching stack * In-app store page (Windows + macOS) (#176) * feat: async store loading * feat: fix overscroll behaviour * fix: query params in server protocol * fix: clippy
24 lines
684 B
Vue
24 lines
684 B
Vue
<script setup lang="ts">
|
|
import { ArrowDownTrayIcon, CloudIcon } from "@heroicons/vue/20/solid";
|
|
import { invoke } from "@tauri-apps/api/core";
|
|
|
|
async function checkOffline() {
|
|
const isOffline = await invoke("check_online");
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<button
|
|
@click="checkOffline"
|
|
class="transition inline-flex items-center rounded-sm px-4 py-1.5 bg-zinc-900 text-sm text-zinc-400 gap-x-2"
|
|
>
|
|
<div class="relative">
|
|
<CloudIcon class="h-5 z-50 text-zinc-500" />
|
|
<div
|
|
class="absolute rounded-full left-1/2 top-1/2 -translate-y-[45%] -translate-x-1/2 w-[2px] h-6 rotate-[45deg] bg-zinc-400 z-50"
|
|
/>
|
|
</div>
|
|
Offline
|
|
</button>
|
|
</template>
|