Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Nuxt-pages
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andrej Ramašeuski
Nuxt-pages
Commits
6f97aad6
Verified
Commit
6f97aad6
authored
5 days ago
by
Andrej Ramašeuski
Browse files
Options
Downloads
Patches
Plain Diff
Vuetify
parent
7af9324a
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Vuetify
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
layouts/default.vue
+31
-4
31 additions, 4 deletions
layouts/default.vue
nuxt.config.ts
+16
-7
16 additions, 7 deletions
nuxt.config.ts
package-lock.json
+685
-1
685 additions, 1 deletion
package-lock.json
package.json
+2
-1
2 additions, 1 deletion
package.json
with
734 additions
and
13 deletions
layouts/default.vue
+
31
−
4
View file @
6f97aad6
<
template
>
<
template
>
<v-app>
<v-app-bar
color=
"black"
flat=
"true"
>
<template
v-slot:prepend
>
<v-app-bar-nav-icon></v-app-bar-nav-icon>
</
template
>
<div>
<
template
v-slot:append
>
<button
@
click=
"$keycloak.logout()"
v-if=
"$keycloak.authenticated"
>
Logout
</button>
<v-btn
v-if=
"$keycloak.authenticated"
variant=
"text"
@
click=
"$keycloak.logout()"
append-icon=
"mdi-logout-variant"
class=
"auth-button"
>
<button
@
click=
"$keycloak.login()"
v-else
>
Login
</button>
{{
$keycloak
.
tokenParsed
.
name
}}
</div>
<template
v-slot:append
>
<v-icon
color=
"success"
title=
"Odhlásit se"
></v-icon>
</
template
>
</v-btn>
<v-btn
v-else
variant=
"outlined"
@
click=
"$keycloak.login()"
class=
"auth-button"
>
Přihlásit se
</v-btn>
</template>
<v-app-bar-title>
Pirátská aplikace
</v-app-bar-title>
</v-app-bar>
<v-main>
<v-container>
<slot
/>
<slot
/>
</v-container>
</v-main>
</v-app>
</template>
</template>
<
script
>
<
script
>
...
@@ -19,3 +39,10 @@ export default {
...
@@ -19,3 +39,10 @@ export default {
},
},
}
}
</
script
>
</
script
>
<
style
>
.auth-button
{
text-transform
:
none
;
font-weight
:
bold
;
}
</
style
>
This diff is collapsed.
Click to expand it.
nuxt.config.ts
+
16
−
7
View file @
6f97aad6
...
@@ -4,6 +4,13 @@ export default defineNuxtConfig({
...
@@ -4,6 +4,13 @@ export default defineNuxtConfig({
devtools
:
{
enabled
:
false
},
devtools
:
{
enabled
:
false
},
ssr
:
false
,
ssr
:
false
,
// app: {
// head: {
// link: [
// { rel: 'stylesheet', href: 'https://styleguide.pirati.cz/2.9.1/css/styles.css' }
// ]
// }
// },
runtimeConfig
:
{
runtimeConfig
:
{
public
:
{
public
:
{
keycloakUrl
:
"
https://auth.pirati.cz/auth
"
,
keycloakUrl
:
"
https://auth.pirati.cz/auth
"
,
...
@@ -12,12 +19,14 @@ export default defineNuxtConfig({
...
@@ -12,12 +19,14 @@ export default defineNuxtConfig({
},
},
},
},
// app: {
modules
:
[
"
vuetify-nuxt-module
"
],
// head: {
// link: [
// { rel: 'stylesheet', href: 'https://styleguide.pirati.cz/2.9.1/css/styles.css' }
// ]
// }
// },
vuetify
:
{
moduleOptions
:
{
/* module specific options */
},
vuetifyOptions
:
{
/* vuetify options */
}
}
})
})
This diff is collapsed.
Click to expand it.
package-lock.json
+
685
−
1
View file @
6f97aad6
This diff is collapsed.
Click to expand it.
package.json
+
2
−
1
View file @
6f97aad6
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
"
nuxt
"
:
"
^3.16.1
"
,
"
nuxt
"
:
"
^3.16.1
"
,
"
remeda
"
:
"
^2.21.2
"
,
"
remeda
"
:
"
^2.21.2
"
,
"
vue
"
:
"
^3.5.13
"
,
"
vue
"
:
"
^3.5.13
"
,
"
vue-router
"
:
"
^4.5.0
"
"
vue-router
"
:
"
^4.5.0
"
,
"
vuetify-nuxt-module
"
:
"
^0.18.4
"
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment