Skip to content

Commit

Permalink
[ui/authorization] update PWA manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
elf-pavlik committed Apr 30, 2024
1 parent 098dd07 commit f9bda08
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
Binary file added ui/authorization/public/solid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion ui/authorization/src/views/Invitation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</v-sheet>
</template>
<script lang="ts" setup>
import { computed, ref } from 'vue';
import { computed, ref, watch } from 'vue';
import { useRoute, useRouter } from 'vue-router';
import { useFluent } from 'fluent-vue'
import { useAppStore } from '@/store/app';
Expand All @@ -48,6 +48,8 @@ const loading = ref(false)
const valid = computed(() => label.value && (route.query.direction === 'accept' ? capabilityUrl.value : true))
watch(() => route.query.text, (text) => { if (text) capabilityUrl.value = text as string }, { immediate: true })
const rules = {
required: (value: string) => !!value || $t('required')
}
Expand Down
27 changes: 27 additions & 0 deletions ui/authorization/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,33 @@ export default defineConfig({
filename: 'sw.js',
devOptions: {
enabled: true
},
manifest: {
name: 'SAI Authorization',
short_name: 'SAI',
start_url: '/',
display: 'standalone',
icons: [
{
src: 'solid.png',
sizes: '192x192',
type: 'image/png'
},
{
src: 'solid.png',
sizes: '512x512',
type: 'image/png'
}
],
share_target: {
action: '/invitation',
method: 'GET',
params: {
title: 'title',
text: 'text',
url: 'url'
}
}
}
}),
SFCFluentPlugin({
Expand Down

0 comments on commit f9bda08

Please sign in to comment.