diff --git a/src/assets/css/chat.scss b/src/assets/css/chat.scss index 44ab853..f8a702d 100644 --- a/src/assets/css/chat.scss +++ b/src/assets/css/chat.scss @@ -1,4 +1,6 @@ -$chat-background: #008860; +@import "@/assets/css/main.scss"; + +$chat-background: $background; $chat-standard-padding: 32px; $chat-standard-padding-s: 16px; $chat-standard-padding-xs: 8px; diff --git a/src/assets/css/login.scss b/src/assets/css/login.scss new file mode 100644 index 0000000..5b9c828 --- /dev/null +++ b/src/assets/css/login.scss @@ -0,0 +1,14 @@ +@import "@/assets/css/main.scss"; + +.login-root { + position: absolute; + left: 0px; + top: 0px; + right: 0px; + bottom: 0px; + width: 100%; + height: 100%; + padding: 0; + margin: 0; + background-color: $background; +} \ No newline at end of file diff --git a/src/assets/css/main.scss b/src/assets/css/main.scss new file mode 100644 index 0000000..abc0154 --- /dev/null +++ b/src/assets/css/main.scss @@ -0,0 +1 @@ +$background: #008860; diff --git a/src/components/Login.vue b/src/components/Login.vue index dbe51c8..07a735b 100644 --- a/src/components/Login.vue +++ b/src/components/Login.vue @@ -1,30 +1,31 @@ @@ -119,4 +119,8 @@ export default { }, }, }; - \ No newline at end of file + + + \ No newline at end of file diff --git a/src/components/RoomList.vue b/src/components/RoomList.vue index 99f5ae1..2685bfc 100644 --- a/src/components/RoomList.vue +++ b/src/components/RoomList.vue @@ -7,12 +7,8 @@ - - Topic: {{ room.topic }} + {{ room.summary.info.title }} + {{ room.topic }} diff --git a/src/store/auth.module.js b/src/store/auth.module.js index 4716c0b..38aabbe 100644 --- a/src/store/auth.module.js +++ b/src/store/auth.module.js @@ -1,5 +1,3 @@ -import MatrixService from '../services/matrix.service'; - const user = JSON.parse(localStorage.getItem('user')); const initialState = user ? { status: { loggedIn: true }, user } @@ -10,7 +8,7 @@ export const auth = { state: initialState, actions: { login({ commit }, user) { - return MatrixService.login(user).then( + return this._vm.$matrix.login(user).then( user => { commit('loginSuccess', user); return Promise.resolve(user); @@ -22,7 +20,7 @@ export const auth = { ); }, logout({ commit }) { - MatrixService.logout(); + this._vm.$matrix.logout(); commit('logout'); }, },