UNPKG

galaxy-uniapp-mcp-server

Version:

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

115 lines 8.06 kB
{ "id": "Galahhad_ancient-emu-61", "name": "ancient-emu-61", "category": "buttons", "author": "Galahhad", "description": "ancient-emu-61 组件 (button, glitch, animation, interactive)", "tags": [ "button", "glitch", "animation", "interactive" ], "original": { "html": "<button class=\"ui-btn\">\n <span>\n Button \n </span>\n</button>", "css": "/* From Uiverse.io by Galahhad - Tags: button, glitch */\n.ui-btn {\n --btn-default-bg: rgb(41, 41, 41);\n --btn-padding: 15px 20px;\n --btn-hover-bg: rgb(51, 51, 51);\n --btn-transition: .3s;\n --btn-letter-spacing: .1rem;\n --btn-animation-duration: 1.2s;\n --btn-shadow-color: rgba(0, 0, 0, 0.137);\n --btn-shadow: 0 2px 10px 0 var(--btn-shadow-color);\n --hover-btn-color: #FAC921;\n --default-btn-color: #fff;\n --font-size: 16px;\n /* 👆 this field should not be empty */\n --font-weight: 600;\n --font-family: Menlo,Roboto Mono,monospace;\n /* 👆 this field should not be empty */\n}\n\n/* button settings 👆 */\n\n.ui-btn {\n box-sizing: border-box;\n padding: var(--btn-padding);\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--default-btn-color);\n font: var(--font-weight) var(--font-size) var(--font-family);\n background: var(--btn-default-bg);\n border: none;\n cursor: pointer;\n transition: var(--btn-transition);\n overflow: hidden;\n box-shadow: var(--btn-shadow);\n}\n\n.ui-btn span {\n letter-spacing: var(--btn-letter-spacing);\n transition: var(--btn-transition);\n box-sizing: border-box;\n position: relative;\n background: inherit;\n}\n\n.ui-btn span::before {\n box-sizing: border-box;\n position: absolute;\n content: \"\";\n background: inherit;\n}\n\n.ui-btn:hover, .ui-btn:focus {\n background: var(--btn-hover-bg);\n}\n\n.ui-btn:hover span, .ui-btn:focus span {\n color: var(--hover-btn-color);\n}\n\n.ui-btn:hover span::before, .ui-btn:focus span::before {\n animation: chitchat linear both var(--btn-animation-duration);\n}\n\n@keyframes chitchat {\n 0% {\n content: \"#\";\n }\n\n 5% {\n content: \".\";\n }\n\n 10% {\n content: \"^{\";\n }\n\n 15% {\n content: \"-!\";\n }\n\n 20% {\n content: \"#$_\";\n }\n\n 25% {\n content: \"№:0\";\n }\n\n 30% {\n content: \"#{+.\";\n }\n\n 35% {\n content: \"@}-?\";\n }\n\n 40% {\n content: \"?{4@%\";\n }\n\n 45% {\n content: \"=.,^!\";\n }\n\n 50% {\n content: \"?2@%\";\n }\n\n 55% {\n content: \"\\;1}]\";\n }\n\n 60% {\n content: \"?{%:%\";\n right: 0;\n }\n\n 65% {\n content: \"|{f[4\";\n right: 0;\n }\n\n 70% {\n content: \"{4%0%\";\n right: 0;\n }\n\n 75% {\n content: \"'1_0<\";\n right: 0;\n }\n\n 80% {\n content: \"{0%\";\n right: 0;\n }\n\n 85% {\n content: \"]>'\";\n right: 0;\n }\n\n 90% {\n content: \"4\";\n right: 0;\n }\n\n 95% {\n content: \"2\";\n right: 0;\n }\n\n 100% {\n content: \"\";\n right: 0;\n }\n}", "file_path": "/mnt/persist/workspace/Buttons/Galahhad_ancient-emu-61.html" }, "uniapp": { "template": "<button class=\"ui-btn\"></button>\n <text></text>\n Button \n </span>\n</button>", "script": "export default {\n name: 'GalaxyAncientEmu61',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by Galahhad - Tags: button, glitch */\n.ui-btn {\n --btn-default-bg: rgb(41, 41, 41);\n --btn-padding: 30rpx 40rpx;\n --btn-hover-bg: rgb(51, 51, 51);\n --btn-transition: .3s;\n --btn-letter-spacing: .1rem;\n --btn-animation-duration: 1.2s;\n --btn-shadow-color: rgba(0, 0, 0, 0.137);\n --btn-shadow: 0 4rpx 20rpx 0 var(--btn-shadow-color);\n --hover-btn-color: #FAC921;\n --default-btn-color: #fff;\n --font-size: 32rpx;\n /* 👆 this field should not be empty */\n --font-weight: 600;\n --font-family: Menlo,Roboto Mono,monospace;\n /* 👆 this field should not be empty */\n}\n\n/* button settings 👆 */\n\n.ui-btn {\n box-sizing: border-box;\n padding: var(--btn-padding);\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--default-btn-color);\n font: var(--font-weight) var(--font-size) var(--font-family);\n background: var(--btn-default-bg);\n border: none;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n transition: var(--btn-transition);\n overflow: hidden;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: var(--btn-shadow);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n.ui-btn span {\n letter-spacing: var(--btn-letter-spacing);\n transition: var(--btn-transition);\n box-sizing: border-box;\n position: relative;\n background: inherit;\n}\n\n.ui-btn span::before {\n box-sizing: border-box;\n position: absolute;\n content: \"\";\n background: inherit;\n}\n\n.ui-btn:hover, .ui-btn:focus {\n background: var(--btn-hover-bg);\n}\n\n.ui-btn:hover span, .ui-btn:focus span {\n color: var(--hover-btn-color);\n}\n\n.ui-btn:hover span::before, .ui-btn:focus span::before {\n animation: chitchat linear both var(--btn-animation-duration);\n}\n\n@keyframes chitchat {\n 0% {\n content: \"#\";\n }\n\n 5% {\n content: \".\";\n }\n\n 10% {\n content: \"^{\";\n }\n\n 15% {\n content: \"-!\";\n }\n\n 20% {\n content: \"#$_\";\n }\n\n 25% {\n content: \"№:0\";\n }\n\n 30% {\n content: \"#{+.\";\n }\n\n 35% {\n content: \"@}-?\";\n }\n\n 40% {\n content: \"?{4@%\";\n }\n\n 45% {\n content: \"=.,^!\";\n }\n\n 50% {\n content: \"?2@%\";\n }\n\n 55% {\n content: \"\\;1}]\";\n }\n\n 60% {\n content: \"?{%:%\";\n right: 0;\n }\n\n 65% {\n content: \"|{f[4\";\n right: 0;\n }\n\n 70% {\n content: \"{4%0%\";\n right: 0;\n }\n\n 75% {\n content: \"'1_0<\";\n right: 0;\n }\n\n 80% {\n content: \"{0%\";\n right: 0;\n }\n\n 85% {\n content: \"]>'\";\n right: 0;\n }\n\n 90% {\n content: \"4\";\n right: 0;\n }\n\n 95% {\n content: \"2\";\n right: 0;\n }\n\n 100% {\n content: \"\";\n right: 0;\n }\n}\n", "component_name": "GalaxyAncientEmu61" }, "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": 2480, "render_cost": "high", "memory_usage": "high" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:33.229Z", "updated_at": "2025-07-31T07:55:33.229Z" }