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
Loading items

Target

Select target project
  • coscine/frontend/apps/ui
1 result
Select Git revision
Loading items
Show changes
Commits on Source (10)
Source diff could not be displayed: it is too large. Options to address this: view the blob.
{
"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' }],
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.