galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
119 lines • 10 kB
JSON
{
"id": "simontheonlyone_happy-baboon-60",
"name": "happy-baboon-60",
"category": "buttons",
"author": "simontheonlyone",
"description": "happy-baboon-60 组件 (tooltip, button, download, unique, file explorer, animation, gradient, interactive)",
"tags": [
"tooltip",
"button",
"download",
"unique",
"file explorer",
"animation",
"gradient",
"interactive"
],
"original": {
"html": "<button class=\"button\">\n <div class=\"container\">\n <div class=\"folder folder_one\"></div>\n <div class=\"folder folder_two\"></div>\n <div class=\"folder folder_three\"></div>\n <div class=\"folder folder_four\"></div>\n </div>\n <div class=\"active_line\"></div>\n <span class=\"text\">File Explorer</span>\n</button>",
"css": "/* From Uiverse.io by simontheonlyone - Source: idea - Microsoft Windows File Explorer design; made by me - Tags: tooltip, button, download, unique, file explorer */\n.button {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 5.3em;\n height: 5.3em;\n border: none;\n border-radius: .4em;\n background: rgba(235, 252, 254, 0.8);\n}\n\n.container {\n position: relative;\n width: 3.5em;\n height: 3.1em;\n background: none;\n overflow: hidden;\n}\n\n.folder {\n content: '';\n position: absolute;\n /* box-shadow: 0 0 5px rgba(0, 0, 0, .3); */\n}\n\n.folder_one {\n bottom: 0;\n width: 100%;\n height: 88%;\n border-radius: 3px;\n border-top: 2px solid rgb(206, 167, 39);\n /* background-color: rgb(252, 212, 80); */\n background: linear-gradient(\n -35deg,\n rgb(238, 194, 47) 5%,\n rgb(255, 223, 118));\n}\n\n.folder_two {\n top: 5%;\n width: 38%;\n height: 19%;\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n border-bottom-right-radius: 3px;\n background-color: rgb(206, 167, 39);\n box-shadow: 0 1px 5px -2px rgba(0, 0, 0, .5);\n}\n\n.folder_two::before {\n content: '';\n position: absolute;\n display: inline;\n left: 88%;\n width: 0;\n height: 0;\n border-left: 7px solid rgb(206, 167, 39);\n border-top: .3em solid transparent;\n border-bottom: .3em solid transparent;\n /* background-color: rgb(206, 167, 39); */\n}\n\n.folder_three {\n display: flex;\n align-items: center;\n justify-content: center;\n left: .5em;\n bottom: 0;\n width: 2.5em;\n height: .9em;\n border-radius: 4px 4px 0 0;\n background: linear-gradient(\n -35deg,\n rgb(25, 102, 218),\n rgb(109, 165, 249));\n box-shadow: 0 0 5px rgba(0, 0, 0, .4);\n}\n\n.folder_four {\n left: 1em;\n bottom: .3em;\n width: 1.5em;\n height: .18em;\n border-radius: 1em;\n background-color: rgb(20, 77, 163);\n box-shadow: 0 0 10px rgba(0, 0, 0, .1);\n}\n\n.active_line {\n content: '';\n position: absolute;\n bottom: 0;\n width: .9em;\n height: .4em;\n background-color: #999;\n border: none;\n border-radius: 1em;\n transition: all .15s linear;\n}\n\n.button:active .active_line,\n.button:focus .active_line {\n width: 2.3em;\n background-color: rgb(41, 126, 255);\n}\n\n.button:focus .container {\n animation: wow 1s forwards;\n}\n\n@keyframes wow {\n 20% {\n scale: .8;\n }\n\n 30% {\n scale: 1;\n transform: translateY(0);\n }\n\n 50% {\n transform: translateY(-6px);\n }\n\n 65% {\n transform: translateY(4px);\n }\n\n 80% {\n transform: translateY(0);\n }\n\n 100% {\n scale: 1;\n }\n}\n\n.text {\n content: '';\n position: absolute;\n top: -4.5em;\n width: 7.7em;\n height: 2.6em;\n background-color: #666;\n color: #fff;\n display: flex;\n justify-content: center;\n align-items: center;\n border: none;\n border-radius: 5px;\n text-shadow: 0 0 10px rgb(0, 0, 0);\n opacity: 0;\n transition: all .25s linear;\n}\n\n.button:hover .text {\n opacity: 1;\n}",
"file_path": "/mnt/persist/workspace/Buttons/simontheonlyone_happy-baboon-60.html"
},
"uniapp": {
"template": "<button class=\"button\"></button>\n <view class=\"container\"></view>\n <view class=\"folder folder_one\"></view>\n <view class=\"folder folder_two\"></view>\n <view class=\"folder folder_three\"></view>\n <view class=\"folder folder_four\"></view>\n </div>\n <view class=\"active_line\"></view>\n <text class=\"text\">File Explorer</text>\n</button>",
"script": "export default {\n name: 'GalaxyHappyBaboon60',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by simontheonlyone - Source: idea - Microsoft Windows File Explorer design; made by me - Tags: tooltip, button, download, unique, file explorer */\n.button {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 5.3em;\n height: 5.3em;\n border: none;\n border-radius: .4em;\n background: rgba(235, 252, 254, 0.8);\n}\n\n.container {\n position: relative;\n width: 3.5em;\n height: 3.1em;\n background: none;\n overflow: hidden;\n}\n\n.folder {\n content: '';\n position: absolute;\n /* /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0 10rpx rgba(0, 0, 0, .3);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */ */\n}\n\n.folder_one {\n bottom: 0;\n width: 100%;\n height: 88%;\n border-radius: 6rpx;\n border-top: 4rpx solid rgb(206, 167, 39);\n /* background-color: rgb(252, 212, 80); */\n background: linear-gradient(\n -35deg,\n rgb(238, 194, 47) 5%,\n rgb(255, 223, 118));\n}\n\n.folder_two {\n top: 5%;\n width: 38%;\n height: 19%;\n border-top-left-radius: 6rpx;\n border-top-right-radius: 6rpx;\n border-bottom-right-radius: 6rpx;\n background-color: rgb(206, 167, 39);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 2rpx 10rpx -4rpx rgba(0, 0, 0, .5);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.folder_two::before {\n content: '';\n position: absolute;\n display: inline;\n left: 88%;\n width: 0;\n height: 0;\n border-left: 14rpx solid rgb(206, 167, 39);\n border-top: .3em solid transparent;\n border-bottom: .3em solid transparent;\n /* background-color: rgb(206, 167, 39); */\n}\n\n.folder_three {\n display: flex;\n align-items: center;\n justify-content: center;\n left: .5em;\n bottom: 0;\n width: 2.5em;\n height: .9em;\n border-radius: 8rpx 8rpx 0 0;\n background: linear-gradient(\n -35deg,\n rgb(25, 102, 218),\n rgb(109, 165, 249));\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0 10rpx rgba(0, 0, 0, .4);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.folder_four {\n left: 1em;\n bottom: .3em;\n width: 1.5em;\n height: .18em;\n border-radius: 1em;\n background-color: rgb(20, 77, 163);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0 20rpx rgba(0, 0, 0, .1);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.active_line {\n content: '';\n position: absolute;\n bottom: 0;\n width: .9em;\n height: .4em;\n background-color: #999;\n border: none;\n border-radius: 1em;\n transition: all .15s linear;\n}\n\n.button:active .active_line,\n.button:focus .active_line {\n width: 2.3em;\n background-color: rgb(41, 126, 255);\n}\n\n.button:focus .container {\n animation: wow 1s forwards;\n}\n\n@keyframes wow {\n 20% {\n scale: .8;\n }\n\n 30% {\n scale: 1;\n transform: translateY(0);\n }\n\n 50% {\n transform: translateY(-12rpx);\n }\n\n 65% {\n transform: translateY(8rpx);\n }\n\n 80% {\n transform: translateY(0);\n }\n\n 100% {\n scale: 1;\n }\n}\n\n.text {\n content: '';\n position: absolute;\n top: -4.5em;\n width: 7.7em;\n height: 2.6em;\n background-color: #666;\n color: #fff;\n display: flex;\n justify-content: center;\n align-items: center;\n border: none;\n border-radius: 10rpx;\n /* #ifdef H5 */\n text-shadow: 0 0 20rpx rgb(0, 0, 0);\n /* #endif */\n opacity: 0;\n transition: all .25s linear;\n}\n\n.button:hover .text {\n opacity: 1;\n}\n",
"component_name": "GalaxyHappyBaboon60"
},
"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 属性",
"不支持 text-shadow 属性"
],
"alternatives": []
},
"mp-alipay": {
"supported": true,
"issues": [
"不支持 box-shadow 属性",
"不支持 text-shadow 属性"
],
"alternatives": []
},
"app-plus": {
"supported": true,
"issues": [],
"alternatives": []
}
},
"performance": {
"complexity": "high",
"bundle_size": 3192,
"render_cost": "high",
"memory_usage": "high"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:37.855Z",
"updated_at": "2025-07-31T07:55:37.855Z"
}