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 (9)
......@@ -7,16 +7,16 @@ packageExtensions:
"vue-template-compiler": "*"
"vue-i18n@*":
dependencies:
"vue": "^2.6.14"
"vue": "~2.6.14"
"vue-router@*":
dependencies:
"vue": "^2.6.14"
"vue": "~2.6.14"
"pinia@*":
dependencies:
"@vue/composition-api": "^1.4.5"
"bootstrap-vue@*":
dependencies:
"vue": "^2.6.14"
"vue": "~2.6.14"
"jquery": "*"
"vue-eslint-parser@*":
dependencies:
......
{
"name": "ui",
"version": "1.14.1",
"version": "1.14.2",
"private": true,
"scripts": {
"dev": "vite",
......@@ -10,7 +10,7 @@
"lint:fix": "eslint './src/**/*.{js,ts,tsx,vue,md}' --fix"
},
"dependencies": {
"@coscine/api-client": "^2.3.0",
"@coscine/api-client": "^2.4.0",
"@coscine/form-generator": "^2.1.0",
"@rdfjs-elements/formats-pretty": "^0.4.3",
"@rdfjs/data-model": "^2.0.0",
......@@ -91,5 +91,5 @@
"vite-plugin-windicss": "^1.8.3",
"vue-template-compiler": "~2.6.14"
},
"packageManager": "yarn@3.2.2"
"packageManager": "yarn@3.2.3"
}
......@@ -6,7 +6,7 @@
@click.prevent="openCard()"
>
<!-- Stretched Link (Card) -->
<a v-if="!isLoading" :href="hrefFromRouter(to)" class="stretched-link" />
<a v-if="!isLoading && !isDisabled" :href="hrefFromRouter(to)" class="stretched-link" />
<!-- Badge -->
<template #header>
......@@ -25,7 +25,7 @@
>
<b-icon icon="pencil-fill" />
<!-- Stretched Link (Settings) -->
<a :href="hrefFromRouter(toSettings)" class="stretched-link" />
<a v-if="!isLoading && !isDisabled" :href="hrefFromRouter(toSettings)" class="stretched-link" />
</b-button>
<b-card-body class="pt-0 pb-2 px-2">
......@@ -84,6 +84,10 @@ export default defineComponent({
default: false,
type: Boolean,
},
isDisabled: {
default: false,
type: Boolean,
},
},
data() {
......
......@@ -96,6 +96,9 @@ export default {
subProject: "Unterprojekt | Unterprojekte",
member: "Mitglied | Mitglieder",
addResource: "Ressource hinzufügen",
tooltipDisabled:
"Fügen Sie bitte {linkToUserProfile} Ihre Emailadresse hinzu und verfizieren Sie diese, um eine neue Ressource anlegen zu können.",
tooltipHere: "hier",
members: {
toProjectMembers: "Benutzerverwaltung...",
......
......@@ -91,6 +91,9 @@ export default {
subProject: "Sub-Project | Sub-Projects",
member: "Member | Members",
addResource: "Add Resource",
tooltipDisabled:
"Please add and verify your email address {linkToUserProfile} to create a new resource.",
tooltipHere: "here",
members: {
toProjectMembers: "Manage Members....",
......
......@@ -8,11 +8,27 @@
<div class="list">
<b-card-group id="card-deck" deck>
<CoscineCard
id="addResource"
:style="cardStyleAddResource"
:title="$t('page.project.addResource')"
type="create"
:to="toCreateResource()"
@open-card="openCreateResource($event)"
:isDisabled="!isEmailValid"
/>
<b-tooltip target="addResource">
<i18n v-if="!isEmailValid" path="page.project.tooltipDisabled">
<template #linkToUserProfile>
<router-link
:to="{ name: 'userprofile' }"
class="font-weight-bold"
>
{{ $t("page.project.tooltipHere") }}
</router-link>
</template>
</i18n>
</b-tooltip>
<!-- Loading Card Placeholder -->
<CoscineCard
v-if="!resources"
......@@ -27,6 +43,7 @@
:key="index"
:title="resource.displayName"
type="resource"
:style="cardStyle"
:badge-visibility="resource.archived"
:badge-text="$t('default.archived')"
:to="toResource(resource)"
......@@ -92,6 +109,8 @@ import useProjectStore from "../store";
// import the main store
import useMainStore from "@/store/index";
import useResourceStore from "@/modules/resource/store";
import useUserStore from "@/modules/user/store";
import type { UserObject } from "@coscine/api-client/dist/types/Coscine.Api.User";
export default defineComponent({
components: {
......@@ -101,8 +120,17 @@ export default defineComponent({
const mainStore = useMainStore();
const projectStore = useProjectStore();
const resourceStore = useResourceStore();
const userStore = useUserStore();
return { mainStore, projectStore, resourceStore };
return { mainStore, projectStore, resourceStore, userStore };
},
data() {
return {
card: {
backgroundHoverActive: "#cccccc",
backgroundHoverInactive: "transparent",
}
};
},
computed: {
......@@ -115,6 +143,40 @@ export default defineComponent({
resources(): ResourceObject[] | null {
return this.projectStore.currentResources;
},
isEmailValid(): boolean {
if (
this.user &&
this.user.emailAddress &&
this.user.emailAddress.trim() !== ""
) {
// Assume API contains only valid email addresses
return true;
} else {
return false;
}
},
user(): UserObject | null {
return this.userStore.user;
},
cardStyle() {
return {
"--coscine_card-background-color--hover":
this.card.backgroundHoverActive,
};
},
cardStyleAddResource() {
if (this.isEmailValid) {
return {
"--coscine_card-background-color--hover":
this.card.backgroundHoverActive
};
} else {
return {
"--coscine_card-background-color--hover":
this.card.backgroundHoverInactive
};
}
},
},
methods: {
......@@ -151,9 +213,11 @@ export default defineComponent({
this.$router.push(to);
},
openCreateResource(to: RawLocation) {
if (this.isEmailValid) {
// Set current resource ID to null
this.resourceStore.currentId = null;
this.$router.push(to);
}
},
openProject(to: RawLocation, project: ProjectObject) {
if (project.slug) {
......@@ -203,4 +267,8 @@ export default defineComponent({
/* Prevents Members list to become wider */
max-width: 27rem;
}
.coscine_card:hover {
background-color: var(--coscine_card-background-color--hover);
}
</style>
......@@ -49,7 +49,6 @@
<b-button
variant="outline-primary"
name="createAP"
:disabled="!isEmailValid"
@click="$bvModal.show('createAPModal')"
>{{ $t("buttons.create") }}
</b-button>
......@@ -57,20 +56,7 @@
</div>
<b-tooltip target="createButton" triggers="hover">
<i18n
v-if="!isEmailValid"
path="page.createResource.metadata.createAp.tooltipDisabled"
>
<template #linkToUserProfile>
<router-link
:to="{ name: 'userprofile' }"
class="font-weight-bold"
>
{{ $t("page.createResource.metadata.createAp.tooltipHere") }}
</router-link>
</template>
</i18n>
<i18n v-else path="page.createResource.metadata.createAp.tooltip" />
<i18n path="page.createResource.metadata.createAp.tooltip" />
</b-tooltip>
</coscine-form-group>
</div>
......@@ -154,18 +140,6 @@ export default defineComponent({
},
computed: {
isEmailValid(): boolean {
if (
this.user &&
this.user.emailAddress &&
this.user.emailAddress.trim() !== ""
) {
// Assume API contains only valid email addresses
return true;
} else {
return false;
}
},
user(): UserObject | null {
return this.userStore.user;
},
......
......@@ -37,9 +37,6 @@ export default {
title: "Schritt 3: @:(form.steps.third)",
createAp: {
tooltip: "Anfrage zur Erstellung eines Applikationsprofils",
tooltipDisabled:
"Fügen Sie bitte {linkToUserProfile} Ihre Emailadresse hinzu und verfizieren Sie diese, um eine Anfrage zur Erstellung von neuen Applikationsprofilen senden zu können",
tooltipHere: "hier",
title: "Erstellung von Applikationsprofilen:",
body: "Zur Konfiguration und Erstellung eines individuellen Applikationsprofils werden Sie auf eine andere Webseite umgeleitet. {br}{br}Der Review-Prozess für die Bereitstellung des Profils dauert für gewöhnlich einige Tage. Falls nötig, werden Sie von unserem Consulting-Team kontaktiert, um Sie in diesem Prozess zu unterstützen. {br}{br}Möchten Sie zur Webseite zur Erstellung eines Applikationsprofils weiterleitet werden?",
},
......
......@@ -37,9 +37,6 @@ export default {
title: "Step 3: @:(form.steps.third)",
createAp: {
tooltip: "Request for creation of application profiles",
tooltipDisabled:
"Please add and verify your email address {linkToUserProfile} to request for creation of application profiles",
tooltipHere: "here",
title: "Creation of Application Profiles:",
body: "You are going to get redirected to another page to configure and create a customized application profile. {br}{br}The review process for provisioning submissions usually takes a few days. If required, you will be contacted by our consulting team to support you with the process. {br}{br}Do you want to get redirected to the application profile creation page?",
},
......
......@@ -184,6 +184,9 @@
id="institute"
v-model="$v.form.institute.$model"
type="text"
:state="
$v.form.institute.$dirty ? !$v.form.institute.$invalid : null
"
:placeholder="
$t('page.userprofile.form.personalInformation.institute')
"
......@@ -399,9 +402,9 @@ export default defineComponent({
givenname: { required },
surname: { required },
emailAddress: { email, required },
organization: {},
institute: {},
disciplines: {},
organization: { required },
institute: { required },
disciplines: { required },
language: { id: {} },
},
};
......
This diff is collapsed.