-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122 from International-Data-Spaces-Association/de…
…velop Version 8.8.0
- Loading branch information
Showing
14 changed files
with
328 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
211 changes: 117 additions & 94 deletions
211
src/pages/dataconsumption/dataconsumption/IDSDataConsumptionPage.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,104 +1,127 @@ | ||
<div class="content data-consumption-page"> | ||
<div> | ||
<v-row no-gutters class="data-consumption-page-row"> | ||
<v-col cols="12" md="11" sm="12"> | ||
<v-form v-model="valid" ref="form"> | ||
<v-text-field label="Provider Connector URL" v-model="recipientId" :rules="providerUrlRule"> | ||
</v-text-field> | ||
<v-btn id="btn-show-catalogs" color="primary" @click.native="receiveCatalogs" :disabled="!valid"> | ||
Show available resources | ||
</v-btn> | ||
</v-form> | ||
<div v-if="resources.length > 0"> | ||
<h3 class="data-consumption-page-title">Resources:</h3> | ||
<div> | ||
<v-data-table :headers="headers" :items="resources" :items-per-page="5" :sort-by.sync="sortBy" | ||
:sort-desc.sync="sortDesc" no-data-text="No resources available"> | ||
<template @click="selectElement(item)" v-slot:item.actions="{ item }"> | ||
<v-icon class="mr-2" @click="showRepresentations(item)"> | ||
mdi-file-find | ||
</v-icon> | ||
<v-icon class="mr-2" @click="showItem(item)"> | ||
mdi-eye | ||
</v-icon> | ||
</template> | ||
</v-data-table> | ||
</div> | ||
</div> | ||
<div v-if="selectedRepresentations.length > 0"> | ||
<h3>Select Representation:</h3> | ||
<div v-for="representation in selectedRepresentations"> | ||
<v-btn color="secondary" @click="selectRepresentation(representation)"> | ||
{{ representation.display }} | ||
</v-btn> | ||
<div v-for="filetype in resources.filetype">{{ filetype }}</div> | ||
</div> | ||
</div> | ||
<div v-if="selectedArtifacts.length > 0"> | ||
<h3 class="data-consumption-page-title">Artifacts:</h3> | ||
<!-- <div v-for="artifact in selectedArtifacts"> | ||
<v-tabs class="pagestab" v-model="active_tab" ref="pagestab"> | ||
<v-tab>Connector</v-tab> | ||
<v-tab>Broker</v-tab> | ||
<v-tab-item :eager="true"> | ||
<div> | ||
<v-row no-gutters class="data-consumption-page-row"> | ||
<v-col cols="12" md="11" sm="12"> | ||
<v-form v-model="valid" ref="form"> | ||
<v-text-field label="Provider Connector URL" v-model="recipientId" :rules="providerUrlRule"> | ||
</v-text-field> | ||
<v-btn id="btn-show-catalogs" color="primary" @click.native="receiveCatalogs" | ||
:disabled="!valid"> | ||
Show available resources | ||
</v-btn> | ||
</v-form> | ||
<div v-if="resources.length > 0"> | ||
<h3 class="data-consumption-page-title">Resources:</h3> | ||
<div> | ||
<v-data-table :headers="headers" :items="resources" :items-per-page="5" | ||
:sort-by.sync="sortBy" :sort-desc.sync="sortDesc" | ||
no-data-text="No resources available"> | ||
<template @click="selectElement(item)" v-slot:item.actions="{ item }"> | ||
<v-tooltip bottom> | ||
<template v-slot:activator="{ on, attrs }"> | ||
<v-icon class="mr-2" @click="showRepresentations(item)" v-bind="attrs" | ||
v-on="on"> | ||
mdi-file-find | ||
</v-icon> | ||
</template> | ||
<span>Show representations</span> | ||
</v-tooltip> | ||
<v-tooltip bottom> | ||
<template v-slot:activator="{ on, attrs }"> | ||
<v-icon class="mr-2" @click="showItem(item)" v-bind="attrs" v-on="on"> | ||
mdi-eye | ||
</v-icon> | ||
</template> | ||
<span>Show meta data</span> | ||
</v-tooltip> | ||
</template> | ||
</v-data-table> | ||
</div> | ||
</div> | ||
<div v-if="selectedRepresentations.length > 0"> | ||
<h3>Select Representation:</h3> | ||
<div v-for="representation in selectedRepresentations"> | ||
<v-btn color="secondary" @click="selectRepresentation(representation)"> | ||
{{ representation.display }} | ||
</v-btn> | ||
<div v-for="filetype in resources.filetype">{{ filetype }}</div> | ||
</div> | ||
</div> | ||
<div v-if="selectedArtifacts.length > 0"> | ||
<h3 class="data-consumption-page-title">Artifacts:</h3> | ||
<!-- <div v-for="artifact in selectedArtifacts"> | ||
<v-btn color="secondary"> | ||
{{ artifact['@id'] }} | ||
</v-btn> | ||
</div> --> | ||
<v-data-table :headers="headersArtifacts" :items="selectedArtifacts" :items-per-page="5"> | ||
<template v-slot:item.actions="{ item }"> | ||
<!-- <v-icon class="mr-2" @click="showContract(item)"> | ||
mdi-lock-open | ||
</v-icon> --> | ||
<template> | ||
<div class="text-center"> | ||
<v-dialog v-model="dialog" width="615"> | ||
<v-data-table :headers="headersArtifacts" :items="selectedArtifacts" :items-per-page="5"> | ||
<template v-slot:item.actions="{ item }"> | ||
<v-tooltip bottom> | ||
<template v-slot:activator="{ on, attrs }"> | ||
<v-icon class="mr-2" v-bind="attrs" v-on="on"> | ||
<v-icon class="mr-2" @click="requestArtifact(item)" v-bind="attrs" | ||
v-on="on"> | ||
mdi-lock-open | ||
</v-icon> | ||
</template> | ||
|
||
<v-card> | ||
<v-card-title class="text-h5 grey lighten-2"> | ||
Contract information | ||
</v-card-title> | ||
|
||
<v-card-text> | ||
<h4 class="data-consumption-page-dialog-title">Rules:</h4> | ||
<policy-line | ||
v-for='rule in selectedResource["ids:contractOffer"][0]["ids:permission"]' | ||
:ruleJson="rule" :policyName="rule.type" :readonly=true> | ||
</policy-line> | ||
<h4 class="data-consumption-page-dialog-title">License:</h4> | ||
{{ selectedResource["ids:standardLicense"]["@id"] }} | ||
</v-card-text> | ||
|
||
<v-divider></v-divider> | ||
|
||
<v-card-actions> | ||
<v-spacer></v-spacer> | ||
<v-btn color="green" text | ||
@click="dialog = false; clickAcceptContract(item)"> | ||
<p id="btn-accept">accept</p> | ||
</v-btn> | ||
|
||
<v-btn color="red" text @click="dialog = false"> | ||
<p id="btn-decline">decline</p> | ||
</v-btn> | ||
</v-card-actions> | ||
</v-card> | ||
</v-dialog> | ||
</div> | ||
</template> | ||
</template> | ||
</v-data-table> | ||
</div> | ||
<div v-if="requestContractResponse['confirmed'] == true"> | ||
<h3 class="data-consumption-page-title">Download:</h3> | ||
<v-btn color="secondary" :href="downloadLink" target="_blank"> | ||
{{ downloadLink }} | ||
</v-btn> | ||
</div> | ||
</v-col> | ||
</v-row> | ||
</div> | ||
<div class="data-consumption-page-bottom"></div> | ||
<resource-details-dialog ref="resourceDetailsDialog"></resource-details-dialog> | ||
<span>Request artifact</span> | ||
</v-tooltip> | ||
</template> | ||
</v-data-table> | ||
</div> | ||
<div v-if="requestContractResponse['confirmed'] == true"> | ||
<h3 class="data-consumption-page-title">Download:</h3> | ||
<v-btn color="secondary" :href="downloadLink" target="_blank"> | ||
{{ downloadLink }} | ||
</v-btn> | ||
</div> | ||
</v-col> | ||
</v-row> | ||
</div> | ||
<div class="data-consumption-page-bottom"></div> | ||
<resource-details-dialog ref="resourceDetailsDialog"></resource-details-dialog> | ||
<artifact-dialog ref="artifactDialog"></artifact-dialog> | ||
</v-tab-item> | ||
<v-tab-item :eager="true"> | ||
<div> | ||
<v-row no-gutters class="data-consumption-page-row"> | ||
<v-col cols="12" md="11" sm="12"> | ||
<v-form v-model="validSearch" ref="form"> | ||
<v-autocomplete label="Broker URL" v-model="brokerUri" :items="brokerUris" | ||
no-data-text="No saved brokers" :rules="providerUrlRule"> | ||
</v-autocomplete> | ||
<v-text-field label="Search" v-model="search" :rules="defaultRule"> | ||
</v-text-field> | ||
<v-btn color="primary" @click.native="searchResources" :disabled="!validSearch"> | ||
Search resources | ||
</v-btn> | ||
</v-form> | ||
<div v-if="searchResult.length > 0"> | ||
<h3 class="data-consumption-page-title">Resources:</h3> | ||
<div> | ||
<v-data-table :headers="headersSearch" :items="searchResult" :items-per-page="5" | ||
:sort-by.sync="sortBy" :sort-desc.sync="sortDesc" | ||
no-data-text="No resources available"> | ||
<template @click="selectElement(item)" v-slot:item.actions="{ item }"> | ||
<v-tooltip bottom> | ||
<template v-slot:activator="{ on, attrs }"> | ||
<v-icon class="mr-2" @click="requestSearchResult(item)" v-bind="attrs" | ||
v-on="on"> | ||
mdi-arrow-down-box | ||
</v-icon> | ||
</template> | ||
<span>Request resource</span> | ||
</v-tooltip> | ||
</template> | ||
</v-data-table> | ||
</div> | ||
</div> | ||
</v-col> | ||
</v-row> | ||
</div> | ||
</v-tab-item> | ||
</v-tabs> | ||
</div> |
Oops, something went wrong.