Lint project
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
{"main":{"identifier":"main","description":"Capabilities for the main window","local":true,"windows":["main"],"permissions":["core:path:default","core:event:default","core:window:default","core:app:default","core:resources:default","core:menu:default","core:tray:default","shell:allow-open",{"identifier":"shell:allow-execute","allow":[{"args":["-c",{"validator":"\\S+"}],"cmd":"sh","name":"exec-sh","sidecar":false}]},"notification:default","os:allow-platform","os:allow-arch","os:allow-family","os:allow-version","os:allow-locale","fs:allow-document-read","fs:allow-document-write"]}}
|
||||
{ "main": { "identifier": "main", "description": "Capabilities for the main window", "local": true, "windows": ["main"], "permissions": ["core:path:default", "core:event:default", "core:window:default", "core:app:default", "core:resources:default", "core:menu:default", "core:tray:default", "shell:allow-open", { "identifier": "shell:allow-execute", "allow": [{ "args": ["-c", { "validator": "\\S+" }], "cmd": "sh", "name": "exec-sh", "sidecar": false }] }, "notification:default", "os:allow-platform", "os:allow-arch", "os:allow-family", "os:allow-version", "os:allow-locale", "fs:allow-document-read", "fs:allow-document-write"] } }
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<NuxtLink transition-colors gap-1 rounded-md bg-emerald-500 px-3.5 py-2.5 text-sm text-white font-semibold shadow-sm hover="bg-emerald-600" focus-visible="outline-2 outline-emerald-600 outline-offset-2 outline">
|
||||
<NuxtLink gap-1 rounded-md bg-emerald-500 px-3.5 py-2.5 text-sm text-white font-semibold shadow-sm transition-colors hover="bg-emerald-600" focus-visible="outline-2 outline-emerald-600 outline-offset-2 outline">
|
||||
<slot />
|
||||
</NuxtLink>
|
||||
</template>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<NuxtLink lg="inline text-sm py-0" text-white font-semibold leading-6 py-2 block>
|
||||
<NuxtLink lg="inline text-sm py-0" block py-2 text-white font-semibold leading-6>
|
||||
<slot />
|
||||
</NuxtLink>
|
||||
</template>
|
||||
|
@@ -7,7 +7,7 @@
|
||||
</NuxtLink>
|
||||
</div>
|
||||
<div flex lg="hidden">
|
||||
<button type="button" @click="showSidebar = true" inline-flex items-center justify-center rounded-md p-2.5 text-neutral-300 m="-2.5">
|
||||
<button type="button" inline-flex items-center justify-center rounded-md p-2.5 text-neutral-300 m="-2.5" @click="showSidebar = true">
|
||||
<Icon name="heroicons-solid:bars-3" size-6 />
|
||||
</button>
|
||||
</div>
|
||||
|
@@ -5,7 +5,7 @@
|
||||
>
|
||||
<div v-if="showSidebar" relative z-20 lg="hidden" role="dialog" aria-modal="true">
|
||||
<div fixed inset-0 overflow-hidden>
|
||||
<div crate h-full flex flex-col overflow-y-auto bg="neutral-800/70" py-6 backdrop-blur-md>
|
||||
<div bg="neutral-800/70" h-full flex flex-col overflow-y-auto py-6 backdrop-blur-md crate>
|
||||
<div flex items-center justify-between>
|
||||
<NuxtLink to="/" p-1.5 m="-1.5">
|
||||
<SvgoLogo :filled="true" :font-controlled="false" size-8 />
|
||||
|
@@ -1,9 +1,9 @@
|
||||
import { addImports, defineNuxtModule } from "nuxt/kit";
|
||||
import * as tauriApp from "@tauri-apps/api/app";
|
||||
import * as tauriShell from "@tauri-apps/plugin-shell";
|
||||
import * as tauriOs from "@tauri-apps/plugin-os";
|
||||
import * as tauriNotification from "@tauri-apps/plugin-notification";
|
||||
import * as tauriFs from "@tauri-apps/plugin-fs";
|
||||
import * as tauriNotification from "@tauri-apps/plugin-notification";
|
||||
import * as tauriOs from "@tauri-apps/plugin-os";
|
||||
import * as tauriShell from "@tauri-apps/plugin-shell";
|
||||
import { addImports, defineNuxtModule } from "nuxt/kit";
|
||||
|
||||
const capitalize = (name: string) => {
|
||||
return name.charAt(0).toUpperCase() + name.slice(1);
|
||||
|
@@ -34,16 +34,16 @@
|
||||
const result = ref("");
|
||||
|
||||
const sendCommand = async () => {
|
||||
try{
|
||||
try {
|
||||
const response = await useTauriShellCommand.create("exec-sh", [
|
||||
"-c",
|
||||
input.value
|
||||
]).execute();
|
||||
|
||||
result.value = JSON.stringify(response, null, 4);
|
||||
}catch(error){
|
||||
} catch (error) {
|
||||
result.value = JSON.stringify(error, null, 4);
|
||||
}finally{
|
||||
} finally {
|
||||
input.value = "";
|
||||
}
|
||||
};
|
||||
|
@@ -29,8 +29,10 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div fixed text-sm bottom-6 absolute-center-h>
|
||||
<p text-sm text-neutral-500>Made by {{ author }}</p>
|
||||
<div fixed bottom-6 text-sm absolute-center-h>
|
||||
<p text-sm text-neutral-500>
|
||||
Made by {{ author }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@@ -3,7 +3,7 @@
|
||||
title="OS Information"
|
||||
description="Read information about the operating system using the OS Information plugin."
|
||||
>
|
||||
<div overflow-hidden bg-neutral-800 shadow rounded-lg>
|
||||
<div overflow-hidden rounded-lg bg-neutral-800 shadow>
|
||||
<dl divide-y divide-neutral-600>
|
||||
<TabRow heading="Platform" :body="`${currentPlatform} ${currentVersion}`" />
|
||||
<TabRow heading="Arch" :body="currentArch" />
|
||||
|
Reference in New Issue
Block a user