From d9474528d8045da9decaf1ad0361f6dd90194672 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 26 Oct 2017 01:20:44 +0300 Subject: www: drop social bitmaps --- juick-www/src/main/static/facebook.png | Bin 203 -> 0 bytes juick-www/src/main/static/icon-fb.png | Bin 203 -> 0 bytes juick-www/src/main/static/icon-gplus.png | Bin 501 -> 0 bytes juick-www/src/main/static/icon-lj.png | Bin 1183 -> 0 bytes juick-www/src/main/static/icon-twitter.png | Bin 458 -> 0 bytes juick-www/src/main/static/icon-vk.png | Bin 306 -> 0 bytes juick-www/src/main/static/scripts.js | 21 +++++++------ juick-www/src/main/static/sharesocial.png | Bin 4474 -> 0 bytes juick-www/src/main/static/style.css | 34 --------------------- juick-www/src/main/static/toolbar-icons.png | Bin 737 -> 0 bytes juick-www/src/main/static/vk.png | Bin 306 -> 0 bytes .../main/webapp/WEB-INF/views/partial/footer.html | 6 ++-- .../main/webapp/WEB-INF/views/post_success.html | 6 ++-- 13 files changed, 17 insertions(+), 50 deletions(-) delete mode 100644 juick-www/src/main/static/facebook.png delete mode 100644 juick-www/src/main/static/icon-fb.png delete mode 100644 juick-www/src/main/static/icon-gplus.png delete mode 100644 juick-www/src/main/static/icon-lj.png delete mode 100644 juick-www/src/main/static/icon-twitter.png delete mode 100644 juick-www/src/main/static/icon-vk.png delete mode 100644 juick-www/src/main/static/sharesocial.png delete mode 100644 juick-www/src/main/static/toolbar-icons.png delete mode 100644 juick-www/src/main/static/vk.png diff --git a/juick-www/src/main/static/facebook.png b/juick-www/src/main/static/facebook.png deleted file mode 100644 index 5d111590..00000000 Binary files a/juick-www/src/main/static/facebook.png and /dev/null differ diff --git a/juick-www/src/main/static/icon-fb.png b/juick-www/src/main/static/icon-fb.png deleted file mode 100644 index 5d111590..00000000 Binary files a/juick-www/src/main/static/icon-fb.png and /dev/null differ diff --git a/juick-www/src/main/static/icon-gplus.png b/juick-www/src/main/static/icon-gplus.png deleted file mode 100644 index d83d2520..00000000 Binary files a/juick-www/src/main/static/icon-gplus.png and /dev/null differ diff --git a/juick-www/src/main/static/icon-lj.png b/juick-www/src/main/static/icon-lj.png deleted file mode 100644 index 9cde1e02..00000000 Binary files a/juick-www/src/main/static/icon-lj.png and /dev/null differ diff --git a/juick-www/src/main/static/icon-twitter.png b/juick-www/src/main/static/icon-twitter.png deleted file mode 100644 index 259078f7..00000000 Binary files a/juick-www/src/main/static/icon-twitter.png and /dev/null differ diff --git a/juick-www/src/main/static/icon-vk.png b/juick-www/src/main/static/icon-vk.png deleted file mode 100644 index 80b6920b..00000000 Binary files a/juick-www/src/main/static/icon-vk.png and /dev/null differ diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index b275e446..1fec803e 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -46,6 +46,9 @@ function autosize(el) { el.attachEvent('onkeyup', () => resize(el)); } } +function svgIconHtml(name) { + return `
`; +} /* eslint-disable only-ascii/only-ascii */ const translations = { @@ -69,7 +72,7 @@ const translations = { 'loginDialog.registeredAlready': 'Registered already?', 'loginDialog.username': 'Username', 'loginDialog.password': 'Password', - 'loginDialog.vk': 'vk.com', + 'loginDialog.vk': 'Login with VK', 'error.error': 'Error' }, 'ru': { @@ -92,7 +95,7 @@ const translations = { 'loginDialog.registeredAlready': 'Уже зарегистрированы?', 'loginDialog.username': 'Имя пользователя', 'loginDialog.password': 'Пароль', - 'loginDialog.vk': 'ВКонтакте', + 'loginDialog.vk': 'Войти через ВКонтакте', 'error.error': 'Ошибка' } }; @@ -451,10 +454,9 @@ function showMessageLinksDialog(mid, rid) { ${i18n('shareDialog.messageNumber')}:${i18n('loginDialog.pleaseIntroduceYourself')}: - Facebook - ${i18n('loginDialog.vk')} -
+${i18n('loginDialog.pleaseIntroduceYourself')}:
+ ${svgIconHtml('sc-facebook')}Login with Facebook + ${svgIconHtml('sc-vk')}${i18n('loginDialog.vk')}${i18n('loginDialog.registeredAlready')}