-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update API generated code and client to include about service. - Add info icon to the header to open a dialog with about information. - Show information from the about API endpoint (version, pres. system, child workflow names), include the same text from the homepage and buttons to documentation, license and contributing. Unrelated changes: - Make sure padding is not added to the body when a dialog is shown. - Bold "Enduro" in the header to match dialog. - Update homepage text to match dialog. - Redirect to signin page after API authentication error.
- Loading branch information
Showing
13 changed files
with
659 additions
and
136 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
<script setup lang="ts"> | ||
import { api, client } from "@/client"; | ||
import useEventListener from "@/composables/useEventListener"; | ||
import Modal from "bootstrap/js/dist/modal"; | ||
import { ref, onMounted } from "vue"; | ||
import { closeDialog } from "vue3-promise-dialog"; | ||
import IconBookText from "~icons/lucide/book-text"; | ||
import IconFileText from "~icons/lucide/file-text"; | ||
import IconGitMerge from "~icons/lucide/git-merge"; | ||
const el = ref<HTMLElement | null>(null); | ||
const modal = ref<Modal | null>(null); | ||
const about = ref<api.EnduroAbout | null>(null); | ||
onMounted(() => { | ||
client.about.aboutAbout().then((resp) => { | ||
about.value = resp; | ||
if (!el.value) return; | ||
modal.value = new Modal(el.value); | ||
modal.value.show(); | ||
}); | ||
}); | ||
useEventListener(el, "hidden.bs.modal", () => closeDialog(null)); | ||
</script> | ||
|
||
<template> | ||
<div class="modal" tabindex="-1" ref="el"> | ||
<div class="modal-dialog"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title fw-bold d-flex align-items-center"> | ||
<img src="/logo.png" alt="" height="30" class="me-2" />Enduro | ||
</h5> | ||
<button | ||
type="button" | ||
class="btn-close" | ||
data-bs-dismiss="modal" | ||
aria-label="Close" | ||
></button> | ||
</div> | ||
<div class="modal-body"> | ||
<div class="mb-3" v-if="about"> | ||
<div class="row"> | ||
<div | ||
class="col-12 col-sm-6 text-primary fw-bold text-sm-end text-truncate" | ||
> | ||
Application version: | ||
</div> | ||
<div class="col-12 col-sm-6 text-truncate"> | ||
v{{ about.version }} | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div | ||
class="col-12 col-sm-6 text-primary fw-bold text-sm-end text-truncate" | ||
> | ||
Preservation system: | ||
</div> | ||
<div class="col-12 col-sm-6 text-truncate"> | ||
{{ about.preservationSystem }} | ||
</div> | ||
</div> | ||
<div class="row" v-if="about.preprocessing.enabled"> | ||
<div | ||
class="col-12 col-sm-6 text-primary fw-bold text-sm-end text-truncate" | ||
> | ||
Preprocessing workflow: | ||
</div> | ||
<div class="col-12 col-sm-6 text-truncate"> | ||
{{ about.preprocessing.workflowName }} | ||
</div> | ||
</div> | ||
<div | ||
class="row" | ||
v-if="about.poststorage && about.poststorage.length > 0" | ||
> | ||
<div | ||
class="col-12 col-sm-6 text-primary fw-bold text-sm-end text-truncate" | ||
> | ||
Poststorage workflows: | ||
</div> | ||
<div class="col-12 col-sm-6 d-flex flex-column text-truncate"> | ||
<span v-for="poststorage in about.poststorage">{{ | ||
poststorage.workflowName | ||
}}</span> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="small"> | ||
Enduro is a new application under development by | ||
<a href="https://www.artefactual.com/" target="_blank" | ||
>Artefactual Systems</a | ||
>. Originally created as a more stable replacement for | ||
Archivematica's | ||
<a | ||
href="https://github.com/artefactual/automation-tools" | ||
target="_blank" | ||
>automation-tools</a | ||
> | ||
library of scripts, it has since evolved into a flexible tool to be | ||
paired with preservation applications like | ||
<a href="https://www.archivematica.org/" target="_blank" | ||
>Archivematica</a | ||
> | ||
and | ||
<a href="https://github.com/artefactual-labs/a3m" target="_blank" | ||
>a3m</a | ||
> | ||
to provide initial ingest activities such as content and structure | ||
validation, packaging, and more. | ||
</div> | ||
</div> | ||
<div class="modal-footer"> | ||
<a | ||
class="btn btn-primary d-flex align-items-center gap-2" | ||
href="https://enduro.readthedocs.io/" | ||
target="_blank" | ||
> | ||
<IconBookText aria-hidden="true" /> | ||
Documentation | ||
</a> | ||
<a | ||
class="btn btn-primary d-flex align-items-center gap-2" | ||
href="https://github.com/artefactual-sdps/enduro/blob/main/LICENSE" | ||
target="_blank" | ||
> | ||
<IconFileText aria-hidden="true" /> | ||
License | ||
</a> | ||
<a | ||
class="btn btn-primary d-flex align-items-center gap-2" | ||
href="https://github.com/artefactual-sdps/enduro/blob/main/CONTRIBUTING.md" | ||
target="_blank" | ||
> | ||
<IconGitMerge aria-hidden="true" /> | ||
Contributing | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.