mirror of
https://github.com/m1k1o/neko-rooms.git
synced 2026-11-02 22:51:34 -06:00
minor fixes.
This commit is contained in:
+6
-1
@@ -17,7 +17,12 @@
|
||||
</v-app-bar>
|
||||
|
||||
<v-main>
|
||||
<router-view />
|
||||
<v-container
|
||||
class="fill-height"
|
||||
fluid
|
||||
>
|
||||
<router-view />
|
||||
</v-container>
|
||||
</v-main>
|
||||
|
||||
<v-footer app>
|
||||
|
||||
@@ -9,7 +9,7 @@ const routes: Array<RouteConfig> = [
|
||||
path: '/',
|
||||
name: 'Home',
|
||||
component: Home
|
||||
}
|
||||
},
|
||||
]
|
||||
|
||||
const router = new VueRouter({
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
RoomEntry,
|
||||
RoomSettings,
|
||||
RoomsApi,
|
||||
} from '@/api/index.ts'
|
||||
} from '@/api/index'
|
||||
|
||||
import { state, State } from './state'
|
||||
|
||||
@@ -21,7 +21,7 @@ export default new Vuex.Store({
|
||||
Vue.set(state, 'rooms', [...state.rooms, roomEntry])
|
||||
},
|
||||
ROOMS_PUT(state: State, roomEntry: RoomEntry) {
|
||||
const roomEntries = state.rooms.filter((room) => {
|
||||
const roomEntries = state.rooms.map((room) => {
|
||||
if (room.id == roomEntry.id) {
|
||||
return { ...room, ...roomEntry }
|
||||
} else {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {
|
||||
RoomEntry,
|
||||
} from '@/api/index.ts'
|
||||
} from '@/api/index'
|
||||
|
||||
export const state = {
|
||||
rooms: [] as RoomEntry[],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="home">
|
||||
<v-container>
|
||||
<RoomsList />
|
||||
</div>
|
||||
</v-container>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
|
||||
Reference in New Issue
Block a user