All emojis work now,fixed nginx config,fixed design bug,performance improvements

This commit is contained in:
nipos 2018-07-10 19:12:22 +02:00
parent cec871631e
commit fde3eefada
7 changed files with 1565 additions and 3585 deletions

View File

@ -10,10 +10,10 @@ Follow our Mastodon account and never miss an important update: [@halcyon@social
## Instances
These instances are publicly accessible and usable by everyone, no matter which Mastodon instance you use.
- https://itter.photog.social - 1.2.2
- https://itter.photog.social - 1.2.3
- https://social.dev-wiki.de - 1.2.2
- https://halcyon.toromino.de - 1.2.2
- https://halcyon.distsn.org - 1.2.1
- https://social.dev-wiki.de - 1.2.0
- https://halcyon.toromino.de - 1.2.0
- https://halcyon.bka.li - 1.1.7
- https://halcyon.tilde.team - 1.1.7
- https://halcyon.cybre.space - Outdated
@ -21,6 +21,7 @@ These instances are publicly accessible and usable by everyone, no matter which
You have your own Halcyon instance and want it to be listed here? Create an issue with the link and we will add it to the list.
## Blog
- Release of Version 1.2.3 - All emojis do now work,fixed some bugs in the Nginx example config,fixed Windows-only design bug,improved text field performance
- Release of Version 1.2.2 - Added an emoji picker,improved performance (emoji rendering),desktop notifications on notifications page work now
- Release of Version 1.2.1 - New who to follow page with more recommendations,bugfix at search,profiles now ignore "show replies" setting,small login page changes
- [Release of Version 1.2.0 - The next big step and a view into future](https://nikisoft.myblog.de/nikisoft/art/11626391/Halcyon-1-2-0-The-next-big-step-and-a-view-into-future)

View File

@ -50,7 +50,6 @@ cursor: pointer;
opacity: 1;
}
.lsx-emojipicker-emoji span img.emoji {
width: 25px;
margin: 5px 4px;
cursor: pointer;
transition: all 0.1s ease-in-out;

View File

@ -54,7 +54,7 @@ white-space: nowrap;
}
h1, h2, h3, h4, h5, h6 {
font-weight: normal;
line-height: 1;
line-height: normal;
margin: 0;
padding: 0;
}
@ -102,9 +102,9 @@ margin: auto;
margin-left: 4px;
}
html {
font-family : "Helvetica Neue",Helvetica,Arial,sans-serif;
font-size : 100%;
line-height : 1;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
font-size: 100%;
line-height: normal;
color: #333;
min-width: 100%;
min-height: 100%;
@ -683,7 +683,7 @@ font-size: 14px;
padding-right: 16px;
}
.toot_entry .toot_entry_body .toot_content .toot_header .text_ellipsis a {
line-height: 1;
line-height: normal;
height: 16.5px;
margin-bottom: -4.5px;
}
@ -1947,7 +1947,7 @@ word-break: break-all;
#main .article_wrap .left_column .profile_section_wrap > .profile_displayname {
font-size: 22px;
font-weight: 700;
line-height: 1;
line-height: normal;
color: rgb(20, 23, 26);
margin-bottom: 8px;
}

View File

