Skip to content

Commit

Permalink
chore: deps
Browse files Browse the repository at this point in the history
  • Loading branch information
minenwerfer committed Mar 7, 2024
1 parent 5176b42 commit 149ef6a
Show file tree
Hide file tree
Showing 9 changed files with 374 additions and 255 deletions.
532 changes: 300 additions & 232 deletions package-lock.json

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions web/.aeria-ui/aeria-ui.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,17 @@ declare module '@vue/runtime-core' {
}
}

import type { RouteRecordRaw } from 'vue-router'
import type { Icon } from '@aeriajs/types'

declare global {
const definePage: (page: Partial<RouteRecordRaw> & {
meta: {
title: string
icon?: Icon
}
}) => void
}

export {}
//
1 change: 1 addition & 0 deletions web/.aeria-ui/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export {}

declare module '@vue/runtime-core' {
export interface GlobalComponents {
AeriaIcon: typeof import('@aeria-ui/ui')['AeriaIcon']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
}
Expand Down
28 changes: 28 additions & 0 deletions web/.aeria-ui/instance.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// @ts-check
import vueRouter from 'unplugin-vue-router/vite'

/** @type {import('aeria-ui-build').InstanceConfig} */
export default {
site: {
title: 'Quickstart',
signinText: 'Área restrita',
signupForm: true,
},
icons: {
libraries: [
'@aeria-ui/ui',
'aeria-app-layout',
],
},
vite: {
resolve: {
preserveSymlinks: true,
},
plugins: [
vueRouter({
dts: './.aeria-ui/typed-router.d.ts'
})
]
},
}

14 changes: 0 additions & 14 deletions web/.aeria-ui/instance.json

This file was deleted.

25 changes: 25 additions & 0 deletions web/.aeria-ui/typed-router.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// Generated by unplugin-vue-router. ‼️ DO NOT MODIFY THIS FILE ‼️
// It's recommended to commit this file.
// Make sure to add this file to your tsconfig.json file as an "includes" or "files" entry.

declare module 'vue-router/auto-routes' {
import type {
RouteRecordInfo,
ParamValue,
ParamValueOneOrMore,
ParamValueZeroOrMore,
ParamValueZeroOrOne,
} from 'unplugin-vue-router/types'

/**
* Route name map generated by unplugin-vue-router
*/
export interface RouteNamedMap {
'/': RouteRecordInfo<'/', '/', Record<never, never>, Record<never, never>>,
'/_dashboard': RouteRecordInfo<'/_dashboard', '/_dashboard', Record<never, never>, Record<never, never>>,
'/dashboard/': RouteRecordInfo<'/dashboard/', '/dashboard', Record<never, never>, Record<never, never>>,
}
}
5 changes: 3 additions & 2 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
"aeria-ui": "latest"
},
"devDependencies": {
"aeria-ui-build": "latest",
"autoprefixer": "^10.4.16",
"eslint-config-aeriaui": "latest",
"eslint-plugin-readable-tailwind": "^1.0.0",
"postcss": "^8.4.31",
"tailwindcss": "^3.3.5",
"vue-tsc": "^1.8.27",
"aeria-ui-build": "latest"
"unplugin-vue-router": "^0.8.4",
"vue-tsc": "^1.8.27"
}
}
9 changes: 3 additions & 6 deletions web/src/routes.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { userRoutes, dashboardRoutes } from 'aeria-ui'
import DashboardLayout from './pages/_dashboard.vue'
import { AuthWall } from 'aeria-app-layout'
import { routes as autoRoutes } from 'vue-router/auto-routes'

export const routes = [
export const routes = autoRoutes.concat([
userRoutes(AuthWall),
dashboardRoutes(DashboardLayout, [
{
Expand All @@ -14,9 +15,5 @@ export const routes = [
},
},
]),
{
path: '/',
component: () => import('./pages/index.vue'),
},
]
])

3 changes: 2 additions & 1 deletion web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"esModuleInterop": true,
"preserveSymlinks": true,
"types": [
"@aeria-ui/ui/vue"
"@aeria-ui/ui/vue",
"unplugin-vue-router/client"
]
},
"include": [
Expand Down

0 comments on commit 149ef6a

Please sign in to comment.