Skip to content

Commit

Permalink
Merge pull request #662 from inab/feature/chart-routes
Browse files Browse the repository at this point in the history
Feature/chart routes
  • Loading branch information
EvaMart authored Oct 2, 2024
2 parents 3d1048d + d87893d commit fa0e018
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,31 +35,30 @@
</template>
<script>
import { mapGetters } from 'vuex';
import jsyaml from 'js-yaml';
export default {
name: 'ExportCitationCardDownload',
data() {
return {
file_name: 'tool_citation.cff',
file_name: 'CITATION.cff',
alert: {
title: 'Download Citation',
id: 'download',
icon: 'mdi-download',
description:
'Click "Download" to save the metadata file in JSON-LD format to your device.',
'Click "Download" to save the citation file in JSON-LD format to your device.',
iconText: 'Download',
},
};
},
computed: {
...mapGetters({
toolMetadataCFF: 'observatory/evaluation/metadata/getToolCitationCFF',
toolMetadataCFF: 'observatory/evaluation/metadata/getToolMetadataCFF',
}),
},
methods: {
download() {
const yaml = jsyaml.dump(this.toolMetadataCFF);
const yaml = this.toolMetadataCFF;
const url = window.URL.createObjectURL(
new Blob([yaml], { type: 'text/yaml' })
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
:initial-dialog-app-install="dialogAppInstall"
:title="installDialogParameters.title"
:text="installDialogParameters.text"
:installation-url="installDialogParameters.installationURL"
@cancel="cancel"
@ready="createPR"
/>
Expand Down Expand Up @@ -177,6 +178,8 @@ export default {
},
},
installDialogParameters: {
installationURL:
'https://github.com/apps/metadata-updater-for-fairsoft/installations/select_target',
title: 'Unable to create a pull request',
text: 'Let the FAIRsoft Evaluator create a branch, create a citation file and make a pull request in the repository by grantting the <a href="https://github.com/apps/metadata-updater-for-fairsoft" target="_blank">Metadata Updater for FAIRsoft GitHub App</a> the necessary permissions.',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { mapGetters } from 'vuex';
export default {
name: 'DialogAppInstall',
props: ['title', 'text', 'initialDialogAppInstall'],
props: ['title', 'text', 'initialDialogAppInstall', 'installationURL'],
computed: {
...mapGetters('observatory/evaluation/github/', {
importProgressText: 'getImportProgressText',
Expand Down
3 changes: 3 additions & 0 deletions components/observatory/evaluation/GitHub/GitHubInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
:initial-dialog-app-install="dialogAppInstall"
:title="installDialogParameters.title"
:text="installDialogParameters.text"
:installation-url="installDialogParameters.installationURL"
@cancel="cancel"
@ready="fetchMetadata"
/>
Expand Down Expand Up @@ -86,6 +87,8 @@ export default {
},
],
installDialogParameters: {
installationURL:
'https://github.com/apps/metadata-extractor-for-fairsoft/installations/select_target',
title: "Unable to access repository's metadata.",
text: 'Let the FAIRsoft Evaluator access the requested repositories metadata by grantting the <a href="https://github.com/apps/metadata-extractor-for-fairsoft" target="_blank">Metadata Extractor for FAIRsoft GitHub App</a> the necessary permissions.',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</template>
<script>
import { mapGetters } from 'vuex';
import ExportCitationCardDownload from '~/components/observatory/evaluation/Export/ExportMetadataCardDownload.vue';
import ExportCitationCardDownload from '~/components/observatory/evaluation/Export/ExportCitationCardDownload.vue';
import ExportContentCardPull from '~/components/observatory/evaluation/Export/ExportContentCardPull.vue';
import ViewCitation from '~/components/observatory/evaluation/Export/ViewCitation.vue';
Expand Down

0 comments on commit fa0e018

Please sign in to comment.