aboutsummaryrefslogtreecommitdiff
path: root/extension/src/features/history.ts
diff options
context:
space:
mode:
Diffstat (limited to 'extension/src/features/history.ts')
-rw-r--r--extension/src/features/history.ts42
1 files changed, 42 insertions, 0 deletions
diff --git a/extension/src/features/history.ts b/extension/src/features/history.ts
new file mode 100644
index 0000000..ff7c267
--- /dev/null
+++ b/extension/src/features/history.ts
@@ -0,0 +1,42 @@
+// Copyright (C) 2023 Vaughn Nugent
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as
+// published by the Free Software Foundation, either version 3 of the
+// License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+import { ref } from "vue";
+import { } from "./types";
+import { FeatureApi, BgRuntime, IFeatureExport } from "./framework";
+import { AppSettings } from "./settings";
+
+export interface HistoryEvent extends Object{
+
+}
+
+export interface HistoryApi extends FeatureApi{
+
+}
+
+export const useHistoryApi = () : IFeatureExport<AppSettings, HistoryApi> => {
+ return{
+ background: ({ }: BgRuntime<AppSettings>): HistoryApi =>{
+ const evHistory = ref([]);
+
+ return{ }
+ },
+ foreground: (): HistoryApi =>{
+ return { }
+ }
+ }
+}
+
+//Listen for messages \ No newline at end of file