Merge pull request #840 from vincentbavitz/clearnet

secretPrompt Fix
pull/841/head
Vince 5 years ago committed by GitHub
commit 5fc14d2a7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1011,6 +1011,9 @@
"showPairingWordsTitle": { "showPairingWordsTitle": {
"message": "Pairing Secret Words" "message": "Pairing Secret Words"
}, },
"secretPrompt": {
"message": "Here is your secret"
},
"confirmUnpairingTitle": { "confirmUnpairingTitle": {
"message": "Please confirm you want to unpair the following device:" "message": "Please confirm you want to unpair the following device:"
}, },
@ -2626,6 +2629,9 @@
"newSession": { "newSession": {
"message": "New Session" "message": "New Session"
}, },
"freindRequestsButton": {
"message": "Requests"
},
"searchForAKeyPhrase": { "searchForAKeyPhrase": {
"message": "Search for a key phrase or contact" "message": "Search for a key phrase or contact"
}, },

@ -39,11 +39,11 @@
<div class='commitHash'></div> <div class='commitHash'></div>
<div class='environment'></div> <div class='environment'></div>
<div> <div>
<a href="https://loki.network">loki.network</a> <a href="https://getsession.org">loki.network</a>
</div> </div>
<br> <br>
<div> <div>
<a class="privacy" href="https://loki.network">Terms &amp; Privacy Policy</a> <a class="privacy" href="https://getsession.org">Terms &amp; Privacy Policy</a>
</div> </div>
<script type='text/javascript' src='node_modules/jquery/dist/jquery.js'></script> <script type='text/javascript' src='node_modules/jquery/dist/jquery.js'></script>

@ -40,7 +40,6 @@
</script> </script>
<script type='text/x-tmpl-mustache' id='two-column'> <script type='text/x-tmpl-mustache' id='two-column'>
<div id='session-toast-container'></div>
<div class='gutter'> <div class='gutter'>
<div class='network-status-container'></div> <div class='network-status-container'></div>
<div class='left-pane-placeholder'></div> <div class='left-pane-placeholder'></div>

