Browse Source

Bump to 0.5.3

master
Igor Zhukov 8 years ago
parent
commit
0125cb9a1f
  1. 2
      app/js/app.js
  2. 2
      app/js/background.js
  3. 2
      app/js/controllers.js
  4. 2
      app/js/directives.js
  5. 2
      app/js/directives_mobile.js
  6. 2
      app/js/filters.js
  7. 1
      app/js/init.js
  8. 2
      app/js/lib/bin_utils.js
  9. 5
      app/js/lib/config.js
  10. 2
      app/js/lib/crypto_worker.js
  11. 2
      app/js/lib/mtproto.js
  12. 9
      app/js/lib/mtproto_wrapper.js
  13. 16
      app/js/lib/ng_utils.js
  14. 2
      app/js/lib/tl_utils.js
  15. 2
      app/js/lib/utils.js
  16. 2
      app/js/message_composer.js
  17. 2
      app/js/messages_manager.js
  18. 2
      app/js/services.js
  19. 19
      app/less/app.less
  20. 2
      app/manifest.json
  21. 2
      app/manifest.webapp
  22. 14
      app/partials/desktop/changelog_modal.html
  23. 18
      app/partials/mobile/changelog_modal.html
  24. 2
      package.json

2
app/js/app.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.5.2 - messaging web application for MTProto
* Webogram v0.5.3 - messaging web application for MTProto
* https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE

2
app/js/background.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.5.2 - messaging web application for MTProto
* Webogram v0.5.3 - messaging web application for MTProto
* https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE

2
app/js/controllers.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.5.2 - messaging web application for MTProto
* Webogram v0.5.3 - messaging web application for MTProto
* https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE

2
app/js/directives.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.5.2 - messaging web application for MTProto
* Webogram v0.5.3 - messaging web application for MTProto
* https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE

2
app/js/directives_mobile.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.5.2 - messaging web application for MTProto
* Webogram v0.5.3 - messaging web application for MTProto
* https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE

2
app/js/filters.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.5.2 - messaging web application for MTProto
* Webogram v0.5.3 - messaging web application for MTProto
* https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE

1
app/js/init.js

