Ver código fonte

docs: fixed javascript highlighting

alvarosabu 1 dia atrás
pai
commit
5fc0c70f0d

+ 2 - 2
docs/content/2.essentials/2.concepts/1.declarative-vs-imperative.md

@@ -11,7 +11,7 @@ TresJS fundamentally changes how you create 3D scenes by transforming Three.js's
 
 In traditional Three.js development, you write **imperative code** - explicit instructions telling the computer exactly what to do step by step:
 
-```javascript [three-js-scene.js]
+```js [three-js-scene.js]
 import * as THREE from 'three'
 
 // Create scene, camera, and renderer
@@ -92,7 +92,7 @@ Let's compare how common 3D operations are handled in both approaches:
 
 ::code-group
 
-```javascript [Three.js (Imperative)]
+```js [Three.js (Imperative)]
 // Setup scene, camera, renderer
 const scene = new THREE.Scene()
 const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000)

+ 1 - 1
docs/content/2.essentials/2.concepts/2.reactivity.md

@@ -15,7 +15,7 @@ TresJS leverages Vue's reactivity while providing patterns that maintain optimal
 
 Vue's reactivity is built on [JavaScript Proxies](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy), which intercept property access and mutations to track dependencies and trigger updates.
 
-```javascript [reactivity-basics.js]
+```js [reactivity-basics.js]
 // Vue creates a Proxy wrapper around your data
 const data = reactive({ x: 0, y: 0, z: 0 })