Skip to content

Commit f8936ea

Browse files
authored
Merge pull request #1531 from session-foundation/feat/pro-badges
feat: pro badges
2 parents d30b2bc + fac5dc9 commit f8936ea

File tree

174 files changed

+2913
-1804
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+2913
-1804
lines changed
529 KB
Loading

preload.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,16 @@ window.sessionFeatureFlags = {
6868
proAvailable: !isEmpty(process.env.SESSION_PRO),
6969
mockCurrentUserHasPro: !isEmpty(process.env.SESSION_USER_HAS_PRO),
7070
mockOthersHavePro: !isEmpty(process.env.SESSION_OTHERS_HAVE_PRO),
71+
mockMessageProFeatures: [],
7172
// Note: some stuff are init when the app starts, so fsTTL30s should only be set from the env itself (before app starts)
7273
fsTTL30s: !isEmpty(process.env.FILE_SERVER_TTL_30S),
73-
debug: {
74-
debugLogging: !isEmpty(process.env.SESSION_DEBUG),
75-
debugLibsessionDumps: !isEmpty(process.env.SESSION_DEBUG_LIBSESSION_DUMPS),
76-
debugBuiltSnodeRequests: !isEmpty(process.env.SESSION_DEBUG_BUILT_SNODE_REQUEST),
77-
debugSwarmPolling: !isEmpty(process.env.SESSION_DEBUG_SWARM_POLLING),
78-
debugServerRequests: false,
79-
debugNonSnodeRequests: false,
80-
debugOnionRequests: false,
81-
},
74+
debugLogging: !isEmpty(process.env.SESSION_DEBUG),
75+
debugLibsessionDumps: !isEmpty(process.env.SESSION_DEBUG_LIBSESSION_DUMPS),
76+
debugBuiltSnodeRequests: !isEmpty(process.env.SESSION_DEBUG_BUILT_SNODE_REQUEST),
77+
debugSwarmPolling: !isEmpty(process.env.SESSION_DEBUG_SWARM_POLLING),
78+
debugServerRequests: false,
79+
debugNonSnodeRequests: false,
80+
debugOnionRequests: false,
8281
};
8382

8483
window.versionInfo = {

stylesheets/_avatar.scss

Lines changed: 0 additions & 23 deletions
This file was deleted.

stylesheets/_mentions.scss

Lines changed: 0 additions & 3 deletions
This file was deleted.

stylesheets/_modules.scss

Lines changed: 2 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
.module-contact-name {
55
display: flex;
66
flex-direction: column;
7-
align-items: flex-start;
7+
align-items: center;
88
overflow-x: hidden;
99
font-weight: 400;
1010
}
@@ -17,9 +17,6 @@
1717
user-select: none;
1818
}
1919

20-
.module-contact-name__profile-number.italic {
21-
font-style: italic;
22-
}
2320
// Module: Message
2421

2522
.module-message__img-attachment {
@@ -200,11 +197,7 @@
200197
overflow-y: hidden;
201198
white-space: nowrap;
202199
text-overflow: ellipsis;
203-
}
204-
205-
.module-conversation__user__profile-name,
206-
.module-message__author__profile-name {
207-
font-style: italic;
200+
align-items: center;
208201
}
209202

210203
// Module: Contact List Item
@@ -232,70 +225,11 @@
232225
font-size: 14px;
233226
}
234227

235-
.module-contact-list-item__text__profile-name {
236-
font-style: italic;
237-
}
238-
239228
.module-contact-list-item__text__additional-data {
240229
margin-top: 3px;
241230
font-size: 14px;
242231
}
243232

244-
// Module: Conversation Header
245-
246-
.module-conversation-header {
247-
display: flex;
248-
flex-direction: row;
249-
align-items: center;
250-
}
251-
252-
.module-conversation-header__title-container {
253-
min-width: 0;
254-
display: block;
255-
text-align: center;
256-
flex-grow: 1;
257-
}
258-
259-
.module-conversation-header__title-flex {
260-
display: inline-flex;
261-
flex-direction: row;
262-
align-items: center;
263-
max-width: 100%;
264-
}
265-
266-
.module-conversation-header__avatar {
267-
min-width: 28px;
268-
user-select: none;
269-
}
270-
271-
.module-conversation-header__title {
272-
margin: 0px 20px;
273-
274-
min-width: 0;
275-
font-size: 16px;
276-
line-height: 26px;
277-
font-weight: 400;
278-
color: var(--text-primary-color);
279-
280-
// width of avatar (28px) and our 6px left margin
281-
max-width: calc(100% - 34px);
282-
white-space: nowrap;
283-
overflow: hidden;
284-
text-overflow: ellipsis;
285-
286-
display: flex;
287-
align-items: center;
288-
289-
user-select: text;
290-
cursor: pointer;
291-
292-
.module-contact-name__profile-name {
293-
width: 100%;
294-
overflow: hidden !important;
295-
text-overflow: ellipsis;
296-
}
297-
}
298-
299233
// Module: Document List Item
300234

