1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 12:07:19 +00:00

GitHub Saver: Fix ServerURL name

This commit is contained in:
Jermolene 2019-04-16 10:15:58 +01:00
parent 25c0ebb523
commit 0a5c826816
3 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ Saving/Hint: Settings used for saving the entire TiddlyWiki as a single file via
Saving/GitHub/Branch: Target branch for saving (defaults to `master`) Saving/GitHub/Branch: Target branch for saving (defaults to `master`)
Saving/GitHub/Caption: ~GitHub Saver Saving/GitHub/Caption: ~GitHub Saver
Saving/GitHub/Description: These settings are only used when saving to ~GitHub Saving/GitHub/Description: These settings are only used when saving to ~GitHub
Saving/GitHub/URL: Server URL (defaults to `https://api.github.com`) Saving/GitHub/ServerURL: Server URL (defaults to `https://api.github.com`)
Saving/GitHub/Filename: Filename of target file (e.g. `index.html`) Saving/GitHub/Filename: Filename of target file (e.g. `index.html`)
Saving/GitHub/Password: Password, OAUTH token, or personal access token Saving/GitHub/Password: Password, OAUTH token, or personal access token
Saving/GitHub/Path: Path to target file (e.g. `/wiki/`) Saving/GitHub/Path: Path to target file (e.g. `/wiki/`)

View File

@ -29,7 +29,7 @@ GitHubSaver.prototype.save = function(text,method,callback) {
path = this.wiki.getTiddlerText("$:/GitHub/Path"), path = this.wiki.getTiddlerText("$:/GitHub/Path"),
filename = this.wiki.getTiddlerText("$:/GitHub/Filename"), filename = this.wiki.getTiddlerText("$:/GitHub/Filename"),
branch = this.wiki.getTiddlerText("$:/GitHub/Branch") || "master", branch = this.wiki.getTiddlerText("$:/GitHub/Branch") || "master",
endpoint = this.wiki.getTiddlerText("$:/GitHub/Url") || "https://api.github.com", endpoint = this.wiki.getTiddlerText("$:/GitHub/ServerURL") || "https://api.github.com",
headers = { headers = {
"Accept": "application/vnd.github.v3+json", "Accept": "application/vnd.github.v3+json",
"Content-Type": "application/json;charset=UTF-8", "Content-Type": "application/json;charset=UTF-8",

View File

@ -12,4 +12,4 @@ caption: {{$:/language/ControlPanel/Saving/GitHub/Caption}}
|<<lingo Branch>> |<$edit-text tiddler="$:/GitHub/Branch" default="" tag="input"/> | |<<lingo Branch>> |<$edit-text tiddler="$:/GitHub/Branch" default="" tag="input"/> |
|<<lingo Path>> |<$edit-text tiddler="$:/GitHub/Path" default="" tag="input"/> | |<<lingo Path>> |<$edit-text tiddler="$:/GitHub/Path" default="" tag="input"/> |
|<<lingo Filename>> |<$edit-text tiddler="$:/GitHub/Filename" default="" tag="input"/> | |<<lingo Filename>> |<$edit-text tiddler="$:/GitHub/Filename" default="" tag="input"/> |
|<<lingo Url>> |<$edit-text tiddler="$:/GitHub/Url" default="" tag="input"/> | |<<lingo ServerURL>> |<$edit-text tiddler="$:/GitHub/ServerURL" default="" tag="input"/> |