-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add .histoire to pnpm-workspace.yaml and import PergelPageSignin component in app.vue * fix tailwindcss config * Update .gitignore and nuxt.config.ts, delete unused files * Add alias for Pergel UI brand * Add Notivue and Radix-Vue modules, update UI package version * Add src/**/pergel to .gitignore * Update dependencies and refactor UI components * Remove nuxt-icon module installation * fix: lint issues * Fix UI module installation and remove ColorModeButton component * Update dependencies in package.json * add egoist/tailwindcss-icons and icon component * fix: lint issues * Remove unused files and update dependencies * Update paths in tsconfig.json * Update lint command in CI workflow * Update linting command in CI workflow and add new file to eslint ignore list * Add ResolvedUIOptions to ResolvedModules * Add @egoist/tailwindcss-icons and local-pkg dependencies * Update UI package version and add i18n support * Refactor configuration and module setup * fix: lint issues * Remove unused files and configurations * Update UI components and pages * Refactor authentication pages * Update logo links in auth pages * Update AuthHeader and ColorModeButton components * Add conditional rendering for activated accounts in login page * Add i18n module and tailwindcss plugin * Refactor authentication pages to use internationalization * Add i18n module and update tailwind.config.js * fix: lint issues * chore: upgrade * fix: lock * fix: add useI18n() for internationalization support * i18n * fix: lint issues * Add Pinia support and update translations * Add pinia option to UIOptions * Update release scripts in package.json
- Loading branch information
1 parent
a0f0756
commit 7ee6874
Showing
74 changed files
with
9,174 additions
and
2,729 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
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 |
---|---|---|
|
@@ -59,4 +59,7 @@ Temporary Items | |
# Pergel | ||
|
||
lib | ||
dist | ||
dist | ||
pergel | ||
schema.graphql | ||
!src/**/pergel |
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,15 @@ | ||
{ | ||
"style": "default", | ||
"typescript": true, | ||
"tailwind": { | ||
"config": "tailwind.config.js", | ||
"css": "assets/css/tailwind.css", | ||
"baseColor": "zinc", | ||
"cssVariables": true | ||
}, | ||
"framework": "nuxt", | ||
"aliases": { | ||
"components": "@/components", | ||
"utils": "@/lib/utils" | ||
} | ||
} |
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,42 @@ | ||
<script setup> | ||
import { | ||
darkTheme, | ||
lightTheme, | ||
} from 'notivue' | ||
const colorMode = useColorMode() | ||
const isDark = computed({ | ||
get() { | ||
return colorMode.value === 'dark' | ||
}, | ||
set() { | ||
colorMode.preference = colorMode.value === 'dark' ? 'light' : 'dark' | ||
}, | ||
}) | ||
</script> | ||
|
||
<template> | ||
<div> | ||
Nuxt module playground! | ||
<Body class="h-full" /> | ||
<Html class="h-full" /> | ||
<Notivue | ||
v-slot="item" | ||
> | ||
<Notifications | ||
:item="item" | ||
:theme="isDark ? darkTheme : lightTheme" | ||
/> | ||
</Notivue> | ||
|
||
<div class="h-full"> | ||
<NuxtLayout> | ||
<NuxtPage /> | ||
</NuxtLayout> | ||
</div> | ||
</template> | ||
|
||
<style> | ||
#__nuxt { | ||
@apply w-full h-full; | ||
} | ||
</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,15 @@ | ||
<template> | ||
<AuthLayout | ||
:logo="{ | ||
dark: 'https://raw.githubusercontent.com/oku-ui/static/main/logo/logo-white.svg', | ||
light: 'https://raw.githubusercontent.com/oku-ui/static/main/logo/logo-dark.svg', | ||
alt: 'Your Company', | ||
}" | ||
> | ||
<template v-for="(_, key) in useSlots()" #[key]> | ||
<slot :name="key" /> | ||
</template> | ||
|
||
<slot /> | ||
</AuthLayout> | ||
</template> |
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 @@ | ||
<template> | ||
<div class="h-full w-full"> | ||
<slot></slot> | ||
</div> | ||
</template> |
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<script setup lang="ts"> | ||
const route = useRoute() | ||
const isActivated = route.query.activated === 'true' | ||
function submit(values: any, loading: (value: boolean) => void) { | ||
loading(true) | ||
setTimeout(() => { | ||
loading(false) | ||
push.success('Signin success') | ||
}, 1000) | ||
} | ||
const { t } = useI18n() | ||
</script> | ||
|
||
<template> | ||
<NuxtLayout name="auth"> | ||
<template #header> | ||
<AuthHeader | ||
link="/auth/signup" | ||
:title="t('auth.signup')" | ||
/> | ||
</template> | ||
<template #left> | ||
<AuthLeft | ||
:logo="{ | ||
src: 'https://raw.githubusercontent.com/oku-ui/static/main/logo/logo-white.svg', | ||
alt: 'Your Company', | ||
link: '/', | ||
}" | ||
quote="This library has saved me countless hours of work and helped me deliver stunning designs to my clients faster than ever before." | ||
footer="Sofia Davis" | ||
/> | ||
</template> | ||
<template #content> | ||
<AuthForm | ||
:title="t('auth.signin')" | ||
:description="{ | ||
label: t('auth.signup_description'), | ||
to: '/auth/signup', | ||
text: t('auth.signup'), | ||
}" | ||
:terms="{ | ||
href: '/auth/terms-of-service', | ||
label: t('auth.terms_of_service'), | ||
}" | ||
:privacy="{ | ||
href: '/auth/privacy-policy', | ||
label: t('auth.privacy_policy'), | ||
}" | ||
:hidden-terms="isActivated" | ||
> | ||
<AuthFormLogin | ||
v-if="!isActivated" | ||
@submit="submit" | ||
/> | ||
<div v-else> | ||
<p class="text-sm"> | ||
{{ t('auth.dont_have_an_account') }} | ||
</p> | ||
</div> | ||
</AuthForm> | ||
</template> | ||
</NuxtLayout> | ||
</template> |
Oops, something went wrong.