{"id":26455644,"url":"https://github.com/joon610/vue-corator","last_synced_at":"2025-09-05T10:35:36.364Z","repository":{"id":106249195,"uuid":"194266211","full_name":"joon610/vue-corator","owner":"joon610","description":"this is vue decorator utils","archived":false,"fork":false,"pushed_at":"2019-11-15T06:17:16.000Z","size":257,"stargazers_count":32,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-30T11:33:15.725Z","etag":null,"topics":["component","decorator","decorators","function-component","javascript","style","typescript","vue","vue-corator"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/joon610.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}},"created_at":"2019-06-28T11:57:29.000Z","updated_at":"2022-11-17T02:49:24.000Z","dependencies_parsed_at":"2023-03-07T06:15:52.622Z","dependency_job_id":null,"html_url":"https://github.com/joon610/vue-corator","commit_stats":{"total_commits":45,"total_committers":1,"mean_commits":45.0,"dds":0.0,"last_synced_commit":"4a78155dc086f8a3401854fd746c0d9e28909e48"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/joon610/vue-corator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joon610%2Fvue-corator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joon610%2Fvue-corator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joon610%2Fvue-corator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joon610%2Fvue-corator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joon610","download_url":"https://codeload.github.com/joon610/vue-corator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joon610%2Fvue-corator/sbom","scorecard":{"id":532398,"data":{"date":"2025-08-11","repo":{"name":"github.com/joon610/vue-corator","commit":"4a78155dc086f8a3401854fd746c0d9e28909e48"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-20T06:01:37.627Z","repository_id":106249195,"created_at":"2025-08-20T06:01:37.627Z","updated_at":"2025-08-20T06:01:37.627Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273746961,"owners_count":25160647,"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","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","decorator","decorators","function-component","javascript","style","typescript","vue","vue-corator"],"created_at":"2025-03-18T20:55:53.042Z","updated_at":"2025-09-05T10:35:36.326Z","avatar_url":"https://github.com/joon610.png","language":"TypeScript","funding_links":[],"categories":["Components \u0026 Libraries","Utilities [🔝](#readme)"],"sub_categories":["Utilities"],"readme":"# Vue Corator\n\n\n## Update\n- [x] @Render: add functional atturibute in component  2019/08/23\n- [x] @Style: Style tag changed global to scoped  2019/08/22\n- [ ]  @Hoc : high order component \n- [ ]  @DeepCopy : DeepCopy decorator \n\n## License\n\nMIT License\n\n## Install\n\n```bash\nnpm i -S vue-corator\n```\n\nVue.config.js\n```js\n//if you use Vue CLI3.0\n//vue.config.js\nmodule.exports ={\n    runtimeCompiler:true\n}\n```\nor\n\nwebpack.config.js\n``` js\n//webpack\nmodule.exports = {\n  // ...\n  resolve: {\n    alias: {\n      'vue$': 'vue/dist/vue.esm.js' // 'vue/dist/vue.common.js' for webpack 1\n    }\n  }\n}\n```\n\n## Usage\n\n- [`@Render`](#Render)\n- [`@Style`](#Style)   \n- [`@NextTick`](#NextTick)\n- [`@ScopedId`](#ScopedId)\n- [`@Super`](#Super)\n\n## See also\n\n### \u003ca id=\"Render\"\u003e\u003c/a\u003e `@Render(componentName?:string)` decorator\n\n\n```html\n\u003ctemplate\u003e\n  \u003cgood :items=\"data\" title=\"Vue corator\"\u003e\u003c/good\u003e\n\u003c/template\u003e\n```\n\n```ts\nimport {Render} from 'vue-corator'\n@Component\nexport default class YourComponent extends Vue {\n\n    private data = ['hello', 'Functional Component'];\n\n    @Render()\n    private good(items: any, title: any) {\n      return  `\n            \u003cdiv\u003e\n             \u003cb\u003e {{ title }} \u003c/b\u003e\n              \u003cul\u003e\n                \u003cli v-for=\"(item,index) in items\" :key=\"index\"\u003e\n                      {{ item }}\n                \u003c/li\u003e\n              \u003c/ul\u003e\n            \u003c/div\u003e`;\n    }\n}\n``` \n\nSee also: [Runtime + Compiler vs. Runtime only.](https://vuejs.org/v2/guide/installation.html#Runtime-Compiler-vs-Runtime-only)\n\n\n### \u003ca id=\"Style\"\u003e\u003c/a\u003e `@Style()` decorator\n\n```html\n\u003ctemplate\u003e\n  \u003cdiv\u003e\n    \u003cstyleTagName1\u003e\n      .title { background:red }    // .title [data-v-\u003chash\u003e] {background:red}\n    \u003c/styleTagName1\u003e   \n  \u003c/div\u003e\n\u003c/template\u003e\n```\n\n```ts\nimport {Style} from 'vue-corator'\n@Component\nexport default class YourComponent extends Vue {\n\n  @Style()\n  private styleTagName1() {\n    return `\n        .title { background:pink }\n    `;\n  }\n}\n```\n\n### \u003ca id=\"NextTick\"\u003e\u003c/a\u003e `@NextTick()` decorator\n\n```ts\nimport { NextTick } from 'vue-corator'\n@Component\nexport default class YourComponent extends Vue {\n  @NextTick()\n  private methodName(){\n    this.method1();\n  }\n}\n```\nIs equivalent\n\n```ts\n@Component\nexport default class YourComponent extends Vue {\n  private mounted() {\n    this.$nexttick(()=\u003e{\n      this.method1();\n    })\n  }\n}\n```\n\n### \u003ca id=\"ScopedId\"\u003e\u003c/a\u003e `@ScopedId(Key?: string)` decorator\n\n```ts\nimport { Component, Prop, Vue } from 'vue-property-decorator';\nimport { ScopedId } from 'vue-corator';\n@Component\nexport default class YourComponent extends Vue {\n  @ScopedId() scopedId!: string      //returns component Id like 'data-v-xxxxx'\n}\n```\nreturns component Id like 'data-v-xxxxx'\n\n\n\n### \u003ca id=\"Super\"\u003e\u003c/a\u003e `@Super(component: any)` decorator\n\n```ts\nimport { Component, Prop, Vue } from 'vue-property-decorator';\n@Component\nexport default class Parent extends Vue {\n\n  private father(){\n      console.log('father')\n  }\n}\n```\n\n```ts\nimport { Component, Prop, Vue } from 'vue-property-decorator';\nimport { Super } from 'vue-corator';\nimport Parent from './parent.vue'\n@Component\nexport default class Child extends Parent {\n  @Super(Parent) super!: any  \n\n  private father(){\n      console.log('childs father')\n  }\n\n  private mounted(){\n    console.log(this.father());\n    console.log(this.super.father());\n  }\n}\n```\n```log\n  $ childs father\n  $ father\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoon610%2Fvue-corator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoon610%2Fvue-corator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoon610%2Fvue-corator/lists"}