Plugin: add guidance for syncserver-hosted app wiki to GettingStarted

Improves #11
This commit is contained in:
Val Packett 2023-07-29 03:11:29 -03:00
parent a910fb43ba
commit 00138061c7
2 changed files with 7 additions and 0 deletions

View file

@ -44,6 +44,12 @@ this would leave the contents of this wiki unprotected on this device/browser, a
<$reveal type="gt" state="$:/status/TiddlyPWAServerCount" text="0">
You already have a sync server configured, so your changes are automatically synchronized between local storage and the server when you are online. Enjoy!
<$reveal type="match" state="$:/status/TiddlyPWAWasLocalOnly" text="yes">
Now, it is also recommended to store the app wiki on it as well and load it from there.
That way, you could easily install plugins/themes, and setting it up on new devices would be easier. Use the
"{{$:/plugins/valpackett/tiddlypwa/save-dialog-app!!caption}}" tab in the {{$:/core/ui/Buttons/save-wiki}} menu to upload the app wiki to the sync server.
You would receive a link to load the wiki from when doing that.
</$reveal>
</$reveal>
<$reveal type="lteq" state="$:/status/TiddlyPWAServerCount" text="0">
You do not have a sync server configured, so your changes are currently only stored in this device/browser. You can

View file

@ -581,6 +581,7 @@ Formatted with `deno fmt`.
`);
askToken = false;
this.modal.setFresh();
this.wiki.addTiddler({ title: '$:/status/TiddlyPWAWasLocalOnly', text: 'yes' });
} else if (state === 'fresh') {
this.modal.setBody(`
<p>Welcome to your new synchronized wiki!</p>