forked from jsnbuchanan/crowd-funder-for-time-pwa
chore: fluff
This commit is contained in:
@@ -38,28 +38,16 @@
|
||||
<div class="mt-8">
|
||||
<h2 class="text-xl font-bold mb-4">SQL Operations</h2>
|
||||
<div class="flex gap-2 mt-2">
|
||||
<button
|
||||
:class="sqlLinkClasses"
|
||||
@click="setAllTablesQuery"
|
||||
>
|
||||
<button :class="sqlLinkClasses" @click="setAllTablesQuery">
|
||||
All Tables
|
||||
</button>
|
||||
<button
|
||||
:class="sqlLinkClasses"
|
||||
@click="setAccountsQuery"
|
||||
>
|
||||
<button :class="sqlLinkClasses" @click="setAccountsQuery">
|
||||
Accounts
|
||||
</button>
|
||||
<button
|
||||
:class="sqlLinkClasses"
|
||||
@click="setContactsQuery"
|
||||
>
|
||||
<button :class="sqlLinkClasses" @click="setContactsQuery">
|
||||
Contacts
|
||||
</button>
|
||||
<button
|
||||
:class="sqlLinkClasses"
|
||||
@click="setSettingsQuery"
|
||||
>
|
||||
<button :class="sqlLinkClasses" @click="setSettingsQuery">
|
||||
Settings
|
||||
</button>
|
||||
</div>
|
||||
@@ -71,10 +59,7 @@
|
||||
></textarea>
|
||||
</div>
|
||||
<div class="mt-4">
|
||||
<button
|
||||
:class="primaryButtonClasses"
|
||||
@click="executeSql"
|
||||
>
|
||||
<button :class="primaryButtonClasses" @click="executeSql">
|
||||
Execute
|
||||
</button>
|
||||
</div>
|
||||
@@ -114,10 +99,7 @@
|
||||
|
||||
<div>
|
||||
Register Passkey
|
||||
<button
|
||||
:class="primaryButtonClasses"
|
||||
@click="register()"
|
||||
>
|
||||
<button :class="primaryButtonClasses" @click="register()">
|
||||
Simplewebauthn
|
||||
</button>
|
||||
</div>
|
||||
@@ -130,40 +112,25 @@
|
||||
>
|
||||
Simplewebauthn
|
||||
</button>
|
||||
<button
|
||||
:class="primaryButtonClasses"
|
||||
@click="createJwtNavigator()"
|
||||
>
|
||||
<button :class="primaryButtonClasses" @click="createJwtNavigator()">
|
||||
Navigator
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div v-if="jwt">
|
||||
Verify New JWT
|
||||
<button
|
||||
:class="primaryButtonClasses"
|
||||
@click="verifySimplewebauthn()"
|
||||
>
|
||||
<button :class="primaryButtonClasses" @click="verifySimplewebauthn()">
|
||||
Simplewebauthn
|
||||
</button>
|
||||
<button
|
||||
:class="primaryButtonClasses"
|
||||
@click="verifyWebCrypto()"
|
||||
>
|
||||
<button :class="primaryButtonClasses" @click="verifyWebCrypto()">
|
||||
WebCrypto
|
||||
</button>
|
||||
<button
|
||||
:class="primaryButtonClasses"
|
||||
@click="verifyP256()"
|
||||
>
|
||||
<button :class="primaryButtonClasses" @click="verifyP256()">
|
||||
p256 - broken
|
||||
</button>
|
||||
</div>
|
||||
<div v-else>Verify New JWT -- requires creation first</div>
|
||||
<button
|
||||
:class="primaryButtonClasses"
|
||||
@click="verifyMyJwt()"
|
||||
>
|
||||
<button :class="primaryButtonClasses" @click="verifyMyJwt()">
|
||||
Verify Hard-Coded JWT
|
||||
</button>
|
||||
</div>
|
||||
@@ -205,7 +172,7 @@ import { AppString, NotificationIface } from "../constants/app";
|
||||
import {
|
||||
NOTIFY_SQL_ERROR,
|
||||
createSqlErrorMessage,
|
||||
createPasskeyNameModal
|
||||
createPasskeyNameModal,
|
||||
} from "../constants/notifications";
|
||||
import * as vcLib from "../libs/crypto/vc";
|
||||
import * as cryptoLib from "../libs/crypto";
|
||||
@@ -411,9 +378,9 @@ export default class Help extends Vue {
|
||||
label: "Toast",
|
||||
classes: this.darkButtonClasses,
|
||||
notification: {
|
||||
group: 'alert',
|
||||
type: 'toast',
|
||||
title: 'Toast',
|
||||
group: "alert",
|
||||
type: "toast",
|
||||
title: "Toast",
|
||||
text: "I'm a toast. Without a timeout, I'm stuck.",
|
||||
},
|
||||
timeout: 5000,
|
||||
@@ -422,10 +389,10 @@ export default class Help extends Vue {
|
||||
label: "Info",
|
||||
classes: this.secondaryButtonClasses,
|
||||
notification: {
|
||||
group: 'alert',
|
||||
type: 'info',
|
||||
title: 'Information Alert',
|
||||
text: 'Just wanted you to know.',
|
||||
group: "alert",
|
||||
type: "info",
|
||||
title: "Information Alert",
|
||||
text: "Just wanted you to know.",
|
||||
},
|
||||
timeout: 5000,
|
||||
},
|
||||
@@ -433,10 +400,10 @@ export default class Help extends Vue {
|
||||
label: "Success",
|
||||
classes: this.successButtonClasses,
|
||||
notification: {
|
||||
group: 'alert',
|
||||
type: 'success',
|
||||
title: 'Success Alert',
|
||||
text: 'Congratulations!',
|
||||
group: "alert",
|
||||
type: "success",
|
||||
title: "Success Alert",
|
||||
text: "Congratulations!",
|
||||
},
|
||||
timeout: 5000,
|
||||
},
|
||||
@@ -444,10 +411,10 @@ export default class Help extends Vue {
|
||||
label: "Warning",
|
||||
classes: this.warningButtonClasses,
|
||||
notification: {
|
||||
group: 'alert',
|
||||
type: 'warning',
|
||||
title: 'Warning Alert',
|
||||
text: 'You might wanna look at this.',
|
||||
group: "alert",
|
||||
type: "warning",
|
||||
title: "Warning Alert",
|
||||
text: "You might wanna look at this.",
|
||||
},
|
||||
timeout: 5000,
|
||||
},
|
||||
@@ -455,10 +422,10 @@ export default class Help extends Vue {
|
||||
label: "Danger",
|
||||
classes: this.dangerButtonClasses,
|
||||
notification: {
|
||||
group: 'alert',
|
||||
type: 'danger',
|
||||
title: 'Danger Alert',
|
||||
text: 'Something terrible has happened!',
|
||||
group: "alert",
|
||||
type: "danger",
|
||||
title: "Danger Alert",
|
||||
text: "Something terrible has happened!",
|
||||
},
|
||||
timeout: 5000,
|
||||
},
|
||||
@@ -466,10 +433,10 @@ export default class Help extends Vue {
|
||||
label: "Notif ON",
|
||||
classes: this.secondaryButtonClasses,
|
||||
notification: {
|
||||
group: 'modal',
|
||||
type: 'notification-permission',
|
||||
title: 'Notification Permission',
|
||||
text: 'Enable notifications?',
|
||||
group: "modal",
|
||||
type: "notification-permission",
|
||||
title: "Notification Permission",
|
||||
text: "Enable notifications?",
|
||||
},
|
||||
timeout: -1,
|
||||
},
|
||||
@@ -477,10 +444,10 @@ export default class Help extends Vue {
|
||||
label: "Notif MUTE",
|
||||
classes: this.secondaryButtonClasses,
|
||||
notification: {
|
||||
group: 'modal',
|
||||
type: 'notification-mute',
|
||||
title: 'Notification Settings',
|
||||
text: 'Notifications muted',
|
||||
group: "modal",
|
||||
type: "notification-mute",
|
||||
title: "Notification Settings",
|
||||
text: "Notifications muted",
|
||||
},
|
||||
timeout: -1,
|
||||
},
|
||||
@@ -488,10 +455,10 @@ export default class Help extends Vue {
|
||||
label: "Notif OFF",
|
||||
classes: this.secondaryButtonClasses,
|
||||
notification: {
|
||||
group: 'modal',
|
||||
type: 'notification-off',
|
||||
title: 'Notifications',
|
||||
text: 'Notifications turned off',
|
||||
group: "modal",
|
||||
type: "notification-off",
|
||||
title: "Notifications",
|
||||
text: "Notifications turned off",
|
||||
},
|
||||
timeout: -1,
|
||||
},
|
||||
@@ -553,17 +520,14 @@ export default class Help extends Vue {
|
||||
// Use service methods for temp table operations
|
||||
const temp = await this.$getTemp(SHARED_PHOTO_BASE64_KEY);
|
||||
if (temp) {
|
||||
await this.$updateEntity(
|
||||
"temp",
|
||||
{ blobB64 },
|
||||
"id = ?",
|
||||
[SHARED_PHOTO_BASE64_KEY]
|
||||
);
|
||||
await this.$updateEntity("temp", { blobB64 }, "id = ?", [
|
||||
SHARED_PHOTO_BASE64_KEY,
|
||||
]);
|
||||
} else {
|
||||
await this.$insertEntity(
|
||||
"temp",
|
||||
{ id: SHARED_PHOTO_BASE64_KEY, blobB64 },
|
||||
["id", "blobB64"]
|
||||
["id", "blobB64"],
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -596,7 +560,7 @@ export default class Help extends Vue {
|
||||
},
|
||||
async () => {
|
||||
this.$router.push({ name: "new-edit-account" });
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
this.$notify(modalConfig, -1);
|
||||
|
||||
Reference in New Issue
Block a user