From 2186c66d2758ae14e5a3b30f19fbc5a07a11842b Mon Sep 17 00:00:00 2001 From: morethanwords Date: Sat, 11 Dec 2021 21:22:24 +0400 Subject: [PATCH] 1.0.0 --- .env | 6 +++--- CHANGELOG.md | 9 +++++++++ src/scripts/generate_changelog.js | 17 +++++++++++++++-- 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/.env b/.env index 98586e79..9a00c072 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ API_ID=1025907 API_HASH=452b0359b988148995f22ff0f4229750 -VERSION=0.9.2 -VERSION_FULL=0.9.2 (35) -BUILD=35 +VERSION=1.0.0 +VERSION_FULL=1.0.0 (36) +BUILD=36 diff --git a/CHANGELOG.md b/CHANGELOG.md index c302088c..f77660f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +### 1.0.0 (36) +An early version of Video Chats is available in all groups and channels – with a polished design exclusively for Web: + +* Expand to view your video chats in fullscreen. +* Try the wide mode, which shows video feeds side-by-side. +* Resize and place the video layout on any part of the screen. +* Minimize the window and the app will remember its precious size and position. +* Mute or leave the video chat from the interactive header. + ### 0.9.2 (32) * Flexible forwarding options: hide the sender name or media captions from messages. * The ‘Choosing a Sticker’ user status now appears in chats and the chat list. diff --git a/src/scripts/generate_changelog.js b/src/scripts/generate_changelog.js index fd18bc53..5883a0c3 100644 --- a/src/scripts/generate_changelog.js +++ b/src/scripts/generate_changelog.js @@ -11,10 +11,23 @@ const text = fs.readFileSync('./CHANGELOG.md').toString('utf-8'); const writeTo = `./public/changelogs/{VERSION}.md`; -const splitted = text.split('\n\n'); +const separator = '### '; +const splitted = text.split(separator); splitted.forEach(text => { + if(!text.trim()) return; + text = separator + text; text = text.replace(/^\*/gm, '•'); - const splitted = text.split('\n').filter(line => !!line.trim()); + const splitted = text.split('\n'); + + for(let i = splitted.length - 1; i >= 0; --i) { + const line = splitted[i]; + if(!line.trim()) { + splitted.splice(i, 1); + } else { + break; + } + } + const firstLine = splitted.shift(); fs.writeFileSync(writeTo.replace('{VERSION}', firstLine.substr(4)), splitted.join('\n') + '\n'); });