UNPKG

galaxy-uniapp-mcp-server

Version:

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

114 lines 9.26 kB
{ "id": "aryansagar2405_bitter-baboon-4", "name": "bitter-baboon-4", "category": "buttons", "author": "aryansagar2405", "description": "bitter-baboon-4 组件 (button, animation, gradient)", "tags": [ "button", "animation", "gradient" ], "original": { "html": "<div class=\"share-wrapper\">\n <input id=\"share-toggle\" type=\"checkbox\" class=\"check\">\n <label for=\"share-toggle\" class=\"container\">\n <svg class=\"icon inactive\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n <path d=\"M18 16.08C17.24 16.08 16.56 16.38 16.05 16.87L8.91 12.7C8.96 12.47 9 12.24 9 12C9 11.76 8.96 11.53 8.91 11.3L15.95 7.13C16.46 7.62 17.24 7.92 18 7.92C19.66 7.92 21 6.58 21 4.92C21 3.26 19.66 1.92 18 1.92C16.34 1.92 15 3.26 15 4.92C15 5.16 15.04 5.39 15.09 5.62L8.05 9.79C7.54 9.3 6.76 9 6 9C4.34 9 3 10.34 3 12C3 13.66 4.34 15 6 15C6.76 15 7.54 14.7 8.05 14.21L15.18 18.38C15.13 18.61 15.09 18.84 15.09 19.08C15.09 20.74 16.43 22.08 18.09 22.08C19.75 22.08 21.09 20.74 21.09 19.08C21.09 17.42 19.75 16.08 18 16.08Z\"></path>\n </svg>\n <svg class=\"icon active\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n <path d=\"M18 16.08C17.24 16.08 16.56 16.38 16.05 16.87L8.91 12.7C8.96 12.47 9 12.24 9 12C9 11.76 8.96 11.53 8.91 11.3L15.95 7.13C16.46 7.62 17.24 7.92 18 7.92C19.66 7.92 21 6.58 21 4.92C21 3.26 19.66 1.92 18 1.92C16.34 1.92 15 3.26 15 4.92C15 5.16 15.04 5.39 15.09 5.62L8.05 9.79C7.54 9.3 6.76 9 6 9C4.34 9 3 10.34 3 12C3 13.66 4.34 15 6 15C6.76 15 7.54 14.7 8.05 14.21L15.18 18.38C15.13 18.61 15.09 18.84 15.09 19.08C15.09 20.74 16.43 22.08 18.09 22.08C19.75 22.08 21.09 20.74 21.09 19.08C21.09 17.42 19.75 16.08 18 16.08Z\"></path>\n </svg>\n <div class=\"checkmark\"></div>\n <span class=\"share-text\">Share</span>\n </label>\n</div>", "css": "/* From Uiverse.io by aryansagar2405 - Tags: button */\n.share-wrapper {\n --gap: 0.5em;\n --radius: 0.35em;\n display: flex;\n align-items: center;\n text-align: center;\n justify-content: center;\n --dot-bg: #212121;\n --dot-color: #313131;\n --dot-size: 1px;\n --dot-space: 22px;\n background:\n linear-gradient(\n 90deg,\n var(--dot-bg) calc(var(--dot-space) - var(--dot-size)),\n transparent 1%\n )\n center / var(--dot-space) var(--dot-space),\n linear-gradient(\n var(--dot-bg) calc(var(--dot-space) - var(--dot-size)),\n transparent 1%\n )\n center / var(--dot-space) var(--dot-space),\n var(--dot-color);\n border: 0.1em solid #313131;\n padding: 0.5em;\n border-radius: var(--radius);\n box-shadow: 0 0 1em 0.5em rgba(0, 0, 0, 0.1);\n cursor: pointer;\n}\n\n.check[type=\"checkbox\"] {\n display: none;\n}\n\n.container {\n display: flex;\n align-items: center;\n cursor: pointer;\n margin-top: -0.25em;\n margin-bottom: -0.25em;\n}\n\n.icon {\n width: 1.5em;\n height: 1.5em;\n margin-left: 0.5em;\n fill: white;\n transition: opacity 0.3s ease-in-out;\n}\n\n.icon.active {\n display: none;\n fill: #2196f3;\n}\n\n.check[type=\"checkbox\"]:checked + .container .icon.active {\n display: inline-block;\n animation: pop 0.5s ease-in-out;\n}\n\n.check[type=\"checkbox\"]:checked + .container .icon.inactive {\n display: none;\n}\n\n.share-text {\n margin-left: 0.5em;\n padding: 0.5em;\n color: white;\n font-family: Arial, sans-serif;\n font-weight: bolder;\n}\n\n@keyframes pop {\n 0% {\n transform: scale(1);\n }\n 50% {\n transform: scale(1.5);\n }\n 100% {\n transform: scale(1);\n }\n}", "file_path": "/mnt/persist/workspace/Buttons/aryansagar2405_bitter-baboon-4.html" }, "uniapp": { "template": "<view class=\"share-wrapper\"></view>\n <input id=\"share-toggle\" type=\"checkbox\" class=\"check\"></input>\n <label for=\"share-toggle\" class=\"container\"></label>\n <view class=\"icon inactive\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"></view>\n <path d=\"M18 16.08C17.24 16.08 16.56 16.38 16.05 16.87L8.91 12.7C8.96 12.47 9 12.24 9 12C9 11.76 8.96 11.53 8.91 11.3L15.95 7.13C16.46 7.62 17.24 7.92 18 7.92C19.66 7.92 21 6.58 21 4.92C21 3.26 19.66 1.92 18 1.92C16.34 1.92 15 3.26 15 4.92C15 5.16 15.04 5.39 15.09 5.62L8.05 9.79C7.54 9.3 6.76 9 6 9C4.34 9 3 10.34 3 12C3 13.66 4.34 15 6 15C6.76 15 7.54 14.7 8.05 14.21L15.18 18.38C15.13 18.61 15.09 18.84 15.09 19.08C15.09 20.74 16.43 22.08 18.09 22.08C19.75 22.08 21.09 20.74 21.09 19.08C21.09 17.42 19.75 16.08 18 16.08Z\"></path>\n </svg>\n <view class=\"icon active\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"></view>\n <path d=\"M18 16.08C17.24 16.08 16.56 16.38 16.05 16.87L8.91 12.7C8.96 12.47 9 12.24 9 12C9 11.76 8.96 11.53 8.91 11.3L15.95 7.13C16.46 7.62 17.24 7.92 18 7.92C19.66 7.92 21 6.58 21 4.92C21 3.26 19.66 1.92 18 1.92C16.34 1.92 15 3.26 15 4.92C15 5.16 15.04 5.39 15.09 5.62L8.05 9.79C7.54 9.3 6.76 9 6 9C4.34 9 3 10.34 3 12C3 13.66 4.34 15 6 15C6.76 15 7.54 14.7 8.05 14.21L15.18 18.38C15.13 18.61 15.09 18.84 15.09 19.08C15.09 20.74 16.43 22.08 18.09 22.08C19.75 22.08 21.09 20.74 21.09 19.08C21.09 17.42 19.75 16.08 18 16.08Z\"></path>\n </svg>\n <view class=\"checkmark\"></view>\n <text class=\"share-text\">Share</text>\n </label>\n</div>", "script": "export default {\n name: 'GalaxyBitterBaboon4',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by aryansagar2405 - Tags: button */\n.share-wrapper {\n --gap: 0.5em;\n --radius: 0.35em;\n display: flex;\n align-items: center;\n text-align: center;\n justify-content: center;\n --dot-bg: #212121;\n --dot-color: #313131;\n --dot-size: 2rpx;\n --dot-space: 44rpx;\n background:\n linear-gradient(\n 90deg,\n var(--dot-bg) calc(var(--dot-space) - var(--dot-size)),\n transparent 1%\n )\n center / var(--dot-space) var(--dot-space),\n linear-gradient(\n var(--dot-bg) calc(var(--dot-space) - var(--dot-size)),\n transparent 1%\n )\n center / var(--dot-space) var(--dot-space),\n var(--dot-color);\n border: 0.1em solid #313131;\n padding: 0.5em;\n border-radius: var(--radius);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0 1em 0.5em rgba(0, 0, 0, 0.1);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n}\n\n.check[type=\"checkbox\"] {\n display: none;\n}\n\n.container {\n display: flex;\n align-items: center;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n margin-top: -0.25em;\n margin-bottom: -0.25em;\n}\n\n.icon {\n width: 1.5em;\n height: 1.5em;\n margin-left: 0.5em;\n fill: white;\n transition: opacity 0.3s ease-in-out;\n}\n\n.icon.active {\n display: none;\n fill: #2196f3;\n}\n\n.check[type=\"checkbox\"]:checked + .container .icon.active {\n display: inline-block;\n animation: pop 0.5s ease-in-out;\n}\n\n.check[type=\"checkbox\"]:checked + .container .icon.inactive {\n display: none;\n}\n\n.share-text {\n margin-left: 0.5em;\n padding: 0.5em;\n color: white;\n font-family: Arial, sans-serif;\n font-weight: bolder;\n}\n\n@keyframes pop {\n 0% {\n transform: scale(1);\n }\n 50% {\n transform: scale(1.5);\n }\n 100% {\n transform: scale(1);\n }\n}\n\n", "component_name": "GalaxyBitterBaboon4" }, "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": 3134, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:35.789Z", "updated_at": "2025-07-31T07:55:35.789Z" }