@ -681,7 +681,7 @@ closeOnSelect:true,
twemoji:!checkEmojiSupport(),
onSelect:function(emoji) {
$('#overlay_status_form .status_textarea textarea').val($('#overlay_status_form .status_textarea textarea').val()+":"+emoji.name+": ");
$('#overlay_status_form .status_textarea textarea').trigger("change");
$('#overlay_status_form .status_textarea textarea').trigger({"type":"keyup","key":":"});
$('#overlay_status_form .status_textarea textarea').focus();
var textLen = $('#overlay_status_form .status_textarea textarea').val().length * 2;
$('#overlay_status_form .status_textarea textarea')[0].setSelectionRange(textLen,textLen);
@ -705,7 +705,9 @@ $('#overlay_status_form').addClass('ready');
$('#overlay_status_form .character_count').removeClass('red');
$('#overlay_status_form').removeClass('ready');
}
if(e.key == ":") {
$(this).val(replaced_emoji_return($(this).val()));
}
$('#overlay_status_form .character_count').text(textLen);
}
});
@ -824,13 +826,15 @@ $('#header_status_emoji').lsxEmojiPicker("destroy");
});
$(document).on('change keyup','#header_status_form textarea, #header_status_form .status_spoiler', function(e) {
if(e.keyCode !== 224 & e.keyCode !== 17) {
if(e.key == ":") {
$(this).val(replaced_emoji_return($(this).val()));
}
const textCount = $('#header_status_form textarea').val().length + $('#header_status_form .status_spoiler').val().length;
let textLen = ( current_instance_charlimit - textCount );
if ( textLen <= -1 ) {
if(textLen <= -1) {
$('#header_status_form .character_count').addClass('red');
$('#header_status_form').addClass('ready');
} else if ( textLen === current_instance_charlimit ) {
} else if(textLen === current_instance_charlimit) {
$('#header_status_form').addClass('ready');
} else {
$('#header_status_form .character_count').removeClass('red');
@ -870,7 +874,7 @@ closeOnSelect:true,
twemoji:!checkEmojiSupport(),
onSelect:function(emoji) {
$('#header_status_form .status_textarea textarea').val($('#header_status_form .status_textarea textarea').val()+":"+emoji.name+": ");
$('#header_status_form .status_textarea textarea').trigger("change");
$('#header_status_form .status_textarea textarea').trigger({"type":"keyup","key":":"});
$('#header_status_form .status_textarea textarea').focus();
var textLen = $('#header_status_form .status_textarea textarea').val().length * 2;
$('#header_status_form .status_textarea textarea')[0].setSelectionRange(textLen,textLen);
@ -985,7 +989,7 @@ closeOnSelect:true,
twemoji:!checkEmojiSupport(),
onSelect:function(emoji) {
$('#reply_status_form .status_textarea textarea').val($('#reply_status_form .status_textarea textarea').val()+":"+emoji.name+": ");
$('#reply_status_form .status_textarea textarea').trigger("change");
$('#reply_status_form .status_textarea textarea').trigger({"type":"keyup","key":":"});
$('#reply_status_form .status_textarea textarea').focus();
var textLen = $('#reply_status_form .status_textarea textarea').val().length * 2;
$('#reply_status_form .status_textarea textarea')[0].setSelectionRange(textLen,textLen);
@ -1010,7 +1014,9 @@ $('#reply_status_form').addClass('ready');
$('#reply_status_form .character_count').removeClass('red');
$('#reply_status_form').removeClass('ready');
}
if(e.key == ":") {
$(this).val(replaced_emoji_return($(this).val()));
}
$('#reply_status_form .character_count').text(textLen);
}
});
@ -1155,7 +1161,7 @@ closeOnSelect:true,
twemoji:!checkEmojiSupport(),
onSelect:function(emoji) {
$('#single_reply_status_form .status_textarea textarea').val($('#single_reply_status_form .status_textarea textarea').val()+":"+emoji.name+": ");
$('#single_reply_status_form .status_textarea textarea').trigger("change");
$('#single_reply_status_form .status_textarea textarea').trigger({"type":"keyup","key":":"});
$('#single_reply_status_form .status_textarea textarea').focus();
var textLen = $('#single_reply_status_form .status_textarea textarea').val().length * 2;
$('#single_reply_status_form .status_textarea textarea')[0].setSelectionRange(textLen,textLen);
@ -1184,7 +1190,9 @@ $('#single_reply_status_form').addClass('ready');
$('#single_reply_status_form .character_count').removeClass('red');
$('#single_reply_status_form').removeClass('ready');
}
if(e.key == ":") {
$(this).val(replaced_emoji_return($(this).val()));
}
$('#single_reply_status_form .character_count').text(textLen);
}
});

File diff suppressed because it is too large Load Diff

View File

