UNPKG

galaxy-uniapp-mcp-server

Version:

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

108 lines 16.9 kB
{ "id": "LuisEgan_mighty-stingray-31", "name": "mighty-stingray-31", "category": "buttons", "author": "LuisEgan", "description": "mighty-stingray-31 组件 (button, animation, interactive)", "tags": [ "button", "animation", "interactive" ], "original": { "html": "<button>\n <svg id=\"rocket\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\" viewBox=\"0 0 416.449 416.449\" xml:space=\"preserve\">\n <g id=\"tip\">\n <path d=\"M399.76,16.699c10.12,37.84,8.67,78.13-4.34,115.28h-0.01L284.48,21.049v-0.01 C321.63,8.029,361.92,6.579,399.76,16.699z\"></path>\n </g>\n <g id=\"rocket-body\">\n <path d=\"M90.21,207.929l87.14-101.42h0.01l33.71-39.24c21.43-21.43,46.6-36.84,73.41-46.23v0.01 l110.93,110.93h0.01c-9.39,26.81-24.8,51.98-46.23,73.41l-39.24,33.71l-101.43,87.14l-29.57-29.57l-29.58-29.58l-29.58-29.58z\"></path>\n </g>\n <g id=\"wings\">\n <path id=\"wings-top\" d=\"M309.95,239.099c1.74,45.6-14.8,91.78-49.61,126.59c-10.69,10.68-22.44,19.65-34.93,26.89 l-16.89-66.34L309.95,239.099z\"></path>\n <path id=\"wings-bottom\" d=\"M177.35,106.509l-87.14,101.42l-66.33-16.88c7.24-12.49,16.21-24.24,26.89-34.93 C85.58,121.309,131.74,104.769,177.35,106.509z\"></path>\n </g>\n <g id=\"rocket-body-bottom\">\n <path d=\"M208.52,326.239l-39.94,14.71c-10.98,4.05-23.31,1.34-31.58-6.94l-6.85-6.85l48.8-30.49 L208.52,326.239z\"></path>\n <polygon points=\"178.95,296.669 130.15,327.159 130.14,327.159 109.72,306.739 149.37,267.089\"></polygon>\n <polygon points=\"149.37,267.089 109.72,306.739 89.3,286.309 119.79,237.509\"></polygon>\n <path d=\"M119.79,237.509l-30.49,48.8l-6.86-6.85c-8.27-8.28-10.98-20.6-6.94-31.58l14.71-39.95 L119.79,237.509z\"></path>\n </g>\n <g id=\"flames\">\n <path d=\"M28.88,339.459c-2.559,0-5.119-0.977-7.071-2.929c-3.905-3.905-3.905-10.237,0-14.143 l20.54-20.54c3.905-3.904,10.237-3.904,14.143,0c3.905,3.905,3.905,10.237,0,14.143l-20.54,20.54 C33.999,338.482,31.44,339.459,28.88,339.459z\"></path>\n <path d=\"M10,416.439c-2.56,0-5.119-0.977-7.072-2.93c-3.905-3.905-3.904-10.237,0.001-14.142l68.47-68.46 c3.905-3.904,10.237-3.904,14.142,0.001c3.905,3.905,3.904,10.237-0.002,14.142l-68.47,68.46 C15.118,415.463,12.559,416.439,10,416.439z\"></path>\n <path d=\"M73.29,411.259c-2.56,0-5.118-0.977-7.071-2.929c-3.905-3.905-3.905-10.237,0-14.143 l34.23-34.229c3.905-3.904,10.237-3.903,14.142,0c3.905,3.905,3.905,10.237,0,14.143l-34.23,34.229 C78.409,410.282,75.849,411.259,73.29,411.259z\"></path>\n </g>\n </svg>\n\n <div id=\"smoke\">\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n </div>\n</button>", "css": "/* From Uiverse.io by LuisEgan - Tags: button */\nbutton {\n background-color: transparent;\n position: relative;\n border: none;\n}\n\nbutton::before {\n content: \"Ready\";\n animation: .55s cubic-bezier(1,-0.06,.61,.45);\n color: rgb(87, 78, 78);\n font-size: 1.3em;\n font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n transform: translateY(43%);\n z-index: 1;\n}\n\n/* COLORS */\n\n#tip > path {\n fill: #5b5eb3;\n}\n\n#rocket-body > path {\n fill: #cccac6;\n stroke: #cccac6\n}\n\n#wings > path {\n fill: #cccac6;\n stroke: #cccac6\n}\n\n#rocket-body-bottom > path,\n#rocket-body-bottom > polygon {\n fill: #514737;\n stroke: #514737;\n}\n\n#flames :nth-child(2n+1) {\n fill: red;\n}\n\n#flames :nth-child(2n) {\n fill: yellow;\n}\n\n/* SMOKE */\n\n#smoke > span {\n position: absolute;\n left: 0;\n height: 16px;\n width: 16px;\n border-radius: 100%;\n background-color: gray;\n top: 50%;\n z-index: -1;\n animation: .5s linear infinite;\n display: none;\n}\n\n#smoke :nth-child(1) {\n top: 40%;\n animation-name: smoke-1;\n animation-delay: 3ms;\n animation-duration: 1s;\n}\n\n#smoke :nth-child(2) {\n top: 45%;\n animation-name: smoke-2;\n animation-duration: 1.3s;\n}\n\n#smoke :nth-child(3) {\n top: 42%;\n animation-name: smoke-3;\n animation-delay: 3ms;\n animation-duration: 1.6s;\n}\n\n#smoke :nth-child(4) {\n top: 43%;\n animation-name: smoke-1;\n animation-duration: .7s;\n}\n\n#smoke :nth-child(5) {\n top: 46%;\n animation-name: smoke-2;\n animation-delay: 3ms;\n animation-duration: 1s;\n}\n\n#smoke :nth-child(6) {\n top: 48%;\n animation-name: smoke-3;\n animation-duration: 1.2s;\n}\n\n/* SET ANIMATIONS */\n\n#rocket {\n animation: .55s cubic-bezier(1,-0.06,.61,.45);\n height: 150px;\n transform: translateX(-20px) rotateZ(45deg);\n}\n\nsvg #flames > path {\n animation: 1.2s linear infinite forwards;\n transform-origin: center center;\n animation-play-state: paused;\n opacity: 0;\n}\n\nsvg #wings-top {\n animation: .6s linear forwards;\n animation-name: close-wing-top;\n}\n\nsvg #wings-bottom {\n animation: .6s linear forwards;\n animation-name: close-wing-bottom;\n}\n\n/* HOVER */\n\nbutton:hover::before {\n content: \"Set\";\n}\n\nbutton:hover #wings-top,\nbutton:focus #wings-top {\n animation-name: open-wing-top;\n}\n\nbutton:hover #wings-bottom,\nbutton:focus #wings-bottom {\n animation-name: open-wing-bottom;\n}\n\nbutton:hover #smoke > span {\n display: block;\n}\n\n/* FOCUS */\n\nbutton:focus::before {\n content: \"Go!\";\n animation-name: launch-text;\n}\n\nbutton:focus #rocket {\n animation-name: launch_149;\n}\n\nbutton:focus #flames > path {\n animation-name: flames;\n animation-play-state: running;\n}\n\nbutton:focus #smoke > span {\n display: none;\n}\n\n/* ANIMATIONS KEYFRAMES */\n\n@keyframes launch_149 {\n from {\n transform: translateX(-20px) rotateZ(45deg);\n }\n\n to {\n transform: translateX(2000px) rotateZ(45deg);\n }\n}\n\n@keyframes launch-text {\n from {\n transform: translateY(43%);\n }\n\n to {\n transform: translateY(43%) translateX(2000px);\n }\n}\n\n@keyframes open-wing-top {\n from {\n transform: translateY(-100px);\n }\n\n to {\n transform: translateY(0px);\n }\n}\n\n@keyframes open-wing-bottom {\n from {\n transform: translateX(100px);\n }\n\n to {\n transform: translateX(0px);\n }\n}\n\n@keyframes close-wing-top {\n from {\n transform: translateY(0px);\n }\n\n to {\n transform: translateY(-100px);\n }\n}\n\n@keyframes close-wing-bottom {\n from {\n transform: translateX(0px);\n }\n\n to {\n transform: translateX(100px);\n }\n}\n\n@keyframes flames {\n 0% {\n transform: scale(1);\n opacity: 1;\n }\n\n 30% {\n transform: scale(.89);\n }\n\n 50% {\n transform: scale(.95);\n }\n\n 70% {\n transform: scale(.9);\n }\n\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n}\n\n@keyframes smoke-1 {\n 0% {\n opacity: .3;\n transform: translate(0, 0);\n }\n\n 60% {\n opacity: .3;\n transform: translate(-15px, -10px);\n }\n\n 100% {\n opacity: .1;\n transform: translate(-25px, 5px);\n }\n}\n\n@keyframes smoke-2 {\n 0% {\n opacity: .3;\n transform: translate(0, 0);\n }\n\n 60% {\n opacity: .3;\n transform: translate(-10px, -3px);\n }\n\n 100% {\n opacity: .1;\n transform: translate(-30px, 9px);\n }\n}\n\n@keyframes smoke-3 {\n 0% {\n opacity: .3;\n transform: translate(0, 0);\n }\n\n 60% {\n opacity: .3;\n transform: translate(-5px, 5px);\n }\n\n 100% {\n opacity: .1;\n transform: translate(-20px, -5px);\n }\n}", "file_path": "/mnt/persist/workspace/Buttons/LuisEgan_mighty-stingray-31.html" }, "uniapp": { "template": "<button></button>\n <view id=\"rocket\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\" viewBox=\"0 0 416.449 416.449\" xml:space=\"preserve\"></view>\n <g id=\"tip\">\n <path d=\"M399.76,16.699c10.12,37.84,8.67,78.13-4.34,115.28h-0.01L284.48,21.049v-0.01 C321.63,8.029,361.92,6.579,399.76,16.699z\"></path>\n </g>\n <g id=\"rocket-body\">\n <path d=\"M90.21,207.929l87.14-101.42h0.01l33.71-39.24c21.43-21.43,46.6-36.84,73.41-46.23v0.01 l110.93,110.93h0.01c-9.39,26.81-24.8,51.98-46.23,73.41l-39.24,33.71l-101.43,87.14l-29.57-29.57l-29.58-29.58l-29.58-29.58z\"></path>\n </g>\n <g id=\"wings\">\n <path id=\"wings-top\" d=\"M309.95,239.099c1.74,45.6-14.8,91.78-49.61,126.59c-10.69,10.68-22.44,19.65-34.93,26.89 l-16.89-66.34L309.95,239.099z\"></path>\n <path id=\"wings-bottom\" d=\"M177.35,106.509l-87.14,101.42l-66.33-16.88c7.24-12.49,16.21-24.24,26.89-34.93 C85.58,121.309,131.74,104.769,177.35,106.509z\"></path>\n </g>\n <g id=\"rocket-body-bottom\">\n <path d=\"M208.52,326.239l-39.94,14.71c-10.98,4.05-23.31,1.34-31.58-6.94l-6.85-6.85l48.8-30.49 L208.52,326.239z\"></path>\n <polygon points=\"178.95,296.669 130.15,327.159 130.14,327.159 109.72,306.739 149.37,267.089\"></polygon>\n <polygon points=\"149.37,267.089 109.72,306.739 89.3,286.309 119.79,237.509\"></polygon>\n <path d=\"M119.79,237.509l-30.49,48.8l-6.86-6.85c-8.27-8.28-10.98-20.6-6.94-31.58l14.71-39.95 L119.79,237.509z\"></path>\n </g>\n <g id=\"flames\">\n <path d=\"M28.88,339.459c-2.559,0-5.119-0.977-7.071-2.929c-3.905-3.905-3.905-10.237,0-14.143 l20.54-20.54c3.905-3.904,10.237-3.904,14.143,0c3.905,3.905,3.905,10.237,0,14.143l-20.54,20.54 C33.999,338.482,31.44,339.459,28.88,339.459z\"></path>\n <path d=\"M10,416.439c-2.56,0-5.119-0.977-7.072-2.93c-3.905-3.905-3.904-10.237,0.001-14.142l68.47-68.46 c3.905-3.904,10.237-3.904,14.142,0.001c3.905,3.905,3.904,10.237-0.002,14.142l-68.47,68.46 C15.118,415.463,12.559,416.439,10,416.439z\"></path>\n <path d=\"M73.29,411.259c-2.56,0-5.118-0.977-7.071-2.929c-3.905-3.905-3.905-10.237,0-14.143 l34.23-34.229c3.905-3.904,10.237-3.903,14.142,0c3.905,3.905,3.905,10.237,0,14.143l-34.23,34.229 C78.409,410.282,75.849,411.259,73.29,411.259z\"></path>\n </g>\n </svg>\n\n <view id=\"smoke\"></view>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n </div>\n</button>", "script": "export default {\n name: 'GalaxyMightyStingray31',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by LuisEgan - Tags: button */\nbutton {\n background-color: transparent;\n position: relative;\n border: none;\n}\n\nbutton::before {\n content: \"Ready\";\n animation: .55s cubic-bezier(1,-0.06,.61,.45);\n color: rgb(87, 78, 78);\n font-size: 1.3em;\n font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n transform: translateY(43%);\n z-index: 1;\n}\n\n/* COLORS */\n\n#tip > path {\n fill: #5b5eb3;\n}\n\n#rocket-body > path {\n fill: #cccac6;\n stroke: #cccac6\n}\n\n#wings > path {\n fill: #cccac6;\n stroke: #cccac6\n}\n\n#rocket-body-bottom > path,\n#rocket-body-bottom > polygon {\n fill: #514737;\n stroke: #514737;\n}\n\n#flames :nth-child(2n+1) {\n fill: red;\n}\n\n#flames :nth-child(2n) {\n fill: yellow;\n}\n\n/* SMOKE */\n\n#smoke > span {\n position: absolute;\n left: 0;\n height: 32rpx;\n width: 32rpx;\n border-radius: 100%;\n background-color: gray;\n top: 50%;\n z-index: -1;\n animation: .5s linear infinite;\n display: none;\n}\n\n#smoke :nth-child(1) {\n top: 40%;\n animation-name: smoke-1;\n animation-delay: 3ms;\n animation-duration: 1s;\n}\n\n#smoke :nth-child(2) {\n top: 45%;\n animation-name: smoke-2;\n animation-duration: 1.3s;\n}\n\n#smoke :nth-child(3) {\n top: 42%;\n animation-name: smoke-3;\n animation-delay: 3ms;\n animation-duration: 1.6s;\n}\n\n#smoke :nth-child(4) {\n top: 43%;\n animation-name: smoke-1;\n animation-duration: .7s;\n}\n\n#smoke :nth-child(5) {\n top: 46%;\n animation-name: smoke-2;\n animation-delay: 3ms;\n animation-duration: 1s;\n}\n\n#smoke :nth-child(6) {\n top: 48%;\n animation-name: smoke-3;\n animation-duration: 1.2s;\n}\n\n/* SET ANIMATIONS */\n\n#rocket {\n animation: .55s cubic-bezier(1,-0.06,.61,.45);\n height: 300rpx;\n transform: translateX(-40rpx) rotateZ(45deg);\n}\n\nsvg #flames > path {\n animation: 1.2s linear infinite forwards;\n transform-origin: center center;\n animation-play-state: paused;\n opacity: 0;\n}\n\nsvg #wings-top {\n animation: .6s linear forwards;\n animation-name: close-wing-top;\n}\n\nsvg #wings-bottom {\n animation: .6s linear forwards;\n animation-name: close-wing-bottom;\n}\n\n/* HOVER */\n\nbutton:hover::before {\n content: \"Set\";\n}\n\nbutton:hover #wings-top,\nbutton:focus #wings-top {\n animation-name: open-wing-top;\n}\n\nbutton:hover #wings-bottom,\nbutton:focus #wings-bottom {\n animation-name: open-wing-bottom;\n}\n\nbutton:hover #smoke > span {\n display: block;\n}\n\n/* FOCUS */\n\nbutton:focus::before {\n content: \"Go!\";\n animation-name: launch-text;\n}\n\nbutton:focus #rocket {\n animation-name: launch_149;\n}\n\nbutton:focus #flames > path {\n animation-name: flames;\n animation-play-state: running;\n}\n\nbutton:focus #smoke > span {\n display: none;\n}\n\n/* ANIMATIONS KEYFRAMES */\n\n@keyframes launch_149 {\n from {\n transform: translateX(-40rpx) rotateZ(45deg);\n }\n\n to {\n transform: translateX(4000rpx) rotateZ(45deg);\n }\n}\n\n@keyframes launch-text {\n from {\n transform: translateY(43%);\n }\n\n to {\n transform: translateY(43%) translateX(4000rpx);\n }\n}\n\n@keyframes open-wing-top {\n from {\n transform: translateY(-200rpx);\n }\n\n to {\n transform: translateY(0rpx);\n }\n}\n\n@keyframes open-wing-bottom {\n from {\n transform: translateX(200rpx);\n }\n\n to {\n transform: translateX(0rpx);\n }\n}\n\n@keyframes close-wing-top {\n from {\n transform: translateY(0rpx);\n }\n\n to {\n transform: translateY(-200rpx);\n }\n}\n\n@keyframes close-wing-bottom {\n from {\n transform: translateX(0rpx);\n }\n\n to {\n transform: translateX(200rpx);\n }\n}\n\n@keyframes flames {\n 0% {\n transform: scale(1);\n opacity: 1;\n }\n\n 30% {\n transform: scale(.89);\n }\n\n 50% {\n transform: scale(.95);\n }\n\n 70% {\n transform: scale(.9);\n }\n\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n}\n\n@keyframes smoke-1 {\n 0% {\n opacity: .3;\n transform: translate(0, 0);\n }\n\n 60% {\n opacity: .3;\n transform: translate(-30rpx, -20rpx);\n }\n\n 100% {\n opacity: .1;\n transform: translate(-50rpx, 10rpx);\n }\n}\n\n@keyframes smoke-2 {\n 0% {\n opacity: .3;\n transform: translate(0, 0);\n }\n\n 60% {\n opacity: .3;\n transform: translate(-20rpx, -6rpx);\n }\n\n 100% {\n opacity: .1;\n transform: translate(-60rpx, 18rpx);\n }\n}\n\n@keyframes smoke-3 {\n 0% {\n opacity: .3;\n transform: translate(0, 0);\n }\n\n 60% {\n opacity: .3;\n transform: translate(-10rpx, 10rpx);\n }\n\n 100% {\n opacity: .1;\n transform: translate(-40rpx, -10rpx);\n }\n}\n", "component_name": "GalaxyMightyStingray31" }, "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": [], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "high", "bundle_size": 6870, "render_cost": "high", "memory_usage": "high" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:33.872Z", "updated_at": "2025-07-31T07:55:33.872Z" }