From 5ff0bef5d3c4825aa7210a26c98aae3b24f4a835 Mon Sep 17 00:00:00 2001 From: alyssaf16 Date: Fri, 17 May 2024 13:18:40 -0400 Subject: chatcards, quizcards, and ai flashcards --- src/client/views/pdf/GPTPopup/GPTPopup.tsx | 45 ------------------------------ 1 file changed, 45 deletions(-) (limited to 'src/client/views/pdf/GPTPopup') diff --git a/src/client/views/pdf/GPTPopup/GPTPopup.tsx b/src/client/views/pdf/GPTPopup/GPTPopup.tsx index 32c1721ec..0b741c85e 100644 --- a/src/client/views/pdf/GPTPopup/GPTPopup.tsx +++ b/src/client/views/pdf/GPTPopup/GPTPopup.tsx @@ -144,15 +144,6 @@ export class GPTPopup extends ObservableReactComponent { _layout_autoHeight: true, }); this.addDoc(newDoc, this.sidebarId); - // const arr = [newDoc]; - // const newCol = Docs.Create.CarouselDocument(arr, { - // _width: 200, - // _height: 200, - // _layout_fitWidth: true, - // _layout_autoHeight: true, - // }); - // this.addDoc(newDoc, this.sidebarId); - // this.addDoc(newCol, this.sidebarId); const anchor = AnchorMenu.Instance?.GetAnchor(undefined, false); if (anchor) { DocUtils.MakeLink(newDoc, anchor, { @@ -161,25 +152,6 @@ export class GPTPopup extends ObservableReactComponent { } }; - // transferToFlashcard = () => { - // const senArr = this.text.split('Question'); - // const collectionArr: Doc[] = []; - // for (var i = 1; i < senArr.length; i++) { - // console.log('Arr ' + i + ': ' + senArr[i]); - // const newDoc = Docs.Create.ComparisonDocument(senArr[i], { _layout_isFlashcard: true, _width: 300, _height: 300 }); - // newDoc.text = senArr[i]; - // collectionArr.push(newDoc); - // } - // const newCol = Docs.Create.CarouselDocument(collectionArr, { - // _width: 200, - // _height: 200, - // _layout_fitWidth: true, - // _layout_autoHeight: true, - // }); - // this.addDoc(newCol, this.sidebarId); - // this.addToCollection?.(newCol); - // }; - /** * Transfers the image urls to actual image docs */ @@ -244,23 +216,6 @@ export class GPTPopup extends ObservableReactComponent { ); }; - flashcardBox = () => { - // const textArr = this.text.split("."); - // textArr.forEach(function(sentence) { - // console.log(sentence); - - // }); - // const newDoc = Docs.Create.ComparisonDocument(); - // this.addToCollection?.(newDoc); - // // const newDoc = Docs.Create.ComparisonDocument(); - // DocUtils.copyDragFactory(Doc.UserDoc().emptyFlashcard as Doc); - // // this.addToCollection?.(newDoc); - // // return newDoc; - // - const newDoc = Docs.Create.TextDocument('Hello there'); - this.addDoc?.(newDoc); - }; - data = () => { return (
-- cgit v1.2.3-70-g09d2