{"id":16261105,"url":"https://github.com/dammy001/vue-mono","last_synced_at":"2025-04-08T14:15:51.198Z","repository":{"id":43736792,"uuid":"333880360","full_name":"dammy001/vue-mono","owner":"dammy001","description":"vue mono component","archived":false,"fork":false,"pushed_at":"2022-04-03T09:26:02.000Z","size":76,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"next","last_synced_at":"2025-03-15T06:48:07.713Z","etag":null,"topics":["component","library","mono","vue","vue2","vue3","vuejs2"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@damilaredev/vue-mono","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dammy001.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-28T19:26:24.000Z","updated_at":"2022-02-20T22:45:02.000Z","dependencies_parsed_at":"2022-08-20T23:50:11.215Z","dependency_job_id":null,"html_url":"https://github.com/dammy001/vue-mono","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dammy001%2Fvue-mono","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dammy001%2Fvue-mono/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dammy001%2Fvue-mono/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dammy001%2Fvue-mono/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dammy001","download_url":"https://codeload.github.com/dammy001/vue-mono/tar.gz/refs/heads/next","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247856542,"owners_count":21007621,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["component","library","mono","vue","vue2","vue3","vuejs2"],"created_at":"2024-10-10T16:40:30.366Z","updated_at":"2025-04-08T14:15:51.178Z","avatar_url":"https://github.com/dammy001.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-mono\n\n# Mono Component for Vue 3.x\n\nA Vue 3 package for mono integration.\n\n### Install\n\n```\n// with npm\nnpm i @damilaredev/vue-mono --save\n\n//with yarn\nyarn add @damilaredev/vue-mono\n\n//with pnpm\npnpm add @damilaredev/vue-mono\n```\n\n### Usage\n\n```\nimport { createApp } from 'vue';\nimport App from './App.vue'\nimport VueMono from '@damilaredev/vue-mono';\n\nconst app = createApp(App)\n\napp.use(VueMono)\n\napp.mount('#app')\n```\n\n###### example\n\n```vue\n\u003cscript setup lang=\"ts\"\u003e\n import { ref } from 'vue';\n import type { Ref } from 'vue'\n \n const publicKey: Ref\u003cstring\u003e = ref\u003cstring\u003e('xxxxxxxxxxxxxxxxxxxxxxx');\n\n const success = (response: string): void =\u003e console.log(response);\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n \u003cvue-mono :publicKey=\"publicKey\" @success=\"success\"\u003e\n  \u003cbutton class=\"px-3 py-2 rounded text-center bg-blue-300 text-white\"\u003e\n   Connect With Mono\n  \u003c/button\u003e\n \u003c/vue-mono\u003e\n\u003c/template\u003e\n```\n\n###### or referencing the component instance data\n\n```vue\n\u003cscript setup lang=\"ts\"\u003e\n import { ref, unref } from 'vue';\n import { MonoComponent } from '@damilaredev/vue-mono';\n import type {Ref, ComponentPublicInstance } from 'vue'\n import type { MonoPropType } from '@damilaredev/vue-mono';\n\n const publicKey: Ref\u003cstring\u003e = ref\u003cstring\u003e('xxxxxxxxxxxxxxxxxxxxxxx');\n\n const monoRef: Ref\u003cComponentPublicInstance\u003cRecord\u003cstring, unknown\u003e, MonoPropType\u003e | null\u003e = ref(null);\n\n const connect = (): void =\u003e unref(monoRef)!.connectWithMono();\n\n const success = (response: string): void =\u003e console.log(response);\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n \u003cmono-component :publicKey=\"publicKey\" @success=\"success\" /\u003e\n \u003cbutton\n  class=\"px-3 py-2 rounded text-center bg-blue-300 text-white\"\n  @click=\"connect\"\n \u003e\n  Connect With Mono\n \u003c/button\u003e\n\u003c/template\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdammy001%2Fvue-mono","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdammy001%2Fvue-mono","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdammy001%2Fvue-mono/lists"}