Browse Source

added autoupdate timeline after post and more...

added autoupdate timeline after post. Fixed action menu bug on
followings page. Fixed Russian localization. Added icon to options page.
master
Hedgehog 11 years ago
parent
commit
0c36f579ce
  1. 8
      css/style.css
  2. 1
      following.html
  3. BIN
      img/switch.png
  4. 2
      js/calm.js
  5. 3
      js/interface_common.js
  6. 8
      js/interface_localization.js
  7. 3
      options.html
  8. 2
      profile-edit.html

8
css/style.css

@ -231,16 +231,16 @@ button.disabled:hover
} }
.userMenu li.userMenu-options > a .userMenu li.userMenu-options > a
{ {
background: url(../img/following.png) no-repeat 5px center; background: url(../img/switch.png) no-repeat 5px center;
padding-left: 50px; padding-left: 50px;
} }
.userMenu li.userMenu-options:hover > a .userMenu li.userMenu-options:hover > a
{ {
background: url(../img/following.png) no-repeat 5px center rgba( 0, 0, 0 , .4 ); background: url(../img/switch.png) no-repeat 5px center rgba( 0, 0, 0 , .4 );
} }
.userMenu li.userMenu-options.current > a .userMenu li.userMenu-options.current > a
{ {
background: url(../img/following.png) no-repeat 5px center #768fce; background: url(../img/switch.png) no-repeat 5px center #768fce;
} }
.userMenu li.userMenu-messages > a .userMenu li.userMenu-messages > a
{ {
@ -610,7 +610,7 @@ input.userMenu-search-field:focus::-ms-input-placeholder {
} }
.mini-profile-actions:hover ul .mini-profile-actions:hover ul
{ {
height: 118px; height: 90px;
box-shadow: 0 2px 5px #65686f; box-shadow: 0 2px 5px #65686f;
} }
.mini-profile-actions ul li .mini-profile-actions ul li

1
following.html

@ -89,7 +89,6 @@
<li class="mentions-from-user">Display mentions to @ <li class="mentions-from-user">Display mentions to @
<b class="following-screen-name"></b> <b class="following-screen-name"></b>
</li> </li>
<li>Display retransmissions</li>
</ul> </ul>
</div> </div>
<button class="unfollow">Unfollow</button> <button class="unfollow">Unfollow</button>

BIN
img/switch.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 B

2
js/calm.js

@ -176,7 +176,7 @@ function replaceEmoji() {
$(this).html(string.replace(exp, function(match){ $(this).html(string.replace(exp, function(match){
var clearMatch = match.replace(/:/gi,''); var clearMatch = match.replace(/:/gi,'');
if(emojies.indexOf(clearMatch) < 0) return match; if(emojies.indexOf(clearMatch) < 0) return match;
return '<img src="../img/emoji/'+clearMatch+'.png"></img>' return '<img src="../img/emoji/'+clearMatch+'.png">'
})); }));
}) })
} }

3
js/interface_common.js

@ -394,6 +394,7 @@ function replyTextKeypress(e) {
if($this.parent().parent().parent().is('.post-area,.post-reply-content')){ if($this.parent().parent().parent().is('.post-area,.post-reply-content')){
$this.parent().parent().removeClass('open'); $this.parent().parent().removeClass('open');
$this.blur(); $this.blur();
setTimeout('requestTimelineUpdate("latest",postsPerRefresh,followingUsers,promotedPostsOnly)', 1000);
} }
} }
} }
@ -406,10 +407,12 @@ function replyTextKeypress(e) {
if($this.parent().parent().parent().is('.post-area,.post-reply-content')){ if($this.parent().parent().parent().is('.post-area,.post-reply-content')){
$this.parent().parent().removeClass('open'); $this.parent().parent().removeClass('open');
$this.blur(); $this.blur();
setTimeout('requestTimelineUpdate("latest",postsPerRefresh,followingUsers,promotedPostsOnly)', 1000);
} }
} }
} }
} }
} }
} }

8
js/interface_localization.js

