-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set root API URL in the Settings app; other fixes
This allows me to publish the app to the App Store and let others point it to their locally-hosted instances of the server. Note that storing the settings in the Settings app means they are stored in UserDefaults, which is why I use `@AppStorage` to access them. Other changes include: - Providing a button to jump to settings when the root API URL is unset - update the API to expect a CreateFileResult upon creating new files, instead of the FileSummary that it used to return. I also provided a convenience function to convert CreateFileResult to FileSummary - Support branches named 'master' as well as 'main' - Allow insecure (i.e., HTTP) connections, trusting that users will only use them over a VPN
- Loading branch information
Showing
10 changed files
with
89 additions
and
11 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
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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>StringsTable</key> | ||
<string>Root</string> | ||
<key>PreferenceSpecifiers</key> | ||
<array> | ||
<dict> | ||
<key>Type</key> | ||
<string>PSTextFieldSpecifier</string> | ||
<key>Title</key> | ||
<string>API URL</string> | ||
<key>Key</key> | ||
<string>api_url</string> | ||
<key>IsSecure</key> | ||
<false/> | ||
<key>KeyboardType</key> | ||
<string>URL</string> | ||
<key>AutocapitalizationType</key> | ||
<string>None</string> | ||
<key>AutocorrectionType</key> | ||
<string>No</string> | ||
</dict> | ||
</array> | ||
</dict> | ||
</plist> |
Binary file not shown.
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