@ -23,30 +23,51 @@ return 302 /;
location ~* \.(?:bat|git|ini|sh|svn[^.]*|txt|tpl|xml)$ {
return 404;
}
# Main
rewrite ^/home/?$ / permanent;
rewrite ^/login/?$ /login/login.php last;
rewrite ^/auth/?$ /login/auth.php last;
rewrite ^/logout/?$ /login/logout.php last;
rewrite ^/terms/?$ /login/terms.php last;
rewrite ^/local/?$ /local.php last;
rewrite ^/federated/?$ /federated.php last;
rewrite ^/notifications/?$ /notifications.php last;
rewrite ^/whotofollow/?$ /who_to_follow.php last;
rewrite ^/search/?$ /search_hash_tag.php last;
rewrite ^/search/users/?$ /search_user.php last;
rewrite ^/settings/?$ /settings_general.php last;
rewrite ^/settings/profile/?$ /settings_profile.php last;
rewrite ^/settings/appearance/?$ /settings_appearance.php last;
rewrite ^/@(.+)@(.+).([a-z]+)/?$ /user.php?user=@$1@$2.$3 last;
rewrite ^/@(.+)@(.+).([a-z]+)/status/(.+?)?$ /user.php?user=@$1@$2.$3&status=$4 last;
rewrite ^/@(.+)@(.+).([a-z]+)/media/?$ /user_only_media.php?user=@$1@$2.$3 last;
rewrite ^/@(.+)@(.+).([a-z]+)/with_replies/?$ /user_include_replies.php?user=@$1@$2.$3 last;
rewrite ^/@(.+)@(.+).([a-z]+)/followers/?$ /user_followers.php?user=@$1@$2.$3 last;
rewrite ^/@(.+)@(.+).([a-z]+)/following/?$ /user_following.php?user=@$1@$2.$3 last;
rewrite ^/@(.+)@(.+).([a-z]+)/favourites/?$ /user_favorite.php?user=@$1@$2.$3 last;
rewrite ^/avatars/original/missing.png$ /assets/images/missing.png last;
rewrite ^/headers/original/missing.png$ /assets/images/missing_header.png last;
rewrite ^/404/?$ /404.php last;
rewrite ^/login/?$ /login/login.php break;
rewrite ^/auth/?$ /login/auth.php break;
rewrite ^/logout/?$ /login/logout.php break;
rewrite ^/terms/?$ /login/terms.php break;
# LTL
rewrite ^/local/?$ /local.php break;
# FTL
rewrite ^/federated/?$ /federated.php break;
# Notice
rewrite ^/notifications/?$ /notifications.php break;
# Who to follow
rewrite ^/whotofollow/?$ /who_to_follow.php break;
# Search
rewrite ^/search/?$ /search_hash_tag.php break;
rewrite ^/search/users/?$ /search_user.php break;
# Settings
rewrite ^/settings/?$ /settings_general.php break;
rewrite ^/settings/profile/?$ /settings_profile.php break;
rewrite ^/settings/appearance/?$ /settings_appearance.php break;
# User
rewrite ^/@(.+)@(.+)\.([a-z]+)/?$ /user.php?user=@$1@$2\.$3 break;
rewrite ^/@(.+)@(.+)\.([a-z]+)/status/(.+?)?$ /user.php?user=@$1@$2\.$3&status=$4 break;
rewrite ^/@(.+)@(.+)\.([a-z]+)/media/?$ /user_only_media.php?user=@$1@$2\.$3 break;
rewrite ^/@(.+)@(.+)\.([a-z]+)/with_replies/?$ /user_include_replies.php?user=@$1@$2\.$3 break;
rewrite ^/@(.+)@(.+)\.([a-z]+)/followers/?$ /user_followers.php?user=@$1@$2\.$3 break;
rewrite ^/@(.+)@(.+)\.([a-z]+)/following/?$ /user_following.php?user=@$1@$2\.$3 break;
rewrite ^/@(.+)@(.+)\.([a-z]+)/favourites/?$ /user_favorite.php?user=@$1@$2\.$3 break;
# Image
rewrite ^/avatars/original/missing.png$ /assets/images/missing.png break;
rewrite ^/headers/original/missing.png$ /assets/images/missing_header.png break;
# 404
rewrite ^/404/?$ /404.php break;
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
if (!-f $document_root$fastcgi_script_name) {

View File

@ -1 +1 @@
1.2.2
1.2.3