Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • 2.11.0-privacyPolicy
  • APIv2
  • Docs/Setup
  • Experiment/fix-debugging
  • Experimental/Heinrichs-cypress
  • Feature/xxxx-turnOffDataPub
  • Fix/xxxx-ToS400Error
  • Fix/xxxx-migrateLogin
  • Fix/xxxx-tokenUploadButton
  • Hotfix/0038-correctDownload
  • Hotfix/1917-PublicFilesVisibility
  • Hotfix/1963-fixOrganizationField
  • Hotfix/2015-PublicFilesVisibility
  • Hotfix/2130-uiv2ContactChange
  • Hotfix/2144-invitationCall
  • Hotfix/2150-fixUpload
  • Hotfix/2160-userOrgsInst
  • Hotfix/2190-requiredFieldsForUserProfile
  • Hotfix/2196-RCVTableTranslation
  • Hotfix/2212-fixFiles
  • Hotfix/2226-userProfileSaveButton
  • Hotfix/2232-dependencyFix
  • Hotfix/2233-fixMe
  • Hotfix/2258-saveButtonWorksAsExpected
  • Hotfix/2296-selectedValuesNotReturned
  • Hotfix/2308-defaultLicense
  • Hotfix/2335-fixingSearchRCV
  • Hotfix/2353-dropShape
  • Hotfix/2370-fixDeleteButton
  • Hotfix/2378-linkedFix
  • Hotfix/2379-filesDragAndDrop
  • Hotfix/2382-guestStillBuggy
  • Hotfix/2384-guestsAndLinked
  • Hotfix/2427-adminTrouble
  • Hotfix/2459-EncodingPath
  • Hotfix/2465-orcidLink
  • Hotfix/2465-orcidLink-v1.25.1
  • Hotfix/2504-formGen
  • Hotfix/2541-resCreate
  • Hotfix/2601-correctMetadataIdentity
  • Hotfix/2611-feedback
  • Hotfix/2618-turtle
  • Hotfix/2681-validationErrors
  • Hotfix/2684-correctEncoding
  • Hotfix/2684-fixSubMetadata
  • Hotfix/2713-validateEntryName
  • Hotfix/2734-allowEmptyLicense
  • Hotfix/2765-encodingAgain
  • Hotfix/2852-adaptTextForToSUi
  • Hotfix/2853-optimizationV4
  • Hotfix/2943-reloadingResources
  • Hotfix/2943-searchHighlighting
  • Hotfix/2957-styleAndUpgrade
  • Hotfix/2971-fixTextInDataPub
  • Hotfix/2989-cookieLength
  • Hotfix/662-keepSidebarExpanded
  • Hotfix/xxxx-correctLinking
  • Hotfix/xxxx-folderRecursive
  • Hotfix/xxxx-fullscreenCss
  • Hotfix/xxxx-homepageDisplay
  • Hotfix/xxxx-liveReleaseFixes
  • Hotfix/xxxx-partnerProjects
  • Hotfix/xxxx-workingFileIndex
  • Issue/1782-structualDataIntegration
  • Issue/1792-newMetadataStructure
  • Issue/1822-coscineUIv2App
  • Issue/1824-componentsUIv2
  • Issue/1824-routerAdditions
  • Issue/1825-codeQualityPipelines
  • Issue/1833-newLogin
  • Issue/1843-multipleFilesValidation
  • Issue/1860-searchScoping
  • Issue/1861-searchMetadata
  • Issue/1862-searchFacets
  • Issue/1863-paginationForSearch
  • Issue/1926-userProfile
  • Issue/1927-projectAppMigration
  • Issue/1928-sidebarmenuAddition
  • Issue/1929-vuexToPinia
  • Issue/1938-internalHandling
  • Issue/1951-quotaImplementation
  • Issue/1953-owlImports
  • Issue/1957-resourceAppMigration
  • Issue/1957-resourceAppMigrationNew
  • Issue/1962-SearchAppUI2
  • Issue/1964-tokenExpiryUIv2
  • Issue/1965-userListMigration
  • Issue/1970-breadcrumbs
  • Issue/1971-projectEditCreateMigration
  • Issue/1972-homeDepot
  • Issue/1974-shibbolethLogout
  • Issue/1976-resouceCreationVaildEmail
  • Issue/1979-supportAdminUIv2Migration
  • Issue/1980-userManagement
  • Issue/1985-adaptSidebar
  • Issue/2002-migrateResourceCreate
  • Issue/2003-resourceSettings
  • Issue/2008-quotaManagement
  • Issue/2011-pathConfig
  • Issue/2016-BannerMigration
  • 1.28.0-pilot
  • v1.0.0
  • v1.1.0
  • v1.10.0
  • v1.10.1
  • v1.10.2
  • v1.10.3
  • v1.11.0
  • v1.11.1
  • v1.11.2
  • v1.11.3
  • v1.11.4
  • v1.11.5
  • v1.11.6
  • v1.11.7
  • v1.12.0
  • v1.13.0
  • v1.14.0
  • v1.14.1
  • v1.14.2
  • v1.14.3
  • v1.15.0
  • v1.15.1
  • v1.16.0
  • v1.16.1
  • v1.16.2
  • v1.16.3
  • v1.17.0
  • v1.17.1
  • v1.17.2
  • v1.18.0
  • v1.18.1
  • v1.19.0
  • v1.2.0
  • v1.20.0
  • v1.20.1
  • v1.20.2
  • v1.20.3
  • v1.20.4
  • v1.20.5
  • v1.21.0
  • v1.22.0
  • v1.22.1
  • v1.22.2
  • v1.23.0
  • v1.23.1
  • v1.23.2
  • v1.23.3
  • v1.23.4
  • v1.23.5
  • v1.23.6
  • v1.23.6-patch-2417-2427
  • v1.24.0
  • v1.24.1
  • v1.25.0
  • v1.25.1
  • v1.26.0
  • v1.26.1
  • v1.27.0
  • v1.27.1
  • v1.27.1-pilot
  • v1.28.0
  • v1.29.0
  • v1.29.1
  • v1.29.2
  • v1.3.0
  • v1.30.0
  • v1.30.1
  • v1.30.2
  • v1.31.0
  • v1.32.0
  • v1.4.0
  • v1.4.1
  • v1.5.0
  • v1.6.0
  • v1.6.1
  • v1.6.2
  • v1.7.0
  • v1.8.0
  • v1.8.1
  • v1.8.2
  • v1.9.0
  • v2.0.0
  • v2.1.0
  • v2.10.0
  • v2.10.1
  • v2.11.0
  • v2.12.0
  • v2.12.1
  • v2.12.2
  • v2.12.3
  • v2.12.4
  • v2.12.5
  • v2.13.0
  • v2.13.1
  • v2.13.2
  • v2.13.3
  • v2.13.4
  • v2.14.0
  • v2.15.0
