Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6790bb01d3 | ||
|
|
131f3f70e1 | ||
|
|
b551e0c1b5 | ||
|
|
c65c0aa258 | ||
|
|
1f0030b514 |
@@ -4,7 +4,7 @@ This is yet another unofficial sync plugin for Obsidian. If you like it or find
|
|||||||
|
|
||||||
[](https://github.com/fyears/remotely-save/actions/workflows/auto-build.yml)
|
[](https://github.com/fyears/remotely-save/actions/workflows/auto-build.yml)
|
||||||
|
|
||||||
[](https://github.com/fyears/remotely-save/releases) [](https://github.com/fyears/remotely-save/releases) [](https://github.com/fyears/remotely-save/releases)
|
[](https://github.com/fyears/remotely-save/releases)
|
||||||
|
|
||||||
## Disclaimer
|
## Disclaimer
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "remotely-save",
|
"id": "remotely-save",
|
||||||
"name": "Remotely Save",
|
"name": "Remotely Save",
|
||||||
"version": "0.2.9",
|
"version": "0.2.10",
|
||||||
"minAppVersion": "0.12.15",
|
"minAppVersion": "0.12.15",
|
||||||
"description": "Yet another unofficial plugin allowing users to synchronize notes between local device and the cloud service.",
|
"description": "Yet another unofficial plugin allowing users to synchronize notes between local device and the cloud service.",
|
||||||
"author": "fyears",
|
"author": "fyears",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "remotely-save",
|
"name": "remotely-save",
|
||||||
"version": "0.2.9",
|
"version": "0.2.10",
|
||||||
"description": "This is yet another sync plugin for Obsidian app.",
|
"description": "This is yet another sync plugin for Obsidian app.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "node esbuild.config.mjs",
|
"dev": "node esbuild.config.mjs",
|
||||||
|
|||||||
+13
-3
@@ -18,10 +18,14 @@ interface MessyConfigType {
|
|||||||
* this should accept the result after loadData();
|
* this should accept the result after loadData();
|
||||||
*/
|
*/
|
||||||
export const messyConfigToNormal = (
|
export const messyConfigToNormal = (
|
||||||
x: MessyConfigType | RemotelySavePluginSettings
|
x: MessyConfigType | RemotelySavePluginSettings | null | undefined
|
||||||
): RemotelySavePluginSettings => {
|
): RemotelySavePluginSettings | null | undefined => {
|
||||||
log.debug("loading, original config on disk:");
|
log.debug("loading, original config on disk:");
|
||||||
log.debug(x);
|
log.debug(x);
|
||||||
|
if (x === null || x === undefined) {
|
||||||
|
log.debug("the messy config is null or undefined, skip");
|
||||||
|
return x as any;
|
||||||
|
}
|
||||||
if ("readme" in x && "d" in x) {
|
if ("readme" in x && "d" in x) {
|
||||||
// we should decode
|
// we should decode
|
||||||
const y = JSON.parse(
|
const y = JSON.parse(
|
||||||
@@ -45,7 +49,13 @@ export const messyConfigToNormal = (
|
|||||||
/**
|
/**
|
||||||
* this should accept the result of original config
|
* this should accept the result of original config
|
||||||
*/
|
*/
|
||||||
export const normalConfigToMessy = (x: RemotelySavePluginSettings) => {
|
export const normalConfigToMessy = (
|
||||||
|
x: RemotelySavePluginSettings | null | undefined
|
||||||
|
) => {
|
||||||
|
if (x === null || x === undefined) {
|
||||||
|
log.debug("the normal config is null or undefined, skip");
|
||||||
|
return x;
|
||||||
|
}
|
||||||
const y = {
|
const y = {
|
||||||
readme: DEFAULT_README,
|
readme: DEFAULT_README,
|
||||||
d: reverseString(
|
d: reverseString(
|
||||||
|
|||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"0.2.9": "0.12.15"
|
"0.2.10": "0.12.15"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user