From 379abc778a0589937d54682c0d83c6a440470c9c Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Fri, 24 Jan 2014 17:45:45 +0400 Subject: [PATCH] Added welcome screen, improved mtproto logging --- app/css/app.css | 32 ++++++++++++++++++++++++++++---- app/img/logo_dogogram.png | Bin 0 -> 16248 bytes app/index.html | 8 ++++---- app/js/app.js | 7 ++++--- app/js/controllers.js | 2 -- app/js/lib/mtproto.js | 23 ++++++++++++++++------- app/partials/login.html | 2 +- app/partials/welcome.html | 18 +++++++++++++----- 8 files changed, 66 insertions(+), 26 deletions(-) create mode 100644 app/img/logo_dogogram.png diff --git a/app/css/app.css b/app/css/app.css index 7f3172ae..01ca642e 100644 --- a/app/css/app.css +++ b/app/css/app.css @@ -2,7 +2,7 @@ html { background: #dee4e9 url(../img/bg_tile.png?1) 0 0 repeat; - /*background-size: 300px 468px;*/ + background-size: 300px 468px; /*background: #dee4e9 url(../img/bg_full.png) 0 0 no-repeat;*/ /*background-size: cover;*/ @@ -251,9 +251,33 @@ fieldset[disabled] .btn-tg.active { /* Welcome */ -.jumbotron { - background: none; + +.welcome_logo { + background: url(../img/logo_dogogram.png) 0 0 no-repeat; + background-size: 111px 112px; + display: block; + width: 112px; + height: 112px; + margin: 100px auto 0; } +.welcome_box_wrap { + max-width: 310px; + padding: 25px; + background: #FFF; + margin: 30px auto 0; + border-radius: 1px; + overflow: hidden; + + -webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1); + -moz-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1); + box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1); +} +.welcome_text { + color: #999; + text-align: center; + margin-bottom: 25px; +} + /* Login page */ .login_form_wrap { @@ -261,7 +285,7 @@ fieldset[disabled] .btn-tg.active { padding: 25px; background: #FFF; margin: 200px auto 0; - border-radius: 3px; + border-radius: 1px; overflow: hidden; -webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1); diff --git a/app/img/logo_dogogram.png b/app/img/logo_dogogram.png new file mode 100644 index 0000000000000000000000000000000000000000..694c7174496a56d9ee2874558e7d97d095db9129 GIT binary patch literal 16248 zcmV-;KZn4HP)1!dX+8$!r2h-L{#ip&+duhsd%UON3o!uc%lgQ-aSPG?4W=k zO^Wmm2??b4w#n|!{C{tDcC*>c?EYqUcC%$(K0`K3GCSpc=at|4y&uE#Jm}&-$vF2; zM&fPS_uRejNq7bCcX+St*Ee)U@r^!6zHihojb9;j_cP6FEy3j7yk=bA7te*)VfByb zVEP|I+V7s;^9D?w;ytPFj1H>~W-xvt*ULPy5p(03u+shI0@)@iJzrjdxBMWfi)0Dk1;iY(G^N}ph<2YK6Q7_ zfSy@{6Jn!tW1=Gm84ZSB48tTw7!5}t6MUQpPS%*{y(`PVxvVsl} zm%lt~NS_|v&Ww+V9vc~H9Lq9HW-wh3j^~S8TP>R!noXOI6qfvc@qI7saRaI+w^)Z% z2U8OuX<%fXzb|>={(k*(Gsh*y$D9)#8F3b|hAE+Roruml&I@A1Wx`c=@aa zhg=}#6hIo*fa+k<0Z9`pc7XAtc{6$p?VB@^xTa@DM@3F17BM57t{<_eWu}(apNZ@H z`>w+$*4^;v;zAFQx{Xc42~ZtOb=FZ1NcQvRX6B6;kT*3xHu{nXqv3Sj-)IxF#rj7> zlWEzG1Nkeid3a&I2q#CGR0=CAs)MN>NQY%y^zhA@=Z+bCX;OUbGy>yT9YHEcH`O*Y zE&X-N-f!-C?!96KmNYB?4SO&Z0_hwxvg_ZQJF$D$)Ei@?qps3XQ!h=Xmj4x%R(&|( z=DF)!tSA?*fcgx~u}cdB`oxdD@-!`wtkY`){(SJ87iT2K$J}OM*`7L9+KH9pj@LCb zzuo`R2NsJ^TEX*hOglh(-TQw50qCY_J#;X=fRYAC!8*S1!1WmypEc@M0_3fMl*BpJ zWP!R?4mfhV4%N0Q`rCdiV7y)bD+0DWiq+HLR5dhz2j4_34Tpn(9V z4yN`%I$*TNkAIsmd`3cS^vupU=8`5W9Ib050Fv*uW+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?tRar~e0+heij( z==@rQ(Eh%&<>KuB-wsOA3ZgZ1dY`wsvsgrB>khyQGwy7^i|-K-rL1DRbtZKnbuj&E zMV&V*Cs<4LK^>qWtOC6Fv(3t~PSDvcCCfYSi*E<004CG^v)y{F;yXZRS=jkQ7R_&por zsO3B>0VU(kTH1a=fC~S<9Xt#pS~%YMJ%=0Xc#mZy0c;Pu4x~`N4nCR;EUoYgU+WO+VCo_RtX5FU iSyCOq00i^@1sDK|vRfO8n=%Ce0000 - + @@ -37,12 +37,12 @@ - + - + - + diff --git a/app/js/app.js b/app/js/app.js index d8a4723f..ce633664 100644 --- a/app/js/app.js +++ b/app/js/app.js @@ -7,7 +7,8 @@ 'use strict'; -// window._testMode = 1; +window._testMode = location.search.indexOf('test=1') > 0; +window._debugMode = location.search.indexOf('debug=1') > 0; // Declare app level module which depends on filters, and services @@ -47,8 +48,8 @@ config(['$locationProvider', '$routeProvider', '$compileProvider', function($loc // $locationProvider.html5Mode(true); - $routeProvider.when('/', {templateUrl: 'partials/welcome.html', controller: 'AppWelcomeController'}); - $routeProvider.when('/login', {templateUrl: 'partials/login.html?1', controller: 'AppLoginController'}); + $routeProvider.when('/', {templateUrl: 'partials/welcome.html?1', controller: 'AppWelcomeController'}); + $routeProvider.when('/login', {templateUrl: 'partials/login.html?2', controller: 'AppLoginController'}); $routeProvider.when('/im', {templateUrl: 'partials/im.html?3', controller: 'AppIMController', reloadOnSearch: false}); $routeProvider.otherwise({redirectTo: '/'}); diff --git a/app/js/controllers.js b/app/js/controllers.js index 099a5992..aeede4f0 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -15,8 +15,6 @@ angular.module('myApp.controllers', []) MtpApiManager.getUserID().then(function (id) { if (id) { $location.url('/im'); - } else { - $location.url('/login'); } }); }) diff --git a/app/js/lib/mtproto.js b/app/js/lib/mtproto.js index 5ae987e4..a0e0babf 100644 --- a/app/js/lib/mtproto.js +++ b/app/js/lib/mtproto.js @@ -351,7 +351,7 @@ function TLSerialization (options) { this.createBuffer(); - // this.debug = options.debug !== undefined ? options.debug : true; + this.debug = options.debug !== undefined ? options.debug : window._debugMode; this.mtproto = options.mtproto || false; return this; } @@ -631,7 +631,7 @@ function TLDeserialization (buffer, options) { this.intView = new Uint32Array(this.buffer); this.byteView = new Uint8Array(this.buffer); - // this.debug = options.debug !== undefined ? options.debug : true; + this.debug = options.debug !== undefined ? options.debug : window._debugMode; this.mtproto = options.mtproto || false; return this; } @@ -1575,7 +1575,9 @@ factory('MtpNetworkerFactory', function (MtpDcConfigurator, MtpMessageIdGenerato body: serializer.getBytes() }; - // dLog('MT call', method, params, messageID, seqNo); + if (window._debugMode) { + dLog('MT call', method, params, messageID, seqNo); + } return this.pushMessage(message, options); }; @@ -1594,7 +1596,9 @@ factory('MtpNetworkerFactory', function (MtpDcConfigurator, MtpMessageIdGenerato body: serializer.getBytes() }; - // dLog('MT message', object, messageID, seqNo); + if (window._debugMode) { + dLog('MT message', object, messageID, seqNo); + } return this.pushMessage(message, options); }; @@ -1623,8 +1627,11 @@ factory('MtpNetworkerFactory', function (MtpDcConfigurator, MtpMessageIdGenerato isAPI: true }; - dLog('Api call', method, messageID, seqNo); - // dLog('Api call', method, params, messageID, seqNo); + if (window._debugMode) { + dLog('Api call', method, params, messageID, seqNo) + } else { + dLog('Api call', method, messageID, seqNo); + } return this.pushMessage(message, options); }; @@ -1793,7 +1800,9 @@ factory('MtpNetworkerFactory', function (MtpDcConfigurator, MtpMessageIdGenerato var self = this; this.sendEncryptedRequest(message).then(function (result) { self.parseResponse(result.data).then(function (response) { - // dLog('Server response', self.dcID, response); + if (window._debugMode) { + dLog('Server response', self.dcID, response); + } self.processMessage(response.response, response.messageID, response.sessionID); diff --git a/app/partials/login.html b/app/partials/login.html index 86f9b01e..573478ee 100644 --- a/app/partials/login.html +++ b/app/partials/login.html @@ -5,7 +5,7 @@
{{ error.message }}
- +
diff --git a/app/partials/welcome.html b/app/partials/welcome.html index 7396c588..67b26e4e 100644 --- a/app/partials/welcome.html +++ b/app/partials/welcome.html @@ -1,5 +1,13 @@ - \ No newline at end of file +
+ + + +
+
+

Welcome to an unofficial web-client of mobile Telegram messenger.

+

Is in alpha, which means it is still not 200% secure and functional.

+

Visit telegram.org to learn more.

+
+ Start Messaging + +
\ No newline at end of file