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

[stable28] chore: Remove NCContent #2734

Merged
merged 1 commit into from
Apr 12, 2024
Merged
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
130 changes: 63 additions & 67 deletions src/views/Validation.vue
Original file line number Diff line number Diff line change
@@ -1,82 +1,79 @@
<template>
<NcContent app-name="libresign" class="jumbotron with-sidebar--full">
<div class="container">
<div class="image">
<img :src="image" draggable="false">
</div>
<div id="dataUUID">
<form v-show="!hasInfo" @submit="(e) => e.preventDefault()">
<h1>{{ title }}</h1>
<NcTextField :value.sync="myUuid" :label="legend" />
<NcButton type="primary"
@click.prevent="validate(myUuid)">
<template #icon>
<NcLoadingIcon v-if="hasLoading" :size="20" />
</template>
{{ buttonTitle }}
</NcButton>
</form>
<div v-if="hasInfo" class="infor-container">
<div class="infor-bg">
<div class="infor">
<div class="header">
<img class="icon" :src="infoIcon">
<h1>{{ infoDocument }}</h1>
</div>
<div class="info-document">
<NcNoteCard v-if="isAfterSigned" type="success">
{{ t('libresign', 'Congratulations you have digitally signed a document using LibreSign') }}
</NcNoteCard>
<p>
<b>{{ document.name }}</b>
</p>
<NcRichText class="legal-information"
:text="legalInformation"
:use-markdown="true" />
<div class="container">
<div class="image">
<img :src="image" draggable="false">
</div>
<div id="dataUUID">
<form v-show="!hasInfo" @submit="(e) => e.preventDefault()">
<h1>{{ title }}</h1>
<NcTextField :value.sync="myUuid" :label="legend" />
<NcButton type="primary"
@click.prevent="validate(myUuid)">
<template #icon>
<NcLoadingIcon v-if="hasLoading" :size="20" />
</template>
{{ buttonTitle }}
</NcButton>
</form>
<div v-if="hasInfo" class="infor-container">
<div class="infor-bg">
<div class="infor">
<div class="header">
<img class="icon" :src="infoIcon">
<h1>{{ infoDocument }}</h1>
</div>
<div class="info-document">
<NcNoteCard v-if="isAfterSigned" type="success">
{{ t('libresign', 'Congratulations you have digitally signed a document using LibreSign') }}
</NcNoteCard>
<p>
<b>{{ document.name }}</b>
</p>
<NcRichText class="legal-information"
:text="legalInformation"
:use-markdown="true" />

<NcButton type="primary"
@click="viewDocument(document.file)">
<template #icon>
<NcLoadingIcon v-if="hasLoading" :size="20" />
</template>
{{ t('libresign', 'View') }}
</NcButton>
</div>
<NcButton type="primary"
@click="viewDocument(document.file)">
<template #icon>
<NcLoadingIcon v-if="hasLoading" :size="20" />
</template>
{{ t('libresign', 'View') }}
</NcButton>
</div>
</div>
<div class="infor-bg signed">
<div class="header">
<img class="icon" :src="signatureIcon">
<h1>{{ t('libresign', 'Signatories:') }}</h1>
</div>
<div class="infor-content">
<div v-for="item in document.signers"
id="sign"
:key="item.displayName"
class="scroll">
<div class="subscriber">
<span><b>{{ getName(item) }}</b></span>
<span v-if="item.signed" class="data-signed">
{{ item.signed }}
</span>
<span v-else>{{ noDateMessage }}</span>
</div>
</div>
<div class="infor-bg signed">
<div class="header">
<img class="icon" :src="signatureIcon">
<h1>{{ t('libresign', 'Signatories:') }}</h1>
</div>
<div class="infor-content">
<div v-for="item in document.signers"
id="sign"
:key="item.displayName"
class="scroll">
<div class="subscriber">
<span><b>{{ getName(item) }}</b></span>
<span v-if="item.signed" class="data-signed">
{{ item.signed }}
</span>
<span v-else>{{ noDateMessage }}</span>
</div>
</div>
</div>
<NcButton type="primary"
@click.prevent="goBack">
{{ t('libresign', 'Return') }}
</NcButton>
</div>
<NcButton type="primary"
@click.prevent="goBack">
{{ t('libresign', 'Return') }}
</NcButton>
</div>
</div>
</NcContent>
</div>
</template>

<script>
import axios from '@nextcloud/axios'
import NcContent from '@nextcloud/vue/dist/Components/NcContent.js'
import NcTextField from '@nextcloud/vue/dist/Components/NcTextField.js'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon.js'
Expand All @@ -98,7 +95,6 @@ export default {
components: {
NcTextField,
NcRichText,
NcContent,
NcButton,
NcLoadingIcon,
NcNoteCard,
Expand Down Expand Up @@ -240,6 +236,7 @@ $date-signed-font: .7rem;
justify-content: center;
overflow-y: auto;
width: 100%;
height: 100%;

.image{
width: 100%;
Expand Down Expand Up @@ -357,7 +354,6 @@ button{
}

.signed {
width: 100%;
margin-top: 10px;
padding-right: 2px;
strong {
Expand Down