From 7a6167a23f25bc71b0e4666d5660ea0ea6a4a7c6 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Tue, 27 Aug 2019 14:35:46 +0900 Subject: [PATCH] Add project service --- frontend/components/Modal.vue | 3 +- frontend/layouts/projects.vue | 17 + frontend/pages/projects/index.vue | 426 ++++++------------ .../services/{request.js => api.service.js} | 5 +- frontend/services/project.service.js | 21 + frontend/test/project.service.spec.js | 46 ++ frontend/test/request.spec.js | 4 +- 7 files changed, 232 insertions(+), 290 deletions(-) create mode 100644 frontend/layouts/projects.vue rename frontend/services/{request.js => api.service.js} (82%) create mode 100644 frontend/services/project.service.js create mode 100644 frontend/test/project.service.spec.js diff --git a/frontend/components/Modal.vue b/frontend/components/Modal.vue index 03fa9355..bfe33683 100644 --- a/frontend/components/Modal.vue +++ b/frontend/components/Modal.vue @@ -29,7 +29,7 @@ {{ button }} @@ -59,6 +59,7 @@ export default { }, agree() { this.dialog = false + this.$emit('agree') }, cancel() { this.dialog = false diff --git a/frontend/layouts/projects.vue b/frontend/layouts/projects.vue new file mode 100644 index 00000000..b6f42cf0 --- /dev/null +++ b/frontend/layouts/projects.vue @@ -0,0 +1,17 @@ + + + diff --git a/frontend/pages/projects/index.vue b/frontend/pages/projects/index.vue index bbfac55a..770cc3e1 100644 --- a/frontend/pages/projects/index.vue +++ b/frontend/pages/projects/index.vue @@ -1,333 +1,189 @@