MCPcopy Create free account

hub / github.com/aomukai/Writingway2 / functions

Functions422 in github.com/aomukai/Writingway2

FunctioncheckForUpdates
()
src/app.js:523
FunctionclearCache
* Clear the template cache
src/template-loader.js:62
FunctionclearUpdate
* Clear staged update * @returns {Promise<boolean>}
src/update-checker.js:123
FunctionclearWorkshopSession
(index)
src/app.js:1450
FunctionclearWorkshopSession
(app, index)
src/modules/workshop.js:81
FunctioncloseBackupSettings
()
src/app.js:2321
FunctioncloseCompendium
()
src/app.js:1429
FunctioncloseCompendium
* Close the compendium panel with unsaved changes guard * @param {Object} app - Alpine app instance
src/modules/compendium-manager.js:133
FunctioncloseRestoreModal
()
src/app.js:2415
FunctionconfirmExport
()
src/app.js:1266
FunctionconfirmRemoveCompImage
()
src/app.js:1413
FunctionconfirmRemoveCompImage
* Confirm and remove image from current entry * @param {Object} app - Alpine app instance
src/modules/compendium-manager.js:415
FunctionconvertQtHtmlToClean
* Convert Qt HTML format to clean HTML
src/w1-importer.js:285
FunctioncountWords
* Count words in HTML content
src/w1-importer.js:328
FunctioncountWords
(text)
src/app.js:2204
FunctioncountWords
* Count words in text (strips HTML tags) * @param {string} text - Text to count words in * @returns {number} Word count
src/modules/editor.js:13
FunctioncreateAppState
* 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
FunctioncreateChapter
()
src/app.js:1621
FunctioncreateChapter
* Create a new chapter * @param {Object} app - Alpine app instance * @param {string} chapterName - Name for the new chapter
src/modules/chapter-manager.js:21
FunctioncreateCompendiumEntry
(category)
src/app.js:1395
FunctioncreateCompendiumEntry
* Create a new compendium entry (with unsaved changes guard) * @param {Object} app - Alpine app instance * @param {string} category
src/modules/compendium-manager.js:260
FunctioncreateDefaultScene
()
src/app.js:1117
FunctioncreateDefaultScene
* Create a default chapter and scene for a new project * @param {Object} app - Alpine app instance
src/modules/project-manager.js:46
FunctioncreateEntry
(projectId, { category = 'lore', title = '', body = '', tags = [] } = {})
src/compendium.js:5
FunctioncreateNewSession
* Initialize a new workshop chat session * @param {Object} app - Alpine app instance (optional, used for counting)
src/workshop.js:11
FunctioncreateProject
()
src/app.js:1113
FunctioncreateProject
* 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
FunctioncreatePrompt
(app, category)
src/prompts.js:20
FunctioncreatePrompt
(category)
src/app.js:1456
FunctioncreateScene
()
src/app.js:1609
FunctioncreateScene
* 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
FunctioncreateWorkshopSession
()
src/app.js:1448
FunctioncreateWorkshopSession
(app)
src/modules/workshop.js:65
FunctioncurrentSceneWords
()
src/app.js:19
FunctioncurrentSceneWords
()
src/state/app-state.js:306
FunctiondeleteChapter
(chapterId)
src/app.js:1653
FunctiondeleteChapter
* 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
FunctiondeleteCompendiumEntry
(id)
src/app.js:1416
FunctiondeleteCompendiumEntry
* Delete a compendium entry * @param {Object} app - Alpine app instance * @param {string} id - Entry ID to delete
src/modules/compendium-manager.js:428
FunctiondeleteEntry
(id)
src/compendium.js:19
FunctiondeleteProject
(projectId)
src/app.js:1152
FunctiondeleteProject
* 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
FunctiondeletePrompt
(app, id)
src/prompts.js:70
FunctiondeletePrompt
(id)
src/app.js:1474
FunctiondeleteScene
(sceneId)
src/app.js:1641
FunctiondeleteScene
* 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
FunctiondeleteWorkshopSession
(index)
src/app.js:1452
FunctiondeleteWorkshopSession
(app, index)
src/modules/workshop.js:114
Functiondestroy
()
src/modules/tab-sync.js:425
FunctiondiscardAndProceedCompendium
()
src/app.js:1435
FunctiondiscardAndProceedCompendium
* Handle "Leave without saving" button in unsaved changes modal * @param {Object} app - Alpine app instance
src/modules/compendium-manager.js:113
FunctiondiscardGeneration
()
src/app.js:2188
FunctiondiscardRewrite
()
src/app.js:377
FunctiondiscardRewrite
* Discard the rewrite and close the modal * @param {Object} app - Alpine app instance
src/modules/editor.js:274
FunctiondismissExportReminder
()
src/app.js:1344
FunctiondismissLlamaSetupWizard
()
src/app.js:437
Methoddo_GET
Handle GET requests.
tools/updater-server.py:190
Methoddo_GET
(self)
tools/writingway-server.py:323
Methoddo_OPTIONS
Handle CORS preflight requests.
tools/updater-server.py:182
Methoddo_POST
Handle POST requests.
tools/updater-server.py:200
Methoddo_POST
(self)
tools/writingway-server.py:347
FunctiondownloadUpdate
* Download update via the updater service * @returns {Promise<{success: boolean, message: string}>}
src/update-checker.js:97
FunctionescapeHtml
* Helper: Escape HTML special characters
src/modules/project-manager.js:833
FunctionexecutePendingCompendiumAction
* Execute the pending compendium action after save/discard * @param {Object} app - Alpine app instance
src/modules/compendium-manager.js:73
Functionexport
(projectId)
src/compendium.js:56
FunctionexportAsEpub
* Export current project as EPUB * @param {Object} app - Alpine app instance
src/modules/project-manager.js:625
FunctionexportAsHtml
* Export current project as HTML file * @param {Object} app - Alpine app instance
src/modules/project-manager.js:497
FunctionexportAsTxt
* Export current project as a single plain text file * @param {Object} app - Alpine app instance
src/modules/project-manager.js:433
FunctionexportAsZip
* Export current project as a ZIP file with organized folder structure * @param {Object} app - Alpine app instance
src/modules/project-manager.js:359
FunctionexportProject
()
src/app.js:1250
FunctionexportProject
* 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
FunctionexportProjectData
(app)
src/modules/github-backup.js:94
FunctionexportPrompts
(app)
src/prompts.js:150
FunctionexportPrompts
()
src/app.js:1513
FunctionexportWorkshopSession
(index)
src/app.js:1451
FunctionexportWorkshopSession
(app, index)
src/modules/workshop.js:89
FunctionextractContext
* 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
FunctionfetchProviderModels
()
src/app.js:506
FunctionfetchProviderModels
* Fetch available models from the current provider * @param {Object} app - Alpine app instance
src/modules/ai-settings.js:13
FunctionfetchRuntimeInfo
()
src/app.js:382
FunctiongenerateChatName
* 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
FunctiongenerateFromBeat
* Generate prose from beat input * @param {Object} app - Alpine app instance
src/generation.js:593
FunctiongenerateFromBeat
()
src/app.js:2246
FunctiongenerateUUID
* Helper: Generate a simple UUID v4
src/modules/project-manager.js:842
FunctiongetAllCompendiumEntries
()
src/app.js:1385
FunctiongetAllTags
()
src/app.js:977
FunctiongetCompendiumTags
()
src/app.js:994
FunctiongetConversationHistory
* Get conversation history based on fidelity mode * @param {Object} session - The current chat session * @param {string} mode - The fidelity
src/workshop.js:190
FunctiongetDefaultVoice
* Find best default voice (prefer English, neural if available) * @returns {SpeechSynthesisVoice|null} Best voice or null
src/tts.js:22
FunctiongetEntry
(id)
src/compendium.js:23
FunctiongetTextareaSelectionCoords
* Compute selection coordinates inside a textarea by mirroring styles into a hidden div * @param {HTMLTextAreaElement} textarea - The textare
src/modules/editor.js:74
FunctiongetVoices
* Get list of available voices * @returns {Array} Array of available voice objects
src/tts.js:14
FunctionguardCompendiumAction
* 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
FunctionhandleAutoReplace
(event)
src/app.js:2214
FunctionhandleAutoReplace
* Handle auto-replacement of -- to em dash * @param {Object} app - Alpine app instance * @param {Event} event - Input event
src/modules/editor.js:49
FunctionhandleDownload
* Handle download button click * @param {Object} app - Alpine app instance
src/update-checker.js:161
FunctionhandlePaste
(e)
src/app.js:1720
FunctionhandleRewriteButtonClick
()
src/app.js:357
FunctionhandleRewriteButtonClick
* Handle clicks on the floating Rewrite button: open modal with selected text * @param {Object} app - Alpine app instance
src/modules/editor.js:128
FunctionhandleSceneSearch
(query)
src/app.js:1874
← previousnext →101–200 of 422, ranked by callers