major: core upgrade
This commit is contained in:
parent
0057aa8994
commit
db3243db69
@ -1,4 +1,4 @@
|
||||
import { store, Sib, StoreMixin } from 'https://cdn.skypack.dev/@startinblox/core@0.14';
|
||||
import { store, Sib, StoreMixin } from 'https://cdn.skypack.dev/@startinblox/core@0.15';
|
||||
|
||||
export const HublReactivity = {
|
||||
name: 'hubl-reactivity',
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { widgetFactory } from 'https://cdn.skypack.dev/@startinblox/core@0.14';
|
||||
import { widgetFactory } from 'https://cdn.skypack.dev/@startinblox/core@0.15';
|
||||
|
||||
const HublSearchUsers = widgetFactory(
|
||||
'hubl-search-users',
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { widgetFactory, Helpers } from 'https://cdn.skypack.dev/@startinblox/core@0.14';
|
||||
import { widgetFactory, Helpers } from 'https://cdn.skypack.dev/@startinblox/core@0.15';
|
||||
import SlimSelect from 'https://cdn.skypack.dev/slim-select@1.23';
|
||||
|
||||
const HublStatus = widgetFactory(
|
||||
|
@ -1,13 +1,13 @@
|
||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/core@0.14" defer)
|
||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/core@0.15" defer)
|
||||
//- script(type="module" src="/lib/sib-core/dist/index.js" defer)
|
||||
|
||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/oidc@0.13.2" defer)
|
||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/oidc@0.13" defer)
|
||||
//- script(type="module" src="/lib/sib-auth/index.js" defer)
|
||||
|
||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/router@0.11" defer)
|
||||
//- script(type="module" src="/lib/sib-router/src/index.js" defer)
|
||||
|
||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-notifications@0.9" defer)
|
||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-notifications@0.10" defer)
|
||||
//- script(type="module" src="/lib/sib-notifications/index.js" defer)
|
||||
|
||||
if themeChecker
|
||||
@ -15,33 +15,36 @@ if themeChecker
|
||||
link(rel='stylesheet', href='https://cdn.jsdelivr.net/npm/@simonwep/pickr/dist/themes/nano.min.css')
|
||||
|
||||
if endpoints.get
|
||||
if endpoints.get.events && endpoints.get.typeevents
|
||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-event@1.4" defer)
|
||||
//- Disabled - Not in core@0.15
|
||||
//- if endpoints.get.events && endpoints.get.typeevents
|
||||
//- script(type="module" src="https://cdn.skypack.dev/@startinblox/component-event@1.4" defer)
|
||||
//- script(type="module" src="/lib/sib-event-component/sib-event.js" defer)
|
||||
|
||||
if endpoints.get.resources && endpoints.get.resourceskeywords && endpoints.get.resourcestypes
|
||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-resource@1.2" defer)
|
||||
//- Disabled - Not in core@0.15
|
||||
//- if endpoints.get.resources && endpoints.get.resourceskeywords && endpoints.get.resourcestypes
|
||||
//- script(type="module" src="https://cdn.skypack.dev/@startinblox/component-resource@1.2" defer)
|
||||
//- script(type="module" src="/lib/sib-resource/sib-resource.js" defer)
|
||||
|
||||
if endpoints.get.joboffers
|
||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-job-board@2.3" defer)
|
||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-job-board@3.0" defer)
|
||||
//- script(type="module" src="/lib/solid-job-board/dist/index.js" defer)
|
||||
|
||||
if endpoints.get.uploads && endpoints.get.skills && endpoints.get.users
|
||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-directory@2.1" defer)
|
||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-directory@3.0" defer)
|
||||
//- script(type="module" src="/lib/solid-directory/dist/index.js" defer)
|
||||
|
||||
if endpoints.get.dashboards
|
||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-dashboard@1.0" defer)
|
||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-dashboard@3.0" defer)
|
||||
//- script(type="module" src="/lib/solid-dashboard/dist/index.js" defer)
|
||||
|
||||
if endpoints.get.users
|
||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-chat@3.0" defer)
|
||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-chat@4.0" defer)
|
||||
//- script(type="module" src="/lib/solid-xmpp-chat/dist/index.js" defer)
|
||||
|
||||
if endpoints.get.polls
|
||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-poll@1.2" defer)
|
||||
//- Disabled - Not in core@0.15
|
||||
//- if endpoints.get.polls
|
||||
//- script(type="module" src="https://cdn.skypack.dev/@startinblox/component-poll@1.2" defer)
|
||||
//- script(type="module" src="/lib/sib-polls-component/index.js" defer)
|
||||
|
||||
if endpoints.get.polls || endpoints.get.events || endpoints.get.resources
|
||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-conversation@0.8" defer)
|
||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-conversation@0.9" defer)
|
||||
|
@ -197,11 +197,10 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
subtree: 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);
|
||||
// });
|
||||
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);
|
||||
});
|
||||
});
|
@ -26,7 +26,7 @@ div.segment.full.padding-large.whitespace-normal
|
||||
)
|
||||
|
||||
solid-widget(name='hubl-circle-edit-admin')
|
||||
template ${value ? "Administrateur" : ""}
|
||||
template ${value == "true" ? "Administrateur" : ""}
|
||||
|
||||
solid-ac-checker(permission='acl:Write', bind-resources)
|
||||
div#loader-circle-edit.loader.loader-top
|
||||
|
@ -104,7 +104,7 @@ solid-router(default-route='circle-profile', hidden)
|
||||
h3.text-color-heading.text-bold.text-letter-spacing-large(data-trans='circle.profile.subTitle')
|
||||
|
||||
solid-widget(name='hubl-circle-user-admin')
|
||||
template ${value ? "Administrateur" : ""}
|
||||
template ${value == "true" ? "Administrateur" : ""}
|
||||
|
||||
solid-display.segment.full.labelled-avatar.two-lines.whitespace-normal.children.children-full.sm-children-full.children-margin-bottom-medium(
|
||||
bind-resources
|
||||
|
@ -30,7 +30,7 @@ div.segment.full.padding-large.whitespace-normal
|
||||
)
|
||||
|
||||
solid-widget(name='hubl-project-edit-admin')
|
||||
template ${value ? "Administrateur" : ""}
|
||||
template ${value == "true" ? "Administrateur" : ""}
|
||||
|
||||
solid-ac-checker(permission='acl:Write', bind-resources)
|
||||
div#loader-project-edit.loader.loader-top
|
||||
|
@ -1,2 +1,2 @@
|
||||
solid-widget(name='hubl-user-avatar')
|
||||
template ${value ? `<img src="${value}" />` : `<img src="/images/alien.webp" />`}
|
||||
template ${value != "" ? `<img src="${value}" />` : `<img src="/images/alien.webp" />`}
|
Loading…
Reference in New Issue
Block a user