{"id":15307947,"url":"https://github.com/wscats/yox-snippets","last_synced_at":"2025-10-26T19:42:38.971Z","repository":{"id":72736206,"uuid":"224457614","full_name":"Wscats/yox-snippets","owner":"Wscats","description":"Visual Studio Code Syntax Highlighting For Yox","archived":false,"fork":false,"pushed_at":"2019-12-03T02:02:01.000Z","size":934,"stargazers_count":43,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T23:16:04.628Z","etag":null,"topics":["snippets","typescript","vscode-extension","yox","yox-extension"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Wscats.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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}},"created_at":"2019-11-27T15:11:50.000Z","updated_at":"2025-02-23T08:26:06.000Z","dependencies_parsed_at":"2024-02-15T21:52:17.098Z","dependency_job_id":null,"html_url":"https://github.com/Wscats/yox-snippets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wscats%2Fyox-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wscats%2Fyox-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wscats%2Fyox-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wscats%2Fyox-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wscats","download_url":"https://codeload.github.com/Wscats/yox-snippets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975329,"owners_count":21192210,"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":["snippets","typescript","vscode-extension","yox","yox-extension"],"created_at":"2024-10-01T08:13:04.858Z","updated_at":"2025-10-26T19:42:33.876Z","avatar_url":"https://github.com/Wscats.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yox Snippets for Visual Studio Code\n\nThis extension adds Yox Code Snippets into Visual Studio Code.\n\n这个插件基于最新的 Yox 的 API 添加了 Code Snippets。\n\n\u003ca href=\"https://marketplace.visualstudio.com/items?itemName=Wscats.yox\"\u003e\u003cimg src=\"https://img.shields.io/badge/Download-100+-orange\" alt=\"Download\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://marketplace.visualstudio.com/items?itemName=Wscats.yox\"\u003e\u003cimg src=\"https://img.shields.io/badge/Macketplace-v0.1-brightgreen\" alt=\"Macketplace\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/Wscats/yox-snippets\"\u003e\u003cimg src=\"https://img.shields.io/badge/Github Page-Wscats-yellow\" alt=\"Github Page\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/Wscats\"\u003e\u003cimg src=\"https://img.shields.io/badge/Author-Eno Yao-blueviolet\" alt=\"Eno Yao\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/Wscats\"\u003e\u003cimg src=\"https://api.netlify.com/api/v1/badges/b652768b-1673-42cd-98dd-3fd807b2ebca/deploy-status\" alt=\"Status\" /\u003e\u003c/a\u003e\n\n\u003cimg src=\"./public/2.gif\" /\u003e\n\n# Snippets\n\nIncluding most of the API of Yox. You can type `Yox`, choose `Yox.component`, and press ENTER, then `Yox.component(name, {...})` appear on the screen.\n\n插件的 Snippets 如下表格所示，比如你可以键入 `Yox` 然后按上下键选中 `Yox.component` 再按 Enter 键，就输入了`Yox.component(name, {...})`了。\n\n| Prefix | JavaScript Snippet Content |\n| ------ | ------------ |\n| `import` | `import ... from ...` |\n| `newYox` | `new Yox({...})` |\n| `addSpecialEvent` | `Yox.dom.addSpecialEvent(name, function (name, listener) {...})` |\n| `Yox.dom.on` | `Yox.dom.on(node, event, listener)` |\n| `Yox.dom.off` | `Yox.dom.off(node, event, listener)` |\n| `Yox.dom.addClass` | `Yox.dom.addClass(node, className)` |\n| `Yox.dom.removeClass` | `Yox.dom.removeClass(node, className)` |\n| `Yox.directive` | `Yox.directive(name, { bind: function (node, directive, vnode) {...} })` |\n| `Yox.component` | `Yox.component(name, {...})` |\n| `Yox.filter` | `Yox.filter(name, function (value) {...})` |\n| `Yox.transition` | `Yox.transition(name, { leave: function (node) {...} })` |\n| `Yox.partial` | `Yox.partial(name, partial)` |\n| `template` | `template: \"...\"` |\n| `name` | `name: \"...\"` |\n| `model` | `model: \"...\"` |\n| `data` | `data: { key: value }` |\n| `data` | `data: function () {...}` |\n| `filters` | `filters: { definition: function (value) {...} }` |\n| `computed` | `computed: { definition: function (value) {...} }` |\n| `methods` | `methods: { definition: function (value) {...} }` |\n| `watchers` | `watchers: { definition: function (value) {...} }` |\n| `transitions` | `transitions: { enter: function (node) {...} }` |\n| `directives` | `directives: { definition: function (value) {...} }` |\n| `events` | `events: { definition: function (value) {...} }` |\n| `partials` | `partials: {...}` |\n| `propTypes` | `propTypes: {...}` |\n| `components` | `components: {...}` |\n| `beforeCreate` | `beforeCreate: function () {...}` |\n| `afterCreate` | `afterCreate: function () {...}` |\n| `beforeMount` | `beforeMount: function () {...}` |\n| `afterMount` | `afterMount: function () {...}` |\n| `beforeUpdate` | `beforeUpdate: function () {...}` |\n| `afterUpdate` | `afterUpdate: function () {...}` |\n| `beforeDestroy` | `beforeDestroy: function () {...}` |\n| `afterDestroy` | `afterDestroy: function () {...}` |\n| `this.$el` | `this.$el.xxx` |\n| `this.$refs` | `this.$refs.xxx` |\n| `this.$vnode` | `this.$vnode.xxx` |\n| `this.$options` | `this.$options.xxx` |\n| `this.nextTick` | `this.nextTick(task)` |\n| `this.copy` | `this.copy.(data, deep)` |\n| `this.toggle` | `this.toggle(keypath)` |\n| `this.increase` | `this.increase(keypath, step, max)` |\n| `this.decrease` | `this.decrease(keypath, step, min)` |\n| `this.append` | `this.append(keypath, item)` |\n| `this.prepend` | `this.prepend(keypath, item)` |\n| `this.insert` | `this.insert(keypath, item, index)` |\n| `this.remove` | `this.remove(keypath, item)` |\n| `this.removeAt` | `this.removeAt(keypath, index)` |\n| `console.log` | `console.log(...)` |\n| `preventDefault` | `event.prevent()` |\n| `stopPropagation` | `event.stop()` |\n\n\n\u003cbr /\u003e\n\n| Prefix | HTML Snippet Content |\n| ------ | ------------ |\n| `template` | `\u003ctemplate\u003e...\u003c/template\u003e` |\n| `{{}}` | `{{ ... }}` |\n| `{{!--}}` | `{{!-- ... --}}` |\n| `on-event` | `on-...=...` |\n| `o-directive` | `o-...=...` |\n| `transition` | `transition=\"...\"` |\n| `#if` | `{{#if condition1}}...{{else if condition2}}...{{else}}...{{/if}}`|\n| `#each` | `{{#each items: item}}...{{/each}}` |\n| `#partial` | `{{#partial id}}...{{/partial}}` |\n| `model` | `model=\"...\"` |\n| `\u003c!--` | `\u003c!-- ... --\u003e` |\n\nIf you enjoy `Yox`, you should have it! Waiting for you in our heart！\n\nIf you think it's useful, you can leave us a [message and like it](https://marketplace.visualstudio.com/items?itemName=Wscats.yox\u0026ssr=false#review-details), Your support is our driving force😀\n\n# License\n\n[Yox Snippets](https://marketplace.visualstudio.com/items?itemName=Wscats.yox) is released under the [MIT](http://opensource.org/licenses/MIT).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwscats%2Fyox-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwscats%2Fyox-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwscats%2Fyox-snippets/lists"}