Skip to content

Commit

Permalink
Add colors and saved messages
Browse files Browse the repository at this point in the history
  • Loading branch information
meyskens committed Nov 12, 2018
1 parent da27106 commit a8207c1
Show file tree
Hide file tree
Showing 10 changed files with 244 additions and 79 deletions.
57 changes: 22 additions & 35 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"dependencies": {
"axios": "^0.18.0",
"jquery": "^3.3.1",
"materialize-css": "^1.0.0",
"socket.io-client": "^1.7.4",
"vue": "^2.5.17",
Expand Down
10 changes: 9 additions & 1 deletion frontend/src/api/messages.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import axios from "axios"
import { URL } from "./const"

export const get = (key) => {
return axios.get(`${URL}/session/${key}/messages`)
}

export const set = (key, messages) => {
return axios.post(`${URL}/session/${key}/messages`, { messages })
}

export const send = (key, message) => {
return axios.post(`${URL}/session/${key}/message`, { message })
return axios.post(`${URL}/session/${key}/message`, message)
}
4 changes: 0 additions & 4 deletions frontend/src/layouts/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
<nav>
<div class="nav-wrapper">
<a href="#" class="brand-logo">TalksTimer</a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li><router-link to="/">Home</router-link></li>
<li><router-link to="/about">Test</router-link></li>
</ul>
</div>
</nav>
</div>
Expand Down
Loading

0 comments on commit a8207c1

Please sign in to comment.