aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-08-21 10:58:00 -0400
committerbobzel <zzzman@gmail.com>2024-08-21 10:58:00 -0400
commitb3327f8e1a4245110822b8aa8c331f32f93bb8f5 (patch)
tree2e7fbef3a26d600f53c1beca7a5d049adf8d01d4 /src/client/documents
parent77aa0be0ee4a5375544dbea65a4636d8487cd0fc (diff)
parent166d40bd856b85bd4bbde9f9ffe2c1ec0fb648d5 (diff)
Merge branch 'master' into keanu-comments
Diffstat (limited to 'src/client/documents')
-rw-r--r--src/client/documents/DocUtils.ts3
-rw-r--r--src/client/documents/Documents.ts4
2 files changed, 2 insertions, 5 deletions
diff --git a/src/client/documents/DocUtils.ts b/src/client/documents/DocUtils.ts
index 0168e0a3b..30b71a09b 100644
--- a/src/client/documents/DocUtils.ts
+++ b/src/client/documents/DocUtils.ts
@@ -40,7 +40,6 @@ const { DFLT_IMAGE_NATIVE_DIM } = require('../views/global/globalCssVariables.mo
const defaultNativeImageDim = Number(DFLT_IMAGE_NATIVE_DIM.replace('px', ''));
-// eslint-disable-next-line @typescript-eslint/no-namespace
export namespace DocUtils {
function matchFieldValue(doc: Doc, key: string, valueIn: unknown): boolean {
let value = valueIn;
@@ -467,7 +466,7 @@ export namespace DocUtils {
.concat(userTypes)
.concat(clickFuncs)
.map(btnDoc => (btnDoc.dragFactory as Doc) || btnDoc)
- .filter(doc => doc.isTemplateDoc);
+ .filter(d => d.isTemplateDoc);
// bcz: this is hacky -- want to have different templates be applied depending on the "type" of a document. but type is not reliable and there could be other types of template searches so this should be generalized
// first try to find a template that matches the specific document type (<typeName>_<templateName>). otherwise, fallback to a general match on <templateName>
!docLayoutTemplate &&
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 9ce465538..6b5469cca 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -494,9 +494,7 @@ export class DocumentOptions {
export const DocOptions = new DocumentOptions();
-// eslint-disable-next-line @typescript-eslint/no-namespace
export namespace Docs {
- // eslint-disable-next-line @typescript-eslint/no-namespace
export namespace Prototypes {
type LayoutSource = { LayoutString: (key: string) => string };
type PrototypeTemplate = {
@@ -654,7 +652,7 @@ export namespace Docs {
* Encapsulates the factory used to create new document instances
* delegated from top-level prototypes
*/
- // eslint-disable-next-line @typescript-eslint/no-namespace
+
export namespace Create {
/**
* This function receives the relevant document prototype and uses