Skip to content

Commit

Permalink
Add external vue for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Jun 10, 2024
1 parent c8b5ecd commit f6257ec
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/assets/components/NavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const { logout } = useLogoutApi(auth)
<UFNavBar title="Userfrosting">
<UFNavBarItem :to="{ name: 'home' }" label="Home" />
<UFNavBarItem :to="{ name: 'about' }" label="About" />
<UFNavBarItem to="/alert" label="Alert" />
<UFNavBarItem to="/resources" label="Api Test" />
<UFNavBarItem to="/auth" label="Login Test" />
<UFNavBarUserCard
Expand Down
5 changes: 5 additions & 0 deletions app/assets/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ const router = createRouter({
name: 'about',
component: () => import('../views/AboutView.vue')
},
{
path: '/alert',
name: 'alert',
component: () => import('@userfrosting/theme-pink-cupcake-example/src/views/DashboardAlerts.vue')
},
{
path: '/resources',
name: 'api',
Expand Down
38 changes: 35 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"description": "UserFrosting Vue Demo",
"dependencies": {
"@userfrosting/theme-pink-cupcake": "^0.2.0",
"@userfrosting/theme-pink-cupcake-example": "git+https://github.com/userfrosting/theme-pink-cupcake-example.git",
"axios": "^1.5.0",
"pinia": "^2.1.6",
"pinia-plugin-persistedstate": "^3.2.0",
Expand Down
5 changes: 5 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ Encore
.cleanupOutputBeforeBuild()
.enableBuildNotifications()
.enableTypeScriptLoader()
// Allow typescript to parse vue components imported from source
// eg.: @userfrosting/theme-pink-cupcake-example/src/views/DashboardAlerts.vue
.configureLoaderRule('typescript', loaderRule => {
loaderRule.exclude = undefined
})
.enableSourceMaps(!Encore.isProduction())
.enableVersioning(Encore.isProduction())
.enableVueLoader(() => {}, {
Expand Down

0 comments on commit f6257ec

Please sign in to comment.