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
d318b797
Commit
d318b797
authored
Feb 01, 2023
by
TTS Kieu Tuan Anh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
post + product
parent
ef3630f7
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1308 additions
and
574 deletions
+1308
-574
admin.vue
layouts/admin.vue
+3
-1
index.vue
pages/posts/index.vue
+397
-101
index.vue
pages/products/index.vue
+799
-358
index.vue
pages/users/index.vue
+109
-114
No files found.
layouts/admin.vue
View file @
d318b797
<
template
>
<
template
>
<div>
<div>
<NavBar
/>
<NavBar
/>
<nuxt
/>
<v-app>
<nuxt
/>
</v-app>
</div>
</div>
</
template
>
</
template
>
...
...
pages/posts/index.vue
View file @
d318b797
This diff is collapsed.
Click to expand it.
pages/products/index.vue
View file @
d318b797
This diff is collapsed.
Click to expand it.
pages/users/index.vue
View file @
d318b797
<
template
>
<
template
>
<v-app>
<v-app>
<div>
<div
/>
<div>
<div>
<v-breadcrumbs
:items=
"items"
>
<div
/>
<template
#divider
>
<div>
<v-icon>
mdi-chevron-right
</v-icon>
<v-breadcrumbs
:items=
"items"
>
</
template
>
<template
#divider
>
</v-breadcrumbs>
<v-icon>
mdi-chevron-right
</v-icon>
</div>
</
template
>
<div
style=
"float: right"
>
</v-breadcrumbs>
</div>
<div
style=
"float: right"
>
<v-dialog
v-model=
"dialog1"
persistent
max-width=
"600px"
@
submit.prevent=
"createUser"
>
<
template
#activator
="{
on
,
attrs
}"
>
<v-btn
color=
"primary"
dark
v-bind=
"attrs"
v-on=
"on"
>
New USER
</v-btn>
</
template
>
<v-card>
<v-card-title>
<span
class=
"text-h5"
>
User Profile
</span>
</v-card-title>
<v-card-text>
<v-container>
<v-row>
<v-col
cols=
"12"
sm=
"6"
md=
"4"
>
<v-text-field
v-model=
"name"
label=
"Legal name*"
required
/>
</v-col>
<v-col
cols=
"12"
>
<v-text-field
v-model=
"email"
label=
"Email*"
required
/>
</v-col>
<v-col
cols=
"12"
>
<v-text-field
v-model=
"password"
label=
"Password*"
type=
"password"
required
/>
</v-col>
</v-row>
</v-container>
<small>
*indicates required field
</small>
</v-card-text>
<v-card-actions>
<v-spacer
/>
<v-btn
color=
"blue darken-1"
text
@
click=
"dialog1 = false"
>
Close
</v-btn>
<v-btn
color=
"blue darken-1"
text
type=
"submit"
@
click=
"dialog1 = false; createUser();"
>
Save
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</div>
<!-- modal-create -->
<v-dialog
<v-dialog
v-model=
"dialog
1
"
v-model=
"dialog
2
"
persistent
persistent
max-width=
"600px"
max-width=
"600px"
@
submit.prevent=
"createUser"
>
>
<
template
#activator
="{
on
,
attrs
}"
>
<v-btn
color=
"primary"
dark
v-bind=
"attrs"
v-on=
"on"
>
New USER
</v-btn>
</
template
>
<v-card>
<v-card>
<v-card-title>
<v-card-title>
<span
class=
"text-h5"
>
User
Profile
</span>
<span
class=
"text-h5"
>
User
Edit
</span>
</v-card-title>
</v-card-title>
<v-card-text>
<v-card-text>
<v-container>
<v-container>
...
@@ -39,21 +98,21 @@
...
@@ -39,21 +98,21 @@
md=
"4"
md=
"4"
>
>
<v-text-field
<v-text-field
v-model=
"
n
ame"
v-model=
"
eN
ame"
label=
"Legal name*"
label=
"Legal name*"
required
required
/>
/>
</v-col>
</v-col>
<v-col
cols=
"12"
>
<v-col
cols=
"12"
>
<v-text-field
<v-text-field
v-model=
"email"
v-model=
"e
E
mail"
label=
"Email*"
label=
"Email*"
required
required
/>
/>
</v-col>
</v-col>
<v-col
cols=
"12"
>
<v-col
cols=
"12"
>
<v-text-field
<v-text-field
v-model=
"
p
assword"
v-model=
"
eP
assword"
label=
"Password*"
label=
"Password*"
type=
"password"
type=
"password"
required
required
...
@@ -68,7 +127,7 @@
...
@@ -68,7 +127,7 @@
<v-btn
<v-btn
color=
"blue darken-1"
color=
"blue darken-1"
text
text
@
click=
"dialog
1
= false"
@
click=
"dialog
2
= false"
>
>
Close
Close
</v-btn>
</v-btn>
...
@@ -76,101 +135,37 @@
...
@@ -76,101 +135,37 @@
color=
"blue darken-1"
color=
"blue darken-1"
text
text
type=
"submit"
type=
"submit"
@
click=
"dialog
1 = false; cre
ateUser();"
@
click=
"dialog
2 = false; upd
ateUser();"
>
>
Save
Save
</v-btn>
</v-btn>
</v-card-actions>
</v-card-actions>
</v-card>
</v-card>
</v-dialog>
</v-dialog>
</div>
<v-data-table
:headers=
"headers"
:items=
"users"
sort-by=
"calories"
class=
"elevation-1"
>
<!-- modal-create -->
<
template
#top
>
<v-dialog
<v-toolbar
flat
>
v-model=
"dialog2"
<v-toolbar-title>
User Manage
</v-toolbar-title>
persistent
<v-divider
class=
"mx-4"
inset
vertical
/>
max-width=
"600px"
<v-spacer
/>
>
</v-toolbar>
<v-card>
</
template
>
<v-card-title>
<
template
#
[`
item
.
actions
`
]=
"{ item }"
>
<span
class=
"text-h5"
>
User Edit
</span>
<v-icon
:id=
"item.id"
small
class=
"mr-2"
@
click=
"dialog2 = true; editUser(item);"
>
</v-card-title>
mdi-pencil
<v-card-text>
</v-icon>
<v-container>
<v-icon
:id=
"item.id"
small
@
click=
"deleteUser(item.id, item)"
>
<v-row>
mdi-delete
<v-col
</v-icon>
cols=
"12"
</
template
>
sm=
"6"
<
template
#no-data
>
md=
"4"
<v-btn
color=
"primary"
@
click=
"initialize"
>
>
Reset
<v-text-field
v-model=
"eName"
label=
"Legal name*"
required
/>
</v-col>
<v-col
cols=
"12"
>
<v-text-field
v-model=
"eEmail"
label=
"Email*"
required
/>
</v-col>
<v-col
cols=
"12"
>
<v-text-field
v-model=
"ePassword"
label=
"Password*"
type=
"password"
required
/>
</v-col>
</v-row>
</v-container>
<small>
*indicates required field
</small>
</v-card-text>
<v-card-actions>
<v-spacer
/>
<v-btn
color=
"blue darken-1"
text
@
click=
"dialog2 = false"
>
Close
</v-btn>
<v-btn
color=
"blue darken-1"
text
type=
"submit"
@
click=
"dialog2 = false; updateUser();"
>
Save
</v-btn>
</v-btn>
</v-card-actions>
</
template
>
</v-card>
</v-data-table>
</v-dialog>
</div>
<v-data-table
:headers=
"headers"
:items=
"users"
sort-by=
"calories"
class=
"elevation-1"
>
</v-app>
<
template
#top
>
<v-toolbar
flat
>
<v-toolbar-title>
User Manage
</v-toolbar-title>
<v-divider
class=
"mx-4"
inset
vertical
/>
<v-spacer
/>
</v-toolbar>
</
template
>
<
template
#item.actions=
"{ item }"
>
<v-icon
:id=
"item.id"
small
class=
"mr-2"
@
click=
"dialog2 = true; editUser(item);"
>
mdi-pencil
</v-icon>
<v-icon
:id=
"item.id"
small
@
click=
"deleteUser(item.id, item)"
>
mdi-delete
</v-icon>
</
template
>
<
template
#no-data
>
<v-btn
color=
"primary"
@
click=
"initialize"
>
Reset
</v-btn>
</
template
>
</v-data-table>
</div>
</v-app>
</template>
</template>
<
script
>
<
script
>
export
default
{
export
default
{
...
...
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