-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathload.js
69 lines (64 loc) · 2.68 KB
/
load.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/**
* @file js/load.js
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2000-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @brief Compiler entry point for building the JavaScript package. File imports
* using the `@` symbol are aliased to `lib/ui-library/src`.
*/
// styles
import '@/styles/_global.less';
import '@/styles/tw-theme-vars.css';
import PkpLoad from '../lib/pkp/js/load.js';
// Import controllers used by OJS
import Container from '@/components/Container/Container.vue';
import AdvancedSearchReviewerContainer from '@/components/Container/AdvancedSearchReviewerContainer.vue';
import Page from '@/components/Container/Page.vue';
import WorkflowPageOJS from '@/pages/workflow/WorkflowPageOJS.vue';
import AccessPage from '@/components/Container/AccessPage.vue';
import AddContextContainer from '@/components/Container/AddContextContainer.vue';
import AdminPage from '@/components/Container/AdminPage.vue';
import DoiPage from '@/components/Container/DoiPageOJS.vue';
import DecisionPage from '@/components/Container/DecisionPage.vue';
import ImportExportPage from '@/components/Container/ImportExportPage.vue';
import ManageEmailsPage from '@/components/Container/ManageEmailsPage.vue';
import SettingsPage from '@/components/Container/SettingsPage.vue';
import StartSubmissionPage from '@/components/Container/StartSubmissionPage.vue';
import StatsEditorialPage from '@/components/Container/StatsEditorialPage.vue';
import StatsPublicationsPage from '@/components/Container/StatsPublicationsPage.vue';
import StatsContextPage from '@/components/Container/StatsContextPage.vue';
import StatsIssuesPage from '@/components/Container/StatsIssuesPage.vue';
import StatsUsersPage from '@/components/Container/StatsUsersPage.vue';
import SubmissionWizardPage from '@/components/Container/SubmissionWizardPage.vue';
import WorkflowPage from '@/components/Container/WorkflowPageOJS.vue';
import DashboardPage from '@/pages/dashboard/DashboardPage.vue';
// Helper for initializing and tracking Vue controllers
import VueRegistry from '../lib/pkp/js/classes/VueRegistry.js';
VueRegistry.registerComponent('WorkflowPage', WorkflowPageOJS);
// Expose Vue, the registry and controllers in a global var
window.pkp = Object.assign(PkpLoad, window.pkp || {}, {
controllers: {
AccessPage,
AddContextContainer,
AdminPage,
AdvancedSearchReviewerContainer,
Container,
DoiPage,
DecisionPage,
ImportExportPage,
ManageEmailsPage,
Page,
SettingsPage,
StartSubmissionPage,
StatsEditorialPage,
StatsPublicationsPage,
StatsContextPage,
StatsIssuesPage,
StatsUsersPage,
SubmissionWizardPage,
WorkflowPage,
DashboardPage,
},
});