add tools page and embed rnode flasher

This commit is contained in:
liamcottle 2024-12-18 23:15:27 +13:00
parent 8cfb5449fd
commit bb62b3331f
17 changed files with 21590 additions and 3 deletions

View file

@ -103,6 +103,18 @@
</SidebarLink>
</li>
<!-- tools -->
<li>
<SidebarLink :to="{ name: 'tools' }">
<template v-slot:icon>
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z" />
</svg>
</template>
<template v-slot:text>Tools</template>
</SidebarLink>
</li>
<!-- settings -->
<li>
<SidebarLink :to="{ name: 'settings' }">

View file

@ -0,0 +1,40 @@
<template>
<div class="flex flex-col flex-1 overflow-hidden min-w-full sm:min-w-[500px] dark:bg-zinc-950">
<div class="overflow-y-auto space-y-2 p-2">
<!-- appearance -->
<div class="bg-white dark:bg-zinc-800 rounded shadow">
<div class="flex border-b border-gray-300 dark:border-zinc-700 text-gray-700 dark:text-gray-200 p-2 font-semibold">Tools</div>
<div class="dark:divide-zinc-700 text-gray-900 dark:text-gray-100 p-2">
A collection of useful tools bundled with MeshChat
</div>
</div>
<!-- rnode flasher -->
<a target="_blank" href="/rnode-flasher/index.html" class="group flex bg-white dark:bg-zinc-800 p-2 rounded shadow hover:bg-gray-50 dark:hover:bg-zinc-700">
<div class="mr-2">
<div class="flex bg-gray-300 text-white rounded shadow">
<img src="/rnode-flasher/reticulum_logo_512.png" class="size-14"/>
</div>
</div>
<div class="my-auto mr-auto dark:text-gray-200">
<div class="font-bold">RNode Flasher</div>
<div class="text-sm">Flash RNode firmware to supported devices.</div>
</div>
<div class="my-auto text-gray-400 group-hover:text-gray-500">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
<path stroke-linecap="round" stroke-linejoin="round" d="m8.25 4.5 7.5 7.5-7.5 7.5"></path>
</svg>
</div>
</a>
</div>
</div>
</template>
<script>
export default {
name: 'ToolsPage',
}
</script>