Browse Source

Bump to 0.1.6

master
Igor Zhukov 10 years ago
parent
commit
cb0201bfaf
  1. 8
      app/css/app.css
  2. BIN
      app/img/changelog/search.png
  3. 2
      app/js/app.js
  4. 2
      app/js/background.js
  5. 29
      app/js/controllers.js
  6. 2
      app/js/directives.js
  7. 2
      app/js/filters.js
  8. 2
      app/js/lib/aes_worker.js
  9. 4
      app/js/lib/config.js
  10. 2
      app/js/lib/mtproto.js
  11. 2
      app/js/lib/pq_worker.js
  12. 2
      app/js/lib/sha1_worker.js
  13. 6
      app/js/services.js
  14. 2
      app/js/util.js
  15. 2
      app/manifest.json
  16. 2
      app/manifest.webapp
  17. 19
      app/partials/changelog_modal.html
  18. 2
      app/partials/confirm_modal.html
  19. 2
      package.json

8
app/css/app.css

@ -3563,6 +3563,14 @@ ce671b orange @@ -3563,6 +3563,14 @@ ce671b orange
background-size: 160px 160px;
margin: 0 auto;
}
.changelog_card_search {
width: 133px;
height: 133px;
display: block;
background: url(../img/changelog/search.png) no-repeat 0 0;
background-size: 133px 133px;
margin: 0 auto;
}
.changelog_version_title {
color: #9d9479;

BIN
app/img/changelog/search.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

2
app/js/app.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.1.5 - messaging web application for MTProto
* Webogram v0.1.6 - 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.1.5 - messaging web application for MTProto
* Webogram v0.1.6 - 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

29
app/js/controllers.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.1.5 - messaging web application for MTProto
* Webogram v0.1.6 - 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
@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
angular.module('myApp.controllers', [])
.controller('AppWelcomeController', function($scope, $location, MtpApiManager, ErrorService) {
.controller('AppWelcomeController', function($scope, $location, MtpApiManager, ErrorService, ChangelogNotifyService) {
MtpApiManager.getUserID().then(function (id) {
if (id) {
$location.url('/im');
@ -19,9 +19,11 @@ angular.module('myApp.controllers', []) @@ -19,9 +19,11 @@ angular.module('myApp.controllers', [])
$scope.showWelcome = true;
}
});
ChangelogNotifyService.checkUpdate();
})
.controller('AppLoginController', function ($scope, $location, $timeout, $modal, $modalStack, MtpApiManager, ErrorService) {
.controller('AppLoginController', function ($scope, $location, $timeout, $modal, $modalStack, MtpApiManager, ErrorService, ChangelogNotifyService) {
$modalStack.dismissAll();
@ -208,6 +210,8 @@ angular.module('myApp.controllers', []) @@ -208,6 +210,8 @@ angular.module('myApp.controllers', [])
});
};
ChangelogNotifyService.checkUpdate();
})
.controller('AppIMController', function ($scope, $location, $routeParams, $modal, $rootScope, $modalStack, MtpApiManager, AppUsersManager, ContactsSelectService, ChangelogNotifyService, ErrorService) {
@ -349,7 +353,16 @@ angular.module('myApp.controllers', []) @@ -349,7 +353,16 @@ angular.module('myApp.controllers', [])
}
});
$scope.$watchCollection('search', loadDialogs);
var prevMessages = false;
$scope.$watchCollection('search', function () {
if ($scope.search.messages != prevMessages) {
prevMessages = $scope.search.messages;
$scope.dialogs = [];
loadDialogs(true);
} else {
loadDialogs();
}
});
$scope.importContact = function () {
AppUsersManager.openImportContact().then(function (foundContact) {
@ -368,14 +381,14 @@ angular.module('myApp.controllers', []) @@ -368,14 +381,14 @@ angular.module('myApp.controllers', [])
};
var searchTimeoutPromise;
function getDialogs() {
function getDialogs(force) {
var searchMessages = $scope.search.messages && $scope.search.query.length > 0,
curJump = ++jump,
promise;
$timeout.cancel(searchTimeoutPromise);
if (searchMessages) {
searchTimeoutPromise = $timeout(angular.noop, 500);
searchTimeoutPromise = force ? $q.when() : $timeout(angular.noop, 500);
promise = searchTimeoutPromise.then(function () {
return AppMessagesManager.getSearch({_: 'inputPeerEmpty'}, $scope.search.query, {_: 'inputMessagesFilterEmpty'}, maxID)
});
@ -444,14 +457,14 @@ angular.module('myApp.controllers', []) @@ -444,14 +457,14 @@ angular.module('myApp.controllers', [])
})
};
function loadDialogs () {
function loadDialogs (force) {
offset = 0;
maxID = 0;
hasMore = false;
peersInDialogs = {};
contactsShown = false;
getDialogs().then(function (dialogsResult) {
getDialogs(force).then(function (dialogsResult) {
$scope.dialogs = [];
$scope.contacts = [];

2
app/js/directives.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.1.5 - messaging web application for MTProto
* Webogram v0.1.6 - 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.1.5 - messaging web application for MTProto
* Webogram v0.1.6 - 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/aes_worker.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.1.5 - messaging web application for MTProto
* Webogram v0.1.6 - 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

4
app/js/lib/config.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.1.5 - messaging web application for MTProto
* Webogram v0.1.6 - 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.1.5'
version: '0.1.6'
};
Config.Modes = {

2
app/js/lib/mtproto.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.1.5 - messaging web application for MTProto
* Webogram v0.1.6 - 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/pq_worker.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.1.5 - messaging web application for MTProto
* Webogram v0.1.6 - 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/sha1_worker.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.1.5 - messaging web application for MTProto
* Webogram v0.1.6 - 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

6
app/js/services.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.1.5 - messaging web application for MTProto
* Webogram v0.1.6 - 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
@ -3694,7 +3694,9 @@ angular.module('myApp.services', []) @@ -3694,7 +3694,9 @@ angular.module('myApp.services', [])
function checkUpdate () {
AppConfigManager.get('last_version').then(function (lastVersion) {
if (lastVersion != Config.App.version) {
showChangelog(lastVersion || '0');
if (lastVersion) {
showChangelog(lastVersion);
}
AppConfigManager.set({last_version: Config.App.version});
}
})

2
app/js/util.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Webogram v0.1.5 - messaging web application for MTProto
* Webogram v0.1.6 - 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/manifest.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "Telegram UNOFFICIAL",
"version": "0.1.5",
"version": "0.1.6",
"short_name": "Webogram",
"manifest_version": 2,
"app": {

2
app/manifest.webapp

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

19
app/partials/changelog_modal.html

@ -6,11 +6,11 @@ @@ -6,11 +6,11 @@
<div class="changelog_card_wrap" ng-switch="lastVersion === false">
<div ng-switch-when="true">
<div class="changelog_card"></div>
<div class="changelog_card_search"></div>
<h2 class="changelog_header">Recent updates in <strong>Telegram Web</strong></h2>
</div>
<div ng-switch-default>
<div class="changelog_card"></div>
<div class="changelog_card_search"></div>
<h2 class="changelog_header"><strong>Telegram Web</strong> has been updated!</h2>
</div>
</div>
@ -20,12 +20,25 @@ @@ -20,12 +20,25 @@
<div class="modal_section changelog_version_wrap">
<h3 class="modal_section_header changelog_version_title">
<span class="pull-right">current version</span>
Version 0.1.6
</h3>
<div class="modal_section_body changelog_version_changes">
<ul class="list-unstyled changelog_version_changes_list">
<li>Added messages search</li>
<li>Improved performance of chats with lots of unread messages</li>
<li>Bugfixes</li>
</ul>
</div>
</div>
<div class="modal_section changelog_version_wrap">
<h3 class="modal_section_header changelog_version_title">
Version 0.1.5
</h3>
<div class="modal_section_body changelog_version_changes">
<ul class="list-unstyled changelog_version_changes_list">
<li>Added registration</li>
<li>Improved fresh user experience</li>
<li>Improved experience for newly registered users</li>
</ul>
</div>
</div>

2
app/partials/confirm_modal.html

@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
</span>
<span ng-switch-when="FILE_CLIPBOARD_PASTE">Are you sure to send file(s) from clipboard?</span>
<span ng-switch-when="MESSAGE_DELETE">Are you sure you want to delete the message?</span>
<span ng-switch-when="CONTACTS_IMPORT_PERFORM">We will now send selected contacts to Telegram servers in order to find your friends in Telegram.</span>
<span ng-switch-when="CONTACTS_IMPORT_PERFORM">Telegram will now sync your contacts in order to find your friends.</span>
<div ng-switch-when="LOGIN_PHONE_CORRECT">
Is this phone number correct?
<div class="confirm_phone_number"> <span ng-bind="country_code"></span> <span ng-bind="phone_number"></span> </div>

2
package.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "webogram",
"version": "0.1.5",
"version": "0.1.6",
"description": "Telegram UNOFFICIAL Web App",
"main": "app/index.html",
"single-instance": true,

Loading…
Cancel
Save