aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/GPTPopup
diff options
context:
space:
mode:
authoralyssaf16 <alyssa_feinberg@brown.edu>2024-05-17 13:18:40 -0400
committeralyssaf16 <alyssa_feinberg@brown.edu>2024-05-17 13:18:40 -0400
commit5ff0bef5d3c4825aa7210a26c98aae3b24f4a835 (patch)
tree9c08c1631f8aa59d1ca1073b7064228061ff5a83 /src/client/views/pdf/GPTPopup
parent3fb9eada221670022aa575c72fb89103638c3cbd (diff)
chatcards, quizcards, and ai flashcards
Diffstat (limited to 'src/client/views/pdf/GPTPopup')
-rw-r--r--src/client/views/pdf/GPTPopup/GPTPopup.tsx45
1 files changed, 0 insertions, 45 deletions
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<GPTPopupProps> {
_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<GPTPopupProps> {
}
};
- // 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<GPTPopupProps> {
);
};
- 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;
- // <ComparisonBox/>
- const newDoc = Docs.Create.TextDocument('Hello there');
- this.addDoc?.(newDoc);
- };
-
data = () => {
return (
<div style={{ display: 'flex', flexDirection: 'column', gap: '1rem' }}>