@ -80,6 +80,7 @@ if(preferredLanguage == "en"){
"Home": "Home", // homepage "Home": "Home", // homepage
"hours": "%{smart_count} hour |||| %{smart_count} hours", "hours": "%{smart_count} hour |||| %{smart_count} hours",
"Internal error: lastPostId unknown (following yourself may fix!)": "Internal error: lastPostId unknown (following yourself may fix!)", "Internal error: lastPostId unknown (following yourself may fix!)": "Internal error: lastPostId unknown (following yourself may fix!)",
"Keys":"Keys",
"Known peers:": "Known peers: ", "Known peers:": "Known peers: ",
"Last block is ahead of your computer time, check your clock.": "Last block is ahead of your computer time, check your clock.", "Last block is ahead of your computer time, check your clock.": "Last block is ahead of your computer time, check your clock.",
"Mentions": "Mentions", "Mentions": "Mentions",
@ -118,11 +119,13 @@ if(preferredLanguage == "en"){
"search": "search", "search": "search",
"seconds": "%{smart_count} second |||| %{smart_count} seconds", "seconds": "%{smart_count} second |||| %{smart_count} seconds",
"send": "send", "send": "send",
"Send key":"Send key",
"Send post with username": "Send post with username ", "Send post with username": "Send post with username ",
"Sent Direct Message": "Sent Direct Message", "Sent Direct Message": "Sent Direct Message",
"Sent Post to @": "Sent Post to @", "Sent Post to @": "Sent Post to @",
"Setup account": "Setup account", "Setup account": "Setup account",
"Sound notifications": "Sound notifications", "Sound notifications": "Sound notifications",
"Show QR code":"Show QR code",
"switch_to_network": "Local daemon is not connected to the network or\n" + "switch_to_network": "Local daemon is not connected to the network or\n" +
"block chain is outdated. If you stay in this page\n" + "block chain is outdated. If you stay in this page\n" +
"your actions may not work.\n" + "your actions may not work.\n" +
@ -134,6 +137,7 @@ if(preferredLanguage == "en"){
"Unfollow": "Unfollow", "Unfollow": "Unfollow",
"Update": "Update", "Update": "Update",
"Updating status...": "Updating status...", // status of block chain "Updating status...": "Updating status...", // status of block chain
"Use language": "Use language",
"user_not_yet_accepted": "Other peers have not yet accepted this new user.\n" + "user_not_yet_accepted": "Other peers have not yet accepted this new user.\n" +
"Unfortunately it is not possible to save profile\n" + "Unfortunately it is not possible to save profile\n" +
"or send any posts in this state.\n\n" + "or send any posts in this state.\n\n" +
@ -800,6 +804,7 @@ if(preferredLanguage == "ru"){
"Home": "Главная", // homepage "Home": "Главная", // homepage
"hours": "%{smart_count} час |||| %{smart_count} часов", "hours": "%{smart_count} час |||| %{smart_count} часов",
"Internal error: lastPostId unknown (following yourself may fix!)": "Внутренняя ошибка: lastPostId неизвестен (Попробуйте подписаться сами на себя, это должно помочь!)", "Internal error: lastPostId unknown (following yourself may fix!)": "Внутренняя ошибка: lastPostId неизвестен (Попробуйте подписаться сами на себя, это должно помочь!)",
"Keys":"Клавиши",
"Known peers:": "Известные пиры: ", "Known peers:": "Известные пиры: ",
"Last block is ahead of your computer time, check your clock.": "Последний полученный блок опережает время вашего компьютера, проверьте правильно ли работают часы.", "Last block is ahead of your computer time, check your clock.": "Последний полученный блок опережает время вашего компьютера, проверьте правильно ли работают часы.",
"Mentions": "Упоминания", "Mentions": "Упоминания",
@ -839,11 +844,13 @@ if(preferredLanguage == "ru"){
"search": "поиск", "search": "поиск",
"seconds": "%{smart_count} секунда |||| %{smart_count} секунд", "seconds": "%{smart_count} секунда |||| %{smart_count} секунд",
"send": "отправить", "send": "отправить",
"Send key":"Клавиша отправки",
"Send post with username": "Отправить сообщение от имени", "Send post with username": "Отправить сообщение от имени",
"Sent Direct Message": "Отправить личное сообщение", "Sent Direct Message": "Отправить личное сообщение",
"Sent Post to @": "Отправить сообщение для @", "Sent Post to @": "Отправить сообщение для @",
"Setup account": "Настроить аккаунт", "Setup account": "Настроить аккаунт",
"Sound notifications": "Звуковые уведомления", "Sound notifications": "Звуковые уведомления",
"Show QR code":"Показать QR код",
"switch_to_network": "Локальный демон не подключен к сети или\n" + "switch_to_network": "Локальный демон не подключен к сети или\n" +
"цепочка блоков устарела. Если вы останитесь на этой странице\n" + "цепочка блоков устарела. Если вы останитесь на этой странице\n" +
"ваши действия могут быть не выполнены.\n" + "ваши действия могут быть не выполнены.\n" +
@ -856,6 +863,7 @@ if(preferredLanguage == "ru"){
"Unfollow": "Отписаться", "Unfollow": "Отписаться",
"Update": "Обновить", "Update": "Обновить",
"Updating status...": "Обновление информации...", // status of block chain "Updating status...": "Обновление информации...", // status of block chain
"Use language": "Использовать язык",
"user_not_yet_accepted": "Другие участники сети еще не получили информацию о новом пользователе.\n" + "user_not_yet_accepted": "Другие участники сети еще не получили информацию о новом пользователе.\n" +
"К сожалению, сейчас вы не можете редактировать ваш профиль\n" + "К сожалению, сейчас вы не можете редактировать ваш профиль\n" +
"или отправлять сообщение.\n\n" + "или отправлять сообщение.\n\n" +

3
options.html

@ -51,10 +51,9 @@
<div class="language"> <div class="language">
<div class="module"> <div class="module">
<p> Language </p> <p> Use language </p>
<div> <div>
<form action="" id="choseLanguage"> <form action="" id="choseLanguage">
<p>Use language</p>
<select name="" id="language"> <select name="" id="language">
<option value="auto">Auto</option> <option value="auto">Auto</option>
<option value="en">English</option> <option value="en">English</option>

2
profile-edit.html

@ -69,7 +69,7 @@
<input type="text" class="input-website" placeholder="website"/> <input type="text" class="input-website" placeholder="website"/>
</div> </div>
<div class="profile-edition-buttons"> <div class="profile-edition-buttons">
<button class="toggle-priv-key" style="float: left" href="#">Secret Key</button> <button class="toggle-priv-key" style="float: left" href="#">Secret key</button>
<button class="cancel-changes" href="#">Cancel</button> <button class="cancel-changes" href="#">Cancel</button>
<button class="submit-changes" href="#">Save Changes</button> <button class="submit-changes" href="#">Save Changes</button>
</div> </div>

Loading…
Cancel
Save