UNPKG

galaxy-uniapp-mcp-server

Version:

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

123 lines 11.6 kB
{ "id": "vladaxnt_neat-badger-22", "name": "neat-badger-22", "category": "buttons", "author": "vladaxnt", "description": "neat-badger-22 组件 (button, hover, active, message, shadow, rotate, click effect, animation, gradient, interactive)", "tags": [ "button", "hover", "active", "message", "shadow", "rotate", "click effect", "animation", "gradient", "interactive" ], "original": { "html": "<button class=\"button\">\n <div class=\"border\">\n <div class=\"outer\">\n <div class=\"inner\">\n <svg class=\"icon\" width=\"26\" height=\"26\" viewBox=\"0 0 26 26\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g filter=\"url(#filter0_d_253_3447)\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22.8417 5.93711C23.5329 3.62302 21.377 1.46711 19.0629 2.15834L5.19469 6.30079C2.9915 6.95888 2.29064 9.7318 3.91654 11.3577L5.29411 12.7353C6.54198 13.9831 8.43704 14.3033 10.0203 13.5481L14.8037 8.76481C15.199 8.36951 15.8399 8.36951 16.2352 8.76481C16.6305 9.16011 16.6305 9.80102 16.2352 10.1963L11.4519 14.9797C10.6967 16.563 11.0169 18.458 12.2647 19.7059L13.6423 21.0835C15.2682 22.7094 18.0411 22.0085 18.6992 19.8053L22.8417 5.93711ZM9.08131 15.9187C7.20189 16.1789 5.25956 15.5637 3.8626 14.1668L2.48504 12.7892C-0.224811 10.0794 0.943288 5.45784 4.61528 4.36102L18.4835 0.218565C22.3403 -0.933473 25.9335 2.65971 24.7814 6.51653L20.639 20.3847C19.5422 24.0567 14.9206 25.2248 12.2108 22.515L10.8332 21.1374C9.43626 19.7404 8.82111 17.7981 9.08131 15.9187Z\" fill=\"#171717\"></path>\n </g>\n <defs>\n <filter id=\"filter0_d_253_3447\" x=\"0\" y=\"0\" width=\"26\" height=\"26\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood>\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"></feColorMatrix>\n <feOffset dy=\"1\"></feOffset>\n <feGaussianBlur stdDeviation=\"0.5\"></feGaussianBlur>\n <feComposite in2=\"hardAlpha\" operator=\"out\"></feComposite>\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0\"></feColorMatrix>\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_253_3447\"></feBlend>\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_253_3447\" result=\"shape\"></feBlend>\n </filter>\n </defs>\n </svg>\n <span>Send Message</span>\n </div>\n </div>\n </div>\n</button>", "css": "/* From Uiverse.io by vladaxnt - Tags: button, hover, active, message, shadow, rotate, click effect */\n.icon,\n.button {\n transition: box-shadow 0.3s cubic-bezier(0.075, 0.82, 0.165, 1),\n transform 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);\n}\n\n.button {\n background: none;\n border: none;\n border-radius: 56px;\n cursor: pointer;\n color: #171717;\n box-shadow: 0px 127px 36px 0px rgba(23, 23, 23, 0),\n 0px 81px 33px 0px rgba(23, 23, 23, 0.01),\n 0px 46px 27px 0px rgba(23, 23, 23, 0.05),\n 0px 20px 20px 0px rgba(23, 23, 23, 0.09),\n 0px 5px 11px 0px rgba(23, 23, 23, 0.1);\n}\n\n.button span {\n font-size: 18px;\n line-height: 36px;\n font-weight: 500;\n text-shadow: 0px 1px 1px rgba(23, 23, 23, 0.25);\n}\n\n.button .inner {\n background: linear-gradient(0deg, #fff 0%, #edeeee 100%);\n padding: 16px 24px;\n display: flex;\n align-items: center;\n gap: 12px;\n border-radius: 56px;\n}\n\n.button .outer {\n padding: 6px;\n border-radius: 16px;\n background: linear-gradient(180deg, #fff 25.56%, #ebebeb 115.56%);\n}\n\n.button .border {\n padding: 3px;\n border-radius: 20px;\n border: 1px solid #f0f0f0;\n background: linear-gradient(180deg, #e3e3e3 0%, #7d7d7d 100%);\n}\n\n.button:hover .icon {\n transform: rotate(45deg);\n}\n\n.button:hover {\n transform: scale(1.03);\n box-shadow: 0px 185px 52px 0px rgba(23, 23, 23, 0),\n 0px 119px 47px 0px rgba(23, 23, 23, 0.01),\n 0px 67px 40px 0px rgba(23, 23, 23, 0.05),\n 0px 30px 30px 0px rgba(23, 23, 23, 0.09),\n 0px 7px 16px 0px rgba(23, 23, 23, 0.1);\n}\n\n.button:active {\n transform: scale(0.94);\n box-shadow: 0px 43px 12px 0px rgba(23, 23, 23, 0),\n 0px 28px 11px 0px rgba(23, 23, 23, 0.01),\n 0px 16px 9px 0px rgba(23, 23, 23, 0.05),\n 0px 7px 7px 0px rgba(23, 23, 23, 0.09),\n 0px 2px 4px 0px rgba(23, 23, 23, 0.1);\n}", "file_path": "/mnt/persist/workspace/Buttons/vladaxnt_neat-badger-22.html" }, "uniapp": { "template": "<button class=\"button\"></button>\n <view class=\"border\"></view>\n <view class=\"outer\"></view>\n <view class=\"inner\"></view>\n <view class=\"icon\" width=\"26\" height=\"26\" viewBox=\"0 0 26 26\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"></view>\n <g filter=\"url(#filter0_d_253_3447)\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22.8417 5.93711C23.5329 3.62302 21.377 1.46711 19.0629 2.15834L5.19469 6.30079C2.9915 6.95888 2.29064 9.7318 3.91654 11.3577L5.29411 12.7353C6.54198 13.9831 8.43704 14.3033 10.0203 13.5481L14.8037 8.76481C15.199 8.36951 15.8399 8.36951 16.2352 8.76481C16.6305 9.16011 16.6305 9.80102 16.2352 10.1963L11.4519 14.9797C10.6967 16.563 11.0169 18.458 12.2647 19.7059L13.6423 21.0835C15.2682 22.7094 18.0411 22.0085 18.6992 19.8053L22.8417 5.93711ZM9.08131 15.9187C7.20189 16.1789 5.25956 15.5637 3.8626 14.1668L2.48504 12.7892C-0.224811 10.0794 0.943288 5.45784 4.61528 4.36102L18.4835 0.218565C22.3403 -0.933473 25.9335 2.65971 24.7814 6.51653L20.639 20.3847C19.5422 24.0567 14.9206 25.2248 12.2108 22.515L10.8332 21.1374C9.43626 19.7404 8.82111 17.7981 9.08131 15.9187Z\" fill=\"#171717\"></path>\n </g>\n <defs>\n <filter id=\"filter0_d_253_3447\" x=\"0\" y=\"0\" width=\"26\" height=\"26\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood>\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"></feColorMatrix>\n <feOffset dy=\"1\"></feOffset>\n <feGaussianBlur stdDeviation=\"0.5\"></feGaussianBlur>\n <feComposite in2=\"hardAlpha\" operator=\"out\"></feComposite>\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0\"></feColorMatrix>\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_253_3447\"></feBlend>\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_253_3447\" result=\"shape\"></feBlend>\n </filter>\n </defs>\n </svg>\n <text>Send Message</text>\n </div>\n </div>\n </div>\n</button>", "script": "export default {\n name: 'GalaxyNeatBadger22',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by vladaxnt - Tags: button, hover, active, message, shadow, rotate, click effect */\n.icon,\n.button {\n transition: box-shadow 0.3s cubic-bezier(0.075, 0.82, 0.165, 1),\n transform 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);\n}\n\n.button {\n background: none;\n border: none;\n border-radius: 112rpx;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n color: #171717;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 254rpx 72rpx 0rpx rgba(23, 23, 23, 0),\n 0rpx 162rpx 66rpx 0rpx rgba(23, 23, 23, 0.01),\n 0rpx 92rpx 54rpx 0rpx rgba(23, 23, 23, 0.05),\n 0rpx 40rpx 40rpx 0rpx rgba(23, 23, 23, 0.09),\n 0rpx 10rpx 22rpx 0rpx rgba(23, 23, 23, 0.1);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.button span {\n font-size: 36rpx;\n line-height: 72rpx;\n font-weight: 500;\n /* #ifdef H5 */\n text-shadow: 0rpx 2rpx 2rpx rgba(23, 23, 23, 0.25);\n /* #endif */\n}\n\n.button .inner {\n background: linear-gradient(0deg, #fff 0%, #edeeee 100%);\n padding: 32rpx 48rpx;\n display: flex;\n align-items: center;\n gap: 24rpx;\n border-radius: 112rpx;\n}\n\n.button .outer {\n padding: 12rpx;\n border-radius: 32rpx;\n background: linear-gradient(180deg, #fff 25.56%, #ebebeb 115.56%);\n}\n\n.button .border {\n padding: 6rpx;\n border-radius: 40rpx;\n border: 2rpx solid #f0f0f0;\n background: linear-gradient(180deg, #e3e3e3 0%, #7d7d7d 100%);\n}\n\n.button:hover .icon {\n transform: rotate(45deg);\n}\n\n.button:hover {\n transform: scale(1.03);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 370rpx 104rpx 0rpx rgba(23, 23, 23, 0),\n 0rpx 238rpx 94rpx 0rpx rgba(23, 23, 23, 0.01),\n 0rpx 134rpx 80rpx 0rpx rgba(23, 23, 23, 0.05),\n 0rpx 60rpx 60rpx 0rpx rgba(23, 23, 23, 0.09),\n 0rpx 14rpx 32rpx 0rpx rgba(23, 23, 23, 0.1);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.button:active {\n transform: scale(0.94);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 86rpx 24rpx 0rpx rgba(23, 23, 23, 0),\n 0rpx 56rpx 22rpx 0rpx rgba(23, 23, 23, 0.01),\n 0rpx 32rpx 18rpx 0rpx rgba(23, 23, 23, 0.05),\n 0rpx 14rpx 14rpx 0rpx rgba(23, 23, 23, 0.09),\n 0rpx 4rpx 8rpx 0rpx rgba(23, 23, 23, 0.1);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n", "component_name": "GalaxyNeatBadger22" }, "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 属性", "不支持 cursor 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 box-shadow 属性", "不支持 text-shadow 属性", "不支持 cursor 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "medium", "bundle_size": 3971, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:38.343Z", "updated_at": "2025-07-31T07:55:38.343Z" }