this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

editor: switch language to python

Clément 5c1ecd72 6bcfa0a7

+26 -38
+1 -1
app/package.json
··· 24 24 "@atcute/oauth-browser-client": "^3.0.0", 25 25 "@atproto/jwk": "^0.6.0", 26 26 "@cloudflare/vite-plugin": "^1.31.0", 27 - "@codemirror/lang-javascript": "^6.2.5", 27 + "@codemirror/lang-python": "^6.2.1", 28 28 "@codemirror/language": "^6.12.3", 29 29 "@codemirror/view": "^6.41.0", 30 30 "@prisma/adapter-d1": "7.5.0",
+2 -2
app/src/lib/components/Editor.tsx
··· 1 - import { javascript } from '@codemirror/lang-javascript'; 1 + import { python } from '@codemirror/lang-python'; 2 2 import { 3 3 defaultHighlightStyle, 4 4 syntaxHighlighting, ··· 19 19 extensions: [ 20 20 lineNumbers(), 21 21 syntaxHighlighting(defaultHighlightStyle), 22 - javascript(), 22 + python(), 23 23 ], 24 24 parent: ref!, 25 25 });
+9 -10
app/src/routes/index.tsx
··· 7 7 component: RouteComponent, 8 8 }); 9 9 10 - const BASE_CODE = `class TreeNode { 11 - constructor(val, left = null, right = null) { 12 - this.val = val; 13 - this.left = left; 14 - this.right = right; 15 - } 16 - } 10 + const BASE_CODE = `class TreeNode: 11 + def __init__(self, val=0, left=None, right=None): 12 + self.val = val 13 + self.left = left 14 + self.right = right 15 + 17 16 18 - function invertTree(root) { 19 - // TODO: implement 20 - } 17 + def invert_tree(root): 18 + # TODO: implement 19 + pass 21 20 `; 22 21 23 22 function RouteComponent() {
+14 -25
pnpm-lock.yaml
··· 34 34 '@cloudflare/vite-plugin': 35 35 specifier: ^1.31.0 36 36 version: 1.31.0(vite@8.0.3(@emnapi/core@1.9.0)(@emnapi/runtime@1.9.2)(@types/node@24.10.12)(esbuild@0.27.7)(jiti@2.6.1)(tsx@4.21.0))(workerd@1.20260401.1)(wrangler@4.80.0) 37 - '@codemirror/lang-javascript': 38 - specifier: ^6.2.5 39 - version: 6.2.5 37 + '@codemirror/lang-python': 38 + specifier: ^6.2.1 39 + version: 6.2.1 40 40 '@codemirror/language': 41 41 specifier: ^6.12.3 42 42 version: 6.12.3 ··· 355 355 '@codemirror/autocomplete@6.20.1': 356 356 resolution: {integrity: sha512-1cvg3Vz1dSSToCNlJfRA2WSI4ht3K+WplO0UMOgmUYPivCyy2oueZY6Lx7M9wThm7SDUBViRmuT+OG/i8+ON9A==} 357 357 358 - '@codemirror/lang-javascript@6.2.5': 359 - resolution: {integrity: sha512-zD4e5mS+50htS7F+TYjBPsiIFGanfVqg4HyUz6WNFikgOPf2BgKlx+TQedI1w6n/IqRBVBbBWmGFdLB/7uxO4A==} 358 + '@codemirror/lang-python@6.2.1': 359 + resolution: {integrity: sha512-IRjC8RUBhn9mGR9ywecNhB51yePWCGgvHfY1lWN/Mrp3cKuHr0isDKia+9HnvhiWNnMpbGhWrkhuWOc09exRyw==} 360 360 361 361 '@codemirror/language@6.12.3': 362 362 resolution: {integrity: sha512-QwCZW6Tt1siP37Jet9Tb02Zs81TQt6qQrZR2H+eGMcFsL1zMrk2/b9CLC7/9ieP1fjIUMgviLWMmgiHoJrj+ZA==} 363 - 364 - '@codemirror/lint@6.9.5': 365 - resolution: {integrity: sha512-GElsbU9G7QT9xXhpUg1zWGmftA/7jamh+7+ydKRuT0ORpWS3wOSP0yT1FOlIZa7mIJjpVPipErsyvVqB9cfTFA==} 366 363 367 364 '@codemirror/state@6.6.0': 368 365 resolution: {integrity: sha512-4nbvra5R5EtiCzr9BTHiTLc+MLXK2QGiAVYMyi8PkQd3SR+6ixar/Q/01Fa21TBIDOZXgeWV4WppsQolSreAPQ==} ··· 966 963 '@lezer/highlight@1.2.3': 967 964 resolution: {integrity: sha512-qXdH7UqTvGfdVBINrgKhDsVTJTxactNNxLk7+UMwZhU13lMHaOBlJe9Vqp907ya56Y3+ed2tlqzys7jDkTmW0g==} 968 965 969 - '@lezer/javascript@1.5.4': 970 - resolution: {integrity: sha512-vvYx3MhWqeZtGPwDStM2dwgljd5smolYD2lR2UyFcHfxbBQebqx8yjmFmxtJ/E6nN6u1D9srOiVWm3Rb4tmcUA==} 971 - 972 966 '@lezer/lr@1.4.8': 973 967 resolution: {integrity: sha512-bPWa0Pgx69ylNlMlPvBPryqeLYQjyJjqPx+Aupm5zydLIF3NE+6MMLT8Yi23Bd9cif9VS00aUebn+6fDIGBcDA==} 968 + 969 + '@lezer/python@1.1.18': 970 + resolution: {integrity: sha512-31FiUrU7z9+d/ElGQLJFXl+dKOdx0jALlP3KEOsGTex8mvj+SoE1FgItcHWK/axkxCHGUSpqIHt6JAWfWu9Rhg==} 974 971 975 972 '@marijn/find-cluster-break@1.0.2': 976 973 resolution: {integrity: sha512-l0h88YhZFyKdXIFNfSWpyjStDjGHwZ/U7iobcK1cQQD8sejsONdQtTVU+1wVN1PBw40PiiHB1vA5S7VTfQiP9g==} ··· 4002 3999 '@codemirror/view': 6.41.0 4003 4000 '@lezer/common': 1.5.1 4004 4001 4005 - '@codemirror/lang-javascript@6.2.5': 4002 + '@codemirror/lang-python@6.2.1': 4006 4003 dependencies: 4007 4004 '@codemirror/autocomplete': 6.20.1 4008 4005 '@codemirror/language': 6.12.3 4009 - '@codemirror/lint': 6.9.5 4010 4006 '@codemirror/state': 6.6.0 4011 - '@codemirror/view': 6.41.0 4012 4007 '@lezer/common': 1.5.1 4013 - '@lezer/javascript': 1.5.4 4008 + '@lezer/python': 1.1.18 4014 4009 4015 4010 '@codemirror/language@6.12.3': 4016 4011 dependencies: ··· 4020 4015 '@lezer/highlight': 1.2.3 4021 4016 '@lezer/lr': 1.4.8 4022 4017 style-mod: 4.1.3 4023 - 4024 - '@codemirror/lint@6.9.5': 4025 - dependencies: 4026 - '@codemirror/state': 6.6.0 4027 - '@codemirror/view': 6.41.0 4028 - crelt: 1.0.6 4029 4018 4030 4019 '@codemirror/state@6.6.0': 4031 4020 dependencies: ··· 4423 4412 dependencies: 4424 4413 '@lezer/common': 1.5.1 4425 4414 4426 - '@lezer/javascript@1.5.4': 4415 + '@lezer/lr@1.4.8': 4427 4416 dependencies: 4428 4417 '@lezer/common': 1.5.1 4429 - '@lezer/highlight': 1.2.3 4430 - '@lezer/lr': 1.4.8 4431 4418 4432 - '@lezer/lr@1.4.8': 4419 + '@lezer/python@1.1.18': 4433 4420 dependencies: 4434 4421 '@lezer/common': 1.5.1 4422 + '@lezer/highlight': 1.2.3 4423 + '@lezer/lr': 1.4.8 4435 4424 4436 4425 '@marijn/find-cluster-break@1.0.2': {} 4437 4426