Skip to content

Instantly share code, notes, and snippets.

View engalar's full-sized avatar

wengao liu engalar

  • https://www.mendix.com/
  • zhuhai/guangdong/china
  • 14:42 (UTC +08:00)
View GitHub Profile
@engalar
engalar / domain_and_mf.txt
Created December 18, 2025 09:12
domain_and_mf
DOMAIN ANALYSIS: AmazonBedrockConnector
------------------------------------------------------------
Entities (117 found):
[Entity] ListFoundationModelsResponse [Non-Persistable] // This entity is the response for the Amazon Bedrock ListFoundationalModels action.\n\nAPI reference:\nhttps://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListFoundationModels.html
[Entity] InvokeModelRequest [Non-Persistable] extends AWSAuthentication.AbstractRequest // This entity is the request for the Amazon Bedrock InvokeModel action.\n\nAPI reference:\nhttps://docs.aws.amazon.com/bedrock/latest/APIReference/API_InvokeModel.html\n\nJava SDK documentation:\nhttps://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/bedrockruntime/model/InvokeModelRequest.html
- ModelID: String[Unlimited] // The ModelID attribute describes identifier of the model and is a required parameter.
- RequestBody: String[Unlimited] // The RequestBody attribute describes the JSON request body of the specific model to inv
@engalar
engalar / MendixDevTool.user.js
Last active December 16, 2025 09:11
Mendix DevTool: Inspector & Opener
// ==UserScript==
// @name Mendix DevTool: Inspector & Opener
// @namespace http://mendix.dev/
// @version 2.0
// @description Visual inspector for Mendix to open Layouts, Pages, and Widgets in Studio Pro via Python RPC.
// @author Dev
// @match http://localhost:8082/*
// @grant GM_xmlhttpRequest
// @grant GM_addStyle
// @run-at document-end
@engalar
engalar / snap.user.js
Last active November 21, 2025 07:09
网页元素截图工具
// ==UserScript==
// @name 网页元素截图工具
// @namespace http://tampermonkey.net/
// @version 1.2
// @description 直接利用 @require 加载库,解决 window.htmlToImage 为 undefined 的问题
// @author YourName
// @match *://*/*
// @grant GM_registerMenuCommand
// @grant GM_addStyle
// @require https://cdnjs.cloudflare.com/ajax/libs/html-to-image/1.11.11/html-to-image.min.js
@engalar
engalar / README.md
Last active October 27, 2025 07:41
Mendix python plugin to collect support data.

Mendix Log Extractor Plugin

Business Requirements

Overview

A comprehensive Mendix Studio Pro plugin that extracts diagnostic information, logs, and project metadata to assist developers in troubleshooting, debugging, and forum support requests.

Core Requirements

1. Log Extraction

@engalar
engalar / Install-PowerShell.ps1
Created October 22, 2025 01:52
auto install powershell
# -----------------------------------------------------------
# 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
@engalar
engalar / README.md
Last active October 9, 2025 08:38
studio pro plugin for mcp server

Of course, here is the updated README.md file reflecting the changes in the provided code, including the new MCP server controls.


架构知识库:Mendix 前后端 RPC 控制面板

1. 总体架构概述 (High-Level Architecture)

本系统是一个基于Mendix Studio Pro扩展API构建的Web应用,包含一个前端UI(index.html)和一个后端脚本(main.py)。它现在集成了Mendix Copilot (MCP) 服务,允许用户通过UI直接控制后端的MCP服务器生命周期。

@engalar
engalar / index.html
Created September 25, 2025 06:58
Analyzes userlib and vendorlib JARs to identify and visualize potential version conflicts.
<!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;
@engalar
engalar / README.md
Last active September 25, 2025 07:44
studio pro plugin for tutorial soc dip ioc principle

架构知识库:Mendix 前后端 RPC 控制面板

1. 总体架构概述 (High-Level Architecture)

本系统是一个基于Mendix Studio Pro扩展API构建的Web应用,包含一个前端UI(index.html)和一个后端脚本(main.py)。

  • 核心模式: 客户端-服务器 (Client-Server)
  • 通信协议: 基于 window.postMessage异步RPC(远程过程调用)
  • 核心设计原则:
  1. 关注点分离 (SoC): 前后端、UI、业务逻辑、通信等模块各自独立,职责单一。
@engalar
engalar / index.html
Last active September 12, 2025 07:24
studio pro plugin for tutorial
<!-- 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>
@engalar
engalar / index.html
Last active September 12, 2025 07:25
<!--
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>