diff --git a/entrypoint.sh b/entrypoint.sh index 46f096e..38b8d06 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -12,7 +12,5 @@ do done - - echo "Starting Nginx" nginx -g 'daemon off;' diff --git a/src/components/NotifyError.vue b/src/components/NotifyError.vue new file mode 100644 index 0000000..64f3069 --- /dev/null +++ b/src/components/NotifyError.vue @@ -0,0 +1,79 @@ + + + + + + + + + {{ tittle }} + + {{ detail }} + + + + + + + + + + + diff --git a/src/components/TableView.vue b/src/components/TableView.vue new file mode 100644 index 0000000..53d363c --- /dev/null +++ b/src/components/TableView.vue @@ -0,0 +1,457 @@ + + + + + + แก้ไขข้อมูล + + + + ยกเลิก + + + + + เพิ่มข้อมูล + + + + + บันทึกร่าง + + + + ลบบันทึกร่าง + + + + + + เผยแพร่ + + + + ข้อมูลยังไม่เผยแพร่ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ col.label }} + + + + + + + + + + + + + + + + + + + ต้องการเผยแพร่ข้อมูลนี้หรือไม่? + + ข้อมูลที่กำลังถูกเผยแพร่นี้จะมีผลใช้งานทันที + + + + + + + + + + + + + + + + + + + ต้องการลบข้อมูลบันทึกร่างนี้หรือไม่? + + ข้อมูลบันทึกร่างที่กำลังถูกลบนี้จะมีผลใช้งานทันที + + + + + + + + + + + + diff --git a/src/main.ts b/src/main.ts index 1c6ac0e..27e8ef4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -36,6 +36,14 @@ app.use( // quasarUserOptions ) +app.component( + 'data-table', + defineAsyncComponent(() => import('./components/TableView.vue')) +) +app.component( + 'notifyError', + defineAsyncComponent(() => import('./components/NotifyError.vue')) +) app.component( 'datepicker', defineAsyncComponent(() => import('@vuepic/vue-datepicker'))