Browse Source

merged with master

gh-pages
Igor Zhukov 11 years ago
parent
commit
2be1e2eb06
  1. 31
      app.manifest
  2. 2
      css/app.css
  3. BIN
      img/card_share.png
  4. BIN
      img/icons/DialogListGroupChatIcon@2x.png
  5. BIN
      img/icons/DialogListGroupChatIcon_Highlighted@2x.png
  6. 44
      index.html
  7. 4
      js/app.js
  8. 4
      js/lib/aes_worker.js
  9. 18
      js/lib/config.js
  10. 6
      js/lib/mtproto.js

31
app.manifest

@ -1,23 +1,17 @@
CACHE MANIFEST
# Time: Wed Mar 26 2014 17:53:30 GMT+0400 (MSK)
# Time: Wed Mar 26 2014 19:38:03 GMT+0400 (MSK)
CACHE:
favicon.ico
favicon_unread.ico
manifest.webapp
css/app.css
fonts/glyphicons-halflings-regular.eot
fonts/glyphicons-halflings-regular.svg
fonts/glyphicons-halflings-regular.ttf
fonts/glyphicons-halflings-regular.woff
img/TLogo2_1x.png
img/TLogo2_2x.png
img/TLogo_1x.png
img/Tlogo_2x.png
img/bg_tile.png
img/blank.gif
img/card_share.png
img/emojisprite_0.png
img/emojisprite_1.png
img/emojisprite_2.png
@ -26,14 +20,7 @@ img/emojisprite_4.png
img/logo_dogogram.png
img/logo_share.png
img/sound_a.wav
js/app-ee353437.js
js/background.js
js/lib/aes_worker.js
js/lib/config.js
js/lib/mtproto.js
js/lib/pq_worker.js
js/lib/sha1_worker.js
vendor/console-polyfill/console-polyfill.js
js/app.js
img/icons/Checks1_1x.png
img/icons/Checks1_2x.png
img/icons/Checks2_1x.png
@ -42,19 +29,10 @@ img/icons/CloseHover_1x.png
img/icons/CloseHover_2x.png
img/icons/Close_1x.png
img/icons/Close_2x.png
img/icons/DialogListGroupChatIcon@2x.png
img/icons/DialogListGroupChatIcon_Highlighted@2x.png
img/icons/IconsetSmiles.png
img/icons/IconsetSmiles_1x.png
img/icons/IconsetW.png
img/icons/IconsetW_1x.png
img/icons/icon120.png
img/icons/icon128.png
img/icons/icon16.png
img/icons/icon32.png
img/icons/icon60.png
img/icons/icon64.png
img/icons/icon90.png
img/placeholders/DialogListAvatarSystem@2x.png
img/placeholders/GroupAvatar1@2x.png
img/placeholders/GroupAvatar2@2x.png
@ -72,6 +50,11 @@ img/placeholders/UserAvatar7@2x.png
img/placeholders/UserAvatar8@2x.png
img/placeholders/VideoThumbConversation.gif
img/placeholders/VideoThumbModal.gif
js/lib/aes_worker.js
js/lib/mtproto.js
js/lib/pq_worker.js
js/lib/sha1_worker.js
vendor/console-polyfill/console-polyfill.js
vendor/cryptoJS/crypto.js
vendor/jsbn/jsbn_combined.js

2
css/app.css

File diff suppressed because one or more lines are too long

BIN
img/card_share.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

BIN
img/icons/DialogListGroupChatIcon@2x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

BIN
img/icons/DialogListGroupChatIcon_Highlighted@2x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 529 B

44
index.html

