From 3e47823707ac723ea4e9bd196f8d4f03abc7e96f Mon Sep 17 00:00:00 2001 From: kjimlau Date: Sat, 2 Oct 2021 15:04:44 +0800 Subject: [PATCH] feat: footer --- .../popup/{settings => footer}/ex-import.ts | 0 .../renderer/popup/footer/index.vue | 106 ++++++++++++++++++ src/content-scripts/renderer/popup/index.vue | 38 +++++-- .../renderer/popup/note-book/index.vue | 10 +- .../renderer/popup/note-book/note-list.vue | 89 +++++++++------ .../renderer/popup/note-book/note.vue | 1 + .../renderer/popup/settings/index.vue | 56 --------- src/utils/constant.ts | 7 +- todo.md | 1 + 9 files changed, 205 insertions(+), 103 deletions(-) rename src/content-scripts/renderer/popup/{settings => footer}/ex-import.ts (100%) create mode 100644 src/content-scripts/renderer/popup/footer/index.vue delete mode 100644 src/content-scripts/renderer/popup/settings/index.vue diff --git a/src/content-scripts/renderer/popup/settings/ex-import.ts b/src/content-scripts/renderer/popup/footer/ex-import.ts similarity index 100% rename from src/content-scripts/renderer/popup/settings/ex-import.ts rename to src/content-scripts/renderer/popup/footer/ex-import.ts diff --git a/src/content-scripts/renderer/popup/footer/index.vue b/src/content-scripts/renderer/popup/footer/index.vue new file mode 100644 index 0000000..7c04a48 --- /dev/null +++ b/src/content-scripts/renderer/popup/footer/index.vue @@ -0,0 +1,106 @@ + + + + + diff --git a/src/content-scripts/renderer/popup/index.vue b/src/content-scripts/renderer/popup/index.vue index 0e3b534..7bdc33a 100644 --- a/src/content-scripts/renderer/popup/index.vue +++ b/src/content-scripts/renderer/popup/index.vue @@ -1,30 +1,41 @@ - - diff --git a/src/utils/constant.ts b/src/utils/constant.ts index 38ab1f9..d56c206 100644 --- a/src/utils/constant.ts +++ b/src/utils/constant.ts @@ -5,5 +5,10 @@ export enum StorageKeys { export const DOMATTR_RECT_GROUP = "note-id"; -export const PREFIX_RECT = 'rect' +export const PREFIX_RECT = "rect"; export const PREFIX_RECT_GROUP = "note"; // use "note" as group prefix as rects belong to note + +export enum AppWidth { + normal = 500, + expanded = 1500, +} diff --git a/todo.md b/todo.md index d778d15..ecc0ec8 100644 --- a/todo.md +++ b/todo.md @@ -1,6 +1,7 @@ - [ ] export/import notes' data by json - [x] export - [ ] import +- [ ] expand the notes - [ ] more precise rects selection rather than coor (select the real dom by text) - [ ] screenshot features - https://javascript.plainenglish.io/a-better-alternative-to-html2canvas-in-vuejs-3-e0686755d56e \ No newline at end of file