Browse Source

Bugfixes, cleanup assets, added FirefoxOS manifest

master
Igor Zhukov 11 years ago
parent
commit
ceee76d608
  1. BIN
      app/img/icons/Arrow_1x.png
  2. BIN
      app/img/icons/Arrow_2x.png
  3. BIN
      app/img/icons/Attach_1x.png
  4. BIN
      app/img/icons/Attach_2x.png
  5. BIN
      app/img/icons/Attach_pressed_1x.png
  6. BIN
      app/img/icons/Attach_pressed_2x.png
  7. BIN
      app/img/icons/DocBlue_1x.png
  8. BIN
      app/img/icons/DocBlue_2x.png
  9. BIN
      app/img/icons/DocGrey_1x.png
  10. BIN
      app/img/icons/DocGrey_2x.png
  11. BIN
      app/img/icons/Logo_1x.png
  12. BIN
      app/img/icons/Logo_2x.png
  13. BIN
      app/img/icons/NoResults.png
  14. BIN
      app/img/icons/Search_1x.png
  15. BIN
      app/img/icons/Search_2x.png
  16. BIN
      app/img/icons/Smile_1x.png
  17. BIN
      app/img/icons/Smile_2x.png
  18. BIN
      app/img/icons/Smile_pressed_1x.png
  19. BIN
      app/img/icons/Smile_pressed_2x.png
  20. BIN
      app/img/icons/icon120.png
  21. BIN
      app/img/icons/icon128.png
  22. BIN
      app/img/icons/icon16.png
  23. BIN
      app/img/icons/icon32.png
  24. BIN
      app/img/icons/icon60.png
  25. BIN
      app/img/icons/icon64.png
  26. BIN
      app/img/icons/icon90.png
  27. BIN
      app/img/screenshot1.png
  28. BIN
      app/img/screenshot1_tile.png
  29. BIN
      app/img/screenshot2.png
  30. 4
      app/js/app.js
  31. 12
      app/js/lib/mtproto.js
  32. 12
      app/manifest.json
  33. 27
      app/manifest.webapp
  34. 1
      app/partials/welcome.html

BIN
app/img/icons/Arrow_1x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 167 B

BIN
app/img/icons/Arrow_2x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 229 B

BIN
app/img/icons/Attach_1x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 515 B

BIN
app/img/icons/Attach_2x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 892 B

BIN
app/img/icons/Attach_pressed_1x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 527 B

BIN
app/img/icons/Attach_pressed_2x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 904 B

BIN
app/img/icons/DocBlue_1x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 476 B

BIN
app/img/icons/DocBlue_2x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 875 B

BIN
app/img/icons/DocGrey_1x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 474 B

BIN
app/img/icons/DocGrey_2x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 898 B

BIN
app/img/icons/Logo_1x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

BIN
app/img/icons/Logo_2x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

BIN
app/img/icons/NoResults.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

BIN
app/img/icons/Search_1x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 431 B

BIN
app/img/icons/Search_2x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 706 B

BIN
app/img/icons/Smile_1x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 773 B

BIN
app/img/icons/Smile_2x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

BIN
app/img/icons/Smile_pressed_1x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 712 B

BIN
app/img/icons/Smile_pressed_2x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

BIN
app/img/icons/icon120.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
app/img/icons/icon128.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 20 KiB

BIN
app/img/icons/icon16.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
app/img/icons/icon32.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 959 B

BIN
app/img/icons/icon60.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

BIN
app/img/icons/icon64.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

BIN
app/img/icons/icon90.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
app/img/screenshot1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 822 KiB

BIN
app/img/screenshot1_tile.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

BIN
app/img/screenshot2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 MiB

4
app/js/app.js

