From d3ae365ed979fbd04ff8fb672cbbd8b17d0c8ab0 Mon Sep 17 00:00:00 2001 From: Joshua Sigona Date: Thu, 30 Jul 2020 04:15:19 +0900 Subject: [PATCH] Implement patch endpoints and "editables" --- family-tracker/package-lock.json | 31 ++++ family-tracker/package.json | 1 + family-tracker/public/index.html | 1 - family-tracker/src/App.css | 9 + family-tracker/src/App.js | 167 ++++++++++++++++-- src/main/java/sig/family/CorsFilter.java | 6 +- src/main/java/sig/family/Endpoints.java | 50 ++++++ src/main/java/sig/family/FamilyContainer.java | 9 +- .../sig/family/FamilyMemberContainer.java | 76 ++++++++ 9 files changed, 331 insertions(+), 19 deletions(-) create mode 100644 src/main/java/sig/family/FamilyMemberContainer.java diff --git a/family-tracker/package-lock.json b/family-tracker/package-lock.json index 0ebd335..c4867af 100644 --- a/family-tracker/package-lock.json +++ b/family-tracker/package-lock.json @@ -2435,6 +2435,37 @@ "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.0.tgz", "integrity": "sha512-3YDiu347mtVtjpyV3u5kVqQLP242c06zwDOgpeRnybmXlYYsLbtTrUBUm8i8srONt+FWobl5aibnU1030PeeuA==" }, + "axios": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.19.2.tgz", + "integrity": "sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==", + "requires": { + "follow-redirects": "1.5.10" + }, + "dependencies": { + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "requires": { + "ms": "2.0.0" + } + }, + "follow-redirects": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.10.tgz", + "integrity": "sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==", + "requires": { + "debug": "=3.1.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + } + } + }, "axobject-query": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-2.2.0.tgz", diff --git a/family-tracker/package.json b/family-tracker/package.json index 5035174..6d7a0ea 100644 --- a/family-tracker/package.json +++ b/family-tracker/package.json @@ -6,6 +6,7 @@ "@testing-library/jest-dom": "^4.2.4", "@testing-library/react": "^9.5.0", "@testing-library/user-event": "^7.2.1", + "axios": "^0.19.2", "react": "^16.13.1", "react-dom": "^16.13.1", "react-router-dom": "^5.2.0", diff --git a/family-tracker/public/index.html b/family-tracker/public/index.html index 41753b1..bbffc6b 100644 --- a/family-tracker/public/index.html +++ b/family-tracker/public/index.html @@ -10,7 +10,6 @@ content="Family Tracker" /> -