Browse Source

Update 2017-12-30T20:09:39.129Z

gh-pages
Igor Zhukov 7 years ago
parent
commit
d5a5cb8fc0
  1. 17
      css/app.css
  2. 17
      css/badbrowser.css
  3. 31
      css/desktop.css
  4. 25
      css/mobile.css
  5. BIN
      img/placeholders/Fave.png
  6. 141
      js/app.js
  7. 2
      js/background.js
  8. 2
      js/lib/bin_utils.js
  9. 2
      js/lib/crypto_worker.js
  10. 10
      js/lib/push_worker.js
  11. 19
      js/locales/en-us.json
  12. 2
      manifest.json
  13. 2
      manifest.webapp
  14. 2
      service_worker.js
  15. 27
      webogram.appcache

17
css/app.css

@ -1413,6 +1413,12 @@ a.im_dialog:hover .im_dialog_date,a.im_dialog_selected .im_dialog_date{color:#91
.im_history_scrollable_wrap{outline:0!important;position:relative} .im_history_scrollable_wrap{outline:0!important;position:relative}
.im_history_to_bottom{overflow:hidden} .im_history_to_bottom{overflow:hidden}
.im_history_to_bottom .im_history_scrollable{position:absolute;bottom:0;width:100%} .im_history_to_bottom .im_history_scrollable{position:absolute;bottom:0;width:100%}
.im_history_pinned_wrap{padding:7px 10px 7px 20px;border-bottom:1px solid #E9EBED}
.im_history_pinned_message{cursor:pointer}
.im_history_pinned_message:hover{text-decoration:none}
.im_history_pinned_hide{float:right;display:block;width:18px;height:18px;margin-right:6px;margin-top:11px;-webkit-transform:translate3d(0,0,0);padding-top:7px}
.im_history_pinned_hide .icon-reply-bar{display:block;background:#999;width:18px;height:2px;transform-origin:50% 50%}
.im_history_pinned_hide:hover .icon-reply-bar{background:#44a1e8}
.im_history{padding:0;position:relative} .im_history{padding:0;position:relative}
.im_message_unread_split{background:#f0f4f7;color:#8096a8;text-align:center;padding:4px 10px;margin:10px 0} .im_message_unread_split{background:#f0f4f7;color:#8096a8;text-align:center;padding:4px 10px;margin:10px 0}
.im_message_author,.im_message_fwd_author{color:#3a6d99;font-weight:700} .im_message_author,.im_message_fwd_author{color:#3a6d99;font-weight:700}
@ -1422,6 +1428,7 @@ a.im_dialog:hover .im_dialog_date,a.im_dialog_selected .im_dialog_date{color:#91
.non_osx .im_message_author_wrap,.non_osx .im_message_fwd_author_wrap{font-size:12px} .non_osx .im_message_author_wrap,.non_osx .im_message_fwd_author_wrap{font-size:12px}
.im_message_author_via{color:#3a6d99;margin-left:5px} .im_message_author_via{color:#3a6d99;margin-left:5px}
.im_message_fwd_via{margin-left:0} .im_message_fwd_via{margin-left:0}
.im_message_author_admin{color:#adadad;margin-left:6px;font-size:11px}
.im_message_contact_photo,.im_message_from_photo,.im_message_fwd_photo{width:42px;height:42px;border-radius:50%;overflow:hidden} .im_message_contact_photo,.im_message_from_photo,.im_message_fwd_photo{width:42px;height:42px;border-radius:50%;overflow:hidden}
.im_message_contact_photo .peer_initials,.im_message_from_photo .peer_initials,.im_message_fwd_photo .peer_initials{line-height:42px} .im_message_contact_photo .peer_initials,.im_message_from_photo .peer_initials,.im_message_fwd_photo .peer_initials{line-height:42px}
a.im_message_contact_photo,a.im_message_from_photo{margin:0 15px 0 0} a.im_message_contact_photo,a.im_message_from_photo{margin:0 15px 0 0}
@ -1435,8 +1442,7 @@ a.im_message_video_thumb{float:left;margin-right:15px;position:relative}
img.im_message_video_thumb_blurred{-webkit-filter:blur(2px);-moz-filter:blur(2px);-o-filter:blur(2px);-ms-filter:blur(2px);filter:blur(2px);filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius='2')} img.im_message_video_thumb_blurred{-webkit-filter:blur(2px);-moz-filter:blur(2px);-o-filter:blur(2px);-ms-filter:blur(2px);filter:blur(2px);filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius='2')}
div.im_message_video_thumb{position:relative} div.im_message_video_thumb{position:relative}
.im_message_video_duration{background:rgba(0,0,0,.4);color:#fff;position:absolute;bottom:4px;right:4px;padding:2px 6px;font-size:11px;line-height:15px;border-radius:2px;overflow:hidden;z-index:1} .im_message_video_duration{background:rgba(0,0,0,.4);color:#fff;position:absolute;bottom:4px;right:4px;padding:2px 6px;font-size:11px;line-height:15px;border-radius:2px;overflow:hidden;z-index:1}
.icon-videoplay{position:absolute;display:inline-block;top:50%;left:50%;margin-left:-21px;margin-top:-21px;width:42px;height:42px;z-index:1;background-image:url(../img/icons/IconsetW.png);background-repeat:no-repeat;background-position:0 -590px} .icon-videoplay{position:absolute;display:inline-block;top:50%;left:50%;margin-left:-5px;margin-top:-9px;z-index:1;width:0;height:0;border-style:solid;border-width:9px 0 9px 14px;border-color:transparent transparent transparent #fff}
.is_2x .icon-videoplay{background-image:url(../img/icons/IconsetW_2x.png);background-size:42px 1171px;background-position:0 -591px}
.im_message_geopoint{border-radius:2px;margin-top:5px;overflow:hidden;display:block;position:relative;width:300px;height:150px} .im_message_geopoint{border-radius:2px;margin-top:5px;overflow:hidden;display:block;position:relative;width:300px;height:150px}
.im_message_venue_geopoint_wrap{display:block;position:relative;overflow:hidden;width:100px;height:100px;margin-right:10px;float:left;border-radius:2px;background:#f2f2f2;text-align:center;line-height:0} .im_message_venue_geopoint_wrap{display:block;position:relative;overflow:hidden;width:100px;height:100px;margin-right:10px;float:left;border-radius:2px;background:#f2f2f2;text-align:center;line-height:0}
.icon-geo-point{position:absolute;display:inline-block;top:50%;left:50%;margin-left:-8px;margin-top:-15px;width:15px;height:19px;background-image:url(../img/icons/IconsetW.png);background-repeat:no-repeat;background-position:-14px -389px} .icon-geo-point{position:absolute;display:inline-block;top:50%;left:50%;margin-left:-8px;margin-top:-15px;width:15px;height:19px;background-image:url(../img/icons/IconsetW.png);background-repeat:no-repeat;background-position:-14px -389px}
@ -1459,6 +1465,7 @@ div.im_message_video_thumb{position:relative}
.im_message_twitter_embed>blockquote{visibility:hidden} .im_message_twitter_embed>blockquote{visibility:hidden}
.im_message_webpage_gif .img_gif_with_progress_wrap{margin-top:5px;display:block} .im_message_webpage_gif .img_gif_with_progress_wrap{margin-top:5px;display:block}
.im_message_gif_wrap{position:relative} .im_message_gif_wrap{position:relative}
.img_gif_with_progress_wrap{display:inline-block;line-height:0}
.im_message_gif_btn{color:#fff;font-style:normal;font-weight:700;position:absolute;display:inline-block;top:50%;left:50%;margin-left:-22px;margin-top:-21px;border:2px solid #fff;border-radius:20px;padding:10px;z-index:1} .im_message_gif_btn{color:#fff;font-style:normal;font-weight:700;position:absolute;display:inline-block;top:50%;left:50%;margin-left:-22px;margin-top:-21px;border:2px solid #fff;border-radius:20px;padding:10px;z-index:1}
.im_message_audio,.im_message_document,.im_message_upload_file,.im_message_video{margin-top:3px;width:317px} .im_message_audio,.im_message_document,.im_message_upload_file,.im_message_video{margin-top:3px;width:317px}
.im_message_audio{margin-top:3px} .im_message_audio{margin-top:3px}
@ -1870,7 +1877,7 @@ img.chat_modal_participant_photo{width:40px;height:40px}
.stickerset_actions{padding:10px 20px;height:50px;text-align:center} .stickerset_actions{padding:10px 20px;height:50px;text-align:center}
.stickerset_modal_loading{text-align:center;color:#999;font-size:16px;line-height:18px;padding:1px 50px;margin:0} .stickerset_modal_loading{text-align:center;color:#999;font-size:16px;line-height:18px;padding:1px 50px;margin:0}
.confirm_modal_window .modal-dialog,.error_modal_window .modal-dialog,.md_simple_modal_window .modal-dialog{max-width:348px} .confirm_modal_window .modal-dialog,.error_modal_window .modal-dialog,.md_simple_modal_window .modal-dialog{max-width:348px}
.im_message_focus_active .audio_player_duration,.im_message_focus_active .audio_player_size,.im_message_focus_active .im_message_date,.im_message_focus_active .im_message_document_size,.im_message_focus_active .im_message_edited,.im_message_focus_active .im_message_fwd_date,.im_message_focus_active .im_message_sign_link,.im_message_focus_active .im_message_views_cnt{color:#899daf} .im_message_focus_active .audio_player_duration,.im_message_focus_active .audio_player_size,.im_message_focus_active .im_message_author_admin,.im_message_focus_active .im_message_date,.im_message_focus_active .im_message_document_size,.im_message_focus_active .im_message_edited,.im_message_focus_active .im_message_fwd_date,.im_message_focus_active .im_message_sign_link,.im_message_focus_active .im_message_views_cnt{color:#899daf}
.im_message_focus_active .im_message_outer_wrap{background-color:rgba(242,246,250,0);animation-name:im_message_focus_fade;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-out;animation-duration:4s} .im_message_focus_active .im_message_outer_wrap{background-color:rgba(242,246,250,0);animation-name:im_message_focus_fade;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-out;animation-duration:4s}
@keyframes im_message_focus_fade{from{background-color:#f2f6fa} @keyframes im_message_focus_fade{from{background-color:#f2f6fa}
to{background-color:rgba(242,246,250,0)}} to{background-color:rgba(242,246,250,0)}}
@ -1900,8 +1907,10 @@ a.peer_photo_init:active,a.peer_photo_init:focus,a.peer_photo_init:hover{text-de
.img_gif_meta_contents{transition:all cubic-bezier(.25,.46,.45,.94) .2s} .img_gif_meta_contents{transition:all cubic-bezier(.25,.46,.45,.94) .2s}
.img_gif_meta_contents.ng-enter,.img_gif_meta_contents.ng-leave.ng-leave-active{opacity:0} .img_gif_meta_contents.ng-enter,.img_gif_meta_contents.ng-leave.ng-leave-active{opacity:0}
.img_gif_meta_contents.ng-enter.ng-enter-active,.img_gif_meta_contents.ng-leave{opacity:1} .img_gif_meta_contents.ng-enter.ng-enter-active,.img_gif_meta_contents.ng-leave{opacity:1}
.img_round_image_wrap{position:relative;border-radius:50%;overflow:hidden} .img_round_with_progress_wrap{display:inline-block;line-height:0}
.img_round_image_wrap{position:relative;overflow:hidden;border-radius:50%;-webkit-transform:translateZ(0)}
.img_round_meta{background:rgba(0,0,0,.4);width:40px;height:40px;line-height:0;position:absolute;z-index:2;border-radius:50%;overflow:hidden;margin:-20px auto 0 -20px;top:50%;left:50%;pointer-events:none} .img_round_meta{background:rgba(0,0,0,.4);width:40px;height:40px;line-height:0;position:absolute;z-index:2;border-radius:50%;overflow:hidden;margin:-20px auto 0 -20px;top:50%;left:50%;pointer-events:none}
.img_round_video_unread .img_round_meta{background:rgba(100,144,177,.6)}
.icon-cancel{position:absolute;top:50%;left:50%;margin-left:-9px;margin-top:-1px} .icon-cancel{position:absolute;top:50%;left:50%;margin-left:-9px;margin-top:-1px}
.icon-cancel .icon-bar{display:block;width:18px;height:2px;background:#FFF;transform-origin:50% 50%} .icon-cancel .icon-bar{display:block;width:18px;height:2px;background:#FFF;transform-origin:50% 50%}
.icon-cancel .icon-bar:first-child{-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-o-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)} .icon-cancel .icon-bar:first-child{-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-o-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}

17
css/badbrowser.css

@ -1366,6 +1366,12 @@ a.im_dialog:hover .im_dialog_date,a.im_dialog_selected .im_dialog_date{color:#91
.im_history_scrollable_wrap{outline:0!important;position:relative} .im_history_scrollable_wrap{outline:0!important;position:relative}
.im_history_to_bottom{overflow:hidden} .im_history_to_bottom{overflow:hidden}
.im_history_to_bottom .im_history_scrollable{position:absolute;bottom:0;width:100%} .im_history_to_bottom .im_history_scrollable{position:absolute;bottom:0;width:100%}
.im_history_pinned_wrap{padding:7px 10px 7px 20px;border-bottom:1px solid #E9EBED}
.im_history_pinned_message{cursor:pointer}
.im_history_pinned_message:hover{text-decoration:none}
.im_history_pinned_hide{float:right;display:block;width:18px;height:18px;margin-right:6px;margin-top:11px;-webkit-transform:translate3d(0,0,0);padding-top:7px}
.im_history_pinned_hide .icon-reply-bar{display:block;background:#999;width:18px;height:2px;transform-origin:50% 50%}
.im_history_pinned_hide:hover .icon-reply-bar{background:#44a1e8}
.im_history{padding:0;position:relative} .im_history{padding:0;position:relative}
.im_message_unread_split{background:#f0f4f7;color:#8096a8;text-align:center;padding:4px 10px;margin:10px 0} .im_message_unread_split{background:#f0f4f7;color:#8096a8;text-align:center;padding:4px 10px;margin:10px 0}
.im_message_author,.im_message_fwd_author{color:#3a6d99;font-weight:700} .im_message_author,.im_message_fwd_author{color:#3a6d99;font-weight:700}
@ -1375,6 +1381,7 @@ a.im_dialog:hover .im_dialog_date,a.im_dialog_selected .im_dialog_date{color:#91
.non_osx .im_message_author_wrap,.non_osx .im_message_fwd_author_wrap{font-size:12px} .non_osx .im_message_author_wrap,.non_osx .im_message_fwd_author_wrap{font-size:12px}
.im_message_author_via{color:#3a6d99;margin-left:5px} .im_message_author_via{color:#3a6d99;margin-left:5px}
.im_message_fwd_via{margin-left:0} .im_message_fwd_via{margin-left:0}
.im_message_author_admin{color:#adadad;margin-left:6px;font-size:11px}
.im_message_contact_photo,.im_message_from_photo,.im_message_fwd_photo{width:42px;height:42px;border-radius:50%;overflow:hidden} .im_message_contact_photo,.im_message_from_photo,.im_message_fwd_photo{width:42px;height:42px;border-radius:50%;overflow:hidden}
.im_message_contact_photo .peer_initials,.im_message_from_photo .peer_initials,.im_message_fwd_photo .peer_initials{line-height:42px} .im_message_contact_photo .peer_initials,.im_message_from_photo .peer_initials,.im_message_fwd_photo .peer_initials{line-height:42px}
a.im_message_contact_photo,a.im_message_from_photo{margin:0 15px 0 0} a.im_message_contact_photo,a.im_message_from_photo{margin:0 15px 0 0}
@ -1388,8 +1395,7 @@ a.im_message_video_thumb{float:left;margin-right:15px;position:relative}
img.im_message_video_thumb_blurred{-webkit-filter:blur(2px);-moz-filter:blur(2px);-o-filter:blur(2px);-ms-filter:blur(2px);filter:blur(2px);filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius='2')} img.im_message_video_thumb_blurred{-webkit-filter:blur(2px);-moz-filter:blur(2px);-o-filter:blur(2px);-ms-filter:blur(2px);filter:blur(2px);filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius='2')}
div.im_message_video_thumb{position:relative} div.im_message_video_thumb{position:relative}
.im_message_video_duration{background:rgba(0,0,0,.4);color:#fff;position:absolute;bottom:4px;right:4px;padding:2px 6px;font-size:11px;line-height:15px;border-radius:2px;overflow:hidden;z-index:1} .im_message_video_duration{background:rgba(0,0,0,.4);color:#fff;position:absolute;bottom:4px;right:4px;padding:2px 6px;font-size:11px;line-height:15px;border-radius:2px;overflow:hidden;z-index:1}
.icon-videoplay{position:absolute;display:inline-block;top:50%;left:50%;margin-left:-21px;margin-top:-21px;width:42px;height:42px;z-index:1;background-image:url(../img/icons/IconsetW.png);background-repeat:no-repeat;background-position:0 -590px} .icon-videoplay{position:absolute;display:inline-block;top:50%;left:50%;margin-left:-5px;margin-top:-9px;z-index:1;width:0;height:0;border-style:solid;border-width:9px 0 9px 14px;border-color:transparent transparent transparent #fff}
.is_2x .icon-videoplay{background-image:url(../img/icons/IconsetW_2x.png);background-size:42px 1171px;background-position:0 -591px}
.im_message_geopoint{border-radius:2px;margin-top:5px;overflow:hidden;display:block;position:relative;width:300px;height:150px} .im_message_geopoint{border-radius:2px;margin-top:5px;overflow:hidden;display:block;position:relative;width:300px;height:150px}
.im_message_venue_geopoint_wrap{display:block;position:relative;overflow:hidden;width:100px;height:100px;margin-right:10px;float:left;border-radius:2px;background:#f2f2f2;text-align:center;line-height:0} .im_message_venue_geopoint_wrap{display:block;position:relative;overflow:hidden;width:100px;height:100px;margin-right:10px;float:left;border-radius:2px;background:#f2f2f2;text-align:center;line-height:0}
.icon-geo-point{position:absolute;display:inline-block;top:50%;left:50%;margin-left:-8px;margin-top:-15px;width:15px;height:19px;background-image:url(../img/icons/IconsetW.png);background-repeat:no-repeat;background-position:-14px -389px} .icon-geo-point{position:absolute;display:inline-block;top:50%;left:50%;margin-left:-8px;margin-top:-15px;width:15px;height:19px;background-image:url(../img/icons/IconsetW.png);background-repeat:no-repeat;background-position:-14px -389px}
@ -1412,6 +1418,7 @@ div.im_message_video_thumb{position:relative}
.im_message_twitter_embed>blockquote{visibility:hidden} .im_message_twitter_embed>blockquote{visibility:hidden}
.im_message_webpage_gif .img_gif_with_progress_wrap{margin-top:5px;display:block} .im_message_webpage_gif .img_gif_with_progress_wrap{margin-top:5px;display:block}
.im_message_gif_wrap{position:relative} .im_message_gif_wrap{position:relative}
.img_gif_with_progress_wrap{display:inline-block;line-height:0}
.im_message_gif_btn{color:#fff;font-style:normal;font-weight:700;position:absolute;display:inline-block;top:50%;left:50%;margin-left:-22px;margin-top:-21px;border:2px solid #fff;border-radius:20px;padding:10px;z-index:1} .im_message_gif_btn{color:#fff;font-style:normal;font-weight:700;position:absolute;display:inline-block;top:50%;left:50%;margin-left:-22px;margin-top:-21px;border:2px solid #fff;border-radius:20px;padding:10px;z-index:1}
.im_message_audio,.im_message_document,.im_message_upload_file,.im_message_video{margin-top:3px;width:317px} .im_message_audio,.im_message_document,.im_message_upload_file,.im_message_video{margin-top:3px;width:317px}
.im_message_audio{margin-top:3px} .im_message_audio{margin-top:3px}
@ -1823,7 +1830,7 @@ img.chat_modal_participant_photo{width:40px;height:40px}
.stickerset_actions{padding:10px 20px;height:50px;text-align:center} .stickerset_actions{padding:10px 20px;height:50px;text-align:center}
.stickerset_modal_loading{text-align:center;color:#999;font-size:16px;line-height:18px;padding:1px 50px;margin:0} .stickerset_modal_loading{text-align:center;color:#999;font-size:16px;line-height:18px;padding:1px 50px;margin:0}
.confirm_modal_window .modal-dialog,.error_modal_window .modal-dialog,.md_simple_modal_window .modal-dialog{max-width:348px} .confirm_modal_window .modal-dialog,.error_modal_window .modal-dialog,.md_simple_modal_window .modal-dialog{max-width:348px}
.im_message_focus_active .audio_player_duration,.im_message_focus_active .audio_player_size,.im_message_focus_active .im_message_date,.im_message_focus_active .im_message_document_size,.im_message_focus_active .im_message_edited,.im_message_focus_active .im_message_fwd_date,.im_message_focus_active .im_message_sign_link,.im_message_focus_active .im_message_views_cnt{color:#899daf} .im_message_focus_active .audio_player_duration,.im_message_focus_active .audio_player_size,.im_message_focus_active .im_message_author_admin,.im_message_focus_active .im_message_date,.im_message_focus_active .im_message_document_size,.im_message_focus_active .im_message_edited,.im_message_focus_active .im_message_fwd_date,.im_message_focus_active .im_message_sign_link,.im_message_focus_active .im_message_views_cnt{color:#899daf}
.im_message_focus_active .im_message_outer_wrap{background-color:rgba(242,246,250,0);animation-name:im_message_focus_fade;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-out;animation-duration:4s} .im_message_focus_active .im_message_outer_wrap{background-color:rgba(242,246,250,0);animation-name:im_message_focus_fade;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-out;animation-duration:4s}
@keyframes im_message_focus_fade{from{background-color:#f2f6fa} @keyframes im_message_focus_fade{from{background-color:#f2f6fa}
to{background-color:rgba(242,246,250,0)}} to{background-color:rgba(242,246,250,0)}}
@ -1853,8 +1860,10 @@ a.peer_photo_init:active,a.peer_photo_init:focus,a.peer_photo_init:hover{text-de
.img_gif_meta_contents{transition:all cubic-bezier(.25,.46,.45,.94) .2s} .img_gif_meta_contents{transition:all cubic-bezier(.25,.46,.45,.94) .2s}
.img_gif_meta_contents.ng-enter,.img_gif_meta_contents.ng-leave.ng-leave-active{opacity:0} .img_gif_meta_contents.ng-enter,.img_gif_meta_contents.ng-leave.ng-leave-active{opacity:0}
.img_gif_meta_contents.ng-enter.ng-enter-active,.img_gif_meta_contents.ng-leave{opacity:1} .img_gif_meta_contents.ng-enter.ng-enter-active,.img_gif_meta_contents.ng-leave{opacity:1}
.img_round_image_wrap{position:relative;border-radius:50%;overflow:hidden} .img_round_with_progress_wrap{display:inline-block;line-height:0}
.img_round_image_wrap{position:relative;overflow:hidden;border-radius:50%;-webkit-transform:translateZ(0)}
.img_round_meta{background:rgba(0,0,0,.4);width:40px;height:40px;line-height:0;position:absolute;z-index:2;border-radius:50%;overflow:hidden;margin:-20px auto 0 -20px;top:50%;left:50%;pointer-events:none} .img_round_meta{background:rgba(0,0,0,.4);width:40px;height:40px;line-height:0;position:absolute;z-index:2;border-radius:50%;overflow:hidden;margin:-20px auto 0 -20px;top:50%;left:50%;pointer-events:none}
.img_round_video_unread .img_round_meta{background:rgba(100,144,177,.6)}
.icon-cancel{position:absolute;top:50%;left:50%;margin-left:-9px;margin-top:-1px} .icon-cancel{position:absolute;top:50%;left:50%;margin-left:-9px;margin-top:-1px}
.icon-cancel .icon-bar{display:block;width:18px;height:2px;background:#FFF;transform-origin:50% 50%} .icon-cancel .icon-bar{display:block;width:18px;height:2px;background:#FFF;transform-origin:50% 50%}
.icon-cancel .icon-bar:first-child{-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-o-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)} .icon-cancel .icon-bar:first-child{-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-o-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}

31
css/desktop.css

@ -598,9 +598,6 @@ a.footer_link.active:active {
} }
.im_history_scrollable_wrap { .im_history_scrollable_wrap {
/* Hardware acceleration in Safari */ /* Hardware acceleration in Safari */
-webkit-transform: translateZ(0);
-webkit-perspective: 1000;
-webkit-backface-visibility: hidden;
} }
.im_history_col .nano > .nano-pane, .im_history_col .nano > .nano-pane,
.contacts_modal_col .nano > .nano-pane, .contacts_modal_col .nano > .nano-pane,
@ -815,6 +812,7 @@ a.footer_link.active:active {
.im_message_selected .im_message_audio_duration, .im_message_selected .im_message_audio_duration,
.im_message_selected .im_message_audio_size, .im_message_selected .im_message_audio_size,
.im_message_selected .im_message_fwd_date, .im_message_selected .im_message_fwd_date,
.im_message_selected .im_message_author_admin,
.im_message_selected .im_message_views_cnt, .im_message_selected .im_message_views_cnt,
.im_message_selected .im_message_sign_link, .im_message_selected .im_message_sign_link,
.im_history_select_active .im_message_outer_wrap:hover .im_message_date, .im_history_select_active .im_message_outer_wrap:hover .im_message_date,
@ -822,6 +820,7 @@ a.footer_link.active:active {
.im_history_select_active .im_message_outer_wrap:hover .im_message_audio_duration, .im_history_select_active .im_message_outer_wrap:hover .im_message_audio_duration,
.im_history_select_active .im_message_outer_wrap:hover .im_message_audio_size, .im_history_select_active .im_message_outer_wrap:hover .im_message_audio_size,
.im_history_select_active .im_message_outer_wrap:hover .im_message_fwd_date, .im_history_select_active .im_message_outer_wrap:hover .im_message_fwd_date,
.im_history_select_active .im_message_outer_wrap:hover .im_message_author_admin,
.im_history_select_active .im_message_outer_wrap:hover .im_message_views_cnt, .im_history_select_active .im_message_outer_wrap:hover .im_message_views_cnt,
.im_history_select_active .im_message_outer_wrap:hover .im_message_sign_link { .im_history_select_active .im_message_outer_wrap:hover .im_message_sign_link {
color: #899daf; color: #899daf;
@ -961,7 +960,8 @@ a.peer_select_modal_share_link {
} }
.im_message_fwd .im_message_fwd_author_wrap, .im_message_fwd .im_message_fwd_author_wrap,
.im_message_fwd .im_message_text, .im_message_fwd .im_message_text,
.im_message_fwd .im_message_media { .im_message_fwd .im_message_media,
.im_message_fwd .im_message_sign {
margin-left: 52px; margin-left: 52px;
} }
.im_send_panel_wrap { .im_send_panel_wrap {
@ -1122,23 +1122,30 @@ a.im_panel_peer_photo .peer_initials {
} }
.im_record { .im_record {
display: none; display: none;
width: 50px; width: 18px;
height: 50px; height: 23px;
margin: -10px 0 0 -18px; margin-right: 15px;
user-select: none; user-select: none;
-moz-user-select: none; -moz-user-select: none;
-webkit-user-select: none; -webkit-user-select: none;
-ms-user-select: none; -ms-user-select: none;
position: relative;
}
.im_record_supported .im_record {
display: block;
}
.im_record_bg {
position: absolute;
margin: -10px 0 0 -16px;
padding: 13px 16px 13px 16px; padding: 13px 16px 13px 16px;
width: 50px;
height: 50px;
border-radius: 50px; border-radius: 50px;
overflow: hidden; overflow: hidden;
background: #fff; background: #fff;
transition: background-color linear 0.2s; transition: background-color linear 0.2s;
} }
.im_record_supported .im_record { .im_send_form_hover .im_voice_recording .im_record_bg {
display: block;
}
.im_send_form_hover .im_voice_recording .im_record {
background: #cae9ff; background: #cae9ff;
} }
.icon-mic { .icon-mic {
@ -1301,7 +1308,7 @@ a.im_panel_peer_photo .peer_initials {
.im_record { .im_record {
display: none; display: none;
position: absolute; position: absolute;
top: -4px; top: 5px;
right: -56px; right: -56px;
margin-top: -8px; margin-top: -8px;
} }

25
css/mobile.css

@ -666,11 +666,17 @@ img.im_message_video_thumb,
} }
.im_message_date { .im_message_date {
font-size: 10px; font-size: 10px;
line-height: 12px;
padding: 0; padding: 0;
display: block;
} }
.im_message_edited { .im_message_edited {
position: absolute; display: block;
top: -11px; margin-top: 4px;
}
.im_message_date_text {
display: block;
margin-top: 3px;
} }
.im_message_out .im_message_fwd_date { .im_message_out .im_message_fwd_date {
color: #93a2ae; color: #93a2ae;
@ -727,11 +733,18 @@ a.im_message_author_via .im_message_fwd_author {
.im_message_author { .im_message_author {
display: none; display: none;
} }
.im_message_author_admin {
display: none;
}
.im_history_messages_group a.im_message_author { .im_history_messages_group a.im_message_author {
display: inline; display: inline;
font-size: 13px; font-size: 13px;
font-weight: normal; font-weight: normal;
} }
.im_history_messages_group .im_message_author_admin {
display: inline;
font-size: 13px;
}
.im_history_messages_group .im_message_sign_link { .im_history_messages_group .im_message_sign_link {
font-size: 12px; font-size: 12px;
} }
@ -742,19 +755,25 @@ a.im_message_author_via .im_message_fwd_author {
} }
.im_grouped_short a.im_message_from_photo, .im_grouped_short a.im_message_from_photo,
.im_grouped_short a.im_message_author, .im_grouped_short a.im_message_author,
.im_grouped_short .im_message_author_admin,
.im_grouped_short a.im_message_author_via, .im_grouped_short a.im_message_author_via,
.im_grouped a.im_message_from_photo, .im_grouped a.im_message_from_photo,
.im_grouped a.im_message_author, .im_grouped a.im_message_author,
.im_grouped a.im_message_author_via, .im_grouped a.im_message_author_via,
.im_grouped a.im_message_author_admin,
.im_grouped_fwd a.im_message_from_photo, .im_grouped_fwd a.im_message_from_photo,
.im_grouped_fwd a.im_message_author, .im_grouped_fwd a.im_message_author,
.im_grouped_fwd a.im_message_author_via, .im_grouped_fwd a.im_message_author_via,
.im_grouped_fwd a.im_message_author_admin,
.im_grouped_fwd_short a.im_message_from_photo, .im_grouped_fwd_short a.im_message_from_photo,
.im_grouped_fwd_short a.im_message_author, .im_grouped_fwd_short a.im_message_author,
.im_grouped_fwd_short a.im_message_author_via, .im_grouped_fwd_short a.im_message_author_via,
.im_grouped_fwd_short a.im_message_author_admin,
.im_message_out a.im_message_from_photo, .im_message_out a.im_message_from_photo,
.im_message_out a.im_message_author, .im_message_out a.im_message_author,
.im_message_body_media a.im_message_author { .im_message_out a.im_message_author_admin,
.im_message_body_media a.im_message_author,
.im_message_body_media a.im_message_author_admin {
display: none; display: none;
} }
.im_message_wrap { .im_message_wrap {

BIN
img/placeholders/Fave.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 972 B

141
js/app.js

File diff suppressed because one or more lines are too long

2
js/background.js

@ -1,5 +1,5 @@
/*! /*!
* Webogram v0.6.1 - messaging web application for MTProto * Webogram v0.7 - messaging web application for MTProto
* https://github.com/zhukov/webogram * https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com> * Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE * https://github.com/zhukov/webogram/blob/master/LICENSE

2
js/lib/bin_utils.js

@ -1,5 +1,5 @@
/*! /*!
* Webogram v0.6.1 - messaging web application for MTProto * Webogram v0.7 - messaging web application for MTProto
* https://github.com/zhukov/webogram * https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com> * Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE * https://github.com/zhukov/webogram/blob/master/LICENSE

2
js/lib/crypto_worker.js

@ -1,5 +1,5 @@
/*! /*!
* Webogram v0.6.1 - messaging web application for MTProto * Webogram v0.7 - messaging web application for MTProto
* https://github.com/zhukov/webogram * https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com> * Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE * https://github.com/zhukov/webogram/blob/master/LICENSE

10
js/lib/push_worker.js

@ -54,13 +54,13 @@ self.addEventListener('push', function(event) {
var closePromise = notificationPromise.catch(function () { var closePromise = notificationPromise.catch(function () {
console.log('[SW] Closing all notifications on push', hasActiveWindows) console.log('[SW] Closing all notifications on push', hasActiveWindows)
if (userInvisibleIsSupported()) { if (userInvisibleIsSupported() || hasActiveWindows) {
return closeAllNotifications() return closeAllNotifications()
} }
var promise = self.registration.showNotification('Telegram').then(function () { var promise = self.registration.showNotification('Telegram').then(function () {
// if (hasActiveWindows) { if (hasActiveWindows) {
// return closeAllNotifications() return closeAllNotifications()
// } }
setTimeout(closeAllNotifications, hasActiveWindows ? 0 : 100) setTimeout(closeAllNotifications, hasActiveWindows ? 0 : 100)
}).catch(function (error) { }).catch(function (error) {
console.error('Show notification error', error) console.error('Show notification error', error)
@ -133,6 +133,8 @@ function fireNotification(obj, settings, lang) {
tag = 'unknown_peer' tag = 'unknown_peer'
} }
console.log('[SW] show notify', title, body, icon, obj)
var notificationPromise = self.registration.showNotification(title, { var notificationPromise = self.registration.showNotification(title, {
body: body, body: body,
icon: icon, icon: icon,

19
js/locales/en-us.json

@ -11,6 +11,7 @@
"group_modal_info": "Group info", "group_modal_info": "Group info",
"group_modal_pluralize_participants": "{'0': 'No members', 'one': '1 member', 'other': '{} members'}", "group_modal_pluralize_participants": "{'0': 'No members', 'one': '1 member', 'other': '{} members'}",
"group_modal_pluralize_online_participants": "{'one': '1 online', 'other': '{} online'}", "group_modal_pluralize_online_participants": "{'one': '1 online', 'other': '{} online'}",
"group_modal_pluralize_subscribers": "{'0': 'No subscribers', 'one': '1 subscriber', 'other': '{} subscribers'}",
"group_modal_participants": "{total}, {online}", "group_modal_participants": "{total}, {online}",
"group_modal_add_member": "Add member", "group_modal_add_member": "Add member",
"group_modal_return": "Return to group", "group_modal_return": "Return to group",
@ -168,6 +169,7 @@
"user_name_deleted": "DELETED", "user_name_deleted": "DELETED",
"user_first_name_deleted": "DELETED", "user_first_name_deleted": "DELETED",
"user_name_saved_msgs": "Saved Messages",
"user_status_online": "online", "user_status_online": "online",
"user_status_last_seen": "last seen {0}", "user_status_last_seen": "last seen {0}",
"user_status_recently": "last seen recently", "user_status_recently": "last seen recently",
@ -238,7 +240,7 @@
"confirm_modal_message_revoke_recipient_chat": "everyone", "confirm_modal_message_revoke_recipient_chat": "everyone",
"confirm_modal_delete_messages_for_everyone_chat": "This will delete messages for everyone in this chat.", "confirm_modal_delete_messages_for_everyone_chat": "This will delete messages for everyone in this chat.",
"confirm_modal_delete_messages_for_you_only_pm": "This will delete messages just for you, not for {user}.", "confirm_modal_delete_messages_for_you_only_pm": "This will delete messages just for you, not for {user}.",
"confirm_modal_delete_messages_for_you_only_chat": "This will delete messages just for you, not for other participants of the chat.", "confirm_modal_delete_messages_for_you_only_chat": "This will delete messages just for you, not for other members of the chat.",
"confirm_modal_photo_delete": "Are you sure you want to delete the photo?", "confirm_modal_photo_delete": "Are you sure you want to delete the photo?",
"confirm_modal_contacts_import": "Telegram will now sync your contacts in order to find your friends.", "confirm_modal_contacts_import": "Telegram will now sync your contacts in order to find your friends.",
"confirm_modal_login_phone_correct": "Is this phone number correct?", "confirm_modal_login_phone_correct": "Is this phone number correct?",
@ -288,7 +290,7 @@
"contacts_modal_edit_list": "Edit", "contacts_modal_edit_list": "Edit",
"contacts_modal_edit_cancel": "Cancel", "contacts_modal_edit_cancel": "Cancel",
"contacts_modal_edit_delete": "Delete", "contacts_modal_edit_delete": "Delete",
"contacts_modal_pluralize_new_group_members": "{'one': '1 participant', 'other': '{} participants'}", "contacts_modal_pluralize_new_group_members": "{'one': '1 member', 'other': '{} members'}",
"contacts_modal_title": "Contacts", "contacts_modal_title": "Contacts",
"contacts_modal_new_contact": "New contact", "contacts_modal_new_contact": "New contact",
"contacts_modal_empty_list": "Your contacts list is empty. You can {import-link: add new contact} by phone number.", "contacts_modal_empty_list": "Your contacts list is empty. You can {import-link: add new contact} by phone number.",
@ -383,6 +385,8 @@
"message_service_scored_X": "{'one': 'scored {}', 'other': 'scored {}'}", "message_service_scored_X": "{'one': 'scored {}', 'other': 'scored {}'}",
"message_service_payment_sent": "Payment sent", "message_service_payment_sent": "Payment sent",
"message_admin_badge": "admin",
"message_action_reply": "Reply", "message_action_reply": "Reply",
"message_action_edit": "Edit", "message_action_edit": "Edit",
"message_action_delete": "Delete", "message_action_delete": "Delete",
@ -458,8 +462,11 @@
"head_media_photos": "Photos", "head_media_photos": "Photos",
"head_media_video": "Videos", "head_media_video": "Videos",
"head_media_documents": "Files", "head_media_documents": "Files",
"head_media_music": "Audio",
"head_media_links": "Shared links",
"head_media_audio": "Voice messages", "head_media_audio": "Voice messages",
"head_media_round": "Video messages", "head_media_round": "Video messages",
"head_media_mymentions": "Mentions",
"head_media_search": "Search", "head_media_search": "Search",
"head_about": "About", "head_about": "About",
"head_clear_all": "Clear history", "head_clear_all": "Clear history",
@ -479,7 +486,7 @@
"im_new_group": "New group", "im_new_group": "New group",
"im_new_contact": "New contact", "im_new_contact": "New contact",
"im_contacts": "Contacts", "im_contacts": "Contacts",
"im_contacts_title": "Contacts", "im_chat_contacts_title": "Chats and contacts",
"im_settings": "Settings", "im_settings": "Settings",
"im_conversations": "Conversations", "im_conversations": "Conversations",
"im_found_title": "Global search", "im_found_title": "Global search",
@ -498,6 +505,10 @@
"im_media_video": "Videos", "im_media_video": "Videos",
"im_media_documents": "Files", "im_media_documents": "Files",
"im_media_audio": "Voice messages", "im_media_audio": "Voice messages",
"im_media_round": "Video messages",
"im_media_music": "Audio",
"im_media_links": "Shared Links",
"im_media_mentions": "Mentions and Replies",
"im_pluralize_participants": "{'0': 'No members', 'one': '1 member', 'other': '{} members'}", "im_pluralize_participants": "{'0': 'No members', 'one': '1 member', 'other': '{} members'}",
"im_show_recent_messages": "Show recent messages", "im_show_recent_messages": "Show recent messages",
"im_show_all_messages": "Show all messages", "im_show_all_messages": "Show all messages",
@ -608,7 +619,7 @@
"message_attach_unsupported": "The message is not supported on your version of Telegram Web. Update the app to view: {link}.", "message_attach_unsupported": "The message is not supported on your version of Telegram Web. Update the app to view: {link}.",
"conversation_select_modal_title": "Select conversation", "conversation_select_modal_title": "Select conversation",
"conversation_select_modal_contacts": "Contacts", "conversation_select_modal_chats_contacts": "Chats and contacts",
"conversation_one_selected": "{name1}", "conversation_one_selected": "{name1}",
"conversation_two_selected": "{name1} and {name2}", "conversation_two_selected": "{name1} and {name2}",
"conversation_many_selected": "{name1}, {name2} and {count} more", "conversation_many_selected": "{name1}, {name2} and {count} more",

2
manifest.json

@ -1,7 +1,7 @@
{ {
"name": "Telegram", "name": "Telegram",
"description": "Telegram Web App.\nMore info & source code here: https://github.com/zhukov/webogram", "description": "Telegram Web App.\nMore info & source code here: https://github.com/zhukov/webogram",
"version": "0.6.1", "version": "0.7",
"short_name": "Telegram", "short_name": "Telegram",
"manifest_version": 2, "manifest_version": 2,
"app": { "app": {

2
manifest.webapp

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

2
service_worker.js

File diff suppressed because one or more lines are too long

27
webogram.appcache

@ -8,6 +8,7 @@ service_worker.js
css/app.css css/app.css
css/desktop.css css/desktop.css
css/mobile.css css/mobile.css
js/app.js
img/Manytabs.png img/Manytabs.png
img/Manytabs_2x.png img/Manytabs_2x.png
img/Telegram.png img/Telegram.png
@ -25,9 +26,19 @@ img/iphone_home120.png
img/iphone_startup.png img/iphone_startup.png
img/logo_share.png img/logo_share.png
img/sound_a.mp3 img/sound_a.mp3
js/app.js
nacl/mtproto_crypto.nmf nacl/mtproto_crypto.nmf
nacl/mtproto_crypto.pexe nacl/mtproto_crypto.pexe
js/lib/bin_utils.js
js/lib/crypto_worker.js
js/lib/polyfill.js
js/lib/push_worker.js
js/locales/de-de.json
js/locales/en-us.json
js/locales/es-es.json
js/locales/it-it.json
js/locales/nl-nl.json
js/locales/pt-br.json
js/locales/ru-ru.json
img/changelog/card_wecandoit.png img/changelog/card_wecandoit.png
img/icons/AboutLogos.png img/icons/AboutLogos.png
img/icons/AboutLogos_2x.png img/icons/AboutLogos_2x.png
@ -47,6 +58,7 @@ img/icons/ProfileIcons.png
img/icons/ProfileIcons_2x.png img/icons/ProfileIcons_2x.png
img/icons/icon.svg img/icons/icon.svg
img/placeholders/DialogListAvatarSystem@2x.png img/placeholders/DialogListAvatarSystem@2x.png
img/placeholders/Fave.png
img/placeholders/GroupAvatar1@2x.png img/placeholders/GroupAvatar1@2x.png
img/placeholders/GroupAvatar2@2x.png img/placeholders/GroupAvatar2@2x.png
img/placeholders/GroupAvatar3@2x.png img/placeholders/GroupAvatar3@2x.png
@ -63,17 +75,6 @@ img/placeholders/UserAvatar7@2x.png
img/placeholders/UserAvatar8@2x.png img/placeholders/UserAvatar8@2x.png
img/placeholders/VideoThumbConversation.gif img/placeholders/VideoThumbConversation.gif
img/placeholders/VideoThumbModal.gif img/placeholders/VideoThumbModal.gif
js/lib/bin_utils.js
js/lib/crypto_worker.js
js/lib/polyfill.js
js/lib/push_worker.js
js/locales/de-de.json
js/locales/en-us.json
js/locales/es-es.json
js/locales/it-it.json
js/locales/nl-nl.json
js/locales/pt-br.json
js/locales/ru-ru.json
vendor/closure/long.js vendor/closure/long.js
vendor/cryptoJS/crypto.js vendor/cryptoJS/crypto.js
vendor/jsbn/jsbn_combined.js vendor/jsbn/jsbn_combined.js
@ -94,4 +95,4 @@ http://*
https://* https://*
* *
# hash: 8e8f8a2c296c4416198dfc2289cb1a7b6c14c1e0cba255b7da6786bcbc2c3670 # hash: aa60b07fab141d3795de85a153534305f3c044afb164c662fe07ba101a2c02ed
Loading…
Cancel
Save