{"id":19747019,"url":"https://github.com/phphe/vue-functions","last_synced_at":"2026-05-15T10:03:00.843Z","repository":{"id":57396022,"uuid":"143266539","full_name":"phphe/vue-functions","owner":"phphe","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-15T15:01:47.000Z","size":214,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-10T21:07:50.658Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phphe.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-02T08:37:30.000Z","updated_at":"2024-04-15T15:01:51.000Z","dependencies_parsed_at":"2024-06-20T00:06:57.968Z","dependency_job_id":"0d15aeec-5e7b-4a29-8e61-d6eb887cd586","html_url":"https://github.com/phphe/vue-functions","commit_stats":{"total_commits":37,"total_committers":1,"mean_commits":37.0,"dds":0.0,"last_synced_commit":"f051401303f4b6790082b987f39a86bfd9cea694"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phphe%2Fvue-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phphe%2Fvue-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phphe%2Fvue-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phphe%2Fvue-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phphe","download_url":"https://codeload.github.com/phphe/vue-functions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241078464,"owners_count":19905861,"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":[],"created_at":"2024-11-12T02:16:40.752Z","updated_at":"2026-05-15T10:02:55.803Z","avatar_url":"https://github.com/phphe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-functions\n# install\n```sh\nnpm install vue-functions\n```\n# usage \u0026 api\n```js\nimport * as vf from 'vue-functions'\nvf.method(...)\n```\n# api\n### updatablePropsEvenUnbound\n```js\n// eg 1\nexport default {\n  mixins: [vf.updatablePropsEvenUnbound({\n    value: {localName: 'current'},\n  })],\n}\n// eg 2\n// if without localName, the localName will be 'localProps_' + prop name\nexport default {\n  mixins: [vf.updatablePropsEvenUnbound({\n    value: {},\n  })],\n}\n// eg 3\n// if without localName, the localName will be 'localProps_' + prop name\nexport default {\n  mixins: [vf.updatablePropsEvenUnbound({\n    value: {},\n    page: {},\n    other: {},\n  })],\n}\n```\n### watchAsync(vm, getter, handler, opt)\nWatch a function and resolve dependences. The function can contain async dependences. There is no more doc, please check source.\n\n### doWatch(vm, handler)\ndo handler first, handler return getter\n\n### * iterateObjectWithoutDollarDash(obj)\nLike name\n\n### windowSize\nVue component, extend or mixin it to use. Get access to windowSize. The windowSize is reactive.\n```js\nwindowSize: {\n  innerWidth: window.innerWidth,\n  innerHeight: window.innerHeight,\n  outerWidth: window.outerWidth,\n  outerHeight: window.outerHeight,\n}\n```\n\n### registerPreventURLChange(Vue, router, msg)\nAttach `$preventURLChange` and `$allowURLChange` to vm.\n\n### hookHelper\nVue component, extend or mixin it to use. Help to extend hook.\n```js\nmethods: {\n  addHook(name, func),\n  removeHook(name, func),\n  hasHook(name),\n  executeHook(name, args)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphphe%2Fvue-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphphe%2Fvue-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphphe%2Fvue-functions/lists"}