@ -65,6 +65,7 @@ @@ -65,6 +65,7 @@
(function initApplication () {
var classes = [
Config.Navigator.osX ? 'osx' : 'non_osx',
Config.Navigator.msie ? 'msie' : 'non_msie',
Config.Navigator.retina ? 'is_2x' : 'is_1x'
];
if (Config.Modes.ios_standalone) {

2
app/js/lib/bin_utils.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.5.2 - messaging web application for MTProto
* Webogram v0.5.3 - messaging web application for MTProto
* https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE

5
app/js/lib/config.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.5.2 - messaging web application for MTProto
* Webogram v0.5.3 - messaging web application for MTProto
* https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE
@ -21,7 +21,7 @@ Config = window.Config || {}; @@ -21,7 +21,7 @@ Config = window.Config || {};
Config.App = {
id: 2496,
hash: '8da85b0d5bfe62527e5b244c209159c3',
version: '0.5.2',
version: '0.5.3',
domains: ['web.telegram.org', 'zhukov.github.io']
};
@ -44,6 +44,7 @@ Config.Modes = { @@ -44,6 +44,7 @@ Config.Modes = {
Config.Navigator = {
osX: (navigator.platform || '').toLowerCase().indexOf('mac') != -1 ||
(navigator.userAgent || '').toLowerCase().indexOf('mac') != -1,
msie: (navigator.userAgent || '').search(/MSIE | Trident\/|Edge\//) != -1,
retina: window.devicePixelRatio > 1,
ffos: navigator.userAgent.search(/mobi.+Gecko/i) != -1,
ffos2p: navigator.userAgent.search(/mobi.+Gecko\/[34567]/i) != -1,

2
app/js/lib/crypto_worker.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.5.2 - messaging web application for MTProto
* Webogram v0.5.3 - messaging web application for MTProto
* https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE

2
app/js/lib/mtproto.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.5.2 - messaging web application for MTProto
* Webogram v0.5.3 - messaging web application for MTProto
* https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE

9
app/js/lib/mtproto_wrapper.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.5.2 - messaging web application for MTProto
* Webogram v0.5.3 - messaging web application for MTProto
* https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE
@ -487,14 +487,14 @@ angular.module('izhukov.mtproto.wrapper', ['izhukov.utils', 'izhukov.mtproto']) @@ -487,14 +487,14 @@ angular.module('izhukov.mtproto.wrapper', ['izhukov.utils', 'izhukov.mtproto'])
}
}
// console.log(dT(), 'Dload file', dcID, location, size);
console.log(dT(), 'Dload file', dcID, location, size);
var fileName = getFileName(location),
toFileEntry = options.toFileEntry || null,
cachedPromise = cachedSavePromises[fileName] || cachedDownloadPromises[fileName];
var fileStorage = getFileStorage();
// console.log(dT(), 'fs', fileStorage, fileName, cachedPromise);
console.log(dT(), 'fs', fileStorage.name, fileName, cachedPromise);
if (cachedPromise) {
if (toFileEntry) {
@ -520,7 +520,9 @@ angular.module('izhukov.mtproto.wrapper', ['izhukov.utils', 'izhukov.mtproto']) @@ -520,7 +520,9 @@ angular.module('izhukov.mtproto.wrapper', ['izhukov.utils', 'izhukov.mtproto'])
};
console.log(dT(), 'fs get file', fileName, size);
fileStorage.getFile(fileName, size).then(function (blob) {
console.log(dT(), 'fs got file', fileName, size);
if (toFileEntry) {
FileManager.copy(blob, toFileEntry).then(function () {
deferred.resolve();
@ -529,6 +531,7 @@ angular.module('izhukov.mtproto.wrapper', ['izhukov.utils', 'izhukov.mtproto']) @@ -529,6 +531,7 @@ angular.module('izhukov.mtproto.wrapper', ['izhukov.utils', 'izhukov.mtproto'])
deferred.resolve(cachedDownloads[fileName] = blob);
}
}, function () {
console.log(dT(), 'fs fail file', fileName, size);
var fileWriterPromise = toFileEntry ? FileManager.getFileWriter(toFileEntry) : fileStorage.getFileWriter(fileName, mimeType);
var processDownloaded = function (bytes) {

16
app/js/lib/ng_utils.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.5.2 - messaging web application for MTProto
* Webogram v0.5.3 - messaging web application for MTProto
* https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE
@ -375,11 +375,20 @@ angular.module('izhukov.utils', []) @@ -375,11 +375,20 @@ angular.module('izhukov.utils', [])
throw new Exception();
}
} catch (error) {
console.error('error opening db', error.message);
storageIsAvailable = false;
return $q.reject(error);
}
var finished = false;
setTimeout(function () {
if (!finished) {
request.onerror({type: 'IDB_CREATE_TIMEOUT'});
}
}, 3000);
request.onsuccess = function (event) {
finished = true;
db = request.result;
db.onerror = function (error) {
@ -392,12 +401,14 @@ angular.module('izhukov.utils', []) @@ -392,12 +401,14 @@ angular.module('izhukov.utils', [])
};
request.onerror = function (event) {
finished = true;
storageIsAvailable = false;
console.error('Error creating/accessing IndexedDB database', event);
deferred.reject(event);
}
request.onupgradeneeded = function (event) {
finished = true;
console.warn('performing idb upgrade from', event.oldVersion, 'to', event.newVersion);
var db = event.target.result;
if (event.oldVersion == 1) {
@ -550,6 +561,7 @@ angular.module('izhukov.utils', []) @@ -550,6 +561,7 @@ angular.module('izhukov.utils', [])
openDatabase();
return {
name: 'IndexedDB',
isAvailable: isAvailable,
saveFile: saveFile,
getFile: getFile,
@ -650,6 +662,7 @@ angular.module('izhukov.utils', []) @@ -650,6 +662,7 @@ angular.module('izhukov.utils', [])
requestFS();
return {
name: 'TmpFS',
isAvailable: isAvailable,
saveFile: saveFile,
getFile: getFile,
@ -684,6 +697,7 @@ angular.module('izhukov.utils', []) @@ -684,6 +697,7 @@ angular.module('izhukov.utils', [])
}
return {
name: 'Memory',
isAvailable: isAvailable,
saveFile: saveFile,
getFile: getFile,

2
app/js/lib/tl_utils.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.5.2 - messaging web application for MTProto
* Webogram v0.5.3 - messaging web application for MTProto
* https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE

2
app/js/lib/utils.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.5.2 - messaging web application for MTProto
* Webogram v0.5.3 - messaging web application for MTProto
* https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE

2
app/js/message_composer.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.5.2 - messaging web application for MTProto
* Webogram v0.5.3 - messaging web application for MTProto
* https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE

2
app/js/messages_manager.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.5.2 - messaging web application for MTProto
* Webogram v0.5.3 - messaging web application for MTProto
* https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE

2
app/js/services.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.5.2 - messaging web application for MTProto
* Webogram v0.5.3 - messaging web application for MTProto
* https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE

19
app/less/app.less

@ -2805,21 +2805,30 @@ img.img_fullsize { @@ -2805,21 +2805,30 @@ img.img_fullsize {
.composer_emoji_tooltip_tabs_wrap {
height: 275px;
width: 284px;
position: relative;
overflow: hidden;
}
.composer_emoji_tooltip_tabs_contents {
position: absolute;
// width: 200%;
width: 568px;
.transform(translate3d(0,0,0));
transition: transform ease-in-out 0.2s;
.composer_emoji_tooltip_tabs_stickers_active & {
.non_msie & {
transition: transform ease-in-out 0.2s;
.transform(translate3d(0,0,0));
}
.non_msie .composer_emoji_tooltip_tabs_stickers_active & {
.transform(translate3d(-284px,0,0));
}
.msie & {
margin-left: 0;
transition: margin-left ease-in-out 0.2s;
}
.msie .composer_emoji_tooltip_tabs_stickers_active & {
margin-left: -284px;
}
}
.composer_emoji_tooltip_tab_emoji_content,
.composer_emoji_tooltip_tab_stickers_content {

2
app/manifest.json

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
{
"name": "Telegram",
"description": "Telegram Web App.\nMore info & source code here: https://github.com/zhukov/webogram",
"version": "0.5.2",
"version": "0.5.3",
"short_name": "Telegram",
"manifest_version": 2,
"app": {

2
app/manifest.webapp

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
{
"name": "Telegram",
"description": "Telegram Web App.\nMore info & source code here: https://github.com/zhukov/webogram",
"version": "0.5.2",
"version": "0.5.3",
"type": "privileged",
"launch_path": "/index.html",
"developer": {

14
app/partials/desktop/changelog_modal.html

@ -31,6 +31,20 @@ @@ -31,6 +31,20 @@
<div class="md_modal_sections">
<div class="md_modal_versioned_section_wrap" ng-if="canShowVersion('0.5.3')">
<div class="md_modal_section_version">0.5.3</div>
<div class="md_modal_section_description changelog_version_changes">
<ul class="list-unstyled changelog_version_changes_list">
<li>Inline bots: A new way to add bot content to any chat. Type a bot's username and your query in the text field to get instant results and send them to your chat partner. Try typing <code>@gif dog</code> in your next chat. Sample bots: @gif, @wiki, @bing, @vid, @bold.</li>
<li>Check out the <a href="https://telegram.org/blog/inline-bots" target="_blank">Telegram Blog</a> for more info.</li>
<li>Improved GIFs: 20x faster sending and downloading, nice animated progress</li>
<li>Click on message date to reply (or to forward from channels).</li>
<li>Preview images before sending when pasting from clipboard.</li>
<li>Improved formatting for copy-pasted history fragments (date, time and sender names inserted automatically).</li>
</ul>
</div>
</div>
<div class="md_modal_versioned_section_wrap" ng-if="canShowVersion('0.5.2')">
<div class="md_modal_section_version">0.5.2</div>
<div class="md_modal_section_description changelog_version_changes">

18
app/partials/mobile/changelog_modal.html

@ -19,9 +19,25 @@ @@ -19,9 +19,25 @@
<div class="modal_section changelog_version_wrap">
<h3 class="modal_section_header changelog_version_title">
Version 0.5.2
Version 0.5.3
<span class="pull-right" my-i18n="changelog_modal_title_current_version"></span>
</h3>
<div class="modal_section_body changelog_version_changes">
<ul class="list-unstyled changelog_version_changes_list">
<li>Inline bots: A new way to add bot content to any chat. Type a bot's username and your query in the text field to get instant results and send them to your chat partner. Try typing <code>@gif dog</code> in your next chat. Sample bots: @gif, @wiki, @bing, @vid, @bold.</li>
<li>Check out the <a href="https://telegram.org/blog/inline-bots" target="_blank">Telegram Blog</a> for more info.</li>
<li>Improved GIFs: 20x faster sending and downloading, nice animated progress</li>
<li>Click on message date to reply (or to forward from channels).</li>
<li>Preview images before sending when pasting from clipboard.</li>
<li>Improved formatting for copy-pasted history fragments (date, time and sender names inserted automatically).</li>
</ul>
</div>
</div>
<div class="modal_section changelog_version_wrap">
<h3 class="modal_section_header changelog_version_title">
Version 0.5.2
</h3>
<div class="modal_section_body changelog_version_changes">
<ul class="list-unstyled changelog_version_changes_list">
<li>Unread counters for muted chats now colored in gray.</li>

2
package.json

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
{
"name": "Telegram",
"description": "Telegram Web App.\nMore info & source code here: https://github.com/zhukov/webogram",
"version": "0.5.2",
"version": "0.5.3",
"main": "app/index.html",
"single-instance": true,
"dom_storage_quota": 40,

Loading…
Cancel
Save