galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
115 lines • 6.06 kB
JSON
{
"id": "mrhyddenn_red-stingray-4",
"name": "red-stingray-4",
"category": "buttons",
"author": "mrhyddenn",
"description": "red-stingray-4 组件 (twitter, button, hover, interactive)",
"tags": [
"twitter",
"button",
"hover",
"interactive"
],
"original": {
"html": "<button>\n <svg viewBox=\"0 0 16 16\" class=\"bi bi-twitter\" fill=\"currentColor\" height=\"18\" width=\"18\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z\"></path>\n </svg>\n <span>Twitter</span>\n</button>",
"css": "/* From Uiverse.io by mrhyddenn - Tags: twitter, button, hover */\nbutton {\n background: transparent;\n position: relative;\n padding: 5px 15px;\n display: flex;\n align-items: center;\n font-size: 17px;\n font-weight: 600;\n text-decoration: none;\n cursor: pointer;\n border: 1px solid rgb(40, 144, 241);\n border-radius: 25px;\n outline: none;\n overflow: hidden;\n color: rgb(40, 144, 241);\n transition: color 0.3s 0.1s ease-out;\n text-align: center;\n}\n\nbutton span {\n margin: 10px;\n}\n\nbutton::before {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n margin: auto;\n content: '';\n border-radius: 50%;\n display: block;\n width: 20em;\n height: 20em;\n left: -5em;\n text-align: center;\n transition: box-shadow 0.5s ease-out;\n z-index: -1;\n}\n\nbutton:hover {\n color: #fff;\n border: 1px solid rgb(40, 144, 241);\n}\n\nbutton:hover::before {\n box-shadow: inset 0 0 0 10em rgb(40, 144, 241);\n}",
"file_path": "/mnt/persist/workspace/Buttons/mrhyddenn_red-stingray-4.html"
},
"uniapp": {
"template": "<button></button>\n <view viewBox=\"0 0 16 16\" class=\"bi bi-twitter\" fill=\"currentColor\" height=\"18\" width=\"18\" xmlns=\"http://www.w3.org/2000/svg\"></view>\n <path d=\"M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z\"></path>\n </svg>\n <text>Twitter</text>\n</button>",
"script": "export default {\n name: 'GalaxyRedStingray4',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by mrhyddenn - Tags: twitter, button, hover */\nbutton {\n background: transparent;\n position: relative;\n padding: 10rpx 30rpx;\n display: flex;\n align-items: center;\n font-size: 34rpx;\n font-weight: 600;\n text-decoration: none;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n border: 2rpx solid rgb(40, 144, 241);\n border-radius: 50rpx;\n outline: none;\n overflow: hidden;\n color: rgb(40, 144, 241);\n transition: color 0.3s 0.1s ease-out;\n text-align: center;\n}\n\nbutton span {\n margin: 20rpx;\n}\n\nbutton::before {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n margin: auto;\n content: '';\n border-radius: 50%;\n display: block;\n width: 20em;\n height: 20em;\n left: -5em;\n text-align: center;\n transition: box-shadow 0.5s ease-out;\n z-index: -1;\n}\n\nbutton:hover {\n color: #fff;\n border: 2rpx solid rgb(40, 144, 241);\n}\n\nbutton:hover::before {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset 0 0 0 10em rgb(40, 144, 241);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n \n",
"component_name": "GalaxyRedStingray4"
},
"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": "low",
"bundle_size": 1630,
"render_cost": "low",
"memory_usage": "low"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:37.352Z",
"updated_at": "2025-07-31T07:55:37.352Z"
}