From ccb486a0b6659392d9c7a2259695a1e25d2b887d Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Sun, 20 Aug 2023 23:55:25 +0200 Subject: [PATCH] progress for file update inapp --- src/components/SignInGithub.vue | 2 +- src/components/StackedNote.vue | 34 ++++++++++++++-- src/hooks/useFile.hook.ts | 35 ++++++++++++----- src/hooks/useGitHubUpdate.hook.ts | 49 ++++++++++++++++++++++++ src/modules/note/components/EditNote.vue | 18 ++++----- src/utils/decodeBase64ToUTF8.ts | 4 ++ 6 files changed, 118 insertions(+), 24 deletions(-) create mode 100644 src/hooks/useGitHubUpdate.hook.ts diff --git a/src/components/SignInGithub.vue b/src/components/SignInGithub.vue index 232775a..0f8c24b 100644 --- a/src/components/SignInGithub.vue +++ b/src/components/SignInGithub.vue @@ -2,7 +2,7 @@ const GITHUB_URL = 'https://github.com/login/oauth/authorize' const CLIENT_ID = 'Iv1.12dc43d013ce3623' -const SCOPE = 'repo' +const SCOPE = 'repo%20workflow' const REDIRECT_URI = window.location.origin const url = new URL(GITHUB_URL) diff --git a/src/components/StackedNote.vue b/src/components/StackedNote.vue index 0b67efc..8834e42 100644 --- a/src/components/StackedNote.vue +++ b/src/components/StackedNote.vue @@ -1,7 +1,15 @@