200 results

Target

Select target project
  • coscine/frontend/apps/ui
1 result
Select Git revision
  • 2.11.0-privacyPolicy
  • APIv2
  • Docs/Setup
  • Experiment/fix-debugging
  • Experimental/Heinrichs-cypress
  • Feature/xxxx-turnOffDataPub
  • Fix/xxxx-ToS400Error
  • Fix/xxxx-migrateLogin
  • Fix/xxxx-tokenUploadButton
  • Hotfix/0038-correctDownload
  • Hotfix/1917-PublicFilesVisibility
  • Hotfix/1963-fixOrganizationField
  • Hotfix/2015-PublicFilesVisibility
  • Hotfix/2130-uiv2ContactChange
  • Hotfix/2144-invitationCall
  • Hotfix/2150-fixUpload
  • Hotfix/2160-userOrgsInst
  • Hotfix/2190-requiredFieldsForUserProfile
  • Hotfix/2196-RCVTableTranslation
  • Hotfix/2212-fixFiles
  • Hotfix/2226-userProfileSaveButton
  • Hotfix/2232-dependencyFix
  • Hotfix/2233-fixMe
  • Hotfix/2258-saveButtonWorksAsExpected
  • Hotfix/2296-selectedValuesNotReturned
  • Hotfix/2308-defaultLicense
  • Hotfix/2335-fixingSearchRCV
  • Hotfix/2353-dropShape
  • Hotfix/2370-fixDeleteButton
  • Hotfix/2378-linkedFix
  • Hotfix/2379-filesDragAndDrop
  • Hotfix/2382-guestStillBuggy
  • Hotfix/2384-guestsAndLinked
  • Hotfix/2427-adminTrouble
  • Hotfix/2459-EncodingPath
  • Hotfix/2465-orcidLink
  • Hotfix/2465-orcidLink-v1.25.1
  • Hotfix/2504-formGen
  • Hotfix/2541-resCreate
  • Hotfix/2601-correctMetadataIdentity
  • Hotfix/2611-feedback
  • Hotfix/2618-turtle
  • Hotfix/2681-validationErrors
  • Hotfix/2684-correctEncoding
  • Hotfix/2684-fixSubMetadata
  • Hotfix/2713-validateEntryName
  • Hotfix/2734-allowEmptyLicense
  • Hotfix/2765-encodingAgain
  • Hotfix/2852-adaptTextForToSUi
  • Hotfix/2853-optimizationV4
  • Hotfix/2943-reloadingResources
  • Hotfix/2943-searchHighlighting
  • Hotfix/2957-styleAndUpgrade
  • Hotfix/2971-fixTextInDataPub
  • Hotfix/2989-cookieLength
  • Hotfix/662-keepSidebarExpanded
  • Hotfix/xxxx-correctLinking
  • Hotfix/xxxx-folderRecursive
  • Hotfix/xxxx-fullscreenCss
  • Hotfix/xxxx-homepageDisplay
  • Hotfix/xxxx-liveReleaseFixes
  • Hotfix/xxxx-partnerProjects
  • Hotfix/xxxx-workingFileIndex
  • Issue/1782-structualDataIntegration
  • Issue/1792-newMetadataStructure
  • Issue/1822-coscineUIv2App
  • Issue/1824-componentsUIv2
  • Issue/1824-routerAdditions
  • Issue/1825-codeQualityPipelines
  • Issue/1833-newLogin
  • Issue/1843-multipleFilesValidation
  • Issue/1860-searchScoping
  • Issue/1861-searchMetadata
  • Issue/1862-searchFacets
  • Issue/1863-paginationForSearch
  • Issue/1926-userProfile
  • Issue/1927-projectAppMigration
  • Issue/1928-sidebarmenuAddition
  • Issue/1929-vuexToPinia
  • Issue/1938-internalHandling
  • Issue/1951-quotaImplementation
  • Issue/1953-owlImports
  • Issue/1957-resourceAppMigration
  • Issue/1957-resourceAppMigrationNew
  • Issue/1962-SearchAppUI2
  • Issue/1964-tokenExpiryUIv2
  • Issue/1965-userListMigration
  • Issue/1970-breadcrumbs
  • Issue/1971-projectEditCreateMigration
  • Issue/1972-homeDepot
  • Issue/1974-shibbolethLogout
  • Issue/1976-resouceCreationVaildEmail
  • Issue/1979-supportAdminUIv2Migration
  • Issue/1980-userManagement
  • Issue/1985-adaptSidebar
  • Issue/2002-migrateResourceCreate
  • Issue/2003-resourceSettings
  • Issue/2008-quotaManagement
  • Issue/2011-pathConfig
  • Issue/2016-BannerMigration
  • 1.28.0-pilot
  • v1.0.0
  • v1.1.0
  • v1.10.0
  • v1.10.1
  • v1.10.2
  • v1.10.3
  • v1.11.0
  • v1.11.1
  • v1.11.2
  • v1.11.3
  • v1.11.4
  • v1.11.5
  • v1.11.6
  • v1.11.7
  • v1.12.0
  • v1.13.0
  • v1.14.0
  • v1.14.1
  • v1.14.2
  • v1.14.3
  • v1.15.0
  • v1.15.1
  • v1.16.0
  • v1.16.1
  • v1.16.2
  • v1.16.3
  • v1.17.0
  • v1.17.1
  • v1.17.2
  • v1.18.0
  • v1.18.1
  • v1.19.0
  • v1.2.0
  • v1.20.0
  • v1.20.1
  • v1.20.2
  • v1.20.3
  • v1.20.4
  • v1.20.5
  • v1.21.0
  • v1.22.0
  • v1.22.1
  • v1.22.2
  • v1.23.0
  • v1.23.1
  • v1.23.2
  • v1.23.3
  • v1.23.4
  • v1.23.5
  • v1.23.6
  • v1.23.6-patch-2417-2427
  • v1.24.0
  • v1.24.1
  • v1.25.0
  • v1.25.1
  • v1.26.0
  • v1.26.1
  • v1.27.0
  • v1.27.1
  • v1.27.1-pilot
  • v1.28.0
  • v1.29.0
  • v1.29.1
  • v1.29.2
  • v1.3.0
  • v1.30.0
  • v1.30.1
  • v1.30.2
  • v1.31.0
  • v1.32.0
  • v1.4.0
  • v1.4.1
  • v1.5.0
  • v1.6.0
  • v1.6.1
  • v1.6.2
  • v1.7.0
  • v1.8.0
  • v1.8.1
  • v1.8.2
  • v1.9.0
  • v2.0.0
  • v2.1.0
  • v2.10.0
  • v2.10.1
  • v2.11.0
  • v2.12.0
  • v2.12.1
  • v2.12.2
  • v2.12.3
  • v2.12.4
  • v2.12.5
  • v2.13.0
  • v2.13.1
  • v2.13.2
  • v2.13.3
  • v2.13.4
  • v2.14.0
  • v2.15.0
