init
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
[spacesmenu]
|
||||
create_space_title = Create a space
|
||||
add_space_title = Add a new space
|
||||
join_space_title = Join a space
|
||||
invite_space_title = You got an invite?
|
||||
space_title = Space title
|
||||
space_title_empty = Your Space title is empty
|
||||
space_created = Space created
|
||||
loading_space_info = Loading the space
|
||||
subscribed = Subscribed to the space
|
||||
invitation_key = Use an invitation key
|
||||
key_required = A valid key is required
|
||||
locked_title = Locked space
|
||||
locked_text = You are not authorized to join the space at the moment
|
||||
locked_try_again = Try again
|
||||
leave_title = Leave the space
|
||||
leave_text = Are you sure that you want to leave the space?
|
||||
pending_subscription_title = A request has been send to a moderator.
|
||||
pending_subscription_text = You will be able to join the space once its accepted.
|
||||
pending_subscription_add_title = Add %s to the space
|
||||
pending_subscription_refuse_title = Deny the access
|
||||
contact_added = Contact added in the space
|
||||
contact_denied = Contact denied in the space
|
||||
@@ -0,0 +1,67 @@
|
||||
ul#spacesmenu_widget {
|
||||
overflow: auto;
|
||||
min-height: 18rem;
|
||||
flex-shrink: initial;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
ul#spacesmenu_widget li span.primary.space_add:before {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 5.5rem;
|
||||
height: 5.5rem;
|
||||
background-color: rgba(var(--movim-font), 0.04);
|
||||
position: absolute;
|
||||
top: -0.25rem;
|
||||
left: -0.25rem;
|
||||
border-radius: 2rem;
|
||||
}
|
||||
|
||||
ul#spacesmenu_widget li.enabled span.primary img {
|
||||
outline: 2px solid rgba(var(--movim-font), 0.3);
|
||||
outline-offset: 2px;
|
||||
box-shadow: var(--elevation-3);
|
||||
}
|
||||
|
||||
ul#spacesmenu_widget li.pinned span:not(.locked).primary::before {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: -0.5rem;
|
||||
font-family: 'Material Symbols';
|
||||
color: rgb(var(--movim-font));
|
||||
font-variation-settings: 'FILL' 1;
|
||||
content: '\e6aa';
|
||||
font-size: 1.25rem;
|
||||
border-radius: 1rem;
|
||||
line-height: 2rem;
|
||||
width: 2rem;
|
||||
height: auto;
|
||||
background-color: rgb(var(--movim-background-main), 0.7);
|
||||
backdrop-filter: blur(1rem);
|
||||
box-shadow: var(--elevation-1);
|
||||
}
|
||||
|
||||
ul#spacesmenu_widget li span.primary[data-counter]:after {
|
||||
content: '\e0ca';
|
||||
}
|
||||
|
||||
/* If we have messages _and_ quote notifications, we prioritize the second one */
|
||||
ul#spacesmenu_widget li span.primary[data-counter]:has(span.counter:not(:empty)):after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
ul#spacesmenu_widget li span.primary.locked::before {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
width: 5rem;
|
||||
height: 5rem;
|
||||
font-family: 'Material Symbols';
|
||||
color: rgb(var(--movim-font));
|
||||
font-variation-settings: 'FILL' 1;
|
||||
content: '\e897';
|
||||
background-color: rgb(var(--movim-background-main), 0.2);
|
||||
backdrop-filter: blur(0.2rem) brightness(80%);
|
||||
border-radius: 2rem;
|
||||
left: 0;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
var SpacesMenu = {
|
||||
get: function (server, node, route) {
|
||||
if (MovimUtils.urlParts().page == 'space') {
|
||||
SpacesMenu_ajaxHttpGet(server, node, null, MovimUtils.isMobile());
|
||||
} else {
|
||||
MovimUtils.reload(route);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
MovimWebsocket.attach(() => {
|
||||
if (MovimUtils.urlParts().page == 'space') {
|
||||
SpacesMenu_ajaxHttpGet(
|
||||
MovimUtils.urlParts().params[0],
|
||||
MovimUtils.urlParts().params[1],
|
||||
MovimUtils.urlParts().params[2],
|
||||
MovimUtils.isMobile());
|
||||
};
|
||||
|
||||
Notif.current('space');
|
||||
});
|
||||
Reference in New Issue
Block a user