Fix: resolve all TypeScript errors — exclude server code from tsc, fix styled-jsx → standard style tags, fix leftover router.push → navigate(), add sharp.d.ts stub
Browse files
src/components/audio/speech-button.tsx
CHANGED
|
@@ -106,7 +106,7 @@ export function SpeechButton({
|
|
| 106 |
)}
|
| 107 |
|
| 108 |
{/* Injected keyframes */}
|
| 109 |
-
<style
|
| 110 |
@keyframes speech-bar {
|
| 111 |
0% {
|
| 112 |
height: 3px;
|
|
|
|
| 106 |
)}
|
| 107 |
|
| 108 |
{/* Injected keyframes */}
|
| 109 |
+
<style>{`
|
| 110 |
@keyframes speech-bar {
|
| 111 |
0% {
|
| 112 |
height: 3px;
|
src/components/slide-renderer/Editor/HighlightOverlay.tsx
CHANGED
|
@@ -95,7 +95,7 @@ export function HighlightOverlay() {
|
|
| 95 |
})}
|
| 96 |
|
| 97 |
{/* CSS animation (breathing light effect) */}
|
| 98 |
-
<style
|
| 99 |
@keyframes breathe {
|
| 100 |
0%,
|
| 101 |
100% {
|
|
|
|
| 95 |
})}
|
| 96 |
|
| 97 |
{/* CSS animation (breathing light effect) */}
|
| 98 |
+
<style>{`
|
| 99 |
@keyframes breathe {
|
| 100 |
0%,
|
| 101 |
100% {
|
src/components/slide-renderer/components/element/ImageElement/ImageClipHandler.tsx
CHANGED
|
@@ -568,7 +568,7 @@ export function ImageClipHandler({
|
|
| 568 |
))}
|
| 569 |
</div>
|
| 570 |
|
| 571 |
-
<style
|
| 572 |
.clip-point {
|
| 573 |
position: absolute;
|
| 574 |
width: 16px;
|
|
|
|
| 568 |
))}
|
| 569 |
</div>
|
| 570 |
|
| 571 |
+
<style>{`
|
| 572 |
.clip-point {
|
| 573 |
position: absolute;
|
| 574 |
width: 16px;
|
src/pages/HomePage.tsx
CHANGED
|
@@ -798,8 +798,7 @@ function HomePage() {
|
|
| 798 |
confirmingDelete={pendingDeleteId === classroom.id}
|
| 799 |
onConfirmDelete={() => confirmDelete(classroom.id)}
|
| 800 |
onCancelDelete={() => setPendingDeleteId(null)}
|
| 801 |
-
onClick={() =>
|
| 802 |
-
/>
|
| 803 |
</motion.div>
|
| 804 |
))}
|
| 805 |
</div>
|
|
|
|
| 798 |
confirmingDelete={pendingDeleteId === classroom.id}
|
| 799 |
onConfirmDelete={() => confirmDelete(classroom.id)}
|
| 800 |
onCancelDelete={() => setPendingDeleteId(null)}
|
| 801 |
+
onClick={() => navigate(`/classroom/${classroom.id}`)} />
|
|
|
|
| 802 |
</motion.div>
|
| 803 |
))}
|
| 804 |
</div>
|
src/sharp.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Stub for sharp — server-only module, not available in browser
|
| 2 |
+
declare module 'sharp' {
|
| 3 |
+
const sharp: any;
|
| 4 |
+
export default sharp;
|
| 5 |
+
}
|
tsconfig.app.json
CHANGED
|
@@ -30,5 +30,9 @@
|
|
| 30 |
"noUnusedParameters": false,
|
| 31 |
"noFallthroughCasesInSwitch": true
|
| 32 |
},
|
| 33 |
-
"include": ["src"]
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
}
|
|
|
|
| 30 |
"noUnusedParameters": false,
|
| 31 |
"noFallthroughCasesInSwitch": true
|
| 32 |
},
|
| 33 |
+
"include": ["src"],
|
| 34 |
+
"exclude": [
|
| 35 |
+
"src/api-routes/**",
|
| 36 |
+
"src/lib/server/**"
|
| 37 |
+
]
|
| 38 |
}
|