diff --git a/public/favicon.ico b/public/favicon.ico deleted file mode 100644 index df36fcf..0000000 Binary files a/public/favicon.ico and /dev/null differ diff --git a/public/index.html b/public/index.html index 3e5a139..8d8af10 100644 --- a/public/index.html +++ b/public/index.html @@ -4,7 +4,6 @@ - <%= htmlWebpackPlugin.options.title %> diff --git a/src/App.vue b/src/App.vue index 55df315..0ef6906 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,17 +1,16 @@ diff --git a/src/assets/logo.png b/src/assets/logo.png deleted file mode 100644 index f3d2503..0000000 Binary files a/src/assets/logo.png and /dev/null differ diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue deleted file mode 100644 index 879051a..0000000 --- a/src/components/HelloWorld.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - diff --git a/src/components/Table.vue b/src/components/Table.vue new file mode 100644 index 0000000..7cac8c2 --- /dev/null +++ b/src/components/Table.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/src/services/DeckService.js b/src/services/DeckService.js new file mode 100644 index 0000000..e4486c1 --- /dev/null +++ b/src/services/DeckService.js @@ -0,0 +1,20 @@ +export async function getHand() { + const response = await fetch('http://localhost:8080/api/deck/hand'); + return await response.json(); +} + +export async function sortHand(hand) { + const response = await fetch(`http://localhost:8080/api/deck/hand:sort`, { + method: 'PUT', + headers: {'Content-Type': 'application/json'}, + body: JSON.stringify(hand) + }) + return await response.json(); +} + +export async function resetDeck() { + const response = await fetch(`http://localhost:8080/api/deck:reset`, { + method: 'PUT' + }) + await response; +}