minor: manual filtering

This commit is contained in:
Jean-Baptiste Pasquier 2021-02-08 10:51:08 +01:00
parent 52583523f5
commit 1ada126c43
7 changed files with 38 additions and 22 deletions

View File

@ -24,11 +24,11 @@ if endpoints.get
//- script(type="module" src="/lib/sib-resource/sib-resource.js" defer) //- script(type="module" src="/lib/sib-resource/sib-resource.js" defer)
if endpoints.get.joboffers if endpoints.get.joboffers
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-job-board@2.0" defer) script(type="module" src="https://cdn.skypack.dev/@startinblox/component-job-board@2.1" defer)
//- script(type="module" src="/lib/solid-job-board/dist/index.js" defer) //- script(type="module" src="/lib/solid-job-board/dist/index.js" defer)
if endpoints.get.uploads && endpoints.get.skills && endpoints.get.users if endpoints.get.uploads && endpoints.get.skills && endpoints.get.users
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-directory@2.0" defer) script(type="module" src="https://cdn.skypack.dev/@startinblox/component-directory@2.1" defer)
//- script(type="module" src="/lib/solid-directory/dist/index.js" defer) //- script(type="module" src="/lib/solid-directory/dist/index.js" defer)
if endpoints.get.dashboards if endpoints.get.dashboards

View File

@ -39,12 +39,7 @@ class JsI18n {
if (attr == "html") { if (attr == "html") {
this.translateNodeContent(node, k); this.translateNodeContent(node, k);
} else { } else {
if (node.tagName == "SOLID-DELETE") { // https://git.startinblox.com/framework/sib-core/issues/733
let button = node.querySelector('button');
if (button != null) {
this.translateNodeContent(button, k);
}
}
if (attr.startsWith('label-')) { if (attr.startsWith('label-')) {
let label = node.querySelector('[name="'+attr.replace("label-", "")+'"] > label'); let label = node.querySelector('[name="'+attr.replace("label-", "")+'"] > label');
if(label != null) { if(label != null) {
@ -202,4 +197,11 @@ document.addEventListener("DOMContentLoaded", () => {
subtree: true, subtree: true,
childList: true childList: true
})); }));
// 0.15 needed https://git.startinblox.com/framework/sib-core/issues/732
// document.addEventListener('widgetRendered', event => {
// jsI18n.processNode(event.target);
// // Then wait one arbitrary second to re-render the whole document in case a widget re-rendered
// clearTimeout(timer);
// timer = setTimeout(() => jsI18n.processNode(document.querySelector('body')), 500);
// });
}); });

View File

@ -0,0 +1,10 @@
.search-form {
input[type="submit"] {
margin-bottom: 20px;
@media (min-width: 768.01px) {
margin-bottom: 0;
float: none !important;
margin-top: 0 !important;
}
}
}

View File

@ -33,14 +33,15 @@ solid-display>div {
display: contents !important; display: contents !important;
} }
@import 'header/_index'; @import 'header';
@import 'left-nav/_index'; @import 'left-nav';
@import 'content/_index'; @import 'content';
@import 'about/_index'; @import 'about';
@import 'members/_index'; @import 'members';
@import 'profile/_index'; @import 'profile';
@import 'job-offers/_index'; @import 'job-offers';
@import 'chat/_index'; @import 'chat';
@import 'forms';
nav#main__menu { nav#main__menu {
@media (min-width: 768.01px) { @media (min-width: 768.01px) {

View File

@ -83,13 +83,14 @@ div.segment.full.padding-large.sm-padding-xsmall.sm-padding-top-normal.whitespac
widget-name='admin-circle-link' widget-name='admin-circle-link'
) )
solid-form-search.form( solid-form-search.form.search-form(
id="admin-circle-filter" id="admin-circle-filter"
fields='name' fields='name'
label-name='' label-name=''
data-trans='label-name=circle.list.searchBy' data-trans='label-name=circle.list.searchBy'
widget-name='solid-form-label-text' widget-name='solid-form-label-text'
class-name="segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading" class-name="segment margin-bottom-medium third sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading"
submit-button="GO"
) )
.segment.table-wrapper .segment.table-wrapper

View File

@ -29,13 +29,14 @@ div.segment.full.padding-large.sm-padding-xsmall.sm-padding-top-medium.whitespac
) )
span.icon.icon-people.icon-xsmall.margin-right-xxsmall span.icon.icon-people.icon-xsmall.margin-right-xxsmall
solid-form-search.form( solid-form-search.form.search-form(
id="admin-community-filter" id="admin-community-filter"
fields='cell1' fields='cell1'
label-cell1='' label-cell1=''
data-trans='label-cell1=communities.searchBy' data-trans='label-cell1=communities.searchBy'
widget-cell1='solid-form-label-text' widget-cell1='solid-form-label-text'
class-cell1="segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading" class-cell1="segment margin-bottom-medium third sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading"
submit-button="GO"
) )
.segment.table-wrapper .segment.table-wrapper

View File

@ -58,13 +58,14 @@ div.segment.full.padding-large.sm-padding-xsmall.sm-padding-top-medium.whitespac
widget-name='admin-project-link' widget-name='admin-project-link'
) )
solid-form-search.form( solid-form-search.form.search-form(
id="admin-project-filter" id="admin-project-filter"
fields='cell1' fields='cell1'
label-cell1='' label-cell1=''
data-trans='label-cell1=project.list.searchBy' data-trans='label-cell1=project.list.searchBy'
widget-cell1='solid-form-label-text' widget-cell1='solid-form-label-text'
class-cell1="segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading" class-cell1="segment margin-bottom-medium third sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading"
submit-button="GO"
) )
.segment.table-wrapper .segment.table-wrapper