JAVASCRIPT   9

load.js

Guest on 4th August 2021 02:23:31 PM

  1. /**
  2.  * @file js/load.js
  3.  *
  4.  * Copyright (c) 2014-2021 Simon Fraser University
  5.  * Copyright (c) 2000-2021 John Willinsky
  6.  * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
  7.  *
  8.  * @brief Compiler entry point for building the JavaScript package. File imports
  9.  *  using the `@` symbol are aliased to `lib/ui-library/src`.
  10.  */
  11. import PkpLoad from '../lib/pkp/js/load.js';
  12.  
  13. // Import controllers used by OJS
  14. import Container from '@/components/Container/Container.vue';
  15. import SettingsContainer from '@/components/Container/SettingsContainer.vue';
  16. import StatsEditorialContainer from '@/components/Container/StatsEditorialContainer.vue';
  17. import StatsPublicationsContainer from '@/components/Container/StatsPublicationsContainer.vue';
  18. import WorkflowContainer from '@/components/Container/WorkflowContainerOJS.vue';
  19.  
  20. // Required by the URN plugin
  21. import FieldText from '@/components/Form/fields/FieldText.vue';
  22.  
  23. // Expose Vue, the registry and controllers in a global var
  24. window.pkp = Object.assign(PkpLoad, {
  25.         controllers: {
  26.                 Container,
  27.                 SettingsContainer,
  28.                 StatsEditorialContainer,
  29.                 StatsPublicationsContainer,
  30.                 WorkflowContainer
  31.         }
  32. });
  33.  
  34. // Required by the URN plugin
  35. window.pkp.Vue.component('field-text', FieldText);

Raw Paste


Login or Register to edit or fork this paste. It's free.