Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aomukai/Writingway2
/ functions
Functions
422 in github.com/aomukai/Writingway2
⨍
Functions
422
◇
Types & classes
2
Function
checkForUpdates
()
src/app.js:523
Function
clearCache
* Clear the template cache
src/template-loader.js:62
Function
clearUpdate
* Clear staged update * @returns {Promise<boolean>}
src/update-checker.js:123
Function
clearWorkshopSession
(index)
src/app.js:1450
Function
clearWorkshopSession
(app, index)
src/modules/workshop.js:81
Function
closeBackupSettings
()
src/app.js:2321
Function
closeCompendium
()
src/app.js:1429
Function
closeCompendium
* Close the compendium panel with unsaved changes guard * @param {Object} app - Alpine app instance
src/modules/compendium-manager.js:133
Function
closeRestoreModal
()
src/app.js:2415
Function
confirmExport
()
src/app.js:1266
Function
confirmRemoveCompImage
()
src/app.js:1413
Function
confirmRemoveCompImage
* Confirm and remove image from current entry * @param {Object} app - Alpine app instance
src/modules/compendium-manager.js:415
Function
convertQtHtmlToClean
* Convert Qt HTML format to clean HTML
src/w1-importer.js:285
Function
countWords
* Count words in HTML content
src/w1-importer.js:328
Function
countWords
(text)
src/app.js:2204
Function
countWords
* Count words in text (strips HTML tags) * @param {string} text - Text to count words in * @returns {number} Word count
src/modules/editor.js:13
Function
createAppState
* App State Factory * Creates the initial state structure for the Alpine.js app * Organizes all reactive properties by feature/domain
src/state/app-state.js:7
Function
createChapter
()
src/app.js:1621
Function
createChapter
* Create a new chapter * @param {Object} app - Alpine app instance * @param {string} chapterName - Name for the new chapter
src/modules/chapter-manager.js:21
Function
createCompendiumEntry
(category)
src/app.js:1395
Function
createCompendiumEntry
* Create a new compendium entry (with unsaved changes guard) * @param {Object} app - Alpine app instance * @param {string} category
src/modules/compendium-manager.js:260
Function
createDefaultScene
()
src/app.js:1117
Function
createDefaultScene
* Create a default chapter and scene for a new project * @param {Object} app - Alpine app instance
src/modules/project-manager.js:46
Function
createEntry
(projectId, { category = 'lore', title = '', body = '', tags = [] } = {})
src/compendium.js:5
Function
createNewSession
* Initialize a new workshop chat session * @param {Object} app - Alpine app instance (optional, used for counting)
src/workshop.js:11
Function
createProject
()
src/app.js:1113
Function
createProject
* Create a new project with a default chapter and scene * @param {Object} app - Alpine app instance * @param {string} projectName -
src/modules/project-manager.js:10
Function
createPrompt
(app, category)
src/prompts.js:20
Function
createPrompt
(category)
src/app.js:1456
Function
createScene
()
src/app.js:1609
Function
createScene
* Create a new scene in the current or first chapter * @param {Object} app - Alpine app instance * @param {string} sceneName - Name
src/modules/scene-manager.js:19
Function
createWorkshopSession
()
src/app.js:1448
Function
createWorkshopSession
(app)
src/modules/workshop.js:65
Function
currentSceneWords
()
src/app.js:19
Function
currentSceneWords
()
src/state/app-state.js:306
Function
deleteChapter
(chapterId)
src/app.js:1653
Function
deleteChapter
* Delete a chapter and handle its scenes * Moves scenes to adjacent chapter or deletes them if no target exists * @param {Object} ap
src/modules/chapter-manager.js:88
Function
deleteCompendiumEntry
(id)
src/app.js:1416
Function
deleteCompendiumEntry
* Delete a compendium entry * @param {Object} app - Alpine app instance * @param {string} id - Entry ID to delete
src/modules/compendium-manager.js:428
Function
deleteEntry
(id)
src/compendium.js:19
Function
deleteProject
(projectId)
src/app.js:1152
Function
deleteProject
* Delete a project and all its associated data * @param {Object} app - Alpine app instance * @param {string} projectId - ID of proje
src/modules/project-manager.js:279
Function
deletePrompt
(app, id)
src/prompts.js:70
Function
deletePrompt
(id)
src/app.js:1474
Function
deleteScene
(sceneId)
src/app.js:1641
Function
deleteScene
* Delete a scene and its content * @param {Object} app - Alpine app instance * @param {string} sceneId - ID of scene to delete
src/modules/scene-manager.js:203
Function
deleteWorkshopSession
(index)
src/app.js:1452
Function
deleteWorkshopSession
(app, index)
src/modules/workshop.js:114
Function
destroy
()
src/modules/tab-sync.js:425
Function
discardAndProceedCompendium
()
src/app.js:1435
Function
discardAndProceedCompendium
* Handle "Leave without saving" button in unsaved changes modal * @param {Object} app - Alpine app instance
src/modules/compendium-manager.js:113
Function
discardGeneration
()
src/app.js:2188
Function
discardRewrite
()
src/app.js:377
Function
discardRewrite
* Discard the rewrite and close the modal * @param {Object} app - Alpine app instance
src/modules/editor.js:274
Function
dismissExportReminder
()
src/app.js:1344
Function
dismissLlamaSetupWizard
()
src/app.js:437
Method
do_GET
Handle GET requests.
tools/updater-server.py:190
Method
do_GET
(self)
tools/writingway-server.py:323
Method
do_OPTIONS
Handle CORS preflight requests.
tools/updater-server.py:182
Method
do_POST
Handle POST requests.
tools/updater-server.py:200
Method
do_POST
(self)
tools/writingway-server.py:347
Function
downloadUpdate
* Download update via the updater service * @returns {Promise<{success: boolean, message: string}>}
src/update-checker.js:97
Function
escapeHtml
* Helper: Escape HTML special characters
src/modules/project-manager.js:833
Function
executePendingCompendiumAction
* Execute the pending compendium action after save/discard * @param {Object} app - Alpine app instance
src/modules/compendium-manager.js:73
Function
export
(projectId)
src/compendium.js:56
Function
exportAsEpub
* Export current project as EPUB * @param {Object} app - Alpine app instance
src/modules/project-manager.js:625
Function
exportAsHtml
* Export current project as HTML file * @param {Object} app - Alpine app instance
src/modules/project-manager.js:497
Function
exportAsTxt
* Export current project as a single plain text file * @param {Object} app - Alpine app instance
src/modules/project-manager.js:433
Function
exportAsZip
* Export current project as a ZIP file with organized folder structure * @param {Object} app - Alpine app instance
src/modules/project-manager.js:359
Function
exportProject
()
src/app.js:1250
Function
exportProject
* Export the current project as a ZIP file containing scenes (Markdown), metadata, and compendium * @param {Object} app - Alpine app instance
src/modules/project-manager.js:855
Function
exportProjectData
(app)
src/modules/github-backup.js:94
Function
exportPrompts
(app)
src/prompts.js:150
Function
exportPrompts
()
src/app.js:1513
Function
exportWorkshopSession
(index)
src/app.js:1451
Function
exportWorkshopSession
(app, index)
src/modules/workshop.js:89
Function
extractContext
* Extract context from @mentions and #hashtags in the message * Uses same format as beat mentions: @[Title] and #[Title] * @param {Object} a
src/workshop.js:71
Function
fetchProviderModels
()
src/app.js:506
Function
fetchProviderModels
* Fetch available models from the current provider * @param {Object} app - Alpine app instance
src/modules/ai-settings.js:13
Function
fetchRuntimeInfo
()
src/app.js:382
Function
generateChatName
* Generate a short, descriptive name for a chat session based on its first message * @param {Object} app - Alpine app instance * @param {str
src/workshop.js:568
Function
generateFromBeat
* Generate prose from beat input * @param {Object} app - Alpine app instance
src/generation.js:593
Function
generateFromBeat
()
src/app.js:2246
Function
generateUUID
* Helper: Generate a simple UUID v4
src/modules/project-manager.js:842
Function
getAllCompendiumEntries
()
src/app.js:1385
Function
getAllTags
()
src/app.js:977
Function
getCompendiumTags
()
src/app.js:994
Function
getConversationHistory
* Get conversation history based on fidelity mode * @param {Object} session - The current chat session * @param {string} mode - The fidelity
src/workshop.js:190
Function
getDefaultVoice
* Find best default voice (prefer English, neural if available) * @returns {SpeechSynthesisVoice|null} Best voice or null
src/tts.js:22
Function
getEntry
(id)
src/compendium.js:23
Function
getTextareaSelectionCoords
* Compute selection coordinates inside a textarea by mirroring styles into a hidden div * @param {HTMLTextAreaElement} textarea - The textare
src/modules/editor.js:74
Function
getVoices
* Get list of available voices * @returns {Array} Array of available voice objects
src/tts.js:14
Function
guardCompendiumAction
* Guard wrapper: checks for unsaved changes before executing an action * If dirty, shows confirmation modal and stores pending action
src/modules/compendium-manager.js:60
Function
handleAutoReplace
(event)
src/app.js:2214
Function
handleAutoReplace
* Handle auto-replacement of -- to em dash * @param {Object} app - Alpine app instance * @param {Event} event - Input event
src/modules/editor.js:49
Function
handleDownload
* Handle download button click * @param {Object} app - Alpine app instance
src/update-checker.js:161
Function
handlePaste
(e)
src/app.js:1720
Function
handleRewriteButtonClick
()
src/app.js:357
Function
handleRewriteButtonClick
* Handle clicks on the floating Rewrite button: open modal with selected text * @param {Object} app - Alpine app instance
src/modules/editor.js:128
Function
handleSceneSearch
(query)
src/app.js:1874
← previous
next →
101–200 of 422, ranked by callers