A comprehensive Mendix Studio Pro plugin that extracts diagnostic information, logs, and project metadata to assist developers in troubleshooting, debugging, and forum support requests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ----------------------------------------------------------- | |
| # PowerShell 下载与安装脚本 | |
| # ----------------------------------------------------------- | |
| # 定义下载链接和目标文件名 | |
| $DownloadUrl = "https://github.com/PowerShell/PowerShell/releases/download/v7.5.4/PowerShell-7.5.4-win-x64.msi" | |
| $FileName = "PowerShell-7.5.4-win-x64.msi" | |
| $DownloadPath = Join-Path $env:TEMP $FileName | |
| Write-Host "--- 1. 正在检查 PowerShell 版本 ---" -ForegroundColor Cyan |
Of course, here is the updated README.md file reflecting the changes in the provided code, including the new MCP server controls.
本系统是一个基于Mendix Studio Pro扩展API构建的Web应用,包含一个前端UI(index.html)和一个后端脚本(main.py)。它现在集成了Mendix Copilot (MCP) 服务,允许用户通过UI直接控制后端的MCP服务器生命周期。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <script src="assets/tailwindcss.js"></script> | |
| <style> | |
| /* Simple transition for collapsible sections */ | |
| .collapsible-content { | |
| max-height: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- https://gist.github.com/engalar/b84b71693c4d1a8addd458e4eec53da3 --> | |
| <!-- gh gist edit b84b71693c4d1a8addd458e4eec53da3 .\index.html -f index.html --> | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Simple plugin demo</title> | |
| <!-- 框架依赖: React, Tailwind, Babel, VConsole (引入本地资源,以便离线使用) --> | |
| <script src="assets/react.development.js"></script> | |
| <script src="assets/react-dom.development.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| gh gist edit d4a9cf90c46c4e91cfc16102a1a56579 .\index.html -f index.html | |
| --> | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Mendix Navigation Visualizer</title> | |
| <!-- 框架依赖: React, Tailwind, Babel, VConsole (保持不变) --> | |
| <script src="assets/react.development.js"></script> |
这个路径是一种混合查询语言,专门用于在Mendix模型中精确定位到任意一个具体的数据点。它的核心在于区分了两种不同的模型层级:单元(Unit) 和 元素(Element),并通过特定的语法在它们之间切换。
以下是对该路径 //Projects$Module[Name='Administration']/DomainModels$DomainModel[0]@DomainModels$Entity[Name='Account']['accessRules'][0]['moduleRoles'][0] 的完整分步解析:
- 单元 (Unit): 可以理解为项目树中的“文件”或“文件夹”。例如,一个模块 (
Projects$Module)、一个模块下的领域模型 (DomainModels$DomainModel)、一个页面 (Pages$Page) 都是单元。它们是项目结构的基本组成部分。我们使用GetUnitsOfType()来查找它们。 - 元素 (Element): 可以理解为“文件”内部的具体“内容”。例如,领域模型这个“文件”内部定义的实体 (
DomainModels$Entity)、实体上的访问规则、微流中的一个“显示页面”活动,这些都是元素。我们使用GetElementsOfType()在一个单元内部查找它们。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 这个脚本将逐步解析路径 //Projects$Module[Name='Administration']/DomainModels$DomainModel[0]@DomainModels$Entity[Name='Account']['accessRules'][0]['moduleRoles'][0],找到最终的目标对象(一个模块角色的限定名称 e.g. Administration.Administrator), //Projects$Module[Name='Administration']/Security$ModuleRole[Name='Administrator']。 | |
| from System.Collections.Generic import KeyValuePair, IReadOnlyList | |
| from Mendix.StudioPro.ExtensionsAPI.Model.Projects import IProject, IModule | |
| from Mendix.StudioPro.ExtensionsAPI.Model.DomainModels import IEntity, IDomainModel, IAssociation | |
| from Mendix.StudioPro.ExtensionsAPI.Model.Pages import IPage | |
| from Mendix.StudioPro.ExtensionsAPI.Model.Microflows import IMicroflow | |
| from Mendix.StudioPro.ExtensionsAPI.Model.UntypedModel import PropertyType, IModelElement | |
| import json | |
| import clr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Mendix Model Browser (RxJS Refactor)</title> | |
| <script src="assets/tailwindcss.js"></script> | |
| <style> | |
| .copy-icon { | |
| opacity: 0.2; |
NewerOlder