UNPKG

galaxy-uniapp-mcp-server

Version:

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

114 lines 14.4 kB
{ "id": "Peary74_loud-bear-3", "name": "loud-bear-3", "category": "buttons", "author": "Peary74", "description": "loud-bear-3 组件 (button, gradient, interactive)", "tags": [ "button", "gradient", "interactive" ], "original": { "html": "<button>Hover me\n <div class=\"star-1\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" width=\"25\" height=\"25\">\n <path fill=\"#fd1853\" d=\"M427.313,88.686c-47.803-47.803-125.213-47.803-173.016,0l-17.087,17.087l-17.087-17.087\n c-47.803-47.803-125.213-47.803-173.016,0c-47.803,47.803-47.803,125.213,0,173.016l190.103,190.103\n c4.88,4.88,11.316,7.322,17.752,7.322c6.435,0,13.871-2.442,18.751-7.322l190.103-190.103\n C475.116,213.899,475.116,136.489,427.313,88.686z\"></path>\n</svg>\n\n\n </div>\n <div class=\"star-2\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" width=\"20\" height=\"20\">\n <path fill=\"#fd1853\" d=\"M427.313,88.686c-47.803-47.803-125.213-47.803-173.016,0l-17.087,17.087l-17.087-17.087\n c-47.803-47.803-125.213-47.803-173.016,0c-47.803,47.803-47.803,125.213,0,173.016l190.103,190.103\n c4.88,4.88,11.316,7.322,17.752,7.322c6.435,0,13.871-2.442,18.751-7.322l190.103-190.103\n C475.116,213.899,475.116,136.489,427.313,88.686z\"></path>\n</svg>\n\n </div>\n <div class=\"star-3\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" width=\"9\" height=\"9\">\n <path fill=\"#fd1853\" d=\"M427.313,88.686c-47.803-47.803-125.213-47.803-173.016,0l-17.087,17.087l-17.087-17.087\n c-47.803-47.803-125.213-47.803-173.016,0c-47.803,47.803-47.803,125.213,0,173.016l190.103,190.103\n c4.88,4.88,11.316,7.322,17.752,7.322c6.435,0,13.871-2.442,18.751-7.322l190.103-190.103\n C475.116,213.899,475.116,136.489,427.313,88.686z\"></path>\n</svg>\n\n </div>\n <div class=\"star-4\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" width=\"10\" height=\"10\">\n <path fill=\"#fd1853\" d=\"M427.313,88.686c-47.803-47.803-125.213-47.803-173.016,0l-17.087,17.087l-17.087-17.087\n c-47.803-47.803-125.213-47.803-173.016,0c-47.803,47.803-47.803,125.213,0,173.016l190.103,190.103\n c4.88,4.88,11.316,7.322,17.752,7.322c6.435,0,13.871-2.442,18.751-7.322l190.103-190.103\n C475.116,213.899,475.116,136.489,427.313,88.686z\"></path>\n</svg>\n\n </div>\n <div class=\"star-5\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" width=\"20\" height=\"20\">\n <path fill=\"#fd1853\" d=\"M427.313,88.686c-47.803-47.803-125.213-47.803-173.016,0l-17.087,17.087l-17.087-17.087\n c-47.803-47.803-125.213-47.803-173.016,0c-47.803,47.803-47.803,125.213,0,173.016l190.103,190.103\n c4.88,4.88,11.316,7.322,17.752,7.322c6.435,0,13.871-2.442,18.751-7.322l190.103-190.103\n C475.116,213.899,475.116,136.489,427.313,88.686z\"></path>\n</svg>\n\n </div>\n <div class=\"star-6\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" width=\"7\" height=\"7\">\n <path fill=\"#fd1853\" d=\"M427.313,88.686c-47.803-47.803-125.213-47.803-173.016,0l-17.087,17.087l-17.087-17.087\n c-47.803-47.803-125.213-47.803-173.016,0c-47.803,47.803-47.803,125.213,0,173.016l190.103,190.103\n c4.88,4.88,11.316,7.322,17.752,7.322c6.435,0,13.871-2.442,18.751-7.322l190.103-190.103\n C475.116,213.899,475.116,136.489,427.313,88.686z\"></path>\n</svg>\n\n </div>\n</button>", "css": "/* From Uiverse.io by Peary74 - Tags: button */\nbutton {\n background: linear-gradient(45deg, transparent 27%, #fd1853 5%, #fd1853 73%, transparent 27%);\n box-shadow: 6px 0px 0px #00e6f6;\n position: relative;\n padding: 12px 35px;\n font-size: 20px;\n font-weight: 500;\n color: white;\n border: 3px solid #00e6f6;\n border-radius: 8px;\n box-shadow: 0 0 0 #fec1958c;\n transition: all .3s ease-in-out;\n}\n\n.star-1 {\n position: absolute;\n top: 20%;\n left: 20%;\n width: 25px;\n height: auto;\n filter: drop-shadow(0 0 0 #fd1853);\n z-index: -5;\n transition: all 1s cubic-bezier(0.05, 0.83, 0.43, 0.96);\n}\n\n.star-2 {\n position: absolute;\n top: 45%;\n left: 45%;\n width: 15px;\n height: auto;\n filter: drop-shadow(0 0 0 #fd1853);\n z-index: -5;\n transition: all 1s cubic-bezier(0, 0.4, 0, 1.01);\n}\n\n.star-3 {\n position: absolute;\n top: 40%;\n left: 40%;\n width: 5px;\n height: auto;\n filter: drop-shadow(0 0 0 #fd1853);\n z-index: -5;\n transition: all 1s cubic-bezier(0, 0.4, 0, 1.01);\n}\n\n.star-4 {\n position: absolute;\n top: 20%;\n left: 40%;\n width: 8px;\n height: auto;\n filter: drop-shadow(0 0 0 #fd1853);\n z-index: -5;\n transition: all .8s cubic-bezier(0, 0.4, 0, 1.01);\n}\n\n.star-5 {\n position: absolute;\n top: 25%;\n left: 45%;\n width: 15px;\n height: auto;\n filter: drop-shadow(0 0 0 #fd1853);\n z-index: -5;\n transition: all .6s cubic-bezier(0, 0.4, 0, 1.01);\n}\n\n.star-6 {\n position: absolute;\n top: 5%;\n left: 50%;\n width: 5px;\n height: auto;\n filter: drop-shadow(0 0 0 #fd1853);\n z-index: -5;\n transition: all .8s ease;\n}\n\nbutton:hover {\n background: transparent;\n color: #00e6f6;\n box-shadow: 0 0 50px #fd1853;\n}\n\nbutton:hover .star-1 {\n position: absolute;\n top: -80%;\n left: -30%;\n width: 25px;\n height: auto;\n filter: drop-shadow(0 0 10px #fd1853);\n z-index: 2;\n}\n\nbutton:hover .star-2 {\n position: absolute;\n top: -25%;\n left: 10%;\n width: 15px;\n height: auto;\n filter: drop-shadow(0 0 10px #fd1853);\n z-index: 2;\n}\n\nbutton:hover .star-3 {\n position: absolute;\n top: 55%;\n left: 25%;\n width: 5px;\n height: auto;\n filter: drop-shadow(0 0 10px #fd1853);\n z-index: 2;\n}\n\nbutton:hover .star-4 {\n position: absolute;\n top: 30%;\n left: 80%;\n width: 8px;\n height: auto;\n filter: drop-shadow(0 0 10px #fd1853);\n z-index: 2;\n}\n\nbutton:hover .star-5 {\n position: absolute;\n top: 25%;\n left: 115%;\n width: 15px;\n height: auto;\n filter: drop-shadow(0 0 10px #fd1853);\n z-index: 2;\n}\n\nbutton:hover .star-6 {\n position: absolute;\n top: 5%;\n left: 60%;\n width: 5px;\n height: auto;\n filter: drop-shadow(0 0 10px #fd1853);\n z-index: 2;\n}\n\n.fil0 {\n fill: #fd1853\n}", "file_path": "/mnt/persist/workspace/Buttons/Peary74_loud-bear-3.html" }, "uniapp": { "template": "<button></button>Hover me\n <view class=\"star-1\"></view>\n <view xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" width=\"25\" height=\"25\"></view>\n <path fill=\"#fd1853\" d=\"M427.313,88.686c-47.803-47.803-125.213-47.803-173.016,0l-17.087,17.087l-17.087-17.087\n c-47.803-47.803-125.213-47.803-173.016,0c-47.803,47.803-47.803,125.213,0,173.016l190.103,190.103\n c4.88,4.88,11.316,7.322,17.752,7.322c6.435,0,13.871-2.442,18.751-7.322l190.103-190.103\n C475.116,213.899,475.116,136.489,427.313,88.686z\"></path>\n</svg>\n\n\n </div>\n <view class=\"star-2\"></view>\n <view xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" width=\"20\" height=\"20\"></view>\n <path fill=\"#fd1853\" d=\"M427.313,88.686c-47.803-47.803-125.213-47.803-173.016,0l-17.087,17.087l-17.087-17.087\n c-47.803-47.803-125.213-47.803-173.016,0c-47.803,47.803-47.803,125.213,0,173.016l190.103,190.103\n c4.88,4.88,11.316,7.322,17.752,7.322c6.435,0,13.871-2.442,18.751-7.322l190.103-190.103\n C475.116,213.899,475.116,136.489,427.313,88.686z\"></path>\n</svg>\n\n </div>\n <view class=\"star-3\"></view>\n <view xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" width=\"9\" height=\"9\"></view>\n <path fill=\"#fd1853\" d=\"M427.313,88.686c-47.803-47.803-125.213-47.803-173.016,0l-17.087,17.087l-17.087-17.087\n c-47.803-47.803-125.213-47.803-173.016,0c-47.803,47.803-47.803,125.213,0,173.016l190.103,190.103\n c4.88,4.88,11.316,7.322,17.752,7.322c6.435,0,13.871-2.442,18.751-7.322l190.103-190.103\n C475.116,213.899,475.116,136.489,427.313,88.686z\"></path>\n</svg>\n\n </div>\n <view class=\"star-4\"></view>\n <view xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" width=\"10\" height=\"10\"></view>\n <path fill=\"#fd1853\" d=\"M427.313,88.686c-47.803-47.803-125.213-47.803-173.016,0l-17.087,17.087l-17.087-17.087\n c-47.803-47.803-125.213-47.803-173.016,0c-47.803,47.803-47.803,125.213,0,173.016l190.103,190.103\n c4.88,4.88,11.316,7.322,17.752,7.322c6.435,0,13.871-2.442,18.751-7.322l190.103-190.103\n C475.116,213.899,475.116,136.489,427.313,88.686z\"></path>\n</svg>\n\n </div>\n <view class=\"star-5\"></view>\n <view xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" width=\"20\" height=\"20\"></view>\n <path fill=\"#fd1853\" d=\"M427.313,88.686c-47.803-47.803-125.213-47.803-173.016,0l-17.087,17.087l-17.087-17.087\n c-47.803-47.803-125.213-47.803-173.016,0c-47.803,47.803-47.803,125.213,0,173.016l190.103,190.103\n c4.88,4.88,11.316,7.322,17.752,7.322c6.435,0,13.871-2.442,18.751-7.322l190.103-190.103\n C475.116,213.899,475.116,136.489,427.313,88.686z\"></path>\n</svg>\n\n </div>\n <view class=\"star-6\"></view>\n <view xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" width=\"7\" height=\"7\"></view>\n <path fill=\"#fd1853\" d=\"M427.313,88.686c-47.803-47.803-125.213-47.803-173.016,0l-17.087,17.087l-17.087-17.087\n c-47.803-47.803-125.213-47.803-173.016,0c-47.803,47.803-47.803,125.213,0,173.016l190.103,190.103\n c4.88,4.88,11.316,7.322,17.752,7.322c6.435,0,13.871-2.442,18.751-7.322l190.103-190.103\n C475.116,213.899,475.116,136.489,427.313,88.686z\"></path>\n</svg>\n\n </div>\n</button>", "script": "export default {\n name: 'GalaxyLoudBear3',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by Peary74 - Tags: button */\nbutton {\n background: linear-gradient(45deg, transparent 27%, #fd1853 5%, #fd1853 73%, transparent 27%);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 12rpx 0rpx 0rpx #00e6f6;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n position: relative;\n padding: 24rpx 70rpx;\n font-size: 40rpx;\n font-weight: 500;\n color: white;\n border: 6rpx solid #00e6f6;\n border-radius: 16rpx;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0 0 #fec1958c;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transition: all .3s ease-in-out;\n}\n\n.star-1 {\n position: absolute;\n top: 20%;\n left: 20%;\n width: 50rpx;\n height: auto;\n \n z-index: -5;\n transition: all 1s cubic-bezier(0.05, 0.83, 0.43, 0.96);\n}\n\n.star-2 {\n position: absolute;\n top: 45%;\n left: 45%;\n width: 30rpx;\n height: auto;\n \n z-index: -5;\n transition: all 1s cubic-bezier(0, 0.4, 0, 1.01);\n}\n\n.star-3 {\n position: absolute;\n top: 40%;\n left: 40%;\n width: 10rpx;\n height: auto;\n \n z-index: -5;\n transition: all 1s cubic-bezier(0, 0.4, 0, 1.01);\n}\n\n.star-4 {\n position: absolute;\n top: 20%;\n left: 40%;\n width: 16rpx;\n height: auto;\n \n z-index: -5;\n transition: all .8s cubic-bezier(0, 0.4, 0, 1.01);\n}\n\n.star-5 {\n position: absolute;\n top: 25%;\n left: 45%;\n width: 30rpx;\n height: auto;\n \n z-index: -5;\n transition: all .6s cubic-bezier(0, 0.4, 0, 1.01);\n}\n\n.star-6 {\n position: absolute;\n top: 5%;\n left: 50%;\n width: 10rpx;\n height: auto;\n \n z-index: -5;\n transition: all .8s ease;\n}\n\nbutton:hover {\n background: transparent;\n color: #00e6f6;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0 100rpx #fd1853;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\nbutton:hover .star-1 {\n position: absolute;\n top: -80%;\n left: -30%;\n width: 50rpx;\n height: auto;\n \n z-index: 2;\n}\n\nbutton:hover .star-2 {\n position: absolute;\n top: -25%;\n left: 10%;\n width: 30rpx;\n height: auto;\n \n z-index: 2;\n}\n\nbutton:hover .star-3 {\n position: absolute;\n top: 55%;\n left: 25%;\n width: 10rpx;\n height: auto;\n \n z-index: 2;\n}\n\nbutton:hover .star-4 {\n position: absolute;\n top: 30%;\n left: 80%;\n width: 16rpx;\n height: auto;\n \n z-index: 2;\n}\n\nbutton:hover .star-5 {\n position: absolute;\n top: 25%;\n left: 115%;\n width: 30rpx;\n height: auto;\n \n z-index: 2;\n}\n\nbutton:hover .star-6 {\n position: absolute;\n top: 5%;\n left: 60%;\n width: 10rpx;\n height: auto;\n \n z-index: 2;\n}\n\n.fil0 {\n fill: #fd1853\n}\n", "component_name": "GalaxyLoudBear3" }, "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": "high", "bundle_size": 5645, "render_cost": "high", "memory_usage": "high" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:34.198Z", "updated_at": "2025-07-31T07:55:34.198Z" }