UNPKG

galaxy-uniapp-mcp-server

Version:

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

94 lines 7.3 kB
{ "id": "andrew-demchenk0_new-kangaroo-60", "name": "new-kangaroo-60", "category": "loaders", "author": "andrew-demchenk0", "description": "new-kangaroo-60 组件 (3d, loader, cube, animation, gradient)", "tags": [ "3d", "loader", "cube", "animation", "gradient" ], "original": { "html": "<div class=\"cube-loader\">\n <div class=\"cube-top\"></div>\n <div class=\"cube-wrapper\">\n <span style=\"--i:0\" class=\"cube-span\"></span>\n <span style=\"--i:1\" class=\"cube-span\"></span>\n <span style=\"--i:2\" class=\"cube-span\"></span>\n <span style=\"--i:3\" class=\"cube-span\"></span>\n </div>\n</div>", "css": "/* From Uiverse.io by andrew-demchenk0 - Tags: 3d, loader, cube */\n.cube-loader {\n position: relative;\n/* u can choose any size */\n width: 75px;\n height: 75px;\n transform-style: preserve-3d;\n transform: rotateX(-30deg);\n animation: animate 4s linear infinite;\n}\n\n@keyframes animate {\n 0% {\n transform: rotateX(-30deg) rotateY(0);\n }\n\n 100% {\n transform: rotateX(-30deg) rotateY(360deg);\n }\n}\n\n.cube-loader .cube-wrapper {\n position: absolute;\n width: 100%;\n height: 100%;\n /* top: 0;\n left: 0; */\n transform-style: preserve-3d;\n}\n\n.cube-loader .cube-wrapper .cube-span {\n position: absolute;\n width: 100%;\n height: 100%;\n /* top: 0;\n left: 0; */\n /* width 75px / 2 = 37.5px */\n transform: rotateY(calc(90deg * var(--i))) translateZ(37.5px);\n background: linear-gradient(\n to bottom,\n hsl(330, 3.13%, 25.1%) 0%,\n hsl(177.27, 21.71%, 32.06%) 5.5%,\n hsl(176.67, 34.1%, 36.88%) 12.1%,\n hsl(176.61, 42.28%, 40.7%) 19.6%,\n hsl(176.63, 48.32%, 43.88%) 27.9%,\n hsl(176.66, 53.07%, 46.58%) 36.6%,\n hsl(176.7, 56.94%, 48.91%) 45.6%,\n hsl(176.74, 62.39%, 50.91%) 54.6%,\n hsl(176.77, 69.86%, 52.62%) 63.4%,\n hsl(176.8, 76.78%, 54.08%) 71.7%,\n hsl(176.83, 83.02%, 55.29%) 79.4%,\n hsl(176.85, 88.44%, 56.28%) 86.2%,\n hsl(176.86, 92.9%, 57.04%) 91.9%,\n hsl(176.88, 96.24%, 57.59%) 96.3%,\n hsl(176.88, 98.34%, 57.93%) 99%,\n hsl(176.89, 99.07%, 58.04%) 100%\n );\n}\n\n.cube-top {\n position: absolute;\n width: 75px;\n height: 75px;\n background: hsl(330, 3.13%, 25.1%) 0%;\n /* width 75px / 2 = 37.5px */\n transform: rotateX(90deg) translateZ(37.5px);\n transform-style: preserve-3d;\n}\n\n.cube-top::before {\n content: '';\n position: absolute;\n/* u can choose any size */\n width: 75px;\n height: 75px;\n background: hsl(176.61, 42.28%, 40.7%) 19.6%;\n transform: translateZ(-90px);\n filter: blur(10px);\n box-shadow: 0 0 10px #323232,\n 0 0 20px hsl(176.61, 42.28%, 40.7%) 19.6%,\n 0 0 30px #323232,\n 0 0 40px hsl(176.61, 42.28%, 40.7%) 19.6%;\n}", "file_path": "/mnt/persist/workspace/loaders/andrew-demchenk0_new-kangaroo-60.html" }, "uniapp": { "template": "<view class=\"cube-loader\"></view>\n <view class=\"cube-top\"></view>\n <view class=\"cube-wrapper\"></view>\n <text style=\"--i:0\" class=\"cube-span\"></text>\n <text style=\"--i:1\" class=\"cube-span\"></text>\n <text style=\"--i:2\" class=\"cube-span\"></text>\n <text style=\"--i:3\" class=\"cube-span\"></text>\n </div>\n</div>", "script": "export default {\n name: 'GalaxyNewKangaroo60',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by andrew-demchenk0 - Tags: 3d, loader, cube */\n.cube-loader {\n position: relative;\n/* u can choose any size */\n width: 150rpx;\n height: 150rpx;\n transform-style: preserve-3d;\n transform: rotateX(-30deg);\n animation: animate 4s linear infinite;\n}\n\n@keyframes animate {\n 0% {\n transform: rotateX(-30deg) rotateY(0);\n }\n\n 100% {\n transform: rotateX(-30deg) rotateY(360deg);\n }\n}\n\n.cube-loader .cube-wrapper {\n position: absolute;\n width: 100%;\n height: 100%;\n /* top: 0;\n left: 0; */\n transform-style: preserve-3d;\n}\n\n.cube-loader .cube-wrapper .cube-span {\n position: absolute;\n width: 100%;\n height: 100%;\n /* top: 0;\n left: 0; */\n /* width 150rpx / 2 = 75rpx */\n transform: rotateY(calc(90deg * var(--i))) translateZ(75rpx);\n background: linear-gradient(\n to bottom,\n hsl(330, 3.13%, 25.1%) 0%,\n hsl(177.27, 21.71%, 32.06%) 5.5%,\n hsl(176.67, 34.1%, 36.88%) 12.1%,\n hsl(176.61, 42.28%, 40.7%) 19.6%,\n hsl(176.63, 48.32%, 43.88%) 27.9%,\n hsl(176.66, 53.07%, 46.58%) 36.6%,\n hsl(176.7, 56.94%, 48.91%) 45.6%,\n hsl(176.74, 62.39%, 50.91%) 54.6%,\n hsl(176.77, 69.86%, 52.62%) 63.4%,\n hsl(176.8, 76.78%, 54.08%) 71.7%,\n hsl(176.83, 83.02%, 55.29%) 79.4%,\n hsl(176.85, 88.44%, 56.28%) 86.2%,\n hsl(176.86, 92.9%, 57.04%) 91.9%,\n hsl(176.88, 96.24%, 57.59%) 96.3%,\n hsl(176.88, 98.34%, 57.93%) 99%,\n hsl(176.89, 99.07%, 58.04%) 100%\n );\n}\n\n.cube-top {\n position: absolute;\n width: 150rpx;\n height: 150rpx;\n background: hsl(330, 3.13%, 25.1%) 0%;\n /* width 150rpx / 2 = 75rpx */\n transform: rotateX(90deg) translateZ(75rpx);\n transform-style: preserve-3d;\n}\n\n.cube-top::before {\n content: '';\n position: absolute;\n/* u can choose any size */\n width: 150rpx;\n height: 150rpx;\n background: hsl(176.61, 42.28%, 40.7%) 19.6%;\n transform: translateZ(-180rpx);\n \n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0 20rpx #323232,\n 0 0 40rpx hsl(176.61, 42.28%, 40.7%) 19.6%,\n 0 0 60rpx #323232,\n 0 0 80rpx hsl(176.61, 42.28%, 40.7%) 19.6%;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\n", "component_name": "GalaxyNewKangaroo60" }, "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": "是否禁用" } ], "events": [], "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": "medium", "bundle_size": 2409, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:40.953Z", "updated_at": "2025-07-31T07:55:40.953Z" }