(chore): cleaning up formatting and relative references
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
{
|
||||
group: 'alert',
|
||||
type: 'toast',
|
||||
title: 'Toast',
|
||||
text: 'I\'m a toast. Without a timeout, I\'m stuck.',
|
||||
},
|
||||
5000,
|
||||
@@ -114,6 +115,8 @@
|
||||
{
|
||||
group: 'modal',
|
||||
type: 'notification-permission',
|
||||
title: 'Notification Permission',
|
||||
text: 'Enable notifications?',
|
||||
},
|
||||
-1,
|
||||
)
|
||||
@@ -129,6 +132,8 @@
|
||||
{
|
||||
group: 'modal',
|
||||
type: 'notification-mute',
|
||||
title: 'Notification Settings',
|
||||
text: 'Notifications muted',
|
||||
},
|
||||
-1,
|
||||
)
|
||||
@@ -144,6 +149,8 @@
|
||||
{
|
||||
group: 'modal',
|
||||
type: 'notification-off',
|
||||
title: 'Notifications',
|
||||
text: 'Notifications turned off',
|
||||
},
|
||||
-1,
|
||||
)
|
||||
@@ -294,6 +301,7 @@ const TEST_PAYLOAD = {
|
||||
@Component({ components: { QuickNav } })
|
||||
export default class Help extends Vue {
|
||||
$notify!: (notification: NotificationIface, timeout?: number) => void;
|
||||
$router!: Router;
|
||||
|
||||
// for encryption/decryption
|
||||
encryptionTestResult?: boolean;
|
||||
@@ -326,7 +334,8 @@ export default class Help extends Vue {
|
||||
}
|
||||
|
||||
async uploadFile(event: Event) {
|
||||
inputFileNameRef.value = event.target?.["files"][0];
|
||||
const target = event.target as HTMLInputElement;
|
||||
inputFileNameRef.value = target.files?.[0];
|
||||
// https://developer.mozilla.org/en-US/docs/Web/API/File
|
||||
// ... plus it has a `type` property from my testing
|
||||
const file = inputFileNameRef.value;
|
||||
@@ -339,7 +348,7 @@ export default class Help extends Vue {
|
||||
type: file.type,
|
||||
});
|
||||
const blobB64 = await blobToBase64(blob);
|
||||
this.fileName = file.name as string;
|
||||
this.fileName = (file as File).name;
|
||||
const temp = await db.temp.get(SHARED_PHOTO_BASE64_KEY);
|
||||
if (temp) {
|
||||
await db.temp.update(SHARED_PHOTO_BASE64_KEY, { blobB64 });
|
||||
|
||||
Reference in New Issue
Block a user