-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
3,627 additions
and
3,464 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"antfu.file-nesting", | ||
"vue.volar", | ||
"bradlc.vscode-tailwindcss" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,55 @@ | ||
export default defineAppConfig({ | ||
name: "Nuxtor", | ||
author: "Nicola Spadari", | ||
repo: "https://github.com/NicolaSpadari/nuxtor", | ||
tauriSite: "https://v2.tauri.app", | ||
nuxtSite: "https://nuxt.com", | ||
unoSite: "https://unocss.dev" | ||
app: { | ||
name: "Nuxtor", | ||
author: "Nicola Spadari", | ||
repo: "https://github.com/NicolaSpadari/nuxtor", | ||
tauriSite: "https://tauri.app", | ||
nuxtSite: "https://nuxt.com", | ||
nuxtUiSite: "https://ui3.nuxt.dev" | ||
}, | ||
ui: { | ||
colors: { | ||
primary: "green", | ||
neutral: "zinc" | ||
}, | ||
button: { | ||
slots: { | ||
base: "cursor-pointer" | ||
} | ||
}, | ||
formField: { | ||
slots: { | ||
root: "w-full" | ||
} | ||
}, | ||
input: { | ||
slots: { | ||
root: "w-full" | ||
} | ||
}, | ||
textarea: { | ||
slots: { | ||
root: "w-full", | ||
base: "resize-none" | ||
} | ||
}, | ||
accordion: { | ||
slots: { | ||
trigger: "cursor-pointer", | ||
item: "md:py-2" | ||
}, | ||
}, | ||
navigationMenu: { | ||
slots: { | ||
link: "cursor-pointer", | ||
}, | ||
variants: { | ||
disabled: { | ||
true: { | ||
link: "cursor-text" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,11 @@ | ||
<template> | ||
<Html class="min-h-screen scroll-smooth"> | ||
<Body class="overflow-x-hidden bg-dark-800 text-white font-text antialiased"> | ||
<NuxtLayout> | ||
<NuxtPage /> | ||
</NuxtLayout> | ||
<Html class="overflow-x-hidden"> | ||
<Body class="font-sans antialiased"> | ||
<UApp> | ||
<NuxtLayout> | ||
<NuxtPage /> | ||
</NuxtLayout> | ||
</UApp> | ||
</Body> | ||
</Html> | ||
</template> | ||
|
||
<style lang="scss"> | ||
html { | ||
-webkit-tap-highlight-color: transparent; | ||
} | ||
img { | ||
-webkit-user-drag: none; | ||
@apply select-none; | ||
} | ||
// Transitions | ||
.page-enter-active, | ||
.page-leave-active { | ||
@apply transition-opacity ease-in-out duration-300; | ||
} | ||
.layout-enter-active, | ||
.layout-leave-active { | ||
@apply transition-opacity ease-in-out duration-500; | ||
} | ||
.page-enter-from, | ||
.page-leave-to, | ||
.layout-enter-from, | ||
.layout-leave-to { | ||
@apply opacity-0; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
@import "tailwindcss"; | ||
@import "@nuxt/ui"; | ||
|
||
@theme { | ||
--font-heading: "Montserrat", sans-serif; | ||
--font-sans: "Inter", sans-serif; | ||
|
||
--color-primary: var(--ui-color-primary-500); | ||
--color-secondary: var(--ui-color-secondary-500); | ||
--color-success: var(--ui-color-success-500); | ||
--color-info: var(--ui-color-info-500); | ||
--color-warning: var(--ui-color-warning-500); | ||
--color-error: var(--ui-color-error-500) | ||
} | ||
|
||
@layer base { | ||
-webkit-tap-highlight-color: transparent; | ||
} | ||
|
||
@layer utilities { | ||
.flex-center { | ||
@apply flex justify-center items-center; | ||
} | ||
.absolute-center-h { | ||
@apply left-1/2 transform -translate-x-1/2; | ||
} | ||
.absolute-center-v { | ||
@apply top-1/2 transform -translate-y-1/2; | ||
} | ||
} | ||
|
||
.page-enter-active, | ||
.page-leave-active { | ||
@apply transition-opacity ease-in-out duration-300; | ||
} | ||
.layout-enter-active, | ||
.layout-leave-active { | ||
@apply transition-opacity ease-in-out duration-500; | ||
} | ||
.page-enter-from, | ||
.page-leave-to, | ||
.layout-enter-from, | ||
.layout-leave-to { | ||
@apply opacity-0; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,71 @@ | ||
<template> | ||
<header class="top-0 z-10"> | ||
<nav crate class="flex items-center justify-between py-6"> | ||
<div class="flex" lg="flex-1"> | ||
<NuxtLink to="/" class="home p-1.5 -m-1.5"> | ||
<SvgoLogo :font-controlled="false" class="size-8" /> | ||
</NuxtLink> | ||
</div> | ||
<div class="flex" lg="hidden"> | ||
<button type="button" class="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" class="size-6" /> | ||
</button> | ||
</div> | ||
<div class="hidden" lg="flex gap-x-12"> | ||
<NavLink to="/commands"> | ||
Commands | ||
</NavLink> | ||
<NavLink to="/notifications"> | ||
Notifications | ||
</NavLink> | ||
<NavLink to="/os"> | ||
OS Informations | ||
</NavLink> | ||
<NavLink to="/file"> | ||
File | ||
</NavLink> | ||
<NavLink to="/store"> | ||
Store | ||
</NavLink> | ||
</div> | ||
<div class="hidden" lg="flex flex-1 justify-end"> | ||
<p class="text-sm text-white font-semibold leading-6"> | ||
v{{ tauriVersion }} | ||
</p> | ||
</div> | ||
</nav> | ||
<UContainer class="md:py-2"> | ||
<UNavigationMenu | ||
:items="mobileItems" | ||
variant="link" | ||
:ui="{ | ||
root: 'md:hidden' | ||
}" | ||
/> | ||
<UNavigationMenu | ||
:items="desktopItems" | ||
variant="link" | ||
:ui="{ | ||
root: 'hidden md:flex', | ||
list: 'md:gap-x-2' | ||
}" | ||
/> | ||
</UContainer> | ||
</header> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
const { pages } = usePages(); | ||
const { showSidebar } = useSidebar(); | ||
const tauriVersion = await useTauriAppGetTauriVersion(); | ||
</script> | ||
<style scoped> | ||
.router-link-exact-active:not(.home){ | ||
@apply text-emerald-500; | ||
} | ||
</style> | ||
const mobileItems = ref<any[]>([ | ||
[ | ||
{ | ||
avatar: { | ||
icon: "local:logo", | ||
size: "xl", | ||
ui: { | ||
root: "bg-transparent" | ||
} | ||
}, | ||
to: "/" | ||
} | ||
], | ||
[ | ||
{ | ||
icon: "lucide:menu", | ||
onSelect: () => showSidebar.value = true | ||
} | ||
] | ||
]); | ||
const desktopItems = ref<any[]>([ | ||
[ | ||
{ | ||
avatar: { | ||
icon: "local:logo", | ||
size: "3xl", | ||
ui: { | ||
root: "group bg-transparent", | ||
icon: "opacity-70 group-hover:opacity-100" | ||
} | ||
}, | ||
to: "/" | ||
} | ||
], | ||
pages, | ||
[ | ||
{ | ||
label: `v${tauriVersion}`, | ||
disabled: true | ||
} | ||
] | ||
]); | ||
</script> |
Oops, something went wrong.