mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-04-28 11:58:35 +00:00
### Improved
- Some JWT notes have been added to the setting dialogue (#742). ### Fixed - No longer wrong values encoded into the QR code. - We can acknowledge why the QR codes have not been generated. ### Refactored - Some dependencies have been updated. - Internal functions have been modularised into `octagonal-wheels` packages and are well tested. - Fixed importing from the parent project in library codes. (#729).
This commit is contained in:
@@ -77,6 +77,9 @@ export class ModuleSetupObsidian extends AbstractObsidianModule {
|
||||
async encodeQR() {
|
||||
const settingString = encodeSettingsToQRCodeData(this.settings);
|
||||
const codeSVG = encodeQR(settingString, OutputFormat.SVG);
|
||||
if (codeSVG == "") {
|
||||
return "";
|
||||
}
|
||||
const msg = $msg("Setup.QRCode", { qr_image: codeSVG });
|
||||
await this.core.confirm.confirmWithMessage("Settings QR Code", msg, ["OK"], "OK");
|
||||
return await Promise.resolve(codeSVG);
|
||||
|
||||
@@ -243,6 +243,10 @@
|
||||
disabled={!isUseJWT}
|
||||
></textarea>
|
||||
</InputRow>
|
||||
<InfoNote>
|
||||
For HS256/HS512 algorithms, provide the shared secret key. For ES256/ES512 algorithms, provide the pkcs8
|
||||
PEM-formatted private key.
|
||||
</InfoNote>
|
||||
<InputRow label="JWT Key ID (kid)">
|
||||
<input
|
||||
type="text"
|
||||
|
||||
Reference in New Issue
Block a user