@ -48,8 +48,8 @@ config(['$locationProvider', '$routeProvider', '$compileProvider', function($loc @@ -48,8 +48,8 @@ config(['$locationProvider', '$routeProvider', '$compileProvider', function($loc
$.emojiarea.icons = icons;
$.emojiarea.reverseIcons = reverseIcons;
$compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|blob|filesystem|chrome-extension):|data:image\//);
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|file|mailto|blob|filesystem|chrome-extension):|data:image\//);
$compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|blob|filesystem|chrome-extension|app):|data:image\//);
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|file|mailto|blob|filesystem|chrome-extension|app):|data:image\//);
// $locationProvider.html5Mode(true);

12
app/js/lib/mtproto.js

@ -1500,7 +1500,7 @@ factory('MtpSha1Service', function ($q) { @@ -1500,7 +1500,7 @@ factory('MtpSha1Service', function ($q) {
}
}).
factory('MtpNetworkerFactory', function (MtpDcConfigurator, MtpMessageIdGenerator, MtpSecureRandom, MtpSha1Service, MtpAesService, AppConfigManager, $http, $q, $timeout) {
factory('MtpNetworkerFactory', function (MtpDcConfigurator, MtpMessageIdGenerator, MtpSecureRandom, MtpSha1Service, MtpAesService, AppConfigManager, $http, $q, $timeout, $interval) {
var updatesProcessor;
@ -1517,7 +1517,7 @@ factory('MtpNetworkerFactory', function (MtpDcConfigurator, MtpMessageIdGenerato @@ -1517,7 +1517,7 @@ factory('MtpNetworkerFactory', function (MtpDcConfigurator, MtpMessageIdGenerato
// (function () {
// console.log('update server salt');
// self.serverSalt = [0,0,0,0,0,0,0,0];
// setTimeout(arguments.callee, nextRandomInt(2000, 12345));
// $timeout(arguments.callee, nextRandomInt(2000, 12345));
// })();
// }
@ -1536,7 +1536,7 @@ factory('MtpNetworkerFactory', function (MtpDcConfigurator, MtpMessageIdGenerato @@ -1536,7 +1536,7 @@ factory('MtpNetworkerFactory', function (MtpDcConfigurator, MtpMessageIdGenerato
this.pendingTimeouts = [];
this.longPollInt = setInterval(this.checkLongPoll.bind(this), 10000);
this.longPollInt = $interval(this.checkLongPoll.bind(this), 10000);
this.checkLongPoll();
};
@ -1689,7 +1689,7 @@ factory('MtpNetworkerFactory', function (MtpDcConfigurator, MtpMessageIdGenerato @@ -1689,7 +1689,7 @@ factory('MtpNetworkerFactory', function (MtpDcConfigurator, MtpMessageIdGenerato
this.wrapMtpCall('http_wait', {max_delay: 0, wait_after: 0, max_wait: maxWait}, {noResponse: true}).
then((function () {
delete this.longPollPending;
setTimeout(this.checkLongPoll.bind(this), 0);
$timeout(this.checkLongPoll.bind(this), 0);
}).bind(this));
};
@ -1981,7 +1981,7 @@ factory('MtpNetworkerFactory', function (MtpDcConfigurator, MtpMessageIdGenerato @@ -1981,7 +1981,7 @@ factory('MtpNetworkerFactory', function (MtpDcConfigurator, MtpMessageIdGenerato
clearTimeout(this.nextReqTO);
this.nextReqTO = setTimeout(this.performSheduledRequest.bind(this), delay || 0);
this.nextReqTO = $timeout(this.performSheduledRequest.bind(this), delay || 0);
this.nextReq = nextReq;
};
@ -2274,7 +2274,7 @@ factory('MtpApiManager', function (AppConfigManager, MtpAuthorizer, MtpNetworker @@ -2274,7 +2274,7 @@ factory('MtpApiManager', function (AppConfigManager, MtpAuthorizer, MtpNetworker
return (cachedNetworker = networker).wrapApiCall(method, params, options).then(
function (result) {
deferred.resolve(result);
// setTimeout(function () {
// $timeout(function () {
// deferred.resolve(result);
// }, 1000);
},

12
app/manifest.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "Telegram UNOFFICIAL",
"version": "0.0.11",
"version": "0.0.12",
"short_name": "Webogram",
"manifest_version": 2,
"app": {
@ -13,6 +13,12 @@ @@ -13,6 +13,12 @@
{"fileSystem": ["write"]},
"storage"
],
"icons": { "16": "img/icons/icon16.png",
"128": "img/icons/icon128.png" }
"icons": {
"16": "img/icons/icon16.png",
"32": "img/icons/icon32.png",
"60": "img/icons/icon60.png",
"64": "img/icons/icon64.png",
"90": "img/icons/icon90.png",
"128": "img/icons/icon128.png"
}
}

27
app/manifest.webapp

@ -0,0 +1,27 @@ @@ -0,0 +1,27 @@
{
"name": "Webogram",
"description": "Webogram – UNOFFICIAL Telegram Web App.\nMore info & source code here: https://github.com/zhukov/webogram",
"version": "0.0.12",
"launch_path": "/index.html",
"developer": {
"name": "Igor Zhukov",
"url": "https://github.com/zhukov"
},
"installs_allowed_from": [
"*"
],
"permissions": {
"desktop-notification": {
"description": "To show new message notifications etc"
}
},
"icons": {
"16": "img/icons/icon16.png",
"32": "img/icons/icon32.png",
"60": "img/icons/icon60.png",
"64": "img/icons/icon64.png",
"90": "img/icons/icon90.png",
"120": "img/icons/icon120.png",
"128": "img/icons/icon128.png"
}
}

1
app/partials/welcome.html

@ -12,7 +12,6 @@ @@ -12,7 +12,6 @@
<p>Visit <a target="_blank" href="https://telegram.org/">telegram.org</a> to learn more.</p>
</div>
<a href="#/login" class="btn btn-tg btn-block">Start Messaging</a>
</form>
</div>
</div>
Loading…
Cancel
Save