forked from trent_larson/crowd-funder-for-time-pwa
Compare commits
1 Commits
quicknav-c
...
experiment
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9e4046a69d |
@@ -1,3 +1,4 @@
|
|||||||
|
import { VueDexiePlugin } from "@/plugins/dexieVuePlugin";
|
||||||
import { createPinia } from "pinia";
|
import { createPinia } from "pinia";
|
||||||
import { createApp } from "vue";
|
import { createApp } from "vue";
|
||||||
import App from "./App.vue";
|
import App from "./App.vue";
|
||||||
@@ -48,6 +49,7 @@ import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
|
|||||||
|
|
||||||
createApp(App)
|
createApp(App)
|
||||||
.component("fa", FontAwesomeIcon)
|
.component("fa", FontAwesomeIcon)
|
||||||
|
.use(VueDexiePlugin())
|
||||||
.use(createPinia())
|
.use(createPinia())
|
||||||
.use(router)
|
.use(router)
|
||||||
.mount("#app");
|
.mount("#app");
|
||||||
|
|||||||
18
src/plugins/dexieVuePlugin/index.ts
Normal file
18
src/plugins/dexieVuePlugin/index.ts
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
import Vue from 'vue'
|
||||||
|
import { PluginObject } from 'vue'
|
||||||
|
|
||||||
|
// define the plugin class
|
||||||
|
class VueDexiePlugin implements PluginObject<{}> {
|
||||||
|
// the install method is called when the plugin is installed
|
||||||
|
public static install(app: typeof Vue): void {
|
||||||
|
// define a custom property
|
||||||
|
app.$myProperty = 'Hello, World!'
|
||||||
|
|
||||||
|
// define a custom method
|
||||||
|
app.prototype.$myMethod = (): string => {
|
||||||
|
return this.$myProperty
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default new VueDexiePlugin()
|
||||||
@@ -184,7 +184,6 @@ export default class AccountViewView extends Vue {
|
|||||||
async created() {
|
async created() {
|
||||||
const previousIdentifiers: Array<IIdentifier> = [];
|
const previousIdentifiers: Array<IIdentifier> = [];
|
||||||
const toLowercase = true;
|
const toLowercase = true;
|
||||||
|
|
||||||
this.mnemonic = createIdentifier();
|
this.mnemonic = createIdentifier();
|
||||||
[
|
[
|
||||||
this.address,
|
this.address,
|
||||||
|
|||||||
Reference in New Issue
Block a user