From e683927b544accfb6a4ca4cbd221c4321fa353f2 Mon Sep 17 00:00:00 2001 From: sillyguodong Date: Tue, 13 Aug 2024 12:03:20 +0800 Subject: [PATCH 1/5] fix: the component of access token not mounted --- webpack.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index 838fb51f4361a..32bd87c009561 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -258,6 +258,9 @@ export default { }, resolve: { symlinks: false, + alias: { + 'vue$': 'vue/dist/vue.esm-bundler.js', + }, }, watchOptions: { ignored: [ From 7596a497f475d4cdbc542f264cb4c74cd8def9d7 Mon Sep 17 00:00:00 2001 From: sillyguodong Date: Wed, 14 Aug 2024 17:24:17 +0800 Subject: [PATCH 2/5] Revert "fix: the component of access token not mounted" This reverts commit e683927b544accfb6a4ca4cbd221c4321fa353f2. --- webpack.config.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 32bd87c009561..838fb51f4361a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -258,9 +258,6 @@ export default { }, resolve: { symlinks: false, - alias: { - 'vue$': 'vue/dist/vue.esm-bundler.js', - }, }, watchOptions: { ignored: [ From ba52d01b3458d8b5c5aa4d3f14928fed9ec5eb09 Mon Sep 17 00:00:00 2001 From: sillyguodong Date: Wed, 14 Aug 2024 18:00:55 +0800 Subject: [PATCH 3/5] fix: do not import createApp in sfc file --- templates/user/settings/applications.tmpl | 13 ++++++------ .../components/ScopedAccessTokenSelector.vue | 15 +++++++------- web_src/js/features/scoped-access-token.ts | 20 +++++++++++++++++++ web_src/js/index.ts | 2 +- 4 files changed, 34 insertions(+), 16 deletions(-) create mode 100644 web_src/js/features/scoped-access-token.ts diff --git a/templates/user/settings/applications.tmpl b/templates/user/settings/applications.tmpl index 3c1934dd8b471..706c96db59028 100644 --- a/templates/user/settings/applications.tmpl +++ b/templates/user/settings/applications.tmpl @@ -77,13 +77,12 @@

{{ctx.Locale.Tr "settings.access_token_desc" (HTMLFormat `href="%s/api/swagger" target="_blank"` AppSubUrl) (`href="https://docs.gitea.com/development/oauth2-provider#scopes" target="_blank"`|SafeHTML)}}

-
- +