Browse Source

1.0.0

master
morethanwords 3 years ago
parent
commit
2186c66d27
  1. 6
      .env
  2. 9
      CHANGELOG.md
  3. 17
      src/scripts/generate_changelog.js

6
.env

@ -1,5 +1,5 @@
API_ID=1025907 API_ID=1025907
API_HASH=452b0359b988148995f22ff0f4229750 API_HASH=452b0359b988148995f22ff0f4229750
VERSION=0.9.2 VERSION=1.0.0
VERSION_FULL=0.9.2 (35) VERSION_FULL=1.0.0 (36)
BUILD=35 BUILD=36

9
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) ### 0.9.2 (32)
* Flexible forwarding options: hide the sender name or media captions from messages. * 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. * The ‘Choosing a Sticker’ user status now appears in chats and the chat list.

17
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 writeTo = `./public/changelogs/{VERSION}.md`;
const splitted = text.split('\n\n'); const separator = '### ';
const splitted = text.split(separator);
splitted.forEach(text => { splitted.forEach(text => {
if(!text.trim()) return;
text = separator + text;
text = text.replace(/^\*/gm, '•'); 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(); const firstLine = splitted.shift();
fs.writeFileSync(writeTo.replace('{VERSION}', firstLine.substr(4)), splitted.join('\n') + '\n'); fs.writeFileSync(writeTo.replace('{VERSION}', firstLine.substr(4)), splitted.join('\n') + '\n');
}); });

Loading…
Cancel
Save