@ -2015,6 +2015,7 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
margin-top: 5px;
} }
.module-conversation-list-item__message__text { .module-conversation-list-item__message__text {

@ -156,6 +156,10 @@ div.spacer-lg {
width: 100%; width: 100%;
} }
::selection {
background: rgba($session-color-green, 0.6);
}
input, input,
textarea { textarea {
caret-color: $session-color-green !important; caret-color: $session-color-green !important;
@ -998,6 +1002,7 @@ label {
} }
&-display { &-display {
user-select: text;
text-align: center; text-align: center;
word-break: break-all; word-break: break-all;
font-size: $session-font-md; font-size: $session-font-md;
@ -1293,7 +1298,7 @@ label {
.module-message { .module-message {
font-family: 'SF Pro Text'; font-family: 'SF Pro Text';
border-radius: 5px; border-radius: 5px;
&__text--incoming { &__text--incoming {
/* Add padding to large emojis in chat */ /* Add padding to large emojis in chat */
img.emoji.jumbo { img.emoji.jumbo {
@ -1301,7 +1306,6 @@ label {
} }
} }
} }
} }
.bottom-bar { .bottom-bar {

@ -178,6 +178,8 @@ $session-compose-margin: 20px;
&__header { &__header {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between;
align-items: center;
padding: 15px 7px 14px 0px; padding: 15px 7px 14px 0px;
height: 63px; height: 63px;
@ -213,7 +215,7 @@ $session-compose-margin: 20px;
&__list { &__list {
height: -webkit-fill-available; height: -webkit-fill-available;
border-top: 1px solid rgba(255,255,255,0.05); border-top: 1px solid rgba(255, 255, 255, 0.05);
&-popup { &-popup {
width: -webkit-fill-available; width: -webkit-fill-available;
@ -242,6 +244,10 @@ $session-compose-margin: 20px;
padding: 13px; padding: 13px;
} }
h2 {
margin-top: 0px;
}
h3, h3,
h2 { h2 {
text-align: center; text-align: center;
@ -461,11 +467,13 @@ $session-compose-margin: 20px;
} }
.contact-notification-count-bubble { .contact-notification-count-bubble {
display: flex;
align-items: center;
justify-content: center;
background: $session-color-danger; background: $session-color-danger;
line-height: 30px; width: 22px;
width: 30px; height: 22px;
height: 30px; font-size: $session-font-xs;
font-size: 14px;
margin-left: auto; margin-left: auto;
text-align: center; text-align: center;
border-radius: 50%; border-radius: 50%;
@ -488,7 +496,11 @@ $session-compose-margin: 20px;
.module-conversation-list-item { .module-conversation-list-item {
background-color: $session-shade-4; background-color: $session-shade-4;
&--is-selected {
background-color: $session-shade-5;
}
&--has-friend-request { &--has-friend-request {
&:first-child { &:first-child {
border-top: none !important; border-top: none !important;
@ -500,10 +512,10 @@ $session-compose-margin: 20px;
.module-conversation__user__profile-name { .module-conversation__user__profile-name {
font-size: 13px !important; font-size: 13px !important;
} }
} }
&__header__date, &__message { &__header__date,
&__message {
display: none; display: none;
} }

@ -165,15 +165,15 @@ export class ActionsPanel extends React.Component<Props, State> {
notificationCount={unreadMessageCount} notificationCount={unreadMessageCount}
/> />
<this.Section <this.Section
type={SectionType.Contact} type={SectionType.Channel}
isSelected={isContactPageSelected} isSelected={isChannelPageSelected}
onSelect={this.handleSectionSelect} onSelect={this.handleSectionSelect}
notificationCount={receivedFriendRequestCount}
/> />
<this.Section <this.Section
type={SectionType.Channel} type={SectionType.Contact}
isSelected={isChannelPageSelected} isSelected={isContactPageSelected}
onSelect={this.handleSectionSelect} onSelect={this.handleSectionSelect}
notificationCount={receivedFriendRequestCount}
/> />
<this.Section <this.Section
type={SectionType.Settings} type={SectionType.Settings}

@ -79,15 +79,35 @@ export class LeftPaneSectionHeader extends React.Component<Props, State> {
); );
} }
if (buttonLabel) { if (buttonLabel && !notificationCount) {
children.push( children.push(
<SessionButton <SessionButton
text={window.i18n('newSession')} text={buttonLabel}
onClick={buttonClicked} onClick={buttonClicked}
key="compose" key="compose"
disabled={false} disabled={false}
/> />
); );
} else if (buttonLabel && notificationCount && notificationCount > 0) {
const shortenedNotificationCount =
notificationCount > 9 ? 9 : notificationCount;
children.push(
<div className="contact-notification-section">
<SessionButton
text={buttonLabel}
onClick={buttonClicked}
key="compose"
disabled={false}
/>
<div
className="contact-notification-count-bubble"
onClick={this.props.buttonClicked}
role="button"
>
{shortenedNotificationCount}
</div>
</div>
);
} else if (notificationCount && notificationCount > 0) { } else if (notificationCount && notificationCount > 0) {
const shortenedNotificationCount = const shortenedNotificationCount =
notificationCount > 9 ? 9 : notificationCount; notificationCount > 9 ? 9 : notificationCount;

@ -864,7 +864,8 @@ export class RegistrationTabs extends React.Component<{}, State> {
const words = window.mnemonic.pubkey_to_secret_words(pubkey); const words = window.mnemonic.pubkey_to_secret_words(pubkey);
window.console.log(`Here is your secret:\n${words}`); window.console.log(`Here is your secret:\n${words}`);
window.pushToast({ window.pushToast({
title: `${window.i18n('secretPrompt')} ${words}`, title: `${window.i18n('secretPrompt')}`,
description: words,
id: 'yourSecret', id: 'yourSecret',
shouldFade: false, shouldFade: false,
}); });

Loading…
Cancel
Save