diff options
| author | bobzel <zzzman@gmail.com> | 2024-05-15 07:31:10 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-05-15 07:31:10 -0400 |
| commit | 8c4e20892671946012d28a1db78a2ac63bb369fc (patch) | |
| tree | 369ad9b06cc88720cc72a5ff7c971e4e685b69a4 /src/client/views/collections/collectionFreeForm | |
| parent | 9e40cc8cf9e6ebbe44fa0f600fb1b134d14cd827 (diff) | |
removing console logs, unused code and text color changing
Diffstat (limited to 'src/client/views/collections/collectionFreeForm')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormPannableContents.tsx | 2 | ||||
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | 41 |
2 files changed, 0 insertions, 43 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormPannableContents.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormPannableContents.tsx index a140dd4b1..69cbae86f 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormPannableContents.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormPannableContents.tsx @@ -40,8 +40,6 @@ export class CollectionFreeFormPannableContents extends React.Component<Collecti ); render() { - console.log('transofmr', this.props.transform()); - console.log('transition', this.props.transition); return ( <div className={'collectionfreeformview' + (this.props.viewDefDivClick ? '-viewDef' : '-none')} diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index 88fe10bfd..45edeafb6 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -1658,44 +1658,6 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection } }; - printDoc = (doc: Doc) => { - console.log('Printing keys'); - Object.keys(doc).forEach(key => { - console.log(key, ':', doc[key]); - }); - }; - - @action - openProperties = () => { - SettingsManager.Instance.propertiesWidth = 300; - }; - - choosePath(url: URL) { - if (!url?.href) return ''; - const lower = url.href.toLowerCase(); - if (url.protocol === 'data') return url.href; - if (url.href.indexOf(window.location.origin) === -1 && url.href.indexOf('dashblobstore') === -1) return Utils.CorsProxy(url.href); - if (!/\.(png|jpg|jpeg|gif|webp)$/.test(lower)) return `/assets/unknown-file-icon-hi.png`; - - const ext = extname(url.href); - return url.href.replace(ext, '_m' + ext); - } - - @action - smartLayout = async () => {}; - - roundToRoundNumber = (num: number) => { - return Math.round(num / 10) * 10; - }; - - // gpt layout - @action - gptLayout = async () => {}; - - // gpt styling - @action - gptStyling = async () => {}; - onContextMenu = (e: React.MouseEvent) => { if (this._props.isAnnotationOverlay || !ContextMenu.Instance) return; @@ -1725,9 +1687,6 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection optionItems.push({ description: (this._showAnimTimeline ? 'Close' : 'Open') + ' Animation Timeline', event: action(() => (this._showAnimTimeline = !this._showAnimTimeline)), icon: 'eye' }); this._props.renderDepth && optionItems.push({ description: 'Use Background Color as Default', event: () => (Cast(Doc.UserDoc().emptyCollection, Doc, null).backgroundColor = StrCast(this.layoutDoc.backgroundColor)), icon: 'palette' }); this._props.renderDepth && optionItems.push({ description: 'Fit Content Once', event: this.fitContentOnce, icon: 'object-group' }); - // Want to condense into a Smart Organize button - this._props.renderDepth && optionItems.push({ description: 'Style with AI', event: this.gptStyling, icon: 'paint-brush' }); - this._props.renderDepth && optionItems.push({ description: 'Smart Layout', event: this.gptLayout, icon: 'object-group' }); // this._props.renderDepth && optionItems.push({ description: 'Smart Organize', event: this.smartOrganize, icon: 'object-group' }); if (!Doc.noviceMode) { optionItems.push({ description: (!Doc.NativeWidth(this.layoutDoc) || !Doc.NativeHeight(this.layoutDoc) ? 'Freeze' : 'Unfreeze') + ' Aspect', event: this.toggleNativeDimensions, icon: 'snowflake' }); |