@ -1,27 +1,31 @@
<!doctype html><html lang=en ng-app=myApp manifest=app.manifest><head><meta charset=utf-8><meta name=viewport content="width=device-width, user-scalable=no"><title>Webogram</title><link rel=stylesheet href=css/app.css><link rel=icon href=favicon.ico type=image/x-icon><meta property=og:title content=Webogram><meta property=og:url content="http://zhukov.github.io/webogram/"><meta property=og:image content=http://zhukov.github.io/webogram/img/logo_share.png><meta property=og:site_name content=Webogram><meta property=og:description content="Welcome to an experimental web-client of Telegram messenger. See https://github.com/zhukov/webogram for more info."></head><body><div ng-view=""></div><script src=js/app-ee353437.js></script><script type=text/javascript>(function () {
<!doctype html><html lang=en ng-app=myApp manifest=app.manifest><head><meta charset=utf-8><meta name=viewport content="width=device-width, user-scalable=no"><title>Webogram</title><link rel=stylesheet href=css/app.css><link rel=icon href=favicon.ico type=image/x-icon><meta property=og:title content=Webogram><meta property=og:url content="http://zhukov.github.io/webogram/"><meta property=og:image content=http://zhukov.github.io/webogram/img/logo_share.png><meta property=og:site_name content=Webogram><meta property=og:description content="Welcome to an experimental web-client of Telegram messenger. See https://github.com/zhukov/webogram for more info."><script type=text/javascript>(function () {
if (!window.applicationCache || !window.addEventListener) {
return;
}
var appCache = window.applicationCache,
canceled = false,
scheduleUpdate = function () {
setTimeout(function () {
declined = false,
updateTimeout = false,
scheduleUpdate = function (delay) {
clearTimeout(updateTimeout);
updateTimeout = setTimeout(function () {
appCache.update();
}, 300000);
}, delay || 300000);
},
attach = function () {
appCache.addEventListener('updateready', function(e) {
if (appCache.status == appCache.UPDATEREADY) {
if (!declined && confirm('A new version of Webogram is available. Load it?')) {
window.location.reload();
} else {
declined = true;
scheduleUpdate();
}
}
}, false);
appCache.addEventListener('noupdate', function () {scheduleUpdate()}, false);
appCache.addEventListener('error', function () {scheduleUpdate()}, false);
};
window.addEventListener('load', function(e) {
appCache.addEventListener('updateready', function(e) {
if (appCache.status == appCache.UPDATEREADY) {
if (!canceled && confirm('A new version of Webogram is available. Load it?')) {
window.location.reload();
} else {
canceled = true;
scheduleUpdate();
}
}
}, false);
appCache.addEventListener('noupdate', scheduleUpdate, false);
appCache.addEventListener('error', scheduleUpdate, false);
});
})();</script></body></html>
scheduleUpdate(3000);
window.addEventListener('load', attach);
})();</script></head><body><div ng-view=""></div><script src=js/app.js></script></body></html>

4
js/app-ee353437.js → js/app.js

File diff suppressed because one or more lines are too long

4
js/lib/aes_worker.js

@ -6,10 +6,10 @@
*/
importScripts(
'../../vendor/console-polyfill/console-polyfill.js?1',
'../../vendor/console-polyfill/console-polyfill.js',
'mtproto.js',
'../../vendor/jsbn/jsbn_combined.js',
'../../vendor/cryptoJS/crypto.js?1'
'../../vendor/cryptoJS/crypto.js'
);
onmessage = function (e) {

18
js/lib/config.js

File diff suppressed because one or more lines are too long

6
js/lib/mtproto.js

@ -2392,7 +2392,7 @@ factory('MtpApiManager', function (AppConfigManager, MtpAuthorizer, MtpNetworker
}
if (!options.createNetworker) {
return $q.reject({type: 'AUTH_KEY_EMPTY', code: 500});
return $q.reject({type: 'AUTH_KEY_EMPTY', code: 401});
}
return MtpAuthorizer.auth(dcID).then(function (auth) {
@ -2456,9 +2456,7 @@ factory('MtpApiManager', function (AppConfigManager, MtpAuthorizer, MtpNetworker
cachedExportPromise[dcID] = exportDeferred.promise;
}
// console.log('promise', cachedExportPromise[dcID]);
cachedExportPromise[dcID] = cachedExportPromise[dcID].then(function () {
cachedExportPromise[dcID].then(function () {
(cachedNetworker = networker).wrapApiCall(method, params, options).then(function (result) {
deferred.resolve(result);
}, function (error) {

Loading…
Cancel
Save