mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-03 15:43:11 +08:00
Add comprehensive command and skill reference documentation in Chinese
- Created a new document for command and skill references, detailing orchestrator commands, workflow session commands, issue workflow commands, IDAW commands, with-file workflows, cycle workflows, CLI commands, memory commands, team skills, workflow skills, utility skills, and Codex capabilities. - Added a comparison table for workflows, outlining their best uses, levels, self-containment, and automatic chaining behavior.
This commit is contained in:
@@ -8,32 +8,14 @@ import 'xterm/css/xterm.css'
|
||||
import { loadMessagesForLocale, getInitialLocale } from './lib/i18n'
|
||||
import { logWebVitals } from './lib/webVitals'
|
||||
|
||||
/**
|
||||
* Initialize CSRF token by fetching from backend
|
||||
* This ensures the CSRF cookie is set before any mutating API calls
|
||||
*/
|
||||
async function initCsrfToken() {
|
||||
try {
|
||||
// Fetch CSRF token from backend - this sets the XSRF-TOKEN cookie
|
||||
await fetch('/api/csrf-token', {
|
||||
method: 'GET',
|
||||
credentials: 'same-origin',
|
||||
})
|
||||
} catch (error) {
|
||||
// Log error but don't block app initialization
|
||||
console.error('Failed to initialize CSRF token:', error)
|
||||
}
|
||||
}
|
||||
|
||||
async function bootstrapApplication() {
|
||||
const rootElement = document.getElementById('root')
|
||||
if (!rootElement) throw new Error('Failed to find the root element')
|
||||
|
||||
// Parallelize CSRF token fetch and locale detection (independent operations)
|
||||
const [, locale] = await Promise.all([
|
||||
initCsrfToken(),
|
||||
getInitialLocale()
|
||||
])
|
||||
// CSRF token initialization is deferred to first mutating request
|
||||
// This eliminates network RTT from app startup path
|
||||
// See: ccw/frontend/src/lib/api.ts - fetchApi handles lazy token fetch
|
||||
const locale = await getInitialLocale()
|
||||
|
||||
// Load only the active locale's messages (lazy load secondary on demand)
|
||||
const messages = await loadMessagesForLocale(locale)
|
||||
|
||||
Reference in New Issue
Block a user