Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
K
kiaisoft_tuananh_nuxt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TTS Tran Viet Anh
kiaisoft_tuananh_nuxt
Commits
5c888d06
Commit
5c888d06
authored
Jan 31, 2023
by
TTS Kieu Tuan Anh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add base URL + navbar
parent
af9a149c
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
292 additions
and
239 deletions
+292
-239
Navbar.vue
components/Navbar.vue
+14
-43
nuxt.config.js
nuxt.config.js
+4
-1
index.vue
pages/users/index.vue
+274
-195
No files found.
components/Navbar.vue
View file @
5c888d06
<
template
>
<!--
<div>
<b-navbar
toggleable=
"lg"
type=
"dark"
variant=
"info"
style=
"background-color: #6f2ca6 !important"
>
<SideBar
/>
<b-navbar-toggle
target=
"nav-collapse"
></b-navbar-toggle>
-->
<!--
<b-collapse
id=
"nav-collapse"
is-nav
>
<b-navbar-nav>
<b-nav-item
href=
"/users"
>
USER
</b-nav-item>
<b-nav-item
href=
"/categories"
>
CATEGORY
</b-nav-item>
<b-nav-item
href=
"/products"
>
PRODUCT
</b-nav-item>
<b-nav-item
href=
"/posts"
>
POST
</b-nav-item>
</b-navbar-nav>
-->
<!-- Right aligned nav items -->
<!--
<b-navbar-nav
class=
"ml-auto"
>
<b-nav-item-dropdown
right
>
-->
<!-- Using 'button-content' slot -->
<!--
<template
#button-content
>
<em>
{{
$auth
.
$storage
.
getUniversal
(
"
userName
"
)
}}
</em>
</
template
>
<b-dropdown-item
href=
"#"
>
Profile
</b-dropdown-item>
<b-dropdown-item
href=
"#"
@
click=
"logout"
>
Sign Out
</b-dropdown-item>
</b-nav-item-dropdown>
</b-navbar-nav>
</b-collapse>
</b-navbar>
</div>
-->
<div>
<v-toolbar
dark
prominent
src=
"https://cdn.vuetifyjs.com/images/backgrounds/vbanner.jpg"
>
<v-app-bar-nav-icon
></v-app-bar-nav-icon
>
<v-app-bar-nav-icon
/
>
<v-toolbar-title>
<v-btn
href=
"/users"
>
...
...
@@ -58,7 +29,7 @@
</v-btn>
</v-toolbar-title>
<v-spacer
></v-spacer
>
<v-spacer
/
>
<v-toolbar-title>
{{
$auth
.
$storage
.
getUniversal
(
"
userName
"
)
}}
</v-toolbar-title>
...
...
nuxt.config.js
View file @
5c888d06
...
...
@@ -52,7 +52,10 @@ export default {
// Axios module configuration: https://go.nuxtjs.dev/config-axios
axios
:
{
// Workaround to avoid enforcing hard-coded localhost:3000: https://github.com/nuxt-community/axios-module/issues/308
baseURL
:
'
/
'
,
baseURL
:
'
http://127.0.0.1:8000/api/
'
,
debug
:
false
,
proxyHeaders
:
true
,
credentials
:
false
,
},
// Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify
...
...
pages/users/index.vue
View file @
5c888d06
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment