aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-04-23 15:29:26 -0400
committerbobzel <zzzman@gmail.com>2025-04-23 15:29:26 -0400
commit0d758430301d934a465ea090abf41f4a596a146c (patch)
tree5104210ee6e3014f2b086da92643f5222b3cf4a2 /src/client/documents/Documents.ts
parent6be2ce925e3a0ba1e88e568ddbc57e3a272e6ff0 (diff)
fixed outpainting to get authorization for dropbox
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts63
1 files changed, 17 insertions, 46 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 2a2f9d342..e694419a4 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -526,18 +526,17 @@ export class DocumentOptions {
ai_firefly_seed?: number;
ai_firefly_prompt?: string;
- /**
- * JSON‐stringified slot configuration for ScrapbookBox
- */
- scrapbookConfig?: string;
-
- /**
- * The list of embedded Doc instances in each Scrapbook slot
- */
- scrapbookContents?: List<Doc>;
-
- _outpaintingMetadata?: STRt = new StrInfo('serialized JSON metadata needed for image outpainting', false);
+ /**
+ * JSON‐stringified slot configuration for ScrapbookBox
+ */
+ scrapbookConfig?: string;
+ /**
+ * The list of embedded Doc instances in each Scrapbook slot
+ */
+ scrapbookContents?: List<Doc>;
+
+ _outpaintingMetadata?: STRt = new StrInfo('serialized JSON metadata needed for image outpainting', false);
}
export const DocOptions = new DocumentOptions();
@@ -587,31 +586,6 @@ export namespace Docs {
options: { acl: '' },
},
],
-
- // AARAV ADD //
- [
- DocumentType.JOURNAL,
- {
- layout: { view: EmptyBox, dataField: 'text' },
- options: {
- title: 'Daily Journal',
- acl_Guest: SharingPermissions.View,
- },
- },
- ],
- // AARAV ADD //
-
- [
- DocumentType.SCRAPBOOK,
- {
- layout: { view: EmptyBox, dataField: 'text' },
- options: {
- title: 'Scrapbook',
- acl_Guest: SharingPermissions.View,
- },
-
- },
- ],
]);
const suffix = 'Proto';
@@ -944,18 +918,17 @@ export namespace Docs {
return InstanceFromProto(Prototypes.get(DocumentType.RTF), field, options, undefined, fieldKey);
}
- export function ScrapbookDocument(
- items: Doc[] = [],
- options: DocumentOptions = {},
- fieldKey: string = 'items'
- ) {
+ export function ScrapbookDocument(items: Doc[] = [], options: DocumentOptions = {}, fieldKey: string = 'items') {
return InstanceFromProto(
Prototypes.get(DocumentType.SCRAPBOOK),
new List<Doc>(items),
{
- title: options.title
- ?? new Date().toLocaleDateString(undefined, {
- year: 'numeric', month: 'short', day: 'numeric'
+ title:
+ options.title ??
+ new Date().toLocaleDateString(undefined, {
+ year: 'numeric',
+ month: 'short',
+ day: 'numeric',
}),
...options,
},
@@ -1006,8 +979,6 @@ export namespace Docs {
// AARAV ADD //
-
-
export function LinkDocument(source: Doc, target: Doc, options: DocumentOptions = {}, id?: string) {
const linkDoc = InstanceFromProto(
Prototypes.get(DocumentType.LINK),