Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
Bugfixes, cleanup assets, added FirefoxOS manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
zhukov committed Feb 1, 2014
1 parent 593b9e7 commit ceee76d
Show file tree
Hide file tree
Showing 34 changed files with 44 additions and 12 deletions.
Binary file removed app/img/icons/Arrow_1x.png
Binary file not shown.
Binary file removed app/img/icons/Arrow_2x.png
Binary file not shown.
Binary file removed app/img/icons/Attach_1x.png
Binary file not shown.
Binary file removed app/img/icons/Attach_2x.png
Binary file not shown.
Binary file removed app/img/icons/Attach_pressed_1x.png
Binary file not shown.
Binary file removed app/img/icons/Attach_pressed_2x.png
Binary file not shown.
Binary file removed app/img/icons/DocBlue_1x.png
Binary file not shown.
Binary file removed app/img/icons/DocBlue_2x.png
Binary file not shown.
Binary file removed app/img/icons/DocGrey_1x.png
Binary file not shown.
Binary file removed app/img/icons/DocGrey_2x.png
Binary file not shown.
Binary file removed app/img/icons/Logo_1x.png
Binary file not shown.
Binary file removed app/img/icons/Logo_2x.png
Binary file not shown.
Binary file removed app/img/icons/NoResults.png
Binary file not shown.
Binary file removed app/img/icons/Search_1x.png
Binary file not shown.
Binary file removed app/img/icons/Search_2x.png
Binary file not shown.
Binary file removed app/img/icons/Smile_1x.png
Binary file not shown.
Binary file removed app/img/icons/Smile_2x.png
Binary file not shown.
Binary file removed app/img/icons/Smile_pressed_1x.png
Binary file not shown.
Binary file removed app/img/icons/Smile_pressed_2x.png
Binary file not shown.
Binary file added app/img/icons/icon120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/img/icons/icon128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/img/icons/icon16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/img/icons/icon32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/img/icons/icon60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/img/icons/icon64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/img/icons/icon90.png
Binary file added app/img/screenshot1.png
Binary file added app/img/screenshot1_tile.png
Binary file added app/img/screenshot2.png
4 changes: 2 additions & 2 deletions app/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
12 changes: 6 additions & 6 deletions app/js/lib/mtproto.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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));
// })();
// }

Expand All @@ -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();
};

Expand Down Expand Up @@ -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));
};

Expand Down Expand Up @@ -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;
};

Expand Down Expand Up @@ -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);
},
Expand Down
12 changes: 9 additions & 3 deletions app/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Telegram UNOFFICIAL",
"version": "0.0.11",
"version": "0.0.12",
"short_name": "Webogram",
"manifest_version": 2,
"app": {
Expand All @@ -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 changes: 27 additions & 0 deletions app/manifest.webapp
Original file line number Diff line number Diff line change
@@ -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 change: 0 additions & 1 deletion app/partials/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit ceee76d

Please sign in to comment.