Commit Graph

23 Commits

Author SHA1 Message Date
Hexqi a79c9dfc34
feat: suport mockserver file as database and add dsl-genenrator skill (#1792)
背景:当前各类软件提供CLI/MCP/Skill 让本地AI Agent能够快速接入使用已是大势所趋。 TinyEngine当前没有对外提供这类的工具或者能力,该PR主要 通过 标准Schema(JSON文件)做为桥梁,通过DSL Skill 来方便用户使用本地Agent工具来 快速生成页面/区块/应用,并同步到TinyEngine应用中。

主要特性:

file启动模式:mockserver 新增file(默认为db)启动方式,使用该模式时,mockserver接口从文件(data/**/*.json文件)中获取数据,也会更新到文件中
使用方式:项目根目录执行 pnpm dev:file
dsl-generator skill:添加项目级skill,可以在Claude Code/Cursor/OpenCode/Codex等本地Agent中使用该skill 生成页面/区块/应用的DSL到 data/**/*.json中,配合file启动模式,实现让本地AI Agent工具生成生成页面/区块/应用
2026-06-29 17:00:04 +08:00
Hexqi 47f636c86f
fix: local dev cannot proxy online and update dev docs (#1744)
* fix: local dev cannot proxy online

* fix(vite.config.js): add VITE_AUTH environment variable

* docs: correct typos in Java deployment instructions
2026-01-19 10:54:31 +08:00
lu-yg ffa37d7ede
feat: Add material upload script (#1516) 2025-07-25 14:30:32 +08:00
chilingling 29eae05c94
feat: upgrade vue-repl (#1459) 2025-07-25 11:32:26 +08:00
Hexqi bffabbc110
fix: build error (#1523) 2025-07-14 15:02:17 +08:00
Gene 38fe39c127
feat: add ESLint TypeScript rules and fix all ESLint errors (#1145)
项目ts改造基础,使用eslint9+typescript。在@vue/eslint-config-typescript默认配置上进行修改
2025-03-13 11:27:19 +08:00
Gene ab58e88b3e
fix: add prettier version ^2 to workspace resolve lint-staged error and format all codes (#1129) 2025-02-18 20:07:59 +08:00
Hexqi b5789c51f4
v2.2.0-rc.1 (#1077)
* chore: add update template script

* chore: upgrade to 2.2.0-rc.1

* refactor: code refactor
2025-01-26 11:24:33 +08:00
rhlin aeb13234fc
Feat support router subpage (#935)
* refactor(canvas/render): ts support,  separate context functions from RenderMain and Render

* feat(canvas/render): move context to page-block-function, unify parseList type, separate isObject-parser into 3 parsers

* feat(canvas/render): add RouteView built-in component

* fea(canvas/render): multiple instantiable RenderMain, handle multi page scoped css, add RenderView logic to render, add page-getter, extra useLocale

* chore: modify eslint rules for ts files

* build(canvas): fix file extension name for build file

* feat(canvas/render): support router page data fetch and render

* fix(canvas/render): fix modify parent page and switch to child page, child page's parent view is not updated to latest version

* feat(canvas/render): add builtin router-link material

* fix(canvas/render): fix when page ancestors contain number id cause recursive load pathFromRoot[0] page issue

* fix(canvas/render):  inactive page  should not inject placeholder for empty children, remove builtin CanvasBox placeholder

* feat(plugins/materials): useResource when no pageId, after fetching default schema, update page id in location params

* fix: fix review comments,enhance readability, remove unnecessary packages, fix unsubscribe topic no callback function issue

* fix(canvas/render): rename historyChanged to locationHistoryChanged

* fix(canvas/render): fix review comments, remove unnecessary import, add data error fallback/read protection, fix function params type declare

* fix(canvas/render): rename historyChanged to locationHistoryChanged miss 1 file
2024-12-26 14:17:32 +08:00
chilingling 5279ef1718
fix: del unnecessary scripts (#849) 2024-11-11 09:34:23 +08:00
chilingling f02d458cb6
bump deps version (#816) 2024-09-27 16:03:55 +08:00
Hexqi 8213973508
chore: sync dev to refactor (#808)
* fix(mockServer): mockServer page preview can't render element-plus element (#503)

* fix(style): fix render error caused by inline style breaks (#526)

* fix(metaComp): fix bug where metaHtmlText could set value to incorret schema children (#473)

* fix(vue-generator): fix globalstate codegen error (#547)

* fix(material): add componentsMap to app Schema after material build (#527)

* fix: slot params missing double quote (#605)

* fix: slot params missing double quote

* fix: exclude nodemodule test case

* fix: 修复onMouseover拼写错误 (#662)

* fix: esbuild install failed on node v16 (#668)

* fix: esbuild install failed on nodev16

* fix: esbuild install failed on nodev16

* fix: builtin components can't generate import statement with genSFCWithDefaultPlugin method (#656)

* fix: esbuild install failed on nodev16 (#671)

* fix: esbuild install failed on nodev16

* fix: esbuild install failed on nodev16

* fix: remove deps on root pkg.json

* fix(preview): multiple nested blocks cannot preview #663 (#665)

* fix(material): add missing componentsMap to mockServer (#701)

* fix(setting): fix bindEvent dialog visible can't work on tinyvue 3.17 (#715)

* feat(download-code): support download zip for not support browsers (#703)

* feat(download-code): support download zip for not support browsers

* feat(download-code): support download zip for not support browsers - review

* feat(download-code): support download zip for not support browsers - review

* docs: update milestone (#728)

* docs: update milestone

* fix: tab

* fix: abaolute canvas init inlineStyle should be string (#730)

* fix(download): Optimize download logic and adapt to iframe (#739)

* fix(download): Optimize download logic and adapt to iframe

* feat(cdn): change cdn from onmicrosoft to unpkg (#750)

* fix: 隐藏画布根节点的包裹元素的操作选项 (#492)

* fix(script): translate log (#549)

* fix: translate log

* Update scripts/connection.mjs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update scripts/connection.mjs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update scripts/connection.mjs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fix: reset spacing cannot generate correct source code (#657)

* fix: jsx slot modelvalue can't update value (#734)

* fix: jsx slot modelvalue can't update value

* fix: add unit test for updateModel event

* fix(canvas): absolute dnd update position to schema. close #664 (#751)

* fix(generate-vue):修复出码文件选择界面打包后样式丢失问题 (#789)

Co-authored-by: wangwenbing <11535041@qq.com>

* fix(stylePanel): fix setting border-radius could not work on first time (#481)

* fix(common): fix verify required (#787)

* fix: mixed lifeCyclesContent when empty lifecycles (#810)

close #806
修复生命周期为空时,取当前页面schema生命周期值的 bug

---------

Co-authored-by: chilingling <26962197+chilingling@users.noreply.github.com>
Co-authored-by: yeser <631300329@qq.com>
Co-authored-by: wenmine <wwmmail@foxmail.com>
Co-authored-by: Gene <Pacify.98@gmail.com>
Co-authored-by: yaoyun8 <142570291+yaoyun8@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: bwrong <ibwrong@foxmail.com>
Co-authored-by: wangwenbing <11535041@qq.com>
Co-authored-by: Xie Jay <xiejay97@gmail.com>
2024-09-24 20:14:30 +08:00
chilingling 38745dff4f
feat: update build script (#638)
* feat: update build script

* feat: update dev script
2024-07-08 18:00:22 +08:00
Hexqi 5134ab33a2
feat: init function refactor (#515)
* feat: extract init logic to init.js

* feat: use vite command

* feat: add app lifecycle

* fix: reviews
2024-05-28 20:21:45 +08:00
Hexqi 81fae7e85d
fix: es import error、add build command(comments)、add demo designer... (#514)
* feat: add designer demo package

* fix: remove useless svg assets

* fix: add .js to resolve es import error

* fix: add build command in comments and entry

* fix: remove metaService

* feat: update registry template
2024-05-27 17:27:18 +08:00
wenmine fa39c12904
refactor: 原子化重构框架搭建 (#497) 2024-05-21 17:20:07 +08:00
chilingling 13db22af27
fix(build): 修复构建设计器产物 ref 值未转化的 bug (#347) 2024-03-21 20:01:24 +08:00
rhlin 683fc51d52
fix: 修复preview生产打包的时候repl引入的monaco-editor里的worker跨域报错 (#245)
* fix: 修复preview生产打包的时候repl引入的monaco-editor里的worker跨域报错

* feat(design-core/preview): 预览增加调试按钮来打开vue-repl编辑模式,并实现编辑器懒加载

* fix(design-core/preview): 修复repl-patch引入脚本路径模块化不支持importScripts问题
2024-02-26 14:15:31 +08:00
yaoyun8 b343220d77
feat: add materials script (#195)
增加拆分物料与构建物料脚本
2023-12-29 16:21:16 +08:00
chilingling aaa83ba162
feat(chore): add setup script setup environment before serving (#80) 2023-11-14 19:35:30 +08:00
ajaxZheng f3c03e5b6d feat: add pnpm to project 2023-09-29 11:17:46 +08:00
ajaxzheng 3504c5aa82
fix: fix build error (#1)
* fix: fix build error

* fix: fix server dependence
2023-09-26 08:40:44 +08:00
OpenTiny 0854e5190e init project
Match-id-61778b743a9dc8d8df471dcb285fb229931648a6
2023-09-25 18:11:29 +08:00