From 97242d5cd9fbc8dc7adef0867fa70f699a48028d Mon Sep 17 00:00:00 2001
From: Wolfie <32025746+Wolfkid200444@users.noreply.github.com>
Date: Sat, 16 Mar 2024 22:32:32 -0400
Subject: [PATCH] add import/export functionality for notes
---
.../holynotes/components/modals/HelpModal.tsx | 16 +++++
src/plugins/holynotes/noteHandler.ts | 30 +++++++++
src/plugins/holynotes/utils.ts | 61 +++++++++++++++++++
3 files changed, 107 insertions(+)
diff --git a/src/plugins/holynotes/components/modals/HelpModal.tsx b/src/plugins/holynotes/components/modals/HelpModal.tsx
index cd27eedfc..f12ac5786 100644
--- a/src/plugins/holynotes/components/modals/HelpModal.tsx
+++ b/src/plugins/holynotes/components/modals/HelpModal.tsx
@@ -8,6 +8,7 @@ import { ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalProps, M
import { findByProps } from "@webpack";
import { Button, Forms, Text } from "@webpack/common";
import noteHandler from "plugins/holynotes/noteHandler";
+import { downloadNotes, uploadNotes } from "plugins/holynotes/utils";
export default ({ onClose, ...modalProps }: ModalProps & { onClose: () => void; }) => {
const { colorStatusGreen } = findByProps("colorStatusGreen");
@@ -60,6 +61,21 @@ export default ({ onClose, ...modalProps }: ModalProps & { onClose: () => void;
onClick={() => {
noteHandler.refreshAvatars();
}}>Refresh Avatars
+
+
+