major: orbit branding
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
window.hubl.getRoute = (type, returnFirst = false) => {
|
||||
let availables = window.hubl.components.filter(c => c.type == type || c.uniq == type);
|
||||
window.hubl.components.forEach(c => {
|
||||
window.orbit.getRoute = (type, returnFirst = false) => {
|
||||
let availables = window.orbit.components.filter(c => c.type == type || c.uniq == type);
|
||||
window.orbit.components.forEach(c => {
|
||||
if (c.extensions) {
|
||||
c.extensions.forEach(e => {
|
||||
if (e.type == type || e.uniq == type) {
|
||||
|
@ -1,19 +0,0 @@
|
||||
import {
|
||||
widgetFactory
|
||||
} from 'https://cdn.skypack.dev/@startinblox/core@0.17';
|
||||
|
||||
const HublSearchUsers = widgetFactory(
|
||||
'hubl-search-users',
|
||||
`<input
|
||||
data-holder
|
||||
autocomplete="off"
|
||||
placeholder="\${label} (^ + K)"
|
||||
type="text"
|
||||
name="\${name}"
|
||||
value="\${escapedValue}"
|
||||
>`
|
||||
);
|
||||
|
||||
export {
|
||||
HublSearchUsers
|
||||
}
|
@ -2,8 +2,8 @@ import {
|
||||
Sib
|
||||
} from 'https://cdn.skypack.dev/@startinblox/core@0.17';
|
||||
|
||||
export const HublAutoLogin = {
|
||||
name: 'hubl-auto-login',
|
||||
export const OrbitAutoLogin = {
|
||||
name: 'orbit-auto-login',
|
||||
created() {
|
||||
if (window.location.pathname == "/login") {
|
||||
document
|
||||
@ -12,7 +12,7 @@ export const HublAutoLogin = {
|
||||
window.dispatchEvent(
|
||||
new CustomEvent('requestNavigation', {
|
||||
detail: {
|
||||
route: window.hubl.getRoute((window.hubl.defaultRoute || "dashboard"), true)
|
||||
route: window.orbit.getRoute((window.orbit.defaultRoute || "dashboard"), true)
|
||||
}
|
||||
}),
|
||||
);
|
||||
@ -21,4 +21,4 @@ export const HublAutoLogin = {
|
||||
}
|
||||
}
|
||||
|
||||
Sib.register(HublAutoLogin);
|
||||
Sib.register(OrbitAutoLogin);
|
@ -4,8 +4,8 @@ import {
|
||||
StoreMixin
|
||||
} from 'https://cdn.skypack.dev/@startinblox/core@0.17';
|
||||
|
||||
export const HublReactivity = {
|
||||
name: 'hubl-reactivity',
|
||||
export const OrbitReactivity = {
|
||||
name: 'orbit-reactivity',
|
||||
use: [StoreMixin],
|
||||
attributes: {
|
||||
targetSrc: {
|
||||
@ -51,4 +51,4 @@ export const HublReactivity = {
|
||||
}
|
||||
}
|
||||
|
||||
Sib.register(HublReactivity);
|
||||
Sib.register(OrbitReactivity);
|
@ -10,19 +10,19 @@ if ('serviceWorker' in navigator) {
|
||||
let registration;
|
||||
|
||||
const showSkipWaitingPrompt = (event) => {
|
||||
if (hubl.intl.t('serviceWorker.newUpdate') != undefined) {
|
||||
if (orbit.intl.t('serviceWorker.newUpdate') != undefined) {
|
||||
Swal.fire({
|
||||
position: 'bottom-end',
|
||||
backdrop: false,
|
||||
title: "",
|
||||
text: hubl.intl.t('serviceWorker.newUpdate') + ". " + hubl.intl.t('serviceWorker.wantToUpdate'),
|
||||
imageUrl: hubl.client.logo || 'https://cdn.startinblox.com/logos/webp/hubl.webp',
|
||||
imageAlt: hubl.client.name,
|
||||
text: orbit.intl.t('serviceWorker.newUpdate') + ". " + orbit.intl.t('serviceWorker.wantToUpdate'),
|
||||
imageUrl: orbit.client.logo || 'https://cdn.startinblox.com/logos/webp/hubl.webp',
|
||||
imageAlt: orbit.client.name,
|
||||
showCancelButton: true,
|
||||
confirmButtonClass: 'button text-xsmall text-bold text-center reversed color-secondary bordered icon icon-check icon-margin-right-xsmall no-background-image',
|
||||
cancelButtonClass: 'button text-xsmall text-bold text-center reversed color-primary bordered icon icon-exclamation icon-margin-right-xsmall no-background-image',
|
||||
confirmButtonText: hubl.intl.t('serviceWorker.yes'),
|
||||
cancelButtonText: hubl.intl.t('serviceWorker.no')
|
||||
confirmButtonText: orbit.intl.t('serviceWorker.yes'),
|
||||
cancelButtonText: orbit.intl.t('serviceWorker.no')
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
wb.addEventListener('controlling', (event) => {
|
||||
|
Reference in New Issue
Block a user