-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from beclab/feat/app-service
feat: Update desktop application status and interaction
- Loading branch information
Showing
12 changed files
with
340 additions
and
135 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
94 changes: 0 additions & 94 deletions
94
packages/frontend/src/components/ConfirmDeleteAppDialog.vue
This file was deleted.
Oops, something went wrong.
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,147 @@ | ||
<template> | ||
<q-dialog class="card-dialog" v-model="show" ref="dialogRef" @hide="onCancel"> | ||
<q-card class="card-continer" flat> | ||
<div class="dialog-header row items-center justify-between"> | ||
<div class="text-ink-1"> | ||
{{ title }} | ||
</div> | ||
<q-space /> | ||
<q-btn | ||
dense | ||
flat | ||
icon="close" | ||
size="sm" | ||
color="ink-3" | ||
@click="onCancel" | ||
> | ||
<q-tooltip>{{ t('buttons.close') }}</q-tooltip> | ||
</q-btn> | ||
</div> | ||
|
||
<div class="dialog-desc left row item-center justify-start"> | ||
<img class="img q-mr-md" :src="icon" v-if="icon" /> | ||
<div class="message text-grey-8"> | ||
{{ message }} | ||
</div> | ||
</div> | ||
|
||
<span class="confirm bg-blue-default text-white" @click="submit">{{ | ||
t('buttons.confirm') | ||
}}</span> | ||
|
||
<span | ||
class="cancel text-ink-2 q-mr-md" | ||
v-if="showCancel" | ||
@click="onCancel" | ||
>{{ t('buttons.cancel') }}</span | ||
> | ||
</q-card> | ||
</q-dialog> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { useI18n } from 'vue-i18n'; | ||
import { useDialogPluginComponent } from 'quasar'; | ||
import { ref } from 'vue'; | ||
defineProps({ | ||
title: { | ||
type: String, | ||
default: 'Confirmation', | ||
required: false | ||
}, | ||
message: { | ||
type: String, | ||
default: 'This is a message', | ||
required: false | ||
}, | ||
icon: { | ||
type: String, | ||
default: '', | ||
required: false | ||
}, | ||
showCancel: { | ||
type: Boolean, | ||
default: false, | ||
required: false | ||
} | ||
}); | ||
const { t } = useI18n(); | ||
const { dialogRef, onDialogCancel, onDialogOK } = useDialogPluginComponent(); | ||
const show = ref(true); | ||
const submit = async () => { | ||
onDialogOK(); | ||
}; | ||
const onCancel = async () => { | ||
onDialogCancel(); | ||
}; | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.card-dialog { | ||
.card-continer { | ||
width: 400px; | ||
border-radius: 12px; | ||
padding: 20px; | ||
.dialog-header { | ||
width: 100%; | ||
height: 36px; | ||
line-height: 36px; | ||
font-size: 16px; | ||
font-weight: 500; | ||
line-height: 24px; | ||
text-align: left; | ||
margin-bottom: 12px; | ||
} | ||
.dialog-desc { | ||
.img { | ||
width: 32px; | ||
height: 32px; | ||
border-radius: 8px; | ||
} | ||
.message { | ||
max-width: 310px; | ||
font-size: 12px; | ||
line-height: 16px; | ||
} | ||
} | ||
.confirm { | ||
width: 60px; | ||
text-align: center; | ||
margin-top: 40px; | ||
padding: 8px 12px; | ||
border-radius: 8px; | ||
font-size: 12px; | ||
line-height: 16px; | ||
float: right; | ||
cursor: pointer; | ||
&:hover { | ||
opacity: 0.8; | ||
} | ||
} | ||
.cancel { | ||
width: 60px; | ||
text-align: center; | ||
margin-top: 40px; | ||
padding: 8px 12px; | ||
border-radius: 8px; | ||
font-size: 12px; | ||
line-height: 16px; | ||
float: right; | ||
cursor: pointer; | ||
border: 1px solid $btn-stroke; | ||
&:hover { | ||
opacity: 0.8; | ||
} | ||
} | ||
} | ||
} | ||
</style> |
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
Oops, something went wrong.