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
86679059
Commit
86679059
authored
Feb 02, 2023
by
TTS Kieu Tuan Anh
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/category-ui' into 'feature/UI-vuetify'
Feature/category ui See merge request
!12
parents
064aae00
9462c892
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
658 additions
and
31 deletions
+658
-31
admin.vue
layouts/admin.vue
+3
-5
index.vue
pages/categories/index.vue
+567
-0
index.vue
pages/posts/index.vue
+85
-26
index.vue
pages/products/index.vue
+2
-0
index.vue
pages/users/index.vue
+1
-0
No files found.
layouts/admin.vue
View file @
86679059
<
template
>
<
template
>
<
div
>
<
v-app
>
<NavBar
/>
<NavBar
/>
<v-app>
<nuxt
/>
<nuxt
/>
</v-app>
</v-app>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
...
pages/categories/index.vue
View file @
86679059
This diff is collapsed.
Click to expand it.
pages/posts/index.vue
View file @
86679059
<!-- eslint-disable vue/valid-v-slot -->
<!-- eslint-disable no-sequences -->
<!-- eslint-disable no-unused-expressions -->
<!-- eslint-disable no-unused-expressions -->
<!-- eslint-disable vue/require-v-for-key -->
<
template
>
<
template
>
<div>
<div>
<div>
<div>
...
@@ -283,9 +288,17 @@
...
@@ -283,9 +288,17 @@
<div class="w-full mt-4 p-10">
<div class="w-full mt-4 p-10">
<form>
<form>
<label for="input-live">Title :</label>
<label for="input-live">Title :</label>
<b-form-input id="input-live" type="text" class="form-control mb-2" placeholder="name"
<b-form-input
aria-describedby="input-live-help input-live-feedback" v-model="title" max="255" min="1" trim>
id="input-live"
</b-form-input>
v-model="title"
type="text"
class="form-control mb-2"
placeholder="name"
aria-describedby="input-live-help input-live-feedback"
max="255"
min="1"
trim
/>
<label>Category ID :</label>
<label>Category ID :</label>
<b-form-select v-model="category_id">
<b-form-select v-model="category_id">
<option v-for="item in categories" :value="item.id">
<option v-for="item in categories" :value="item.id">
...
@@ -293,21 +306,40 @@
...
@@ -293,21 +306,40 @@
</option>
</option>
</b-form-select>
</b-form-select>
<label>Content :</label>
<label>Content :</label>
<input type="text" class="form-control mb-2" placeholder="Ordering" v-model="content" size="sm" required />
<input
v-model="content"
type="text"
class="form-control mb-2"
placeholder="Ordering"
size="sm"
required
>
<label>Author :</label>
<label>Author :</label>
<input type="text" class="form-control mb-2" placeholder="Description" v-model="user_id" size="sm" required />
<input
v-model="user_id"
type="text"
class="form-control mb-2"
placeholder="Description"
size="sm"
required
>
<label>Status :</label>
<label>Status :</label>
<b-form-select v-model="status" :options="options"
></b-form-select
>
<b-form-select v-model="status" :options="options"
/
>
<label>Image :</label>
<label>Image :</label>
<b-form-file v-model="images" multiple :state="Boolean(images)"
<b-form-file
placeholder="Choose a image or drop it here..." drop-placeholder="Drop file here..."></b-form-file>
v-model="images"
multiple
:state="Boolean(images)"
placeholder="Choose a image or drop it here..."
drop-placeholder="Drop file here..."
/>
</form>
</form>
</div>
</div>
<template #modal-footer>
<template #modal-footer>
<button v-b-modal.modal-close_visit
@click="$bvModal.hide('modal-create')" class="btn btn-danger btn-sm m-1
">
<button v-b-modal.modal-close_visit
class="btn btn-danger btn-sm m-1" @click="$bvModal.hide('modal-create')
">
Close
Close
</button>
</button>
<button
@click="createPost()" v-b-modal.modal-close_visit class="btn btn-success btn-sm m-1
">
<button
v-b-modal.modal-close_visit class="btn btn-success btn-sm m-1" @click="createPost()
">
Submit
Submit
</button>
</button>
</template>
</template>
...
@@ -317,23 +349,30 @@
...
@@ -317,23 +349,30 @@
<div class="w-full mt-4 p-10">
<div class="w-full mt-4 p-10">
<form>
<form>
<label>Title :</label>
<label>Title :</label>
<input
type="text" class="form-control mb-2" v-model="sTitle" size="sm" disabled /
>
<input
v-model="sTitle" type="text" class="form-control mb-2" size="sm" disabled
>
<label>Category ID :</label>
<label>Category ID :</label>
<input
type="text" class="form-control mb-2" v-model="sCategoryId" size="sm" disabled /
>
<input
v-model="sCategoryId" type="text" class="form-control mb-2" size="sm" disabled
>
<label>Content :</label>
<label>Content :</label>
<input
type="text" class="form-control mb-2" v-model="sContent" size="sm" disabled /
>
<input
v-model="sContent" type="text" class="form-control mb-2" size="sm" disabled
>
<label>Author :</label>
<label>Author :</label>
<input type="text" class="form-control mb-2" placeholder="Description" v-model="sUserId" size="sm" disabled />
<input
v-model="sUserId"
type="text"
class="form-control mb-2"
placeholder="Description"
size="sm"
disabled
>
<label>Status :</label>
<label>Status :</label>
<b-form-select v-model="sStatus" :options="options" disabled
></b-form-select
>
<b-form-select v-model="sStatus" :options="options" disabled
/
>
<label>Image :</label>
<label>Image :</label>
<div v-for="(image, index) in sImages" :key="index">
<div v-for="(image, index) in sImages" :key="index">
<b-img :src="image" fluid alt="Fluid image"
></b-img
>
<b-img :src="image" fluid alt="Fluid image"
/
>
</div>
</div>
</form>
</form>
</div>
</div>
<template #modal-footer>
<template #modal-footer>
<button v-b-modal.modal-close_visit
@click="$bvModal.hide('modal-show')" class="btn btn-danger btn-sm m-1
">
<button v-b-modal.modal-close_visit
class="btn btn-danger btn-sm m-1" @click="$bvModal.hide('modal-show')
">
Close
Close
</button>
</button>
</template>
</template>
...
@@ -343,8 +382,16 @@
...
@@ -343,8 +382,16 @@
<div class="w-full mt-4 p-10">
<div class="w-full mt-4 p-10">
<form>
<form>
<label>Title :</label>
<label>Title :</label>
<input type="text" class="form-control mb-2" placeholder="name" v-model="eTitle" max="255" min="1" size="sm"
<input
required />
v-model="eTitle"
type="text"
class="form-control mb-2"
placeholder="name"
max="255"
min="1"
size="sm"
required
>
<label>Category ID :</label>
<label>Category ID :</label>
<b-form-select v-model="eCategoryId">
<b-form-select v-model="eCategoryId">
<option v-for="item in categories" :value="item.id">
<option v-for="item in categories" :value="item.id">
...
@@ -352,21 +399,33 @@
...
@@ -352,21 +399,33 @@
</option>
</option>
</b-form-select>
</b-form-select>
<label>Content :</label>
<label>Content :</label>
<input type="text" class="form-control mb-2" placeholder="Ordering" v-model="eContent" size="sm" required />
<input
v-model="eContent"
type="text"
class="form-control mb-2"
placeholder="Ordering"
size="sm"
required
>
<label>Author :</label>
<label>Author :</label>
<input
type="text" class="form-control mb-2" placeholder="Description" v-model="eUserId" size="sm" /
>
<input
v-model="eUserId" type="text" class="form-control mb-2" placeholder="Description" size="sm"
>
<label>Status :</label>
<label>Status :</label>
<b-form-select v-model="eStatus" :options="options"
></b-form-select
>
<b-form-select v-model="eStatus" :options="options"
/
>
<label>Image :</label>
<label>Image :</label>
<b-form-file v-model="eImages" multiple :state="Boolean(eImages)"
<b-form-file
placeholder="Choose a image or drop it here..." drop-placeholder="Drop file here..."></b-form-file>
v-model="eImages"
multiple
:state="Boolean(eImages)"
placeholder="Choose a image or drop it here..."
drop-placeholder="Drop file here..."
/>
</form>
</form>
</div>
</div>
<template #modal-footer>
<template #modal-footer>
<button v-b-modal.modal-close_visit
@click="$bvModal.hide('modal-edit')" class="btn btn-danger btn-sm m-1
">
<button v-b-modal.modal-close_visit
class="btn btn-danger btn-sm m-1" @click="$bvModal.hide('modal-edit')
">
Close
Close
</button>
</button>
<button
@click="updatePost()" v-b-modal.modal-close_visit class="btn btn-success btn-sm m-1
">
<button
v-b-modal.modal-close_visit class="btn btn-success btn-sm m-1" @click="updatePost()
">
Submit
Submit
</button>
</button>
</template>
</template>
...
...
pages/products/index.vue
View file @
86679059
<!-- eslint-disable vue/require-v-for-key -->
<!-- eslint-disable vue/valid-v-slot -->
<
template
>
<
template
>
<div>
<div>
<div>
<div>
...
...
pages/users/index.vue
View file @
86679059
<!-- eslint-disable vue/valid-v-slot -->
<
template
>
<
template
>
<v-app>
<v-app>
<div>
<div>
...
...
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