Skip to content

Commit f3e16bb

Browse files
fix console alerts
1 parent 14c2b81 commit f3e16bb

File tree

5 files changed

+10
-12
lines changed

5 files changed

+10
-12
lines changed

admin/src/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { PLUGIN_ID } from './pluginId';
33

44
const api = {
55
getCollections: async () => {
6-
return await axios.get(`/${PLUGIN_ID}/settings/collections`);
6+
return await axios.get(`/${PLUGIN_ID}/collections`);
77
},
88
getExtensions: async () => {
99
return await axios.get(`/${PLUGIN_ID}/extensions`);

admin/src/index.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ export default {
1111
id: `${PLUGIN_ID}.plugin.name`,
1212
defaultMessage: PLUGIN_ID,
1313
},
14-
Component: async () => {
15-
const { App } = await import('./pages/App');
16-
17-
return App;
14+
Component: () => {
15+
return import('./pages/App');
1816
},
1917
});
2018

@@ -33,8 +31,8 @@ export default {
3331
defaultMessage: 'Settings',
3432
},
3533
id: 'settings',
36-
to: `/settings/${PLUGIN_ID}`,
37-
Component: async () => {
34+
to: `${PLUGIN_ID}`,
35+
Component: () => {
3836
return import('./pages/SettingsPage');
3937
},
4038
},

admin/src/pages/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ const App = () => {
1515
);
1616
};
1717

18-
export { App };
18+
export default App;

admin/src/utils/defaultSettings.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ const defaultSettings: SettingsType = {
1212
endHour: '23:59',
1313
defaultView: 'Month',
1414
monthView: true,
15-
weekView: false,
16-
workWeekView: false,
17-
dayView: false,
15+
weekView: true,
16+
workWeekView: true,
17+
dayView: true,
1818
todayButton: true,
1919
createButton: true,
2020
primaryColor: '#4945ff',

server/src/routes/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default [
1010
},
1111
{
1212
method: 'GET',
13-
path: '/settings/collections',
13+
path: '/collections',
1414
handler: 'controller.getCollections',
1515
config: {
1616
policies: [],

0 commit comments

Comments
 (0)