diff --git a/db.json b/db.json index adec3e1..37a65c7 100644 --- a/db.json +++ b/db.json @@ -164,6 +164,42 @@ "completed": false, "body": "asdf", "id": 35 + }, + { + "subject": "asd", + "completed": false, + "body": "asdfff", + "id": 36 + }, + { + "subject": "e", + "completed": false, + "body": "fff", + "id": 37 + }, + { + "subject": "f", + "completed": false, + "body": "fa", + "id": 38 + }, + { + "subject": "asdf", + "completed": false, + "body": "asdffffffdf", + "id": 39 + }, + { + "subject": "asdf", + "completed": false, + "body": "asdf", + "id": 40 + }, + { + "subject": "asdf", + "completed": false, + "body": "asdffff", + "id": 41 } ] } \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 7e19f00..c71e24b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,72 +1,24 @@ \ No newline at end of file diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue new file mode 100644 index 0000000..a7b13b1 --- /dev/null +++ b/src/components/Navbar.vue @@ -0,0 +1,25 @@ + + + + + \ No newline at end of file diff --git a/src/components/Pagination.vue b/src/components/Pagination.vue new file mode 100644 index 0000000..a012918 --- /dev/null +++ b/src/components/Pagination.vue @@ -0,0 +1,65 @@ + + + + + \ No newline at end of file diff --git a/src/components/Toast.vue b/src/components/Toast.vue index a3b69bb..b0bc090 100644 --- a/src/components/Toast.vue +++ b/src/components/Toast.vue @@ -1,32 +1,53 @@ - \ No newline at end of file diff --git a/src/composables/toast.js b/src/composables/toast.js index 415a000..46433f1 100644 --- a/src/composables/toast.js +++ b/src/composables/toast.js @@ -3,18 +3,17 @@ import { useStore } from 'vuex'; export const useToast = () => { const store = useStore(); - const toastMessage = computed(() => store.getters['toast/toastMessageWithSmile']); - const toastAlertType = computed(() => store.state.toast.toastAlertType); - const showToast = computed(() => store.state.toast.showToast); + const toasts = computed(() => store.state.toast.toasts); + // const toastMessage = computed(() => store.getters['toast/toastMessageWithSmile']); + // const toastAlertType = computed(() => store.state.toast.toastAlertType); + // const showToast = computed(() => store.state.toast.showToast); const triggerToast = (message, type = 'success') => { store.dispatch('toast/triggerToast', message, type); } return { - toastMessage, - toastAlertType, - showToast, + toasts, triggerToast } } \ No newline at end of file diff --git a/src/pages/index.vue b/src/pages/index.vue index 504f464..6b8da35 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -1,7 +1,5 @@