aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgeireann <geireann.lindfield@gmail.com>2025-03-06 11:56:56 -0500
committergeireann <geireann.lindfield@gmail.com>2025-03-06 11:56:56 -0500
commitadaa107aac8558fa6f46e6ba1263c650c212d506 (patch)
tree8a33b8417b46455ae58ee30f9e00da7502249d82
parent28792ad2da9f5dfab96f98f34a11136bd1453e0f (diff)
fixed compioling functions with DateFields
-rw-r--r--src/client/util/node_modules/type_decls.d4
-rw-r--r--src/client/views/nodes/FontIconBox/FontIconBox.tsx6
2 files changed, 6 insertions, 4 deletions
diff --git a/src/client/util/node_modules/type_decls.d b/src/client/util/node_modules/type_decls.d
index 9058b4394..8605b9f5b 100644
--- a/src/client/util/node_modules/type_decls.d
+++ b/src/client/util/node_modules/type_decls.d
@@ -67,8 +67,9 @@ interface RegExp {
readonly sticky: boolean;
readonly unicode: boolean;
}
-interface Date {
+declare class Date {
now() : string;
+ constructor(date:string);
}
interface String {
codePointAt(pos: number): number | undefined;
@@ -170,6 +171,7 @@ declare class VideoField extends URLField { [Copy](): ObjectField; }
declare class ImageField extends URLField { [Copy](): ObjectField; }
declare class WebField extends URLField { [Copy](): ObjectField; }
declare class PdfField extends URLField { [Copy](): ObjectField; }
+declare class DateField extends URLField { [Copy](): ObjectField; constructor(date:Date); }
declare const ComputedField: any;
declare const CompileScript: any;
diff --git a/src/client/views/nodes/FontIconBox/FontIconBox.tsx b/src/client/views/nodes/FontIconBox/FontIconBox.tsx
index f60c83343..7e0236b74 100644
--- a/src/client/views/nodes/FontIconBox/FontIconBox.tsx
+++ b/src/client/views/nodes/FontIconBox/FontIconBox.tsx
@@ -1,11 +1,13 @@
+import { Button, ColorPicker, Dropdown, DropdownType, IconButton, IListItemProps, MultiToggle, NumberDropdown, NumberDropdownType, Popup, Size, Toggle, ToggleType, Type } from '@dash/components';
import { IconProp } from '@fortawesome/fontawesome-svg-core';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
-import { Button, ColorPicker, Dropdown, DropdownType, IconButton, IListItemProps, MultiToggle, NumberDropdown, NumberDropdownType, Popup, Size, Toggle, ToggleType, Type } from '@dash/components';
import { action, computed, makeObservable, observable } from 'mobx';
import { observer } from 'mobx-react';
import * as React from 'react';
import { ClientUtils, DashColor, returnFalse, returnTrue, setupMoveUpEvents } from '../../../../ClientUtils';
import { Doc, DocListCast, StrListCast } from '../../../../fields/Doc';
+import { InkTool } from '../../../../fields/InkField';
+import { ScriptField } from '../../../../fields/ScriptField';
import { BoolCast, DocCast, NumCast, ScriptCast, StrCast } from '../../../../fields/Types';
import { emptyFunction } from '../../../../Utils';
import { Docs } from '../../../documents/Documents';
@@ -21,8 +23,6 @@ import { FieldView, FieldViewProps } from '../FieldView';
import { OpenWhere } from '../OpenWhere';
import './FontIconBox.scss';
import TrailsIcon from './TrailsIcon';
-import { InkTool } from '../../../../fields/InkField';
-import { ScriptField } from '../../../../fields/ScriptField';
export enum ButtonType {
TextButton = 'textBtn',