Skip to content

Commit

Permalink
pkp/pkp-lib#8919 Update to vue3
Browse files Browse the repository at this point in the history
  • Loading branch information
jardakotesovec committed Sep 26, 2023
1 parent ebc2d05 commit e1b4952
Show file tree
Hide file tree
Showing 13 changed files with 6,293 additions and 18,524 deletions.
30 changes: 30 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/* eslint-env node */
require("@rushstack/eslint-patch/modern-module-resolution");

module.exports = {
root: true,
env: {
node: true,
},
extends: [
"plugin:vue/vue3-essential",
"eslint:recommended",
"@vue/eslint-config-prettier/skip-formatting",
],
globals: {
$: true,
pkp: true,
},
parserOptions: {
ecmaVersion: "latest",
},
rules: {
"vue/multi-word-component-names": "off",
"no-unused-vars": [
"error",
{
args: "none",
},
],
},
};
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cypress/tests/**/*
lib/pkp/cypress/**/*
package.json
13 changes: 4 additions & 9 deletions js/load.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@ import WorkflowPage from '@/components/Container/WorkflowPageOMP.vue';
import JobsPage from '@/components/Container/JobsPage.vue';
import FailedJobsPage from '@/components/Container/FailedJobsPage.vue';
import FailedJobDetailsPage from '@/components/Container/FailedJobDetailsPage.vue';
import CatalogListPanel from '@/components/ListPanel/submissions/CatalogListPanel.vue';
import ManageCatalogPage from '@/components/Container/ManageCatalogPage.vue';
import SubmissionsPage from '@/components/Container/SubmissionsPage.vue';

// Required by the URN plugin
import FieldText from '@/components/Form/fields/FieldText.vue';
import FieldPubId from '@/components/Form/fields/FieldPubId.vue';
// styles
import '@/styles/_global.less';

// Expose Vue, the registry and controllers in a global var
window.pkp = Object.assign(PkpLoad, {
Expand All @@ -52,6 +51,7 @@ window.pkp = Object.assign(PkpLoad, {
DoiPage,
ImportExportPage,
ManageEmailsPage,
ManageCatalogPage,
JobsPage,
FailedJobsPage,
FailedJobDetailsPage,
Expand All @@ -66,8 +66,3 @@ window.pkp = Object.assign(PkpLoad, {
SubmissionsPage,
},
});

// Required by the URN plugin
window.pkp.Vue.component('field-text', FieldText);
window.pkp.Vue.component('field-pub-id', FieldPubId);
window.pkp.Vue.component('catalog-list-panel', CatalogListPanel);
Loading

0 comments on commit e1b4952

Please sign in to comment.