{"id":15380483,"url":"https://github.com/javey/intact","last_synced_at":"2025-12-12T05:54:55.908Z","repository":{"id":1067463,"uuid":"38607769","full_name":"Javey/Intact","owner":"Javey","description":"An inheritable and strong logic template front-end mvvm framework.","archived":false,"fork":false,"pushed_at":"2024-04-12T09:46:42.000Z","size":10471,"stargazers_count":56,"open_issues_count":18,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-12T14:46:13.205Z","etag":null,"topics":["mvvm-framework","virtual-dom"],"latest_commit_sha":null,"homepage":"https://javey.github.io/Intact","language":"JavaScript","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/Javey.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-07-06T08:52:03.000Z","updated_at":"2024-05-22T03:34:39.861Z","dependencies_parsed_at":"2023-02-16T17:01:22.249Z","dependency_job_id":"e6857c20-f96e-4df3-8e4a-d4e8ccf0fa09","html_url":"https://github.com/Javey/Intact","commit_stats":{"total_commits":604,"total_committers":3,"mean_commits":"201.33333333333334","dds":"0.0066225165562914245","last_synced_commit":"fd7c88d98ea184521cf205e34aa17c61ad1b1dde"},"previous_names":["javey/vdwidget"],"tags_count":221,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Javey%2FIntact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Javey%2FIntact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Javey%2FIntact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Javey%2FIntact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Javey","download_url":"https://codeload.github.com/Javey/Intact/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230542288,"owners_count":18242332,"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":["mvvm-framework","virtual-dom"],"created_at":"2024-10-01T14:23:36.666Z","updated_at":"2025-12-12T05:54:55.821Z","avatar_url":"https://github.com/Javey.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://travis-ci.org/Javey/Intact\"\u003e\n        \u003cimg src=\"https://travis-ci.org/Javey/Intact.svg?branch=master\" alt=\"Build Status\"\u003e\n    \u003c/a\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://saucelabs.com/u/Intactjs\"\u003e\n        \u003cimg src=\"https://saucelabs.com/browser-matrix/Intactjs.svg\" alt=\"Browser Matrix\"\u003e\n    \u003c/a\u003e \n\u003c/p\u003e\n\n# Intact\n\n[文档 Documents](http://javey.github.io/Intact/#/document/start)\n\n## 简介\n\nIntact作为一个可继承，并且拥有强逻辑模板的前端MVVM框架，有着如下特色：\n\n1. 充分利用组合与继承的思想，来最高限度地复用代码\n2. 同时支持数据驱动和组件实例化调用，来最便捷地实现功能\n3. 强逻辑模板，赋予模板更多功能和职责，来完成业务逻辑和表现逻辑分离\n\n## 安装\n\n### 通过script标签引入\n\n请通过`npm`、`bower`或者直接到github上下载源码包。其中\n[`dist/intact.js`](https://raw.githubusercontent.com/Javey/Intact/master/dist/intact.js)\n为UMD方式打包的文件，直接通过script引入会暴露全局变量`Intact`。\n\n```html\n\u003cscript src=\"/path/to/intact.js\"\u003e\u003c/script\u003e\n\n\u003c!-- 或者通过cdn --\u003e\n\u003cscript src=\"//unpkg.com/intact\"\u003e\u003c/script\u003e\n```\n\n### NPM\n\n在大型项目中，一般都会使用webpack构建，通过npm包管理器来管理项目依赖。\n\n```bash\nnpm install intact --save\n```\n\n## 使用\n\n```js\nvar App = Intact.extend({\n    defaults: {\n        name: 'Intact'\n    },\n    template: '\u003cdiv\u003eHello {self.get(\"name\")}!\u003c/div\u003e'\n});\n```\n\n通过`Intact.mount`方法，可以将该组件挂载到指定元素下。\n\n```js\nwindow.app = Intact.mount(App, document.getElementById('app'));\n```\n## 许可\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavey%2Fintact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavey%2Fintact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavey%2Fintact/lists"}