Add Content, Model, and Story models with text processing and AI model configuration utilities
- Implement `Content` model for converting Tiptap raw data into HTML and plain text. - Add `Model` for storing and managing AI model configurations with pricing and metadata. - Introduce `Story` model to handle verbal styles and linguistic properties for diverse narrative structures. - Update `book.repository.ts` to refine `updateBookBasicInformation` and `insertNewPlotPoint` methods, removing unused parameters and optimizing queries.
This commit is contained in:
11
electron/database/models/EpubStyle.ts
Executable file
11
electron/database/models/EpubStyle.ts
Executable file
@@ -0,0 +1,11 @@
|
||||
export const mainStyle = `h1 {
|
||||
font-size: 24px !important;
|
||||
font-weight: bold !important;
|
||||
text-indent: 24px !important;
|
||||
}
|
||||
p {
|
||||
text-indent: 30px !important;
|
||||
margin-top: 0.7em !important;
|
||||
margin-bottom: 0.7em !important;
|
||||
text-align: justify !important;
|
||||
}`
|
||||
Reference in New Issue
Block a user