UNPKG

galaxy-uniapp-mcp-server

Version:

Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成

117 lines 6.25 kB
{ "id": "vinodjangid07_stale-hound-2", "name": "stale-hound-2", "category": "buttons", "author": "vinodjangid07", "description": "stale-hound-2 组件 (button, neon, copy, hover effect, animation, interactive)", "tags": [ "button", "neon", "copy", "hover effect", "animation", "interactive" ], "original": { "html": "<button class=\"Btn\">\n <svg viewBox=\"0 0 512 512\" class=\"svgIcon\" height=\"1em\"><path d=\"M288 448H64V224h64V160H64c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H288c35.3 0 64-28.7 64-64V384H288v64zm-64-96H448c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H224c-35.3 0-64 28.7-64 64V288c0 35.3 28.7 64 64 64z\"></path></svg>\n <p class=\"text\">COPY</p>\n <span class=\"effect\"></span>\n</button>", "css": "/* From Uiverse.io by vinodjangid07 - Tags: button, neon, copy, hover effect */\n.Btn {\n width: 120px;\n height: 45px;\n background-color: rgb(65, 64, 64);\n border: none;\n box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.342);\n border-radius: 5px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 7px;\n position: relative;\n overflow: hidden;\n transition-duration: .5s;\n}\n\n.text {\n color: rgb(184, 236, 104);\n font-weight: 800;\n letter-spacing: 1.1px;\n z-index: 2;\n}\n\n.svgIcon {\n z-index: 2;\n}\n\n.svgIcon path {\n fill: rgb(184, 236, 104);\n}\n\n.Btn:hover {\n color: rgb(230, 255, 193);\n}\n\n.effect {\n position: absolute;\n width: 10px;\n height: 10px;\n background-color: rgb(184, 236, 104);\n border-radius: 50%;\n z-index: 1;\n opacity: 0;\n transition-duration: .5s;\n}\n\n.Btn:hover .effect {\n transform: scale(15);\n transform-origin: center;\n opacity: 1;\n transition-duration: .5s;\n}\n\n.Btn:hover {\n box-shadow: 0px 0px 5px rgb(184, 236, 104),\n 0px 0px 10px rgb(184, 236, 104),\n 0px 0px 30px rgb(184, 236, 104);\n transition-duration: .7s;\n}\n\n.Btn:hover .text {\n color: rgb(65, 64, 64);\n}\n\n.Btn:hover .svgIcon path {\n fill: rgb(65, 64, 64);\n}", "file_path": "/mnt/persist/workspace/Buttons/vinodjangid07_stale-hound-2.html" }, "uniapp": { "template": "<button class=\"Btn\"></button>\n <view viewBox=\"0 0 512 512\" class=\"svgIcon\" height=\"1em\"><path d=\"M288 448H64V224h64V160H64c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H288c35.3 0 64-28.7 64-64V384H288v64zm-64-96H448c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H224c-35.3 0-64 28.7-64 64V288c0 35.3 28.7 64 64 64z\"></path></view>\n <text class=\"text\">COPY</text>\n <text class=\"effect\"></text>\n</button>", "script": "export default {\n name: 'GalaxyStaleHound2',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by vinodjangid07 - Tags: button, neon, copy, hover effect */\n.Btn {\n width: 240rpx;\n height: 90rpx;\n background-color: rgb(65, 64, 64);\n border: none;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 10rpx 10rpx 30rpx rgba(0, 0, 0, 0.342);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n border-radius: 10rpx;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 14rpx;\n position: relative;\n overflow: hidden;\n transition-duration: .5s;\n}\n\n.text {\n color: rgb(184, 236, 104);\n font-weight: 800;\n letter-spacing: 2.2rpx;\n z-index: 2;\n}\n\n.svgIcon {\n z-index: 2;\n}\n\n.svgIcon path {\n fill: rgb(184, 236, 104);\n}\n\n.Btn:hover {\n color: rgb(230, 255, 193);\n}\n\n.effect {\n position: absolute;\n width: 20rpx;\n height: 20rpx;\n background-color: rgb(184, 236, 104);\n border-radius: 50%;\n z-index: 1;\n opacity: 0;\n transition-duration: .5s;\n}\n\n.Btn:hover .effect {\n transform: scale(15);\n transform-origin: center;\n opacity: 1;\n transition-duration: .5s;\n}\n\n.Btn:hover {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 0rpx 10rpx rgb(184, 236, 104),\n 0rpx 0rpx 20rpx rgb(184, 236, 104),\n 0rpx 0rpx 60rpx rgb(184, 236, 104);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transition-duration: .7s;\n}\n\n.Btn:hover .text {\n color: rgb(65, 64, 64);\n}\n\n.Btn:hover .svgIcon path {\n fill: rgb(65, 64, 64);\n}\n", "component_name": "GalaxyStaleHound2" }, "platforms": { "h5": true, "mp-weixin": true, "mp-alipay": true, "mp-baidu": true, "mp-toutiao": true, "app-plus": true }, "props": [ { "name": "disabled", "type": "Boolean", "default": false, "required": false, "description": "是否禁用" }, { "name": "text", "type": "String", "default": "按钮", "required": false, "description": "按钮文字" }, { "name": "type", "type": "String", "default": "primary", "required": false, "description": "按钮类型" } ], "events": [ { "name": "click", "description": "点击事件", "parameters": [ "event" ] } ], "slots": [ { "name": "", "description": "", "props": [] } ], "compatibility": { "h5": { "supported": true, "issues": [], "alternatives": [] }, "mp-weixin": { "supported": true, "issues": [ "不支持 box-shadow 属性", "不支持 cursor 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 box-shadow 属性", "不支持 cursor 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "medium", "bundle_size": 1588, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:38.262Z", "updated_at": "2025-07-31T07:55:38.262Z" }