From 20e07ea0325b62766127d826559930bcdb626fe8 Mon Sep 17 00:00:00 2001 From: Dmitry Ignatiev Date: Mon, 20 Nov 2023 15:24:18 +0300 Subject: [PATCH] Handle errors on JS side in todo_app --- .../todo_app/todo_ui/README.md | 2 - .../todo_ui/src/components/ErrorToast.vue | 38 +++++++++++ .../todo_ui/src/components/TodoList.vue | 64 ++++++++++++++++--- 3 files changed, 94 insertions(+), 10 deletions(-) create mode 100644 module2/08_docker_containerization_advanced/todo_app/todo_ui/src/components/ErrorToast.vue diff --git a/module2/08_docker_containerization_advanced/todo_app/todo_ui/README.md b/module2/08_docker_containerization_advanced/todo_app/todo_ui/README.md index ff9e1a4..d8d71a5 100644 --- a/module2/08_docker_containerization_advanced/todo_app/todo_ui/README.md +++ b/module2/08_docker_containerization_advanced/todo_app/todo_ui/README.md @@ -1,7 +1,5 @@ # todo-ui -This template should help get you started developing with Vue 3 in Vite. - ## Recommended IDE Setup [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin). diff --git a/module2/08_docker_containerization_advanced/todo_app/todo_ui/src/components/ErrorToast.vue b/module2/08_docker_containerization_advanced/todo_app/todo_ui/src/components/ErrorToast.vue new file mode 100644 index 0000000..05ff5ce --- /dev/null +++ b/module2/08_docker_containerization_advanced/todo_app/todo_ui/src/components/ErrorToast.vue @@ -0,0 +1,38 @@ + + + diff --git a/module2/08_docker_containerization_advanced/todo_app/todo_ui/src/components/TodoList.vue b/module2/08_docker_containerization_advanced/todo_app/todo_ui/src/components/TodoList.vue index 8ab8b76..29381d7 100644 --- a/module2/08_docker_containerization_advanced/todo_app/todo_ui/src/components/TodoList.vue +++ b/module2/08_docker_containerization_advanced/todo_app/todo_ui/src/components/TodoList.vue @@ -78,18 +78,24 @@ +
+ +