{{ t('LabelGoogledrivesetup') }}
@@ -203,6 +232,26 @@
v-model="bookmark_file_type" />
+
{{ t('LabelBookmarksfile') }}
@@ -302,6 +351,7 @@ export default {
serverTestSuccessful: false,
loginFlowError: '',
server: 'https://',
+ branch: 'main',
username: '',
password: '',
passphrase: '',
@@ -328,6 +378,11 @@ export default {
label: this.t('LabelAdapterwebdav'),
description: this.t('DescriptionAdapterwebdav')
},
+ {
+ type: 'git',
+ label: this.t('LabelAdaptergit'),
+ description: this.t('DescriptionAdaptergit')
+ },
{
type: 'google-drive',
label: this.t('LabelAdaptergoogledrive'),
@@ -356,8 +411,9 @@ export default {
password: this.password,
enabled: this.enabled,
...(this.adapter === 'nextcloud-bookmarks' && {serverRoot: this.serverRoot}),
- ...((this.adapter === 'webdav' || this.adapter === 'google-drive') && {bookmark_file: this.bookmark_file}),
- ...((this.adapter === 'webdav' || this.adapter === 'google-drive') && {bookmark_file_type: this.bookmark_file_type}),
+ ...(this.adapter === 'git' && {branch: this.branch}),
+ ...((this.adapter === 'webdav' || this.adapter === 'google-drive' || this.adapter === 'git') && {bookmark_file: this.bookmark_file}),
+ ...((this.adapter === 'webdav' || this.adapter === 'google-drive' || this.adapter === 'git') && {bookmark_file_type: this.bookmark_file_type}),
...(this.adapter === 'google-drive' && {refreshToken: this.refreshToken}),
...(this.passphrase && {passphrase: this.passphrase}),
...(this.adapter === 'google-drive' && this.passphrase && {password: this.passphrase}),