galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
115 lines • 6.86 kB
JSON
{
"id": "gharsh11032000_cuddly-squid-93",
"name": "cuddly-squid-93",
"category": "buttons",
"author": "gharsh11032000",
"description": "cuddly-squid-93 组件 (red, button, hover, shake, animation, interactive)",
"tags": [
"red",
"button",
"hover",
"shake",
"animation",
"interactive"
],
"original": {
"html": "<button class=\"button\">\n <span>Not allowed!\n</span>\n<span>\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-miterlimit=\"2\" stroke-linejoin=\"round\" fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path fill-rule=\"nonzero\" d=\"m12.002 2.005c5.518 0 9.998 4.48 9.998 9.997 0 5.518-4.48 9.998-9.998 9.998-5.517 0-9.997-4.48-9.997-9.998 0-5.517 4.48-9.997 9.997-9.997zm0 1.5c-4.69 0-8.497 3.807-8.497 8.497s3.807 8.498 8.497 8.498 8.498-3.808 8.498-8.498-3.808-8.497-8.498-8.497zm0 7.425 2.717-2.718c.146-.146.339-.219.531-.219.404 0 .75.325.75.75 0 .193-.073.384-.219.531l-2.717 2.717 2.727 2.728c.147.147.22.339.22.531 0 .427-.349.75-.75.75-.192 0-.384-.073-.53-.219l-2.729-2.728-2.728 2.728c-.146.146-.338.219-.53.219-.401 0-.751-.323-.751-.75 0-.192.073-.384.22-.531l2.728-2.728-2.722-2.722c-.146-.147-.219-.338-.219-.531 0-.425.346-.749.75-.749.192 0 .385.073.531.219z\"></path></svg>\n</span>\n</button>",
"css": "/* From Uiverse.io by gharsh11032000 - Tags: red, button, hover, shake */\n.button {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n padding: 15px 20px;\n background-color: #212121;\n border: none;\n font: inherit;\n color: #e8e8e8;\n font-size: 20px;\n font-weight: 600;\n border-radius: 50px;\n cursor: not-allowed;\n overflow: hidden;\n transition: all 0.3s ease cubic-bezier(0.23, 1, 0.320, 1);\n}\n\n.button span {\n position: relative;\n z-index: 2;\n display: flex;\n align-items: center;\n}\n\n.button::before {\n position: absolute;\n content: '';\n width: 100%;\n height: 100%;\n translate: 0 105%;\n background-color: #F53844;\n transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);\n}\n\n.button svg {\n width: 32px;\n height: 32px;\n fill: #F53844;\n transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);\n}\n\n.button:hover {\n animation: shake 0.2s linear 1;\n}\n\n.button:hover::before {\n translate: 0 0;\n}\n\n.button:hover svg {\n fill: #e8e8e8;\n}\n\n@keyframes shake {\n 0% {\n rotate: 0deg;\n }\n\n 33% {\n rotate: 10deg;\n }\n\n 66% {\n rotate: -10deg;\n }\n\n 100% {\n rotate: 10deg;\n }\n}",
"file_path": "/mnt/persist/workspace/Buttons/gharsh11032000_cuddly-squid-93.html"
},
"uniapp": {
"template": "<button class=\"button\"></button>\n <text></text>Not allowed!\n</span>\n<text></text>\n <view xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" stroke-miterlimit=\"2\" stroke-linejoin=\"round\" fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path fill-rule=\"nonzero\" d=\"m12.002 2.005c5.518 0 9.998 4.48 9.998 9.997 0 5.518-4.48 9.998-9.998 9.998-5.517 0-9.997-4.48-9.997-9.998 0-5.517 4.48-9.997 9.997-9.997zm0 1.5c-4.69 0-8.497 3.807-8.497 8.497s3.807 8.498 8.497 8.498 8.498-3.808 8.498-8.498-3.808-8.497-8.498-8.497zm0 7.425 2.717-2.718c.146-.146.339-.219.531-.219.404 0 .75.325.75.75 0 .193-.073.384-.219.531l-2.717 2.717 2.727 2.728c.147.147.22.339.22.531 0 .427-.349.75-.75.75-.192 0-.384-.073-.53-.219l-2.729-2.728-2.728 2.728c-.146.146-.338.219-.53.219-.401 0-.751-.323-.751-.75 0-.192.073-.384.22-.531l2.728-2.728-2.722-2.722c-.146-.147-.219-.338-.219-.531 0-.425.346-.749.75-.749.192 0 .385.073.531.219z\"></path></view>\n</span>\n</button>",
"script": "export default {\n name: 'GalaxyCuddlySquid93',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by gharsh11032000 - Tags: red, button, hover, shake */\n.button {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10rpx;\n padding: 30rpx 40rpx;\n background-color: #212121;\n border: none;\n font: inherit;\n color: #e8e8e8;\n font-size: 40rpx;\n font-weight: 600;\n border-radius: 100rpx;\n /* #ifdef H5 */\n cursor: not-allowed;\n /* #endif */\n overflow: hidden;\n transition: all 0.3s ease cubic-bezier(0.23, 1, 0.320, 1);\n}\n\n.button span {\n position: relative;\n z-index: 2;\n display: flex;\n align-items: center;\n}\n\n.button::before {\n position: absolute;\n content: '';\n width: 100%;\n height: 100%;\n translate: 0 105%;\n background-color: #F53844;\n transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);\n}\n\n.button svg {\n width: 64rpx;\n height: 64rpx;\n fill: #F53844;\n transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);\n}\n\n.button:hover {\n animation: shake 0.2s linear 1;\n}\n\n.button:hover::before {\n translate: 0 0;\n}\n\n.button:hover svg {\n fill: #e8e8e8;\n}\n\n@keyframes shake {\n 0% {\n rotate: 0deg;\n }\n\n 33% {\n rotate: 10deg;\n }\n\n 66% {\n rotate: -10deg;\n }\n\n 100% {\n rotate: 10deg;\n }\n}\n\n",
"component_name": "GalaxyCuddlySquid93"
},
"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": [
"不支持 cursor 属性"
],
"alternatives": []
},
"mp-alipay": {
"supported": true,
"issues": [
"不支持 cursor 属性"
],
"alternatives": []
},
"app-plus": {
"supported": true,
"issues": [],
"alternatives": []
}
},
"performance": {
"complexity": "medium",
"bundle_size": 2069,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:36.813Z",
"updated_at": "2025-07-31T07:55:36.813Z"
}