File tree Expand file tree Collapse file tree 5 files changed +10
-12
lines changed
Expand file tree Collapse file tree 5 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { PLUGIN_ID } from './pluginId';
33
44const 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` ) ;
Original file line number Diff line number Diff 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 } ,
Original file line number Diff line number Diff line change @@ -15,4 +15,4 @@ const App = () => {
1515 ) ;
1616} ;
1717
18- export { App } ;
18+ export default App ;
Original file line number Diff line number Diff 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' ,
Original file line number Diff line number Diff 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 : [ ] ,
You can’t perform that action at this time.
0 commit comments