generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6018daa
commit 5d9b037
Showing
7 changed files
with
129 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,5 @@ data.json | |
|
||
# Exclude macOS Finder (System Explorer) View States | ||
.DS_Store | ||
.cred.json | ||
.token.json |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ export function draw_settingtab(settingTab) { | |
containerEl.empty(); | ||
containerEl.createEl('h2', { text: 'Setup Google OAuth settings' }); | ||
new Setting(containerEl) | ||
.setName('Path of Credential File') | ||
.setName('Credential Content') | ||
.setDesc('Absolut Path to credential file, the file can be placed outside of vault. But addtional permission is required. (on macOS)') | ||
.addText(text => text | ||
.setPlaceholder('Enter the path') | ||
|
@@ -24,6 +24,17 @@ export function draw_settingtab(settingTab) { | |
}); | ||
}); | ||
|
||
new Setting(containerEl) | ||
.setName("Gmail Account") | ||
.setDesc('email account to fetch mails') | ||
.addText(text => text | ||
.setPlaceholder('[email protected]') | ||
.setValue(plugin.settings.mail_account) | ||
.onChange(async (value) => { | ||
plugin.settings.mail_account = value; | ||
await plugin.saveSettings(); | ||
})); | ||
|
||
new Setting(containerEl) | ||
.setName('>> Mail from label') | ||
.setDesc('Labels to fetched from Gmail').addDropdown( | ||
|