fix(cis): fix JSX syntax errors and import paths for Phase 3 build
- Fix broken template literal in transcriptionStore.ts export function - Fix broken regex in Content-Disposition parser - Fix broken character class in filename sanitization - Fix LLMConfigModal import path (5 levels up, not 6) - Export button JSX properly nested in CCTranscriptionPanel - Build now passes cleanly
This commit is contained in:
@@ -361,7 +361,7 @@ export const useTranscriptionStore = create<TranscriptionState>((set, get) => ({
|
||||
|
||||
try {
|
||||
const apiBaseUrl = import.meta.env.VITE_API_BASE || 'https://api.classroomcopilot.ai';
|
||||
const response = await fetch(`${apiBaseUrl}/transcribe/sessions/${sessionId}/export, {
|
||||
const response = await fetch(`${apiBaseUrl}/transcribe/sessions/${sessionId}/export`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
@@ -378,9 +378,9 @@ export const useTranscriptionStore = create<TranscriptionState>((set, get) => ({
|
||||
const disposition = response.headers.get('Content-Disposition');
|
||||
let filename = `transcription-export.${format}`;
|
||||
if (disposition) {
|
||||
const match = disposition.match(/filename[^;=\n]*=([(["]).*?(\2)|[^;\n]*)/);
|
||||
const match = disposition.match(/filename[*]?=['"\s]*([^;\s]*)/);
|
||||
if (match && match[1]) {
|
||||
filename = match[1].replace(/["\'\']/g, '');
|
||||
filename = match[1].replace(/["'\\]/g, '');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user