-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
245 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,215 @@ | ||
<!-- Parsec Cloud (https://parsec.cloud) Copyright (c) BUSL-1.1 2016-present Scille SAS --> | ||
|
||
<template> | ||
<ion-page class="modal"> | ||
<ms-modal | ||
:title="$t('UsersPage.UserDetailsModal.title')" | ||
:close-button="{ visible: true }" | ||
> | ||
<div> | ||
<ion-text class="text1"> | ||
Name | ||
</ion-text> | ||
<ion-text class="text1-right"> | ||
Joined | ||
</ion-text> | ||
</div> | ||
<div> | ||
<ion-text class="text2"> | ||
Thomas Linere | ||
</ion-text> | ||
<ion-text class="text2-right"> | ||
April 25th 2022 | ||
</ion-text> | ||
</div> | ||
<div> | ||
<ion-text class="text4"> | ||
Espaces de travail communs | ||
</ion-text> | ||
</div> | ||
<div> | ||
<ion-chip | ||
v-if="isRevoked" | ||
color="danger" | ||
> | ||
<ion-icon | ||
:icon="ellipse" | ||
class="revoked" | ||
/> | ||
<ion-label> | ||
Révoqué | ||
</ion-label> | ||
</ion-chip> | ||
</div> | ||
<ion-list> | ||
<ion-card | ||
:disabled="isRevoked" | ||
class="workspace-card" | ||
> | ||
<ion-card-content> | ||
<ion-avatar class="card-content-icons"> | ||
<ion-icon | ||
class="card-content-icons__item" | ||
:icon="business" | ||
/> | ||
<ion-icon | ||
class="cloud-overlay" | ||
:class="'cloud-overlay-ko'" | ||
:icon="cloudOffline" | ||
/> | ||
<ion-text class="text3"> | ||
Tout le monde | ||
</ion-text> | ||
<tag-profile :profile="standard" /> | ||
</ion-avatar> | ||
</ion-card-content> | ||
</ion-card> | ||
<ion-card | ||
:disabled="isRevoked" | ||
class="workspace-card" | ||
> | ||
<ion-card-content> | ||
<ion-avatar class="card-content-icons"> | ||
<ion-icon | ||
class="card-content-icons__item" | ||
:icon="business" | ||
/> | ||
<ion-icon | ||
class="cloud-overlay" | ||
:class="'cloud-overlay-ko'" | ||
:icon="cloudOffline" | ||
/> | ||
<ion-text class="text3"> | ||
Développement | ||
</ion-text> | ||
<tag-profile :profile="userProfile" /> | ||
</ion-avatar> | ||
</ion-card-content> | ||
</ion-card> | ||
</ion-list> | ||
<ion-button | ||
class="close-button" | ||
@click="cancel" | ||
> | ||
Fermer | ||
</ion-button> | ||
</ms-modal> | ||
</ion-page> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import MsModal from '@/components/core/ms-modal/MsModal.vue'; | ||
import { MsModalResult } from '@/components/core/ms-types'; | ||
import { | ||
IonChip, | ||
IonAvatar, | ||
IonButton, | ||
IonItem, | ||
IonList, | ||
IonPage, | ||
IonText, | ||
modalController, | ||
IonCard, | ||
IonCardContent, | ||
IonIcon, | ||
} from '@ionic/vue'; | ||
import { business, cloudOffline, ellipse } from 'ionicons/icons'; | ||
import { UserProfile } from '@/parsec'; | ||
import TagProfile from '@/components/users/TagProfile.vue'; | ||
// User list > ... > details de l'utilisateur > modale user | ||
// mettre modale ici | ||
// s'inspirer de workspacesharingmodal : tout dans un msmodal | ||
Check warning on line 122 in client/src/views/users/UserDetailsModal.vue GitHub Actions / spelling / cspell
|
||
// icone de workspace dans workspacespage | ||
// dans workspacesharingmodal y'a aussi les badges externe admin etc | ||
const standard = UserProfile.Standard; | ||
defineProps<{ | ||
userProfile: UserProfile; | ||
isRevoked: boolean; | ||
}>(); | ||
function cancel(): Promise<boolean> { | ||
return modalController.dismiss(null, MsModalResult.Cancel); | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.text1 { | ||
font-size: 0.9rem; | ||
color: var(--parsec-color-light-secondary-text); | ||
&-right { | ||
font-size: 0.9rem; | ||
color: var(--parsec-color-light-secondary-text); | ||
margin-left: 50%; | ||
margin-right: 20%; | ||
} | ||
} | ||
.text2 { | ||
font-size: 1.1rem; | ||
font-weight: 500; | ||
color: var(--parsec-color-light-secondary-text); | ||
&-right { | ||
font-size: 1.1rem; | ||
font-weight: 500; | ||
color: var(--parsec-color-light-secondary-text); margin-left: 30%; | ||
margin-right: auto; | ||
} | ||
} | ||
.text3 { | ||
font-size: 1rem; | ||
margin-left: 1rem; | ||
margin-right: auto; | ||
} | ||
.text4 { | ||
font-size: 0.9rem; | ||
color: var(--parsec-color-light-secondary-text); | ||
margin-top: 1rem; | ||
} | ||
.close-button { | ||
display: flex; | ||
margin-left: auto; | ||
width: fit-content; | ||
} | ||
.card-content-icons { | ||
margin: 0 auto 0.5rem; | ||
position: relative; | ||
height: fit-content; | ||
display: flex; | ||
justify-content: left; | ||
align-items: center; | ||
color: var(--parsec-color-light-primary-900); | ||
width: 100%; | ||
&__item { | ||
font-size: 2rem; | ||
} | ||
.cloud-overlay { | ||
position: absolute; | ||
font-size: 1rem; | ||
bottom: -10px; | ||
left: 4%; | ||
padding: 2px; | ||
background: white; | ||
border-radius: 50%; | ||
} | ||
.cloud-overlay-ok { | ||
color: var(--parsec-color-light-primary-500); | ||
} | ||
.cloud-overlay-ko { | ||
color: var(--parsec-color-light-secondary-text); | ||
} | ||
} | ||
.revoked { | ||
font-size: 0.5rem; | ||
margin-right: 0.5rem; | ||
} | ||
.workspace-card { | ||
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1); | ||
} | ||
</style> |