{"id":24965772,"url":"https://github.com/allnulled/v-descriptor","last_synced_at":"2026-05-01T15:36:05.560Z","repository":{"id":274253077,"uuid":"922365433","full_name":"allnulled/v-descriptor","owner":"allnulled","description":"Inject CSS classes with meaning.","archived":false,"fork":false,"pushed_at":"2025-03-24T17:50:18.000Z","size":108,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T06:39:13.868Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://npmjs.com/@allnulled/v-descriptor","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/allnulled.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2025-01-26T02:01:59.000Z","updated_at":"2025-03-24T17:50:21.000Z","dependencies_parsed_at":"2025-03-24T18:34:18.945Z","dependency_job_id":"8040af00-a1c2-477b-85eb-6a8c74564fcb","html_url":"https://github.com/allnulled/v-descriptor","commit_stats":null,"previous_names":["allnulled/v-descriptor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/allnulled/v-descriptor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Fv-descriptor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Fv-descriptor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Fv-descriptor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Fv-descriptor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allnulled","download_url":"https://codeload.github.com/allnulled/v-descriptor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Fv-descriptor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32503198,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":[],"created_at":"2025-02-03T11:16:10.650Z","updated_at":"2026-05-01T15:36:05.543Z","avatar_url":"https://github.com/allnulled.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# v-descriptor\n\nInject CSS classes with meaning. For vue.js (v2).\n\n## Installation\n\n```html\n\u003cscript src=\"node_modules/@allnulled/v-descriptor/v-descriptor.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\nThe current test goes as follows:\n\n```js\nwindow.stylingDescriptor = {\n    titulo: [\"fondoNegro\", \"letraBlanca\"],\n    principal: [\"letraGrande\"],\n    emergencia: [\"fondoRojoImportante\"]\n};\nVue.component(\"app\", {\n    template: `\n        \u003cdiv\u003e\n            \u003cdiv v-descriptor=\"'titulo principal emergencia'\"\u003e\n                Este mensaje debería verse en rojooo\n            \u003c/div\u003e\n        \u003c/div\u003e\n    `\n});\nconst app = new Vue({\n    render: h =\u003e h(Vue.options.components.app),\n}).$mount(\"#app\");\n```\n\nThis will make reflect `fondoNegro letraBlanca letraGrande fondoRojoImportante` as classes.\n\nYou can use it recursively, and only the *non-solved keys* will become applied as classes, **(caution:) unless it contains `.` in the key**. This allows you to use `.` as namespacer for document sections, which makes sense, as the names of these sections will be absolutely **virtual** and will have no direct interaction with the DOM in any step.\n\nOnly the unsolved keys that do not contain `.` will be applied as class.\n\nWith this rule, and aware that you have to `\"'whatever w2 w3'\"` (so, `\"'` to open and `'\"` to close), you can go straightforward.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallnulled%2Fv-descriptor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallnulled%2Fv-descriptor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallnulled%2Fv-descriptor/lists"}