From f18cdc0fe9497b475945227ff8adf5bd1838bd50 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Sun, 13 Sep 2020 20:04:34 +0200 Subject: [PATCH] v1.1.3 --- .gitignore | 1 - build/scripts/changelog.js | 32 ----------------------------- package.json | 3 +-- src/changelog.json | 1 + src/shared/NewUpdate.svelte | 41 +++++++++++++++++++++++++------------ 5 files changed, 30 insertions(+), 48 deletions(-) delete mode 100644 build/scripts/changelog.js create mode 100644 src/changelog.json diff --git a/.gitignore b/.gitignore index b8ff350d..96113306 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,6 @@ public/bundle.* dist/ public/service-worker.js src/licenses.json -src/changelog.json public/precache-manifest.* public/workbox-* public/fonts/* diff --git a/build/scripts/changelog.js b/build/scripts/changelog.js deleted file mode 100644 index be8e6de0..00000000 --- a/build/scripts/changelog.js +++ /dev/null @@ -1,32 +0,0 @@ -const fs = require("fs"); -const path = require("path"); -const fetch = require("node-fetch"); -const pkg = require("../../package.json"); - -const version = pkg.version; -const tag = `v${version}`; -const url = `https://api.github.com/repos/torstendittmann/omniawrite/releases/tags/${tag}`; - -const getChangelog = async () => { - const response = await fetch(url); - if (!response.ok) { - createChangelog({ - changes: false - }); - return; - } - const release = await response.json(); - createChangelog({ - changes: true, - name: release.name, - body: release.body - }) -}; - -const createChangelog = changelog => { - const data = JSON.stringify(changelog); - const file = path.resolve("src", "changelog.json"); - fs.writeFileSync(file, data); -}; - -getChangelog(); \ No newline at end of file diff --git a/package.json b/package.json index 7ab7272e..212684c9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "omniawrite", - "version": "1.1.2", + "version": "1.1.3", "main": "./src/electron.js", "author": { "name": "OmniaWrite", @@ -65,7 +65,6 @@ "electron": "run-s build pure-electron", "svelte-build": "cross-env NODE_ENV=production webpack", "prepare:license": "license-checker --exclude \"MIT\" --json --customPath ./src/licenses.json > ./src/licenses.json", - "prepare:changelog": "node ./build/scripts/changelog.js", "pure-electron": "electron .", "cap:sync": "cap sync", "lint": "eslint src/", diff --git a/src/changelog.json b/src/changelog.json new file mode 100644 index 00000000..88eab826 --- /dev/null +++ b/src/changelog.json @@ -0,0 +1 @@ +{ "changes": false } diff --git a/src/shared/NewUpdate.svelte b/src/shared/NewUpdate.svelte index 639df363..f7097f5d 100644 --- a/src/shared/NewUpdate.svelte +++ b/src/shared/NewUpdate.svelte @@ -1,23 +1,38 @@

{$_('common.update.title')}

- {#await changelog} - - {:then data} - {#if data.changes} -

{data.name}

- {@html data.body} - {:else}{$_('common.update.noChangelog')}{/if} - {/await} +

+ After a lot of work from contributions from the community we are happy to + release a major update to OmniaWrite. +

+ +

📖 Revised Export

+

+ Export has been completely revised. You now can select from different + templates for eBooks that will be extended with more templates. +

+ +

✍ New Editor

+

+ The editor received was completely re-built with speed and performance in + mind. +

+

+ Additionally the cards shown in the editor were moved to its own window + found at the top toolbar. +

+ +

📱 Matured mobile

+

+ The mobile version will have the same functionality as the desktop one from + now. +

+ + And much more...