-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmain.js
39 lines (37 loc) · 1.24 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import app from 'trim/js/app.js';
import translations from 'trim/js/lang/english.js';
import routes from './routes.js';
import services from './services.js';
import DummyComponent from './dummy.vue';
// import auth from './auth';
import 'apiServer';
import './scss/main.scss';
app
.setBootData({
// usePatchForUpdate: false,
// apiPagination: {
// strategy: 'offsetBased',
// offsetKey: 'offset',
// limitKey: 'limit',
// limitOptions: [50, 100, 200, 300, 500],
// itemsPerPage: 100
// }
// resourceToApiMap: {
// article: 'article'
// user: 'user'
// }
toggleColumnsVisibility: true,
validationErrorField: 'detail',
itemsPerPage: process.env.NODE_ENV !== 'production' ? 15 : 10,
usesPushState: process.env.NODE_ENV !== 'production',
googleMapsApiKey: 'AIzaSyBVqg9EqOqARXVIaKRSC7pJpVeHKDRoU2I',
baseUrl: process.env.BASE_URL,
baseApiUrl: process.env.BASE_API_URL
})
.loadTranslations(translations, 'en')
.registerServices(services)
.registerRoutes(routes)
.beforeAdminEnter(() => {})
.appendAppComponent(DummyComponent)
// .useAuth(auth)
.start();