Compare commits

...
5 Commits
Author SHA1 Message Date
fyears 6790bb01d3 jump to 0.2.10 2022-01-06 18:38:57 +08:00
fyears 131f3f70e1 fix format 2022-01-06 18:38:35 +08:00
fyears b551e0c1b5 fix config 2022-01-06 18:38:18 +08:00
fyears c65c0aa258 finally add total downloads 2022-01-06 01:48:18 +08:00
fyears 1f0030b514 add stats for 0.2.9 2022-01-05 10:08:36 +08:00
5 changed files with 17 additions and 7 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ This is yet another unofficial sync plugin for Obsidian. If you like it or find
[![BuildCI](https://github.com/fyears/remotely-save/actions/workflows/auto-build.yml/badge.svg)](https://github.com/fyears/remotely-save/actions/workflows/auto-build.yml)
[![Latest release: 0.2.7)](https://img.shields.io/github/downloads/fyears/remotely-save/0.2.7/main.js?sort=semver)](https://github.com/fyears/remotely-save/releases) [![Old release: 0.2.6)](https://img.shields.io/github/downloads/fyears/remotely-save/0.2.6/main.js?sort=semver)](https://github.com/fyears/remotely-save/releases) [![Old release: 0.2.5)](https://img.shields.io/github/downloads/fyears/remotely-save/0.2.5/main.js)](https://github.com/fyears/remotely-save/releases)
[![total downloads auto count)](https://remotely-save.github.io/auto-download-stats/totalDownloads.svg)](https://github.com/fyears/remotely-save/releases)
## Disclaimer
+1 -1
View File
@@ -1,7 +1,7 @@
{
"id": "remotely-save",
"name": "Remotely Save",
"version": "0.2.9",
"version": "0.2.10",
"minAppVersion": "0.12.15",
"description": "Yet another unofficial plugin allowing users to synchronize notes between local device and the cloud service.",
"author": "fyears",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "remotely-save",
"version": "0.2.9",
"version": "0.2.10",
"description": "This is yet another sync plugin for Obsidian app.",
"scripts": {
"dev": "node esbuild.config.mjs",
+13 -3
View File
@@ -18,10 +18,14 @@ interface MessyConfigType {
* this should accept the result after loadData();
*/
export const messyConfigToNormal = (
x: MessyConfigType | RemotelySavePluginSettings
): RemotelySavePluginSettings => {
x: MessyConfigType | RemotelySavePluginSettings | null | undefined
): RemotelySavePluginSettings | null | undefined => {
log.debug("loading, original config on disk:");
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) {
// we should decode
const y = JSON.parse(
@@ -45,7 +49,13 @@ export const messyConfigToNormal = (
/**
* 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 = {
readme: DEFAULT_README,
d: reverseString(
+1 -1
View File
@@ -1,3 +1,3 @@
{
"0.2.9": "0.12.15"
"0.2.10": "0.12.15"
}