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 = {
|
export const HublReactivity = {
|
||||||
name: 'hubl-reactivity',
|
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(
|
const HublSearchUsers = widgetFactory(
|
||||||
'hubl-search-users',
|
'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';
|
import SlimSelect from 'https://cdn.skypack.dev/slim-select@1.23';
|
||||||
|
|
||||||
const HublStatus = widgetFactory(
|
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="/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="/lib/sib-auth/index.js" defer)
|
||||||
|
|
||||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/router@0.11" 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="/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)
|
//- script(type="module" src="/lib/sib-notifications/index.js" defer)
|
||||||
|
|
||||||
if themeChecker
|
if themeChecker
|
||||||
@ -15,33 +15,36 @@ if themeChecker
|
|||||||
link(rel='stylesheet', href='https://cdn.jsdelivr.net/npm/@simonwep/pickr/dist/themes/nano.min.css')
|
link(rel='stylesheet', href='https://cdn.jsdelivr.net/npm/@simonwep/pickr/dist/themes/nano.min.css')
|
||||||
|
|
||||||
if endpoints.get
|
if endpoints.get
|
||||||
if endpoints.get.events && endpoints.get.typeevents
|
//- Disabled - Not in core@0.15
|
||||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-event@1.4" defer)
|
//- 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)
|
//- script(type="module" src="/lib/sib-event-component/sib-event.js" defer)
|
||||||
|
|
||||||
if endpoints.get.resources && endpoints.get.resourceskeywords && endpoints.get.resourcestypes
|
//- Disabled - Not in core@0.15
|
||||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-resource@1.2" 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)
|
||||||
//- 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.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)
|
//- 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.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)
|
//- script(type="module" src="/lib/solid-directory/dist/index.js" defer)
|
||||||
|
|
||||||
if endpoints.get.dashboards
|
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)
|
//- script(type="module" src="/lib/solid-dashboard/dist/index.js" defer)
|
||||||
|
|
||||||
if endpoints.get.users
|
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)
|
//- script(type="module" src="/lib/solid-xmpp-chat/dist/index.js" defer)
|
||||||
|
|
||||||
if endpoints.get.polls
|
//- Disabled - Not in core@0.15
|
||||||
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-poll@1.2" defer)
|
//- 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)
|
//- script(type="module" src="/lib/sib-polls-component/index.js" defer)
|
||||||
|
|
||||||
if endpoints.get.polls || endpoints.get.events || endpoints.get.resources
|
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,
|
subtree: true,
|
||||||
childList: true
|
childList: true
|
||||||
}));
|
}));
|
||||||
// 0.15 needed https://git.startinblox.com/framework/sib-core/issues/732
|
document.addEventListener('widgetRendered', event => {
|
||||||
// document.addEventListener('widgetRendered', event => {
|
jsI18n.processNode(event.target);
|
||||||
// jsI18n.processNode(event.target);
|
// Then wait one arbitrary second to re-render the whole document in case a widget re-rendered
|
||||||
// // Then wait one arbitrary second to re-render the whole document in case a widget re-rendered
|
clearTimeout(timer);
|
||||||
// clearTimeout(timer);
|
timer = setTimeout(() => jsI18n.processNode(document.querySelector('body')), 500);
|
||||||
// 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')
|
solid-widget(name='hubl-circle-edit-admin')
|
||||||
template ${value ? "Administrateur" : ""}
|
template ${value == "true" ? "Administrateur" : ""}
|
||||||
|
|
||||||
solid-ac-checker(permission='acl:Write', bind-resources)
|
solid-ac-checker(permission='acl:Write', bind-resources)
|
||||||
div#loader-circle-edit.loader.loader-top
|
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')
|
h3.text-color-heading.text-bold.text-letter-spacing-large(data-trans='circle.profile.subTitle')
|
||||||
|
|
||||||
solid-widget(name='hubl-circle-user-admin')
|
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(
|
solid-display.segment.full.labelled-avatar.two-lines.whitespace-normal.children.children-full.sm-children-full.children-margin-bottom-medium(
|
||||||
bind-resources
|
bind-resources
|
||||||
|
@ -30,7 +30,7 @@ div.segment.full.padding-large.whitespace-normal
|
|||||||
)
|
)
|
||||||
|
|
||||||
solid-widget(name='hubl-project-edit-admin')
|
solid-widget(name='hubl-project-edit-admin')
|
||||||
template ${value ? "Administrateur" : ""}
|
template ${value == "true" ? "Administrateur" : ""}
|
||||||
|
|
||||||
solid-ac-checker(permission='acl:Write', bind-resources)
|
solid-ac-checker(permission='acl:Write', bind-resources)
|
||||||
div#loader-project-edit.loader.loader-top
|
div#loader-project-edit.loader.loader-top
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
solid-widget(name='hubl-user-avatar')
|
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