Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/chart routes #662

Merged
merged 2 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading