galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
113 lines • 6.76 kB
JSON
{
"id": "another-kennyotsu_sharp-fox-30",
"name": "sharp-fox-30",
"category": "buttons",
"author": "another-kennyotsu",
"description": "sharp-fox-30 组件 (button, gradient)",
"tags": [
"button",
"gradient"
],
"original": {
"html": "<div class=\"container\">\n <button id=\"spacebar\" class=\"button\">\n <li> space </li> <div id=\"bump\"></div>\n </button> <p>space-themed button.\n <br> literally.</p>\n</div>",
"css": "/* From Uiverse.io by another-kennyotsu - Tags: button */\n/* k k im joking */\n.container {\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: 1em;\n color: rgb(129, 129, 129);\n}\n\n.container p {\n margin-left: 6px;\n}\n\n.button {\n transition: 180ms ease-in-out;\n position: relative;\n display: flex;\n flex-direction: row;\n justify-content: center;\n width: 240px;\n height: 68px;\n background: linear-gradient(#ffffff, #7a7a7a);\n border-radius: 10px;\n box-shadow: 10px 15px 30px #0000006b, inset -8px 0 8px rgba(196, 196, 196, 0.25), inset 0 -8px 8px rgba(134, 134, 134, 0.15);\n}\n\n.button::before {\n transition: 180ms ease-in-out;\n content: '';\n position: absolute;\n top: 3px;\n left: 3px;\n bottom: 12px;\n right: 8px;\n background: linear-gradient(90deg, #c0c0c0, #ffffff);\n box-shadow: -10px -10px 10px rgba(255, 255, 255, 0.25),\n 10px 5px 10px rgba(0,0,0,0.15);\n border-radius: 10px;\n border-left: 1px solid #0004;\n border-top: 1px solid #0004;\n border-right: 1px solid #0004;\n border-bottom: 1px solid #0004;\n}\n\n.button:active {\n box-shadow: 16px 16px 30px rgba(0, 0, 0, 0.25), inset -8px 0 8px rgba(196, 196, 196, 0.25), inset 0 -8px 8px rgba(134, 134, 134, 0.15);\n}\n\n.button:active::before {\n transition: 180ms ease-in-out;\n top: 3px;\n left: 1px;\n bottom: 12px;\n right: 6px;\n filter: brightness(0.95);\n}\n\n#bump {\n position: absolute;\n bottom: 18px;\n height: 4px;\n width: 24px;\n border-radius: 8px;\n background: rgb(179, 179, 179);\n}\n\n.button li {\n list-style: none;\n position: absolute;\n font-size: medium;\n font-family: Arial, Helvetica, sans-serif;\n font-style: italic;\n margin-top: 8px;\n}",
"file_path": "/mnt/persist/workspace/Buttons/another-kennyotsu_sharp-fox-30.html"
},
"uniapp": {
"template": "<view class=\"container\"></view>\n <button id=\"spacebar\" class=\"button\"></button>\n <view> space </view> <view id=\"bump\"></view>\n </button> <text></text>space-themed button.\n <br> literally.</p>\n</div>",
"script": "export default {\n name: 'GalaxySharpFox30',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by another-kennyotsu - Tags: button */\n/* k k im joking */\n.container {\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: 1em;\n color: rgb(129, 129, 129);\n}\n\n.container p {\n margin-left: 12rpx;\n}\n\n.button {\n transition: 180ms ease-in-out;\n position: relative;\n display: flex;\n flex-direction: row;\n justify-content: center;\n width: 480rpx;\n height: 136rpx;\n background: linear-gradient(#ffffff, #7a7a7a);\n border-radius: 20rpx;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 20rpx 30rpx 60rpx #0000006b, inset -16rpx 0 16rpx rgba(196, 196, 196, 0.25), inset 0 -16rpx 16rpx rgba(134, 134, 134, 0.15);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.button::before {\n transition: 180ms ease-in-out;\n content: '';\n position: absolute;\n top: 6rpx;\n left: 6rpx;\n bottom: 24rpx;\n right: 16rpx;\n background: linear-gradient(90deg, #c0c0c0, #ffffff);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: -20rpx -20rpx 20rpx rgba(255, 255, 255, 0.25),\n 20rpx 10rpx 20rpx rgba(0,0,0,0.15);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n border-radius: 20rpx;\n border-left: 2rpx solid #0004;\n border-top: 2rpx solid #0004;\n border-right: 2rpx solid #0004;\n border-bottom: 2rpx solid #0004;\n}\n\n.button:active {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 32rpx 32rpx 60rpx rgba(0, 0, 0, 0.25), inset -16rpx 0 16rpx rgba(196, 196, 196, 0.25), inset 0 -16rpx 16rpx rgba(134, 134, 134, 0.15);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.button:active::before {\n transition: 180ms ease-in-out;\n top: 6rpx;\n left: 2rpx;\n bottom: 24rpx;\n right: 12rpx;\n \n}\n\n#bump {\n position: absolute;\n bottom: 36rpx;\n height: 8rpx;\n width: 48rpx;\n border-radius: 16rpx;\n background: rgb(179, 179, 179);\n}\n\n.button li {\n list-style: none;\n position: absolute;\n font-size: medium;\n font-family: Arial, Helvetica, sans-serif;\n font-style: italic;\n margin-top: 16rpx;\n}\n",
"component_name": "GalaxySharpFox30"
},
"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 属性",
"不支持 filter 属性"
],
"alternatives": []
},
"mp-alipay": {
"supported": true,
"issues": [
"不支持 box-shadow 属性",
"不支持 filter 属性"
],
"alternatives": []
},
"app-plus": {
"supported": true,
"issues": [],
"alternatives": []
}
},
"performance": {
"complexity": "low",
"bundle_size": 1832,
"render_cost": "low",
"memory_usage": "low"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:35.755Z",
"updated_at": "2025-07-31T07:55:35.755Z"
}