-
Notifications
You must be signed in to change notification settings - Fork 3
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
24 changed files
with
285 additions
and
197 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,30 @@ | ||
/* eslint-disable */ | ||
/* prettier-ignore */ | ||
// @ts-nocheck | ||
// Generated by unplugin-vue-components | ||
// Read more: https://github.com/vuejs/core/pull/3399 | ||
export {} | ||
|
||
declare module 'vue' { | ||
export interface GlobalComponents { | ||
ASpin: typeof import('ant-design-vue/es')['Spin'] | ||
Button: typeof import('./src/components/ui/Button.vue')['default'] | ||
Footer: typeof import('./src/components/Footer.vue')['default'] | ||
Highlights: typeof import('./src/components/Highlights.vue')['default'] | ||
IconBillCheck: typeof import('./src/components/icons/IconBillCheck.vue')['default'] | ||
IconGithub: typeof import('./src/components/icons/IconGithub.vue')['default'] | ||
IconHeart: typeof import('./src/components/icons/IconHeart.vue')['default'] | ||
IconMagicStick: typeof import('./src/components/icons/IconMagicStick.vue')['default'] | ||
IconPalette: typeof import('./src/components/icons/IconPalette.vue')['default'] | ||
IconTelegram: typeof import('./src/components/icons/IconTelegram.vue')['default'] | ||
IconTwitch: typeof import('./src/components/icons/IconTwitch.vue')['default'] | ||
IconValory: typeof import('./src/components/icons/IconValory.vue')['default'] | ||
IconValoryBG: typeof import('./src/components/icons/IconValoryBG.vue')['default'] | ||
Input: typeof import('./src/components/ui/Input.vue')['default'] | ||
LanguageSwitcher: typeof import('./src/components/ui/LanguageSwitcher.vue')['default'] | ||
Overlay: typeof import('./src/components/Overlay.vue')['default'] | ||
RouterLink: typeof import('vue-router')['RouterLink'] | ||
RouterView: typeof import('vue-router')['RouterView'] | ||
Switch: typeof import('./src/components/ui/Switch.vue')['default'] | ||
} | ||
} |
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
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,4 +1,4 @@ | ||
<script setup></script> | ||
<script setup lang="ts"></script> | ||
|
||
<template> | ||
<div class="blicks"> | ||
|
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,4 +1,4 @@ | ||
<script setup> | ||
<script setup lang="ts"> | ||
import IconValory from '@/components/icons/IconValory.vue' | ||
</script> | ||
|
||
|
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,4 +1,4 @@ | ||
<script setup> | ||
<script setup lang="ts"> | ||
defineProps(['modelValue', 'placeholder']) | ||
</script> | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import messages from '@intlify/unplugin-vue-i18n/messages'; | ||
import { useLocalStorage } from '@vueuse/core'; | ||
import { createI18n, I18nOptions } from 'vue-i18n'; | ||
|
||
type MessageSchema = typeof messages; | ||
type Locale = keyof MessageSchema; | ||
|
||
const locale = useLocalStorage<Locale>('valoryLocale', 'en'); | ||
|
||
export const i18n = createI18n<I18nOptions & { messages: MessageSchema }, Locale>({ | ||
legacy: false, | ||
locale: locale.value, | ||
fallbackLocale: 'en', | ||
messages, | ||
globalInjection: true, | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import App from '@/App.vue'; | ||
import { i18n } from '@/i18n'; | ||
import router from '@/router'; | ||
import { Icon } from '@iconify/vue'; | ||
import { createPinia } from 'pinia'; | ||
import { createApp } from 'vue'; | ||
|
||
const app = createApp(App); | ||
|
||
app | ||
.use(createPinia()) | ||
.use(i18n) | ||
.use(router) | ||
.component('Icon', Icon) | ||
.mount('#app'); | ||
|
||
document.body.addEventListener('plugin_web_update_notice', () => { | ||
window.location.reload(); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'; | ||
|
||
const routes: Array<RouteRecordRaw> = [ | ||
{ | ||
path: '/', | ||
name: 'home', | ||
component: () => import('@/views/HomeView.vue'), | ||
}, | ||
{ | ||
path: '/editor', | ||
name: 'editor', | ||
component: () => import('@/views/EditorView.vue'), | ||
}, | ||
{ | ||
path: '/overlay/:overlayID', | ||
name: 'overlay', | ||
component: () => import('@/views/OverlayView.vue'), | ||
props: (route) => ({ overlayID: route.params.overlayID }), | ||
}, | ||
{ | ||
path: '/test', | ||
name: 'test', | ||
component: () => import('@/views/TestView.vue'), | ||
}, | ||
{ | ||
path: '/:pathMatch(.*)*', | ||
component: () => import('@/views/PageNotFoundView.vue'), | ||
}, | ||
]; | ||
|
||
const router = createRouter({ | ||
history: createWebHistory(), | ||
routes, | ||
}); | ||
|
||
export default router; |
Oops, something went wrong.