200 results
Show changes
Commits on Source (10)
{
"name": "eslint",
"version": "8.32.0-sdk",
"version": "8.43.0-sdk",
"main": "./lib/api.js",
"type": "commonjs"
}
{
"name": "prettier",
"version": "2.8.3-sdk",
"version": "2.8.8-sdk",
"main": "./index.js",
"type": "commonjs"
}
......@@ -109,6 +109,8 @@ const moduleWrapper = tsserver => {
str = `zip:${str}`;
} break;
}
} else {
str = str.replace(/^\/?/, process.platform === `win32` ? `` : `/`);
}
}
......
......@@ -109,6 +109,8 @@ const moduleWrapper = tsserver => {
str = `zip:${str}`;
} break;
}
} else {
str = str.replace(/^\/?/, process.platform === `win32` ? `` : `/`);
}
}
......
{
"name": "typescript",
"version": "4.9.4-sdk",
"version": "5.1.3-sdk",
"main": "./lib/typescript.js",
"type": "commonjs"
}
......@@ -2,6 +2,17 @@ packageExtensions:
"@graphy/content.xml.scribe@*":
dependencies:
"@graphy/core.class.scribable": "*"
"@rdfjs-elements/formats-pretty@*":
dependencies:
"@types/node": "*"
clownface: "*"
safe-identifier: "*"
ts-morph: "*"
ts-node: "*"
typescript: "*"
"@rdfjs/serializer-ntriples@*":
dependencies:
"@rdfjs/sink": "*"
"@vue/test-utils@*":
dependencies:
"@vue/compiler-dom": "*"
......@@ -26,4 +37,4 @@ packageExtensions:
dependencies:
vue: ^2.7.10
yarnPath: .yarn/releases/yarn-3.3.1.cjs
yarnPath: .yarn/releases/yarn-3.6.0.cjs
MIT License
Copyright (c) 2021 lstoeferle
Copyright (c) 2023 RWTH Aachen University
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
......
{
"name": "ui",
"version": "1.30.2",
"version": "1.31.0",
"private": true,
"scripts": {
"dev": "vite",
......@@ -14,95 +14,86 @@
},
"dependencies": {
"@coscine/api-client": "^2.12.0",
"@coscine/form-generator": "^3.1.3",
"@pinia/testing": "^0.0.14",
"@rdfjs-elements/formats-pretty": "^0.5.1",
"@coscine/form-generator": "^3.1.4",
"@pinia/testing": "^0.1.2",
"@rdfjs-elements/formats-pretty": "^0.6.3",
"@rdfjs/data-model": "^2.0.1",
"@rdfjs/dataset": "^2.0.1",
"@rdfjs/to-ntriples": "^2.0.0",
"@rdfjs/types": "^1.1.0",
"@vuelidate/core": "^2.0.0",
"@vuelidate/validators": "^2.0.0",
"@vueuse/core": "^9.10.0",
"axios": "^1.2.2",
"@vuelidate/core": "^2.0.2",
"@vuelidate/validators": "^2.0.2",
"@vueuse/core": "^10.2.0",
"axios": "^1.4.0",
"bootstrap": "4.6.1",
"bootstrap-icons": "^1.10.3",
"bootstrap-icons": "^1.10.5",
"bootstrap-vue": "^2.23.1",
"buffer": "^6.0.3",
"core-js": "^3.27.1",
"file-saver": "^2.0.5",
"http-status-codes": "^2.2.0",
"jose": "^4.11.2",
"jquery": "^3.6.3",
"jose": "^4.14.4",
"jquery": "^3.7.0",
"lodash": "^4.17.21",
"moment": "^2.29.4",
"pinia": "^2.0.29",
"rdf-canonize": "^3.3.0",
"rdf-ext": "^2.1.1",
"rdf-parse": "^1.8.0",
"pinia": "^2.1.4",
"rdf-canonize": "^3.4.0",
"rdf-ext": "^2.2.0",
"rdf-parse": "^2.3.2",
"rdf-validate-shacl": "^0.4.5",
"sass": "^1.57.1",
"sass-loader": "^13.2.0",
"semantic-release": "^20.0.2",
"stream-to-string": "^1.2.0",
"sass": "^1.63.4",
"sass-loader": "^13.3.2",
"stream-to-string": "^1.2.1",
"uuid": "^9.0.0",
"vue": "^2.7.10",
"vue-demi": "^0.13.11",
"vue": "^2.7.14",
"vue-demi": "^0.14.5",
"vue-i18n": "^8.27.0",
"vue-multiselect": "^2.1.6",
"vue-multiselect": "^2.1.7",
"vue-router": "^3.5.3",
"vue-select": "^3.20.2",
"vue-sidebar-menu": "^4.8.1"
},
"devDependencies": {
"@esbuild-plugins/node-globals-polyfill": "^0.1.1",
"@esbuild-plugins/node-modules-polyfill": "^0.1.4",
"@rollup/plugin-replace": "^5.0.2",
"@semantic-release/commit-analyzer": "^9.0.2",
"@semantic-release/commit-analyzer": "^10.0.1",
"@semantic-release/git": "^10.0.1",
"@semantic-release/gitlab": "^9.5.1",
"@semantic-release/npm": "^9.0.2",
"@semantic-release/release-notes-generator": "^10.0.3",
"@semantic-release/gitlab": "^12.0.3",
"@semantic-release/npm": "^10.0.4",
"@semantic-release/release-notes-generator": "^11.0.3",
"@types/file-saver": "^2.0.5",
"@types/lodash": "^4.14.191",
"@types/rdf-ext": "^1.3.11",
"@types/rdf-validate-shacl": "^0.4.0",
"@types/uuid": "^9.0.0",
"@types/lodash": "^4.14.195",
"@types/rdf-ext": "^2.2.0",
"@types/rdf-validate-shacl": "^0.4.2",
"@types/uuid": "^9.0.2",
"@types/vue-select": "^3.16.2",
"@typescript-eslint/eslint-plugin": "^5.48.1",
"@typescript-eslint/parser": "^5.48.1",
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.59.11",
"@vitejs/plugin-vue2": "^2.2.0",
"@vitest/coverage-c8": "^0.27.1",
"@vue/eslint-config-prettier": "^7.0.0",
"@vue/eslint-config-typescript": "^11.0.2",
"@vue/runtime-dom": "^3.2.40",
"@vitest/coverage-c8": "^0.32.2",
"@vue/eslint-config-prettier": "^7.1.0",
"@vue/eslint-config-typescript": "^11.0.3",
"@vue/runtime-dom": "^3.3.4",
"@vue/test-utils": "^1.3.0",
"conventional-changelog-eslint": "^3.0.9",
"eslint": "^8.32.0",
"eslint-config-prettier": "^8.6.0",
"conventional-changelog-eslint": "^4.0.0",
"eslint": "^8.43.0",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-node": "^0.3.7",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-functional": "^4.4.1",
"eslint-plugin-import": "^2.27.4",
"eslint-plugin-functional": "^5.0.8",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-vue": "^9.9.0",
"jsdom": "^21.0.0",
"eslint-plugin-vue": "^9.15.0",
"jsdom": "^22.1.0",
"jsdom-global": "^3.0.2",
"lint-staged": "^13.1.0",
"prettier": "^2.8.3",
"rollup-plugin-node-globals": "^1.4.0",
"rollup-plugin-node-polyfills": "^0.2.1",
"rollup-plugin-polyfill-node": "^0.11.0",
"typescript": "^4.9.4",
"unplugin-vue-components": "^0.22.12",
"vite": "^3.0.9",
"vite-aliases": "^0.10.0",
"vite-plugin-windicss": "^1.8.10",
"vitest": "^0.27.1",
"lint-staged": "^13.2.2",
"prettier": "^2.8.8",
"semantic-release": "^21.0.5",
"typescript": "^5.1.3",
"unplugin-vue-components": "^0.25.1",
"vite": "^4.3.9",
"vite-aliases": "^0.11.2",
"vite-plugin-node-polyfills": "^0.9.0",
"vite-plugin-windicss": "^1.9.0",
"vitest": "^0.32.2",
"vue-template-compiler": "^2.7.14"
},
"packageManager": "yarn@3.6.0",
"resolutions": {
"readable-stream": "3.6.0"
}
"packageManager": "yarn@3.6.1"
}
// generated by unplugin-vue-components
// We suggest you to commit this file into source control
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
export {}
......
......@@ -252,7 +252,6 @@ import useResourceStore from "@/modules/resource/store";
import useNotificationStore from "@/store/notification";
import { FileUtil, QuotaUnits } from "@/modules/resource/utils/FileUtil";
import { isNumber } from "@vueuse/core";
import type {
ProjectObject,
......@@ -267,6 +266,8 @@ import type { QuotaDimObject } from "@coscine/api-client/dist/types/Coscine.Api.
import type { ExtendedResourceQuotaReturnObject } from "../types";
import type { LabeledResourceObject } from "@/modules/resource/types";
const isNumber = (val: unknown): val is number => typeof val === "number";
export default defineComponent({
setup() {
const projectStore = useProjectStore();
......
import factory from "rdf-ext";
import { Readable } from "stream";
import rdfParser from "rdf-parse";
import type { Dataset } from "@rdfjs/types";
import { serializers } from "@rdfjs-elements/formats-pretty";
import type { Dataset, Quad } from "@rdfjs/types";
import formats from "@rdfjs-elements/formats-pretty";
import stringifyStream from "stream-to-string";
import { MetadataApi } from "@coscine/api-client";
import type DatasetExt from "rdf-ext/lib/Dataset";
......@@ -22,8 +22,8 @@ export async function parseRDFDefinition(
await new Promise((resolve) => {
rdfParser
.parse(input, { contentType: contentType, baseIRI: baseIRI })
.on("data", (quad) => dataset.add(quad))
.on("error", (error) => console.error(error))
.on("data", (quad: Quad) => dataset.add(quad))
.on("error", (error: unknown) => console.error(error))
.on("end", () => resolve(dataset));
});
return dataset as unknown as Dataset;
......@@ -37,7 +37,7 @@ export async function serializeRDFDefinition(
if (!canonical) {
return "";
}
const output = serializers.import(contentType, dataset.toStream());
const output = formats.serializers.import(contentType, dataset.toStream());
if (output === null) {
return "";
}
......
......@@ -2,12 +2,7 @@ import path from "node:path";
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue2";
// Polyfills for including streams
import { NodeGlobalsPolyfillPlugin } from '@esbuild-plugins/node-globals-polyfill';
import { NodeModulesPolyfillPlugin } from '@esbuild-plugins/node-modules-polyfill';
import nodePolyfills from 'rollup-plugin-polyfill-node';
import globalPolyfills from 'rollup-plugin-node-globals';
import replace from '@rollup/plugin-replace';
import { nodePolyfills } from 'vite-plugin-node-polyfills';
import WindiCSS from "vite-plugin-windicss";
import Components from "unplugin-vue-components/vite";
......@@ -16,28 +11,6 @@ const config = defineConfig({
resolve: {
alias: {
"@": `${path.resolve(__dirname, "src")}`,
// From form-generator
'./runtimeConfig': './runtimeConfig.browser', // <-- Fix from above
stream: require.resolve('rollup-plugin-node-polyfills/polyfills/stream'),
buffer: require.resolve('rollup-plugin-node-polyfills/polyfills/buffer-es6'),
string_decoder: require.resolve('rollup-plugin-node-polyfills/polyfills/string-decoder'),
process: require.resolve('rollup-plugin-node-polyfills/polyfills/process-es6'),
util: require.resolve('rollup-plugin-node-polyfills/polyfills/util'),
events: require.resolve('rollup-plugin-node-polyfills/polyfills/events'),
'./inherits': require.resolve('rollup-plugin-node-polyfills/polyfills/inherits'),
'./zlib-lib/binding': require.resolve('rollup-plugin-node-polyfills/polyfills/zlib-lib/binding'),
'./http-lib/request': require.resolve('rollup-plugin-node-polyfills/polyfills/http-lib/request'),
_stream_duplex: require.resolve('rollup-plugin-node-polyfills/polyfills/readable-stream/duplex'),
'./readable-stream/duplex.js': require.resolve('rollup-plugin-node-polyfills/polyfills/readable-stream/duplex'),
_stream_passthrough: require.resolve('rollup-plugin-node-polyfills/polyfills/readable-stream/passthrough'),
'./readable-stream/passthrough.js': require.resolve('rollup-plugin-node-polyfills/polyfills/readable-stream/passthrough'),
_stream_readable: require.resolve('rollup-plugin-node-polyfills/polyfills/readable-stream/readable'),
'./readable-stream/readable.js': require.resolve('rollup-plugin-node-polyfills/polyfills/readable-stream/readable'),
_stream_writable: require.resolve('rollup-plugin-node-polyfills/polyfills/readable-stream/writable'),
'./readable-stream/writable.js': require.resolve('rollup-plugin-node-polyfills/polyfills/readable-stream/writable'),
_stream_transform: require.resolve('rollup-plugin-node-polyfills/polyfills/readable-stream/transform'),
'./readable-stream/transform.js': require.resolve('rollup-plugin-node-polyfills/polyfills/readable-stream/transform'),
"./MessageDigest": require.resolve('rdf-canonize/lib/MessageDigest-browser.js')
},
dedupe: ["vue"],
},
......@@ -46,24 +19,12 @@ const config = defineConfig({
'process.env.MOCKUP': process.env.MOCKUP
},
optimizeDeps: {
esbuildOptions: {
// Enable esbuild polyfill plugins
plugins: [
NodeGlobalsPolyfillPlugin({
crypto: true,
process: true,
buffer: true
}),
NodeModulesPolyfillPlugin(),
],
},
},
build: {
commonjsOptions: {
strictRequires: true
},
target: "esnext",
rollupOptions: {
external: [],
output: {
manualChunks: {
"@coscine/api-client": ["@coscine/api-client"],
......@@ -72,68 +33,11 @@ const config = defineConfig({
"rdf-parse": ["rdf-parse"],
},
},
plugins: [
// Enable rollup polyfills plugin
// used during production bundling
nodePolyfills(),
globalPolyfills(),
replace({
exclude: ["@coscine/form-generator"],
values: {
// Fixes for rdf-parse
'rdfParseExports.parse': 'rdfParseExports.default.parse',
'Object.defineProperty(ContainerHandlerType, "__esModule", { value: true });': 'ContainerHandlerType = {}; Object.defineProperty(ContainerHandlerType, "__esModule", { value: true });',
"Readable$4.call": "Readable$3.call",
'return new Readable$3(options);':
`{
Object.assign(this, EventEmitter.prototype);
this.push = Readable$2.prototype.push;
this.unshift = Readable$2.prototype.unshift;
this.isPaused = Readable$2.prototype.isPaused;
this.setEncoding = Readable$2.prototype.setEncoding;
this.read = Readable$2.prototype.read;
this.pipe = Readable$2.prototype.pipe;
this.unpipe = Readable$2.prototype.unpipe;
this.on = Readable$2.prototype.on;
this.addListener = Readable$2.prototype.addListener;
this.resume = Readable$2.prototype.resume;
this.pause = Readable$2.prototype.pause;
this.wrap = Readable$2.prototype.wrap;
this.push = Transform$2.prototype.push;
this._read = Transform$2.prototype._read;
this._destroy = Transform$2.prototype._destroy;
}`,
'const ContainerHandlerLanguage_1 = ContainerHandlerLanguage$1;': `var ContainerHandlerLanguage$1 = {};
Object.defineProperty(ContainerHandlerLanguage$1, "__esModule", { value: true });
ContainerHandlerLanguage$1.ContainerHandlerLanguage = void 0;
ContainerHandlerLanguage$1.ContainerHandlerLanguage = class {
canCombineWithGraph() {
return false;
}
async handle(containers, parsingContext, util, keys2, value, depth) {
const language = await util.getContainerKey(keys2[depth], keys2, depth);
if (Array.isArray(value)) {
value = value.map((subValue) => ({ "@value": subValue, "@language": language }));
} else {
if (typeof value !== "string") {
throw new jsonld_context_parser_1$7.ErrorCoded(\`Got invalid language map value, got '\${JSON.stringify(value)}', but expected string\`, jsonld_context_parser_1$7.ERROR_CODES.INVALID_LANGUAGE_MAP_VALUE);
}
value = { "@value": value, "@language": language };
}
await parsingContext.newOnValueJob(keys2.slice(0, keys2.length - 1), value, depth - 1, true);
parsingContext.emittedStack[depth] = false;
}
};
const ContainerHandlerLanguage_1 = ContainerHandlerLanguage$1;`,
},
delimiters: ['', ''],
preventAssignment: false,
}),
],
},
},
plugins: [
nodePolyfills(),
vue(),
WindiCSS(),
Components({
......@@ -157,7 +61,6 @@ const config = defineConfig({
inline: [
'@vue/composition-api',
'vue2',
'rollup-plugin-node-polyfills'
],
},
alias: [{ find: /^vue$/, replacement: 'vue/dist/vue.runtime.common.js' }],
......
This diff is collapsed.