301235
.module-document-list-item {
@@ -361,10 +295,6 @@
361295
&:hover {
362296
background-color: var(--conversation-tab-background-hover-color);
363297
}
364-
365-
&--is-blocked {
366-
border-left: 4px solid var(--danger-color) !important;
367-
}
368298
}
369299

370300
.module-conversation-list-item__unread-count {
@@ -429,10 +359,6 @@
429359
flex-shrink: 0;
430360
}
431361

432-
.module-conversation-list-item__header__name--with-unread {
433-
font-weight: 300;
434-
}
435-
436362
.module-conversation-list-item__header__date--has-unread {
437363
font-weight: 300;
438364
color: var(--conversation-tab-text-unread-color);
@@ -444,26 +370,6 @@
444370
align-items: center;
445371
}
446372

447-
.module-conversation-list-item__message__text {
448-
flex-grow: 1;
449-
flex-shrink: 1;
450-
451-
font-size: var(--font-size-sm);
452-
color: var(--conversation-tab-text-color);
453-
454-
overflow: hidden;
455-
white-space: nowrap;
456-
text-overflow: ellipsis;
457-
.text-selectable {
458-
user-select: none;
459-
}
460-
}
461-
462-
.module-conversation-list-item__message__text--has-unread {
463-
font-weight: 400;
464-
color: var(--conversation-tab-text-unread-color);
465-
}
466-
467373
// Module: Image
468374

469375
.module-image {
@@ -577,17 +483,6 @@
577483

578484
// Module: Left Pane
579485

580-
.module-left-pane {
581-
display: inline-flex;
582-
flex-direction: column;
583-
width: var(--left-panel-width);
584-
height: 100%;
585-
}
586-
587-
.module-left-pane__virtual-list {
588-
outline: none;
589-
}
590-
591486
// Module H5AudioPlayer
592487
$rhap_background-color: var(--transparent-color) !default;
593488
$rhap_font-family: inherit !default;

stylesheets/_rtl.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ body.rtl {
22
input,
33
button,
44
textarea,
5-
.module-left-pane,
65
.module-conversation-list-item,
76
.right-panel-item,
87
.group-member-list__selection,

stylesheets/_session.scss

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -83,43 +83,6 @@ textarea {
8383
}
8484

8585
/* CONVERSATION AND MESSAGES */
86-
.module-conversation-header {
87-
height: var(--main-view-header-height);
88-
}
89-
90-
.module-conversation-header__title-flex,
91-
.module-conversation-header__title {
92-
font-weight: bold;
93-
width: 100%;
94-
display: flex;
95-
font-size: var(--font-size-md);
96-
97-
&-text {
98-
color: var(--text-primary-color);
99-
font-weight: 400;
100-
font-size: var(--font-size-sm);
101-
line-height: var(--font-size-sm);
102-
}
103-
104-
.module-contact-name {
105-
width: 100%;
106-
}
107-
108-
.module-contact-name__profile-number {
109-
text-align: center;
110-
}
111-
}
112-
113-
.module-conversation-header__title {
114-
flex-direction: column;
115-
}
116-
.module-conversation-header__title-flex {
117-
flex-direction: row;
118-
}
119-
.module-conversation__user__profile-name,
120-
.module-message__author__profile-name {
121-
font-style: normal;
122-
}
12386

12487
.module-message--incoming {
12588
margin-inline-start: 0;
@@ -144,11 +107,6 @@ label {
144107
user-select: none;
145108
}
146109

147-
.module-conversation-header {
148-
position: relative;
149-
padding: 0px var(--margins-lg) 0px var(--margins-sm);
150-
}
151-
152110
.title-wrapper {
153111
position: relative;
154112
}

0 commit comments

Comments
 (0)