UNPKG

galaxy-uniapp-mcp-server

Version:

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

115 lines 8.87 kB
{ "id": "iDamjan_horrible-monkey-25", "name": "horrible-monkey-25", "category": "buttons", "author": "iDamjan", "description": "horrible-monkey-25 组件 (button, animation, gradient, interactive)", "tags": [ "button", "animation", "gradient", "interactive" ], "original": { "html": "<div class=\"container\">\n <button>\n <span id=\"u\">u</span><span id=\"n\">n</span><span id=\"i\">i</span><span id=\"v\">v</span><span id=\"e\">e</span><span id=\"r\">r</span><span id=\"s\">s</span><span id=\"ee\">e</span>\n </button>\n <div class=\"moon\"></div>\n </div>", "css": "/* From Uiverse.io by iDamjan - Tags: button */\nbutton {\n z-index: 500;\n box-shadow: rgba(124, 172, 226, 0.295) 2px 2px 8px;\n width: 15rem;\n height: 4rem;\n letter-spacing: 0.5rem;\n border: none;\n border-radius: 0.1rem;\n color: white;\n animation: universe-is-moving 2s infinite ease-out;\n background: linear-gradient(\n 90deg,\n rgba(185, 43, 39, 1) 0%,\n rgba(21, 101, 192, 1) 100%\n );\n background-size: 200% 200%;\n animation-direction: alternate;\n background-position: 0% 100%;\n animation-name: universe-is-moving;\n animation-duration: 1.8s;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n transition: all 0.5s ease-in-out;\n}\n\nbutton:hover {\n border-radius: 2rem;\n cursor: pointer;\n}\n\n.moon {\n position: relative;\n left: 2rem;\n bottom: -2rem;\n right: 0;\n width: 20px;\n height: 20px;\n transform: translate3d(42px, -62px, -135px);\n background-color: rgba(255, 255, 255, 0.76);\n border-radius: 50%;\n animation: 3s universe-moon infinite ease-in-out;\n animation-timing-function: linear;\n}\n\n#u {\n font-size: 1.2rem;\n animation: 3s ease-in-out universe-letters-are-moving infinite;\n}\n\n#n {\n font-size: 1.2rem;\n animation: 3s ease-in-out universe-letters-are-moving infinite;\n animation-delay: 200ms;\n}\n\n#i {\n font-size: 1.2rem;\n animation: 3s ease-in-out universe-letters-are-moving infinite;\n animation-delay: 400ms;\n}\n\n#v {\n font-size: 1.2rem;\n animation: 3s ease-in-out universe-letters-are-moving infinite;\n animation-delay: 600ms;\n}\n\n#e {\n font-size: 1.2rem;\n animation: 3s ease-in-out universe-letters-are-moving infinite;\n animation-delay: 800ms;\n}\n\n#r {\n font-size: 1.2rem;\n animation: 3s ease-in-out universe-letters-are-moving infinite;\n animation-delay: 1000ms;\n}\n\n#s {\n font-size: 1.2rem;\n animation: 3s ease-in-out universe-letters-are-moving infinite;\n animation-delay: 1200ms;\n}\n\n#e {\n font-size: 1.2rem;\n animation: 3s ease-in-out universe-letters-are-moving infinite;\n animation-delay: 1400ms;\n}\n\n#ee {\n font-size: 1.2rem;\n animation: 3s ease-in-out universe-letters-are-moving infinite;\n animation-delay: 1600ms;\n}\n\n@keyframes universe-is-moving {\n from {\n background-position: 0% 100%;\n }\n\n to {\n background-position: 100% 0%;\n }\n}\n\n@keyframes universe-letters-are-moving {\n 0% {\n font-size: 1.2rem;\n }\n\n 50% {\n font-size: 1.5rem;\n }\n\n 100% {\n font-size: 1.2rem;\n }\n}\n\n@keyframes universe-moon {\n 0% {\n z-index: 5;\n transform: translateY(-8em) translateX(10em);\n }\n\n 50% {\n transform: translateX(0.5em) translateY(-1em);\n }\n\n 100% {\n transform: translateY(-8em) translateX(10em);\n z-index: -5;\n }\n}", "file_path": "/mnt/persist/workspace/Buttons/iDamjan_horrible-monkey-25.html" }, "uniapp": { "template": "<view class=\"container\"></view>\n <button></button>\n <text id=\"u\">u</text><text id=\"n\">n</text><text id=\"i\">i</text><text id=\"v\">v</text><text id=\"e\">e</text><text id=\"r\">r</text><text id=\"s\">s</text><text id=\"ee\">e</text>\n </button>\n <view class=\"moon\"></view>\n </div>", "script": "export default {\n name: 'GalaxyHorribleMonkey25',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by iDamjan - Tags: button */\nbutton {\n z-index: 500;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: rgba(124, 172, 226, 0.295) 4rpx 4rpx 16rpx;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n width: 15rem;\n height: 4rem;\n letter-spacing: 0.5rem;\n border: none;\n border-radius: 0.1rem;\n color: white;\n animation: universe-is-moving 2s infinite ease-out;\n background: linear-gradient(\n 90deg,\n rgba(185, 43, 39, 1) 0%,\n rgba(21, 101, 192, 1) 100%\n );\n background-size: 200% 200%;\n animation-direction: alternate;\n background-position: 0% 100%;\n animation-name: universe-is-moving;\n animation-duration: 1.8s;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n transition: all 0.5s ease-in-out;\n}\n\nbutton:hover {\n border-radius: 2rem;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n}\n\n.moon {\n position: relative;\n left: 2rem;\n bottom: -2rem;\n right: 0;\n width: 40rpx;\n height: 40rpx;\n transform: translate3d(84rpx, -124rpx, -270rpx);\n background-color: rgba(255, 255, 255, 0.76);\n border-radius: 50%;\n animation: 3s universe-moon infinite ease-in-out;\n animation-timing-function: linear;\n}\n\n#u {\n font-size: 1.2rem;\n animation: 3s ease-in-out universe-letters-are-moving infinite;\n}\n\n#n {\n font-size: 1.2rem;\n animation: 3s ease-in-out universe-letters-are-moving infinite;\n animation-delay: 200ms;\n}\n\n#i {\n font-size: 1.2rem;\n animation: 3s ease-in-out universe-letters-are-moving infinite;\n animation-delay: 400ms;\n}\n\n#v {\n font-size: 1.2rem;\n animation: 3s ease-in-out universe-letters-are-moving infinite;\n animation-delay: 600ms;\n}\n\n#e {\n font-size: 1.2rem;\n animation: 3s ease-in-out universe-letters-are-moving infinite;\n animation-delay: 800ms;\n}\n\n#r {\n font-size: 1.2rem;\n animation: 3s ease-in-out universe-letters-are-moving infinite;\n animation-delay: 1000ms;\n}\n\n#s {\n font-size: 1.2rem;\n animation: 3s ease-in-out universe-letters-are-moving infinite;\n animation-delay: 1200ms;\n}\n\n#e {\n font-size: 1.2rem;\n animation: 3s ease-in-out universe-letters-are-moving infinite;\n animation-delay: 1400ms;\n}\n\n#ee {\n font-size: 1.2rem;\n animation: 3s ease-in-out universe-letters-are-moving infinite;\n animation-delay: 1600ms;\n}\n\n@keyframes universe-is-moving {\n from {\n background-position: 0% 100%;\n }\n\n to {\n background-position: 100% 0%;\n }\n}\n\n@keyframes universe-letters-are-moving {\n 0% {\n font-size: 1.2rem;\n }\n\n 50% {\n font-size: 1.5rem;\n }\n\n 100% {\n font-size: 1.2rem;\n }\n}\n\n@keyframes universe-moon {\n 0% {\n z-index: 5;\n transform: translateY(-8em) translateX(10em);\n }\n\n 50% {\n transform: translateX(0.5em) translateY(-1em);\n }\n\n 100% {\n transform: translateY(-8em) translateX(10em);\n z-index: -5;\n }\n}\n\n", "component_name": "GalaxyHorribleMonkey25" }, "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": "high", "bundle_size": 2922, "render_cost": "high", "memory_usage": "high" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:36.959Z", "updated_at": "2025-07-31T07:55:36.959Z" }