fix(ui-server-auth): exclude stage inference assets (#2379)
This commit is contained in:
@@ -20,7 +20,6 @@
|
|||||||
"@date-fns/utc": "catalog:",
|
"@date-fns/utc": "catalog:",
|
||||||
"@fontsource-variable/nunito": "catalog:",
|
"@fontsource-variable/nunito": "catalog:",
|
||||||
"@formkit/auto-animate": "catalog:",
|
"@formkit/auto-animate": "catalog:",
|
||||||
"@huggingface/transformers": "catalog:",
|
|
||||||
"@moeru/eventa": "catalog:",
|
"@moeru/eventa": "catalog:",
|
||||||
"@moeru/std": "catalog:",
|
"@moeru/std": "catalog:",
|
||||||
"@proj-airi/font-chillroundm": "workspace:^",
|
"@proj-airi/font-chillroundm": "workspace:^",
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ToasterRoot } from '@proj-airi/stage-ui/components'
|
import { ToasterRoot } from '@proj-airi/stage-ui/components/scenarios/toasters'
|
||||||
import { useSettingsGeneral, useSettingsTheme } from '@proj-airi/stage-ui/stores/settings'
|
import { useSettingsGeneral } from '@proj-airi/stage-ui/stores/settings/general'
|
||||||
|
import { useSettingsTheme } from '@proj-airi/stage-ui/stores/settings/theme'
|
||||||
import { storeToRefs } from 'pinia'
|
import { storeToRefs } from 'pinia'
|
||||||
import { watch } from 'vue'
|
import { watch } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
* policy linked on the sign-in page.
|
* policy linked on the sign-in page.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { OauthCallbackFailureStage } from '@proj-airi/stage-ui/composables'
|
import type { OauthCallbackFailureStage } from '@proj-airi/stage-ui/composables/use-analytics'
|
||||||
|
|
||||||
/** Login/signup credential kinds shown on the sign-in page. */
|
/** Login/signup credential kinds shown on the sign-in page. */
|
||||||
export type AuthMethod = 'email' | 'github' | 'google' | 'steam'
|
export type AuthMethod = 'email' | 'github' | 'google' | 'steam'
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import type { ProfileUser } from '../modules/profile'
|
import type { ProfileUser } from '../modules/profile'
|
||||||
|
|
||||||
import { defaultSignInProviders } from '@proj-airi/stage-ui/components/auth'
|
import { defaultSignInProviders } from '@proj-airi/stage-ui/components/auth'
|
||||||
import { useLinkedAccounts } from '@proj-airi/stage-ui/composables'
|
import { useLinkedAccounts } from '@proj-airi/stage-ui/composables/use-linked-accounts'
|
||||||
import { SERVER_URL } from '@proj-airi/stage-ui/libs/server'
|
import { SERVER_URL } from '@proj-airi/stage-ui/libs/server'
|
||||||
import { Avatar, Button, FieldInput } from '@proj-airi/ui'
|
import { Avatar, Button, FieldInput } from '@proj-airi/ui'
|
||||||
import { computed, onMounted, reactive, shallowRef } from 'vue'
|
import { computed, onMounted, reactive, shallowRef } from 'vue'
|
||||||
|
|||||||
@@ -113,9 +113,17 @@ export default defineConfig({
|
|||||||
// https://github.com/JohnCampionJr/vite-plugin-vue-layouts
|
// https://github.com/JohnCampionJr/vite-plugin-vue-layouts
|
||||||
Layouts({
|
Layouts({
|
||||||
layoutsDirs: [
|
layoutsDirs: [
|
||||||
resolve(import.meta.dirname, 'src', 'layouts'),
|
|
||||||
resolve(import.meta.dirname, '..', '..', 'packages', 'stage-layouts', 'src', 'layouts'),
|
resolve(import.meta.dirname, '..', '..', 'packages', 'stage-layouts', 'src', 'layouts'),
|
||||||
],
|
],
|
||||||
|
// Auth routes use only the plain layout. Loading other shared layouts
|
||||||
|
// pulls the stage renderer, model assets, and local inference runtime
|
||||||
|
// into the auth deployment.
|
||||||
|
exclude: [
|
||||||
|
'**/default.vue',
|
||||||
|
'**/home.vue',
|
||||||
|
'**/settings.vue',
|
||||||
|
'**/stage.vue',
|
||||||
|
],
|
||||||
}),
|
}),
|
||||||
|
|
||||||
// https://github.com/antfu/unocss
|
// https://github.com/antfu/unocss
|
||||||
|
|||||||
Generated
-3
@@ -2765,9 +2765,6 @@ importers:
|
|||||||
'@formkit/auto-animate':
|
'@formkit/auto-animate':
|
||||||
specifier: 'catalog:'
|
specifier: 'catalog:'
|
||||||
version: 0.10.0(vue@3.5.41(typescript@6.0.3))
|
version: 0.10.0(vue@3.5.41(typescript@6.0.3))
|
||||||
'@huggingface/transformers':
|
|
||||||
specifier: 'catalog:'
|
|
||||||
version: 3.8.1
|
|
||||||
'@moeru/eventa':
|
'@moeru/eventa':
|
||||||
specifier: 'catalog:'
|
specifier: 'catalog:'
|
||||||
version: 1.0.0(electron@43.4.1(supports-color@10.2.2))(h3@2.0.1-rc.29(crossws@0.4.12(srvx@0.12.7)))(hono@4.13.3)
|
version: 1.0.0(electron@43.4.1(supports-color@10.2.2))(h3@2.0.1-rc.29(crossws@0.4.12(srvx@0.12.7)))(hono@4.13.3)
|
||||||
|
|||||||
Reference in New Issue
Block a user