Browse Source

Update 2017-01-12T17:25:21.658Z

gh-pages
Igor Zhukov 8 years ago
parent
commit
d5ded2fbbb
  1. 7
      css/desktop.css
  2. 22
      img/icons/icon.svg
  3. BIN
      img/icons/icon192.png
  4. BIN
      img/icons/icon512.png
  5. 2
      index.html
  6. 26
      js/app.js
  7. 14
      js/lib/push_worker.js
  8. 1
      js/locales/de-de.json
  9. 6
      js/locales/en-us.json
  10. 11
      js/locales/es-es.json
  11. 1
      js/locales/it-it.json
  12. 13
      js/locales/nl-nl.json
  13. 1
      js/locales/pt-br.json
  14. 1
      js/locales/ru-ru.json
  15. 3
      manifest.json
  16. 2
      service_worker.js
  17. 3
      webogram.appcache

7
css/desktop.css

@ -975,6 +975,9 @@ a.im_panel_peer_photo .peer_initials {
margin-top: -12px; margin-top: -12px;
margin-left: 36px; margin-left: 36px;
} }
.composer_emoji_insert_btn {
z-index: 1;
}
.composer_emoji_insert_btn:hover .icon-emoji { .composer_emoji_insert_btn:hover .icon-emoji {
opacity: 1; opacity: 1;
} }
@ -997,11 +1000,13 @@ a.im_panel_peer_photo .peer_initials {
box-shadow: none; box-shadow: none;
outline: none; outline: none;
box-shadow: 0 1px 0 0 #e8e8e8; box-shadow: 0 1px 0 0 #e8e8e8;
padding: 1px 30px 1px 0; padding: 1px 28px 1px 0;
position: relative;
margin: 0; margin: 0;
min-height: 50px; min-height: 50px;
line-height: 20px; line-height: 20px;
height: auto; height: auto;
box-sizing: border-box;
} }
.composer_rich_textarea:focus, .composer_rich_textarea:focus,
.composer_textarea:focus { .composer_textarea:focus {

22
img/icons/icon.svg

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="IFTTT_Applet_Logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
y="0px" width="620px" height="620px" viewBox="0 0 620 620" enable-background="new 0 0 620 620" xml:space="preserve">
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="311.1667" y1="603.3333" x2="311.1667" y2="19">
<stop offset="0" style="stop-color:#1D93D2"/>
<stop offset="1" style="stop-color:#38B0E3"/>
</linearGradient>
<circle fill="url(#SVGID_1_)" stroke="#FFFFFF" stroke-width="28" stroke-miterlimit="10" cx="311.167" cy="311.167" r="292.167"/>
<path fill="#C8DAEA" d="M220.759,338.848l35.363,97.88c0,0,4.42,9.157,9.157,9.157s75.147-73.252,75.147-73.252l78.304-151.24
l-196.707,92.197L220.759,338.848z"/>
<path fill="#A9C6D8" d="M267.646,363.949l-6.788,72.147c0,0-2.842,22.102,19.26,0c22.102-22.102,43.257-39.152,43.257-39.152"/>
<g>
<path fill="#FFFFFF" d="M221.398,342.34l-72.734-23.7c0,0-8.683-3.526-5.894-11.525c0.575-1.65,1.736-3.052,5.21-5.473
c16.119-11.234,298.324-112.667,298.324-112.667s7.969-2.683,12.677-0.898c2.152,0.816,3.526,1.737,4.684,5.104
c0.421,1.225,0.663,3.83,0.631,6.42c-0.023,1.868-0.253,3.599-0.421,6.315c-1.719,27.732-53.145,234.705-53.145,234.705
s-3.076,12.112-14.103,12.524c-4.02,0.15-8.9-0.664-14.734-5.683c-21.635-18.612-96.42-68.87-112.944-79.924
c-0.93-0.622-1.197-1.433-1.354-2.222c-0.233-1.165,1.034-2.61,1.034-2.61S398.847,246.957,402.31,234.811
c0.268-0.941-0.739-1.406-2.105-1c-8.65,3.182-158.58,97.857-175.126,108.312C224.112,342.734,221.398,342.34,221.398,342.34z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
img/icons/icon192.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

BIN
img/icons/icon512.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

2
index.html

@ -1 +1 @@
<!doctype html><html lang=en manifest=webogram.appcache ng-csp xmlns:ng=http://angularjs.org id=ng-app style="display: none;"><head><meta charset=utf-8><meta name=viewport content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"><title>Telegram Web</title><link rel=stylesheet href=css/app.css><link rel=manifest href=manifest.json><link rel=icon href=favicon.ico type=image/x-icon><link rel=apple-touch-icon href=img/iphone_home120.png><link rel=apple-touch-icon sizes=120x120 href=img/iphone_home120.png><link rel=apple-touch-startup-image media="(device-width: 320px)" href=img/iphone_startup.png><meta name=apple-mobile-web-app-title content="Telegram Web"><meta name=mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black-translucent><meta name=theme-color content=#497495><meta name=google content=notranslate><meta property=og:title content="Telegram Web"><meta property=og:url content="https://web.telegram.org/"><meta property=og:image content=https://web.telegram.org/img/logo_share.png><meta property=og:site_name content="Telegram Web"><meta property=og:description content="Welcome to the Web application of Telegram messenger. See https://github.com/zhukov/webogram for more info."></head><body><div class=page_wrap ng-view></div><div id=notify_sound></div><script src=js/app.js></script></body></html> <!doctype html><html lang=en manifest=webogram.appcache ng-csp xmlns:ng=http://angularjs.org id=ng-app style="display: none;"><head><meta charset=utf-8><meta name=viewport content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"><title>Telegram Web</title><link rel=stylesheet href=css/app.css><link rel=manifest href=manifest.webapp.json><link rel=icon href=favicon.ico type=image/x-icon><link rel=apple-touch-icon href=img/iphone_home120.png><link rel=apple-touch-icon sizes=120x120 href=img/iphone_home120.png><link rel=apple-touch-startup-image media="(device-width: 320px)" href=img/iphone_startup.png><meta name=apple-mobile-web-app-title content="Telegram Web"><meta name=mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black-translucent><meta name=theme-color content=#497495><meta name=google content=notranslate><meta property=og:title content="Telegram Web"><meta property=og:url content="https://web.telegram.org/"><meta property=og:image content=https://web.telegram.org/img/logo_share.png><meta property=og:site_name content="Telegram Web"><meta property=og:description content="Welcome to the Web application of Telegram messenger. See https://github.com/zhukov/webogram for more info."></head><body><div class=page_wrap ng-view></div><div id=notify_sound></div><script src=js/app.js></script></body></html>

26
js/app.js

File diff suppressed because one or more lines are too long

14
js/lib/push_worker.js

@ -1,8 +1,5 @@
console.log('[SW] Push worker started') console.log('[SW] Push worker started')
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1
var userInvisibleSupported = isFirefox ? true : false
var pendingNotification = false var pendingNotification = false
var defaultBaseUrl var defaultBaseUrl
@ -31,7 +28,7 @@ self.addEventListener('push', function(event) {
Promise.all([getMuteUntil(), getLastAliveTime()]).then(function (result) { Promise.all([getMuteUntil(), getLastAliveTime()]).then(function (result) {
var muteUntil = result[0] var muteUntil = result[0]
var lastAliveTime = result[1] var lastAliveTime = result[1]
if (userInvisibleSupported && if (userInvisibleIsSupported() &&
muteUntil && muteUntil &&
nowTime < muteUntil) { nowTime < muteUntil) {
console.log('Supress notification because mute for ', Math.ceil((muteUntil - nowTime) / 60000), 'min') console.log('Supress notification because mute for ', Math.ceil((muteUntil - nowTime) / 60000), 'min')
@ -61,7 +58,7 @@ 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 (userInvisibleSupported) { if (userInvisibleIsSupported()) {
return closeAllNotifications() return closeAllNotifications()
} }
var promise = self.registration.showNotification('Telegram').then(function () { var promise = self.registration.showNotification('Telegram').then(function () {
@ -221,7 +218,7 @@ self.addEventListener('notificationclick', function(event) {
notification.close() notification.close()
var action = event.action var action = event.action
if (action == 'mute1d' && userInvisibleSupported) { if (action == 'mute1d' && userInvisibleIsSupported()) {
console.log('[SW] mute for 1d') console.log('[SW] mute for 1d')
muteUntil = +(new Date()) + 86400000 muteUntil = +(new Date()) + 86400000
IDBManager.setItem('push_mute_until', muteUntil) IDBManager.setItem('push_mute_until', muteUntil)
@ -438,3 +435,8 @@ function getSettings() {
return {} return {}
}) })
} }
function userInvisibleIsSupported() {
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1
return isFirefox ? true : false
}

1
js/locales/de-de.json

@ -547,6 +547,7 @@
"push_action_mute1d_mobile": "Stumm für 24h", "push_action_mute1d_mobile": "Stumm für 24h",
"push_action_settings_mobile": "Einstellungen", "push_action_settings_mobile": "Einstellungen",
"push_message_nopreview": "Du hast eine neue Nachricht", "push_message_nopreview": "Du hast eine neue Nachricht",
"push_action_mute1d_success": "Benachrichtigungseinstellungen erfolgreich gespeichert.",
"country_select_modal_country_ab": "Abchasien", "country_select_modal_country_ab": "Abchasien",
"country_select_modal_country_af": "Afghanistan", "country_select_modal_country_af": "Afghanistan",
"country_select_modal_country_ax": "Åland-Inseln", "country_select_modal_country_ax": "Åland-Inseln",

6
js/locales/en-us.json

@ -432,7 +432,7 @@
"head_settings": "Settings", "head_settings": "Settings",
"head_log_out": "Log out", "head_log_out": "Log out",
"head_peer_more": "More", "head_peer_more": "More",
"head_edit_messages": "Edit messages", "head_select_messages": "Select messages",
"head_media_photos": "Photos", "head_media_photos": "Photos",
"head_media_video": "Videos", "head_media_video": "Videos",
"head_media_documents": "Files", "head_media_documents": "Files",
@ -440,7 +440,7 @@
"head_media_search": "Search", "head_media_search": "Search",
"head_about": "About", "head_about": "About",
"head_clear_all": "Clear history", "head_clear_all": "Clear history",
"head_edit": "Edit", "head_select": "Select",
"head_typing": "typing", "head_typing": "typing",
"head_pluralize_participants": "{'0': 'No members', 'one': '1 member', 'other': '{} members'}", "head_pluralize_participants": "{'0': 'No members', 'one': '1 member', 'other': '{} members'}",
"head_one_typing": "{name1} is typing{dots}", "head_one_typing": "{name1} is typing{dots}",
@ -471,7 +471,7 @@
"im_select_a_chat": "Please select a chat to start messaging", "im_select_a_chat": "Please select a chat to start messaging",
"im_loading_history": "Loading history", "im_loading_history": "Loading history",
"im_info": "Info", "im_info": "Info",
"im_edit": "Edit", "im_select": "Select",
"im_media": "Media", "im_media": "Media",
"im_media_photos": "Photos", "im_media_photos": "Photos",
"im_media_video": "Videos", "im_media_video": "Videos",

11
js/locales/es-es.json

@ -20,7 +20,7 @@
"group_modal_menu_edit_group": "Editar grupo", "group_modal_menu_edit_group": "Editar grupo",
"group_modal_menu_leave": "Salir", "group_modal_menu_leave": "Salir",
"group_modal_menu_delete_group": "Eliminar y salir", "group_modal_menu_delete_group": "Eliminar y salir",
"group_modal_menu_clear_history": "Borrar historial", "group_modal_menu_clear_history": "Eliminar historial",
"group_modal_delete_group": "Eliminar grupo", "group_modal_delete_group": "Eliminar grupo",
"group_modal_settings": "Ajustes", "group_modal_settings": "Ajustes",
"group_modal_notifications": "Notificaciones", "group_modal_notifications": "Notificaciones",
@ -122,7 +122,7 @@
"user_modal_share_contact": "Compartir contacto", "user_modal_share_contact": "Compartir contacto",
"user_modal_block_user": "Bloquear usuario", "user_modal_block_user": "Bloquear usuario",
"user_modal_unblock_user": "Desbloquear usuario", "user_modal_unblock_user": "Desbloquear usuario",
"user_modal_clear_history": "Borrar historial", "user_modal_clear_history": "Eliminar historial",
"user_modal_delete_chat": "Eliminar chat", "user_modal_delete_chat": "Eliminar chat",
"user_modal_add_to_group": "Añadir al grupo", "user_modal_add_to_group": "Añadir al grupo",
"user_modal_info": "Información", "user_modal_info": "Información",
@ -233,7 +233,7 @@
"confirm_modal_bot_access_geo_inline": "Este bot podría querer saber tu ubicación cada vez que le envías una solicitud. Esto puede ser usado para entregar resultados específicos para tu ubicación.", "confirm_modal_bot_access_geo_inline": "Este bot podría querer saber tu ubicación cada vez que le envías una solicitud. Esto puede ser usado para entregar resultados específicos para tu ubicación.",
"confirm_modal_are_u_sure": "¿Confirmar?", "confirm_modal_are_u_sure": "¿Confirmar?",
"confirm_modal_logout_submit": "Cerrar sesión", "confirm_modal_logout_submit": "Cerrar sesión",
"confirm_modal_clear_history_submit": "Borrar historial", "confirm_modal_clear_history_submit": "Eliminar historial",
"confirm_modal_leave_chat_submit": "Salir", "confirm_modal_leave_chat_submit": "Salir",
"confirm_modal_delete_chat_submit": "Eliminar chat", "confirm_modal_delete_chat_submit": "Eliminar chat",
"confirm_modal_clipboard_files_send_submit": "Enviar", "confirm_modal_clipboard_files_send_submit": "Enviar",
@ -397,7 +397,7 @@
"head_media_audio": "Mensajes de voz", "head_media_audio": "Mensajes de voz",
"head_media_search": "Buscar", "head_media_search": "Buscar",
"head_about": "Acerca de", "head_about": "Acerca de",
"head_clear_all": "Borrar historial", "head_clear_all": "Eliminar historial",
"head_edit": "Editar", "head_edit": "Editar",
"head_typing": "escribiendo", "head_typing": "escribiendo",
"head_pluralize_participants": "{'0': 'Sin miembro', 'one': '1 miembro', 'other': '{} miembros'}", "head_pluralize_participants": "{'0': 'Sin miembro', 'one': '1 miembro', 'other': '{} miembros'}",
@ -442,7 +442,7 @@
"im_conversation_single_typing": "escribiendo{dots}", "im_conversation_single_typing": "escribiendo{dots}",
"im_conversation_group_typing": "{name} está escribiendo{dots}", "im_conversation_group_typing": "{name} está escribiendo{dots}",
"im_delete_chat": "Eliminar chat", "im_delete_chat": "Eliminar chat",
"im_clear_history": "Borrar historial", "im_clear_history": "Eliminar historial",
"im_delete": "Eliminar {count}", "im_delete": "Eliminar {count}",
"im_forward": "Reenviar {count}", "im_forward": "Reenviar {count}",
"im_reply": "Responder", "im_reply": "Responder",
@ -547,6 +547,7 @@
"push_action_mute1d_mobile": "Silenciar 24 h", "push_action_mute1d_mobile": "Silenciar 24 h",
"push_action_settings_mobile": "Ajustes de alertas", "push_action_settings_mobile": "Ajustes de alertas",
"push_message_nopreview": "Tienes un mensaje nuevo", "push_message_nopreview": "Tienes un mensaje nuevo",
"push_action_mute1d_success": "Los ajustes fueron guardados exitosamente.",
"country_select_modal_country_ab": "Abjasia", "country_select_modal_country_ab": "Abjasia",
"country_select_modal_country_af": "Afganistán", "country_select_modal_country_af": "Afganistán",
"country_select_modal_country_ax": "Islas Åland", "country_select_modal_country_ax": "Islas Åland",

1
js/locales/it-it.json

@ -547,6 +547,7 @@
"push_action_mute1d_mobile": "Silenzia per 24H", "push_action_mute1d_mobile": "Silenzia per 24H",
"push_action_settings_mobile": "Impostazioni avvisi", "push_action_settings_mobile": "Impostazioni avvisi",
"push_message_nopreview": "Hai un nuovo messaggio", "push_message_nopreview": "Hai un nuovo messaggio",
"push_action_mute1d_success": "Impostazioni di notifica salvate con successo.",
"country_select_modal_country_ab": "Abkhazia", "country_select_modal_country_ab": "Abkhazia",
"country_select_modal_country_af": "Afghanistan", "country_select_modal_country_af": "Afghanistan",
"country_select_modal_country_ax": "Isole Aland", "country_select_modal_country_ax": "Isole Aland",

13
js/locales/nl-nl.json

@ -60,7 +60,7 @@
"settings_modal_sounds": "Geluiden", "settings_modal_sounds": "Geluiden",
"settings_modal_language": "Taal", "settings_modal_language": "Taal",
"settings_modal_notifications": "Desktopmeldingen", "settings_modal_notifications": "Desktopmeldingen",
"settings_modal_pushes": "Achtergrondberichtgeving", "settings_modal_pushes": "Achtergrondmeldingen",
"settings_modal_message_preview": "Voorvertoning", "settings_modal_message_preview": "Voorvertoning",
"settings_modal_sound": "Geluid", "settings_modal_sound": "Geluid",
"settings_modal_enter_send_description_md": "**Enter** - bericht versturen, **Shift + Enter** - nieuwe regel", "settings_modal_enter_send_description_md": "**Enter** - bericht versturen, **Shift + Enter** - nieuwe regel",
@ -542,11 +542,12 @@
"inactive_title": "Such error, many tabs", "inactive_title": "Such error, many tabs",
"inactive_description_md": "Telegram kan maar in één tabblad tegelijkertijd actief zijn met de app.\nVernieuw deze pagina om het tabblad te gebruiken, of sluit het tabblad.", "inactive_description_md": "Telegram kan maar in één tabblad tegelijkertijd actief zijn met de app.\nVernieuw deze pagina om het tabblad te gebruiken, of sluit het tabblad.",
"inactive_reload_btn": "Vernieuw app", "inactive_reload_btn": "Vernieuw app",
"push_action_mute1d": "Mute background alerts for 1 day", "push_action_mute1d": "Achtergrondmeldingen 1 dag stil.",
"push_action_settings": "Background alerts settings", "push_action_settings": "Achtergrondmeldingsinstellingen",
"push_action_mute1d_mobile": "Mute for 24H", "push_action_mute1d_mobile": "24u stil",
"push_action_settings_mobile": "Alerts settings", "push_action_settings_mobile": "Meldingsinstellingen",
"push_message_nopreview": "You have a new message", "push_message_nopreview": "Je hebt een nieuw bericht",
"push_action_mute1d_success": "Meldingsinstellingen opgeslagen.",
"country_select_modal_country_ab": "Abchazië", "country_select_modal_country_ab": "Abchazië",
"country_select_modal_country_af": "Afghanistan", "country_select_modal_country_af": "Afghanistan",
"country_select_modal_country_ax": "Åland", "country_select_modal_country_ax": "Åland",

1
js/locales/pt-br.json

@ -547,6 +547,7 @@
"push_action_mute1d_mobile": "Silenciar por 24H", "push_action_mute1d_mobile": "Silenciar por 24H",
"push_action_settings_mobile": "Configurações de alerta", "push_action_settings_mobile": "Configurações de alerta",
"push_message_nopreview": "Você tem uma nova mensagem", "push_message_nopreview": "Você tem uma nova mensagem",
"push_action_mute1d_success": "Configurações de notificação salvas com sucesso.",
"country_select_modal_country_ab": "Abcássia", "country_select_modal_country_ab": "Abcássia",
"country_select_modal_country_af": "Afeganistão", "country_select_modal_country_af": "Afeganistão",
"country_select_modal_country_ax": "Ilhas Aland", "country_select_modal_country_ax": "Ilhas Aland",

1
js/locales/ru-ru.json

@ -547,6 +547,7 @@
"push_action_mute1d_mobile": "Mute for 24H", "push_action_mute1d_mobile": "Mute for 24H",
"push_action_settings_mobile": "Alerts settings", "push_action_settings_mobile": "Alerts settings",
"push_message_nopreview": "You have a new message", "push_message_nopreview": "You have a new message",
"push_action_mute1d_success": "Notification settings were successfully saved.",
"country_select_modal_country_ab": "Абхазия", "country_select_modal_country_ab": "Абхазия",
"country_select_modal_country_af": "Афганистан", "country_select_modal_country_af": "Афганистан",
"country_select_modal_country_ax": "Аландские о-ва", "country_select_modal_country_ax": "Аландские о-ва",

3
manifest.json

@ -4,6 +4,9 @@
"version": "0.5.5", "version": "0.5.5",
"short_name": "Telegram", "short_name": "Telegram",
"manifest_version": 2, "manifest_version": 2,
"display": "standalone",
"orientation": "portrait",
"theme_color": "#497495",
"app": { "app": {
"background": { "background": {
"scripts": ["js/background.js"] "scripts": ["js/background.js"]

2
service_worker.js

File diff suppressed because one or more lines are too long

3
webogram.appcache

@ -1,5 +1,5 @@
CACHE MANIFEST CACHE MANIFEST
# Time: Tue Dec 20 2016 19:33:22 GMT+0300 (MSK) # Time: Thu Jan 12 2017 20:24:00 GMT+0300 (MSK)
CACHE: CACHE:
@ -46,6 +46,7 @@ img/icons/PhotoIcons.png
img/icons/PhotoIcons_2x.png img/icons/PhotoIcons_2x.png
img/icons/ProfileIcons.png img/icons/ProfileIcons.png
img/icons/ProfileIcons_2x.png img/icons/ProfileIcons_2x.png
img/icons/icon.svg
img/placeholders/DialogListAvatarSystem@2x.png img/placeholders/DialogListAvatarSystem@2x.png
img/placeholders/GroupAvatar1@2x.png img/placeholders/GroupAvatar1@2x.png
img/placeholders/GroupAvatar2@2x.png img/placeholders/GroupAvatar2@2x.png

Loading…
Cancel
Save