mirror of
https://github.com/miniflux/v2.git
synced 2025-08-26 18:21:01 +00:00
Add Notion integration
This commit is contained in:
parent
06c37a132f
commit
bfb4fc1c36
28 changed files with 229 additions and 6 deletions
|
@ -31,6 +31,9 @@ type IntegrationForm struct {
|
|||
WallabagClientSecret string
|
||||
WallabagUsername string
|
||||
WallabagPassword string
|
||||
NotionEnabled bool
|
||||
NotionPageID string
|
||||
NotionToken string
|
||||
NunuxKeeperEnabled bool
|
||||
NunuxKeeperURL string
|
||||
NunuxKeeperAPIKey string
|
||||
|
@ -76,6 +79,9 @@ func (i IntegrationForm) Merge(integration *model.Integration) {
|
|||
integration.WallabagClientSecret = i.WallabagClientSecret
|
||||
integration.WallabagUsername = i.WallabagUsername
|
||||
integration.WallabagPassword = i.WallabagPassword
|
||||
integration.NotionEnabled = i.NotionEnabled
|
||||
integration.NotionPageID = i.NotionPageID
|
||||
integration.NotionToken = i.NotionToken
|
||||
integration.NunuxKeeperEnabled = i.NunuxKeeperEnabled
|
||||
integration.NunuxKeeperURL = i.NunuxKeeperURL
|
||||
integration.NunuxKeeperAPIKey = i.NunuxKeeperAPIKey
|
||||
|
@ -124,6 +130,9 @@ func NewIntegrationForm(r *http.Request) *IntegrationForm {
|
|||
WallabagClientSecret: r.FormValue("wallabag_client_secret"),
|
||||
WallabagUsername: r.FormValue("wallabag_username"),
|
||||
WallabagPassword: r.FormValue("wallabag_password"),
|
||||
NotionEnabled: r.FormValue("notion_enabled") == "1",
|
||||
NotionPageID: r.FormValue("notion_page_id"),
|
||||
NotionToken: r.FormValue("notion_token"),
|
||||
NunuxKeeperEnabled: r.FormValue("nunux_keeper_enabled") == "1",
|
||||
NunuxKeeperURL: r.FormValue("nunux_keeper_url"),
|
||||
NunuxKeeperAPIKey: r.FormValue("nunux_keeper_api_key"),
|
||||
|
|
|
@ -46,6 +46,9 @@ func (h *handler) showIntegrationPage(w http.ResponseWriter, r *http.Request) {
|
|||
WallabagClientSecret: integration.WallabagClientSecret,
|
||||
WallabagUsername: integration.WallabagUsername,
|
||||
WallabagPassword: integration.WallabagPassword,
|
||||
NotionEnabled: integration.NotionEnabled,
|
||||
NotionPageID: integration.NotionPageID,
|
||||
NotionToken: integration.NotionToken,
|
||||
NunuxKeeperEnabled: integration.NunuxKeeperEnabled,
|
||||
NunuxKeeperURL: integration.NunuxKeeperURL,
|
||||
NunuxKeeperAPIKey: integration.NunuxKeeperAPIKey,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue