-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from paranoidPhantom/dev
Production release - RC 1
- Loading branch information
Showing
135 changed files
with
6,024 additions
and
4,133 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.nuxt/** | ||
.vscode/** | ||
.output/** | ||
node_modules/** | ||
db/** | ||
nginx/** | ||
supabase/** | ||
.git/** | ||
README.md |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"plugins": ["prettier-plugin-tailwindcss"], | ||
"tabWidth": 4, | ||
"useTabs": true | ||
} |
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,16 +1,16 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "npm", | ||
"script": "dev", | ||
"problemMatcher": [], | ||
"label": "bun: dev", | ||
"detail": "nuxt dev", | ||
"group": { | ||
"kind": "test", | ||
"isDefault": true | ||
} | ||
} | ||
] | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "npm", | ||
"script": "dev", | ||
"problemMatcher": [], | ||
"label": "bun: dev", | ||
"detail": "nuxt dev", | ||
"group": { | ||
"kind": "test", | ||
"isDefault": true | ||
} | ||
} | ||
] | ||
} |
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,21 @@ | ||
FROM node:20 AS build | ||
WORKDIR /usr/src/frontend | ||
|
||
RUN npm install -g bun | ||
RUN npm install -g nuxi | ||
|
||
COPY package.json . | ||
RUN bun install | ||
|
||
|
||
COPY . . | ||
|
||
RUN nuxi build | ||
|
||
FROM node:20 AS release | ||
WORKDIR /usr/src/frontend | ||
|
||
COPY --from=build /usr/src/frontend/.output .output | ||
|
||
# run the app | ||
ENTRYPOINT [ "node", ".output/server/index.mjs" ] |
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,14 +1,14 @@ | ||
export default defineAppConfig({ | ||
ui: { | ||
primary: "blue", | ||
gray: "neutral", | ||
icons: { | ||
dynamic: true, | ||
}, | ||
commandPalette: { | ||
default: { | ||
loadingIcon: "fluent:spinner-ios-16-filled", | ||
}, | ||
}, | ||
}, | ||
ui: { | ||
primary: "blue", | ||
gray: "neutral", | ||
icons: { | ||
dynamic: true, | ||
}, | ||
commandPalette: { | ||
default: { | ||
loadingIcon: "fluent:spinner-ios-16-filled", | ||
}, | ||
}, | ||
}, | ||
}); |
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,44 +1,64 @@ | ||
<script lang="ts" setup> | ||
import { SpeedInsights } from "@vercel/speed-insights/nuxt"; | ||
const route = useRoute(); | ||
onMounted(async () => { | ||
if ( | ||
!route.path.startsWith("/manage") || | ||
route.path.startsWith("/manage/auth") | ||
) | ||
return; | ||
const valid = await $fetch("/api/auth/validate"); | ||
if (!valid) { | ||
navigateTo("/manage/auth"); | ||
} | ||
}); | ||
useSeoMeta({ | ||
ogImage: "/images/exterior.png", | ||
ogImage: "/images/exterior.png", | ||
}); | ||
useHead({ | ||
htmlAttrs: { | ||
lang: "ru", | ||
}, | ||
link: [ | ||
{ | ||
rel: "icon", | ||
type: "image/png", | ||
href: "/favicon.png", | ||
}, | ||
], | ||
htmlAttrs: { | ||
lang: "ru", | ||
}, | ||
link: [ | ||
{ | ||
rel: "icon", | ||
type: "image/png", | ||
href: "/favicon.png", | ||
}, | ||
], | ||
}); | ||
const visuallyImpaired = useCookie("visImpairmentMode"); | ||
if (visuallyImpaired.value === undefined) visuallyImpaired.value = false; | ||
onMounted(() => { | ||
document.documentElement.style.filter = visuallyImpaired.value | ||
? "saturate(0)" | ||
: "none"; | ||
}); | ||
watch(visuallyImpaired, (newValue) => { | ||
document.documentElement.style.filter = newValue ? "saturate(0)" : "none"; | ||
}); | ||
</script> | ||
|
||
<template> | ||
<NuxtLoadingIndicator color="rgb(var(--color-primary-500))" /> | ||
<NuxtLayout> | ||
<NuxtPage /> | ||
</NuxtLayout> | ||
<SearchPalette /> | ||
<UNotifications /> | ||
<SpeedInsights /> | ||
<div :class="{ 'visually-impaired': visuallyImpaired }"> | ||
<NuxtRouteAnnouncer /> | ||
<NuxtLoadingIndicator color="rgb(var(--color-primary-500))" /> | ||
<NuxtLayout> | ||
<NuxtPage /> | ||
</NuxtLayout> | ||
<!-- <SearchPalette /> --> | ||
<UNotifications /> | ||
</div> | ||
</template> | ||
|
||
<style lang="scss"> | ||
/* Visually impaired mode */ | ||
.visually-impaired { | ||
img, | ||
.hero-bg, | ||
.dashed-circles { | ||
display: none !important; | ||
} | ||
.invert-if-impaired { | ||
@apply text-black dark:text-white; | ||
} | ||
.aos-init { | ||
transform: translate(0) scale(1) !important; | ||
transition-property: none !important; | ||
opacity: 1 !important; | ||
} | ||
} | ||
</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 |
---|---|---|
@@ -1,25 +1,28 @@ | ||
:root { | ||
font-family: Raleway, sans-serif; | ||
scroll-behavior: smooth; | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, | ||
Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; | ||
scroll-behavior: smooth; | ||
} | ||
|
||
.page-enter-from, | ||
.page-leave-to { | ||
opacity: 0; | ||
opacity: 0; | ||
} | ||
|
||
.page-enter-active, | ||
.page-leave-active { | ||
transition: opacity 0.5s; | ||
transition: opacity 0.5s ease-in-out; | ||
} | ||
|
||
.layout-enter-from, | ||
.layout-leave-to { | ||
opacity: 0; | ||
transform: translateY(-50px); | ||
opacity: 0; | ||
transform: translateY(-50px); | ||
} | ||
|
||
.layout-enter-active, | ||
.layout-leave-active { | ||
transition: opacity 0.5s, transform 0.5s; | ||
transition: | ||
opacity 0.5s, | ||
transform 0.5s; | ||
} |
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,11 +1,22 @@ | ||
<script lang="ts" setup> | ||
const route = useRoute(); | ||
const colorMode = useColorMode(); | ||
</script> | ||
|
||
<template> | ||
<NuxtLink :to="route.path === '/' ? '/logo' : '/'"> | ||
<UIcon name="fluent:draw-image-24-regular" class="text-2xl" /> | ||
</NuxtLink> | ||
<NuxtLink to="/" aria-label="Перейти на главную" class="home-btn"> | ||
<NuxtImg | ||
:style="`filter: invert(${colorMode.value === 'dark' ? 0 : 1})`" | ||
src="/logo.png" | ||
width="60px" | ||
/> | ||
</NuxtLink> | ||
</template> | ||
|
||
<style lang="scss" scoped></style> | ||
<style lang="scss" scoped> | ||
.home-btn { | ||
@apply transition-all duration-1000; | ||
&:active { | ||
@apply scale-95 transition-all duration-200; | ||
} | ||
} | ||
</style> |
Oops, something went wrong.