Files
leoncloud_temeplate/out/_next/static/chunks/c3a35c486db3a8d3.js

4 lines
17 KiB
JavaScript
Raw Normal View History

2025-11-19 21:31:06 +08:00
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,99011,e=>{"use strict";e.i(47167);var t=e.i(71645),r=e.i(7670),i=e.i(95669),n=e.i(40799),o=e.i(94425),a=e.i(98051),s=e.i(95761);function l(e){return(0,s.default)("MuiCardContent",e)}(0,a.default)("MuiCardContent",["root"]);var d=e.i(43476);let c=(0,n.styled)("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),u=t.forwardRef(function(e,t){let n=(0,o.useDefaultProps)({props:e,name:"MuiCardContent"}),{className:a,component:s="div",...u}=n,p={...n,component:s},h=(e=>{let{classes:t}=e;return(0,i.default)({root:["root"]},l,t)})(p);return(0,d.jsx)(c,{as:s,className:(0,r.default)(h.root,a),ownerState:p,ref:t,...u})});e.s(["default",0,u],99011)},61974,e=>{"use strict";e.i(47167);var t=e.i(71645),r=e.i(55777),i=e.i(94231),i=i,n=e.i(86931);let o={...t}.useSyncExternalStore;function a(e={}){let{themeId:s}=e;return function(e,a={}){let l=(0,n.default)();l&&s&&(l=l[s]||l);let d="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:c=!1,matchMedia:u=d?window.matchMedia:null,ssrMatchMedia:p=null,noSsr:h=!1}=(0,i.default)({name:"MuiUseMediaQuery",props:a,theme:l}),f="function"==typeof e?e(l):e;return(f=f.replace(/^@media( ?)/m,"")).includes("print")&&console.warn("MUI: You have provided a `print` query to the `useMediaQuery` hook.\nUsing the print media query to modify print styles can lead to unexpected results.\nConsider using the `displayPrint` field in the `sx` prop instead.\nMore information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."),(void 0!==o?function(e,r,i,n,a){let s=t.useCallback(()=>r,[r]),l=t.useMemo(()=>{if(a&&i)return()=>i(e).matches;if(null!==n){let{matches:t}=n(e);return()=>t}return s},[s,e,n,a,i]),[d,c]=t.useMemo(()=>{if(null===i)return[s,()=>()=>{}];let t=i(e);return[()=>t.matches,e=>(t.addEventListener("change",e),()=>{t.removeEventListener("change",e)})]},[s,i,e]);return o(c,d,l)}:function(e,i,n,o,a){let[s,l]=t.useState(()=>a&&n?n(e).matches:o?o(e).matches:i);return(0,r.default)(()=>{if(!n)return;let t=n(e),r=()=>{l(t.matches)};return r(),t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}},[e,n]),s})(f,c,u,p,h)}}a();let s=a({themeId:e.i(2001).default});e.s(["default",0,s],61974)},4896,e=>{"use strict";e.i(47167);var t=e.i(71645),r=e.i(7670),i=e.i(95669),n=e.i(40799),o=e.i(94425),a=e.i(67719),s=e.i(98051),l=e.i(95761);function d(e){return(0,l.default)("MuiCard",e)}(0,s.default)("MuiCard",["root"]);var c=e.i(43476);let u=(0,n.styled)(a.default,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),p=t.forwardRef(function(e,t){let n=(0,o.useDefaultProps)({props:e,name:"MuiCard"}),{className:a,raised:s=!1,...l}=n,p={...n,raised:s},h=(e=>{let{classes:t}=e;return(0,i.default)({root:["root"]},d,t)})(p);return(0,c.jsx)(u,{className:(0,r.default)(h.root,a),elevation:s?8:void 0,ref:t,ownerState:p,...l})});e.s(["default",0,p],4896)},74811,e=>{"use strict";var t=e.i(54624),r=e.i(43476);let i=(0,t.default)((0,r.jsx)("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code");e.s(["default",0,i])},66796,34251,e=>{"use strict";var t=e.i(26863);e.s(["Typography",()=>t.default],66796);var r=e.i(36807);e.s(["Button",()=>r.default],34251)},76552,e=>{"use strict";var t=e.i(19646);e.s(["Box",()=>t.default])},91882,e=>{"use strict";var t=e.i(52057);e.s(["Container",()=>t.default])},13607,e=>{"use strict";var t=e.i(4896);e.s(["Card",()=>t.default])},68238,38255,e=>{"use strict";var t=e.i(99011);e.s(["CardContent",()=>t.default],68238);var r=e.i(54624),i=e.i(43476);let n=(0,r.default)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public");e.s(["default",0,n],38255)},11180,e=>{"use strict";e.i(71645);var t=e.i(5462
require("basic");
var(input) = basic.input(string:"");
basic.print(string:"请输入一个数字:" + var(input));`;return(0,t.jsxs)(l.Container,{maxWidth:"lg",sx:{py:{xs:4,md:8}},children:[(0,t.jsxs)(s.Box,{sx:{textAlign:"center",mb:{xs:6,md:10},p:{xs:4,md:8},borderRadius:4,background:"linear-gradient(135deg, rgba(103,58,183,0.05) 0%, rgba(103,58,183,0.1) 100%)"},children:[(0,t.jsx)(n.Typography,{variant:"h3",component:"h1",gutterBottom:!0,sx:{fontWeight:700,mb:3},children:"LeonBasic"}),(0,t.jsx)(n.Typography,{variant:"h6",color:"text.secondary",gutterBottom:!0,children:"The LeonBasic Programming Language"}),(0,t.jsx)(n.Typography,{variant:"body1",sx:{maxWidth:600,mx:"auto",fontSize:{xs:"1rem",md:"1.1rem"}},children:"一个简单易懂的编程语言专为初学者设计基于Rust实现融合了Python的简洁和Swift的现代语法特性。"}),(0,t.jsxs)(s.Box,{sx:{mt:6,display:"flex",gap:2,justifyContent:"center",flexWrap:"wrap"},children:[(0,t.jsx)(o.Button,{variant:"contained",startIcon:(0,t.jsx)(f.default,{}),href:"https://github.com/LeonMMcoset/LeonLang",target:"_blank",rel:"noopener noreferrer",sx:{px:3,py:1.2},children:"项目仓库"}),(0,t.jsx)(o.Button,{variant:"outlined",startIcon:(0,t.jsx)(m.default,{}),href:"https://lb.jjmm.ink/",target:"_blank",rel:"noopener noreferrer",sx:{px:3,py:1.2},children:"官方网站"})]})]}),(0,t.jsxs)(s.Box,{sx:{mb:{xs:8,md:12}},children:[(0,t.jsx)(n.Typography,{variant:"h4",component:"h2",gutterBottom:!0,sx:{mb:4,fontWeight:600},children:"项目概述"}),(0,t.jsxs)(a.Grid,{container:!0,spacing:4,children:[(0,t.jsxs)(a.Grid,{size:{xs:12,md:6},children:[(0,t.jsx)(n.Typography,{variant:"body1",sx:{mb:3,lineHeight:1.8},children:"LeonBasic是一门专为编程初学者设计的编程语言旨在降低编程学习的门槛同时保持良好的性能和现代语言特性。 该语言基于Rust实现结合了Python的易读性和Swift的语法优雅让初学者能够快速上手同时也能接触到现代编程语言的核心概念。"}),(0,t.jsx)(n.Typography,{variant:"body1",sx:{mb:3,lineHeight:1.8},children:"无论是完全没有编程经验的新手还是想要了解不同编程范式的开发者都能从LeonBasic中获益。 简单易学的语法设计让学习过程更加轻松愉快同时Rust的底层实现又保证了程序的性能和安全性。"})]}),(0,t.jsx)(a.Grid,{size:{xs:12,md:6},children:(0,t.jsx)(r.Card,{sx:{height:"100%",boxShadow:3,borderRadius:2},children:(0,t.jsxs)(i.CardContent,{children:[(0,t.jsx)(n.Typography,{variant:"h6",gutterBottom:!0,sx:{mb:2,fontWeight:600},children:"语言特点"}),(0,t.jsx)(s.Box,{sx:{display:"flex",flexDirection:"column",gap:2},children:g.map((r,i)=>(0,t.jsxs)(s.Box,{sx:{display:"flex",alignItems:"flex-start",gap:2},children:[(0,t.jsx)(s.Box,{sx:{color:e.palette.primary.main,mt:.5},children:r.icon}),(0,t.jsxs)(s.Box,{children:[(0,t.jsx)(n.Typography,{variant:"subtitle1",sx:{fontWeight:600},children:r.title}),(0,t.jsx)(n.Typography,{variant:"body2",color:"text.secondary",children:r.description})]})]},i))})]})})})]})]}),(0,t.jsxs)(s.Box,{sx:{mb:{xs:8,md:12}},children:[(0,t.jsx)(n.Typography,{variant:"h4",component:"h2",gutterBottom:!0,sx:{mb:4,fontWeight:600},children:"语法示例"}),(0,t.jsx)(r.Card,{sx:{backgroundColor:"#f5f5f5",borderRadius:2,overflow:"hidden"},children:(0,t.jsx)(s.Box,{sx:{p:3,fontSize:{xs:"0.875rem",md:"1rem"},fontFamily:"monospace",lineHeight:1.6,whiteSpace:"pre-wrap",wordBreak:"break-word",color:"#333",maxHeight:400,overflowY:"auto","&::-webkit-scrollbar":{width:"6px"},"&::-webkit-scrollbar-track":{background:"#f1f1f1"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#888",borderRadius:"3px"}},children:v})})]}),(0,t.jsxs)(s.Box,{sx:{mb:6},children:[(0,t.jsx)(n.Typography,{variant:"h4",component:"h2",gutterBottom:!0,sx:{mb:4,fontWeight:600},children:"相关资源"}),(0,t.jsxs)(a.Grid,{container:!0,spacing:3,children:[(0,t.jsx)(a.Grid,{size:{xs:12,sm:6,md:4},children:(0,t.jsx)(r.Card,{sx:{height:"100%",transition:"transform 0.2s","&:hover":{transform:"translateY(-5px)"}},children:(0,t.jsxs)(i.CardContent,{children:[(0,t.jsx)(f.default,{