Skip to content

Commit

Permalink
fix(viewers): add safeguard before viewers are saved (#4417)
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed Dec 7, 2020
1 parent 4e897f3 commit 37235b3
Show file tree
Hide file tree
Showing 5 changed files with 1,062 additions and 969 deletions.
2 changes: 2 additions & 0 deletions src/bot/helpers/dayjs.ts
Expand Up @@ -2,11 +2,13 @@ import dayjs from 'dayjs';
import utc from 'dayjs/plugin/utc';
import relativeTime from 'dayjs/plugin/relativeTime';
import localizedFormat from 'dayjs/plugin/localizedFormat';
import customParseFormat from 'dayjs/plugin/customParseFormat';
import { default as tz } from 'dayjs/plugin/timezone';
dayjs.extend(utc);
dayjs.extend(tz);
dayjs.extend(relativeTime);
dayjs.extend(localizedFormat);
dayjs.extend(customParseFormat);

require('dayjs/locale/cs');
require('dayjs/locale/de');
Expand Down
5 changes: 3 additions & 2 deletions src/panel/index.ts
Expand Up @@ -137,8 +137,9 @@ const main = async () => {
{ path: '/manage/spotify/bannedsongs', name: 'spotifyManagerBannedsongs', component: () => import('./views/managers/spotify/spotify-bannedsongs.vue') },
{ path: '/manage/timers/list', name: 'TimersManagerList', component: () => import('./views/managers/timers/timers-list.vue') },
{ path: '/manage/timers/edit/:id?', name: 'TimersManagerEdit', component: () => import('./views/managers/timers/timers-edit.vue') },
{ path: '/manage/viewers/list', name: 'viewersManagerList', component: () => import('./views/managers/viewers/viewers-list.vue') },
{ path: '/manage/viewers/edit/:id?', name: 'viewersManagerEdit', component: () => import('./views/managers/viewers/viewers-edit.vue') },
{ path: '/manage/viewers/', redirect: '/manage/viewers/list' },
{ path: '/manage/viewers/list', name: 'viewersManagerList', component: () => import('./views/managers/viewers.vue') },
{ path: '/manage/viewers/edit/:id?', name: 'viewersManagerEdit', component: () => import('./views/managers/viewers.vue') },

{ path: '/settings/permissions/:id?', name: 'PermissionsSettings', component: () => import('./views/settings/permissions.vue') },
{ path: '/settings/translations', name: 'TranslationsSettings', component: () => import('./views/settings/translations.vue') },
Expand Down

0 comments on commit 37235b3

Please sign in to comment.