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:
parent
cb8c2dab74
commit
4d10d75003
@ -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, '');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -362,6 +362,8 @@ export const CCTranscriptionPanel: React.FC = () => {
|
||||
</button>
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
|
||||
{/* Export button */}
|
||||
{activeSession && (
|
||||
<>
|
||||
@ -416,8 +418,6 @@ export const CCTranscriptionPanel: React.FC = () => {
|
||||
</>
|
||||
)}
|
||||
|
||||
)}
|
||||
|
||||
{/* Summary result display */}
|
||||
{summaryText && (
|
||||
<>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import Close from '@mui/icons-material/Close';
|
||||
import { useTranscriptionStore, LLMConfig } from '../../stores/transcriptionStore';
|
||||
import { useTranscriptionStore, LLMConfig } from '../../../../../stores/transcriptionStore';
|
||||
|
||||
const PROVIDERS = [
|
||||
{ value: 'openai', label: 'OpenAI' },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user