@@ -20,14 +20,14 @@ These instructions will get you a copy of the project up and running on your loc
### Prerequisites
-To install Hubl, you'll need:
+To install Orbit, you'll need:
-* A [Hubl Server](https://git.startinblox.com/djangoldp-packages/server-manager/) (djangoldp>2)
+* A [DjangoLDP Server](https://git.startinblox.com/djangoldp-packages/server-manager/) (djangoldp>2)
* A [Prosody Server](https://prosody.im/) (with [appropriate modules](https://git.startinblox.com/infra/prosody-modules/)) (optional)
* A SMTP Server (optional)
* NodeJS on your machine
-Before diving in you have to check your Hubl Server supports the following LDP packages:
+Before diving in you have to check your DjangoLDP Server supports the following LDP packages:
* djangoldp_account
* djangoldp_uploader
@@ -35,23 +35,23 @@ Before diving in you have to check your Hubl Server supports the following LDP p
Those packages are given with the last stable version tested.
-Refer to the [documentation to install a Hubl Server](https://docs.startinblox.com/import_documentation/install-djangoldp-server.html) with this configuration.
+Refer to the [documentation to install a DjangoLDP Server](https://docs.startinblox.com/import_documentation/install-djangoldp-server.html) with this configuration.
## Build the application
In order to find your server(s) the client application needs to be assembled with the proper configuration.
-Get the code of the Hubl on your machine:
+Get the code of the Orbit on your machine:
```bash
git clone ...
-cd hubl
+cd orbit
npm install
```
Then create a `config.json` based on your needs, see Mandatory and Optional Modules on this page. For convienence a `config.sample.json` exists in the source.
-Then build your new Hubl:
+Then build your new Orbit:
```bash
npm run build
@@ -87,7 +87,7 @@ CONFIG_PATH='config.customName.json' npm run build
## Mandatory modules
-By default, a Hubl includes only individual chat modules.
+By default, a Orbit includes only individual chat modules.
On Server: `djangoldp_account`, `djangoldp_upload`, `django-webidoidc-provider` packages
@@ -105,7 +105,7 @@ On `config.json`:
Where:
-* `client.name` is the name of your Hubl
+* `client.name` is the name of your Orbit
* `client.logo` is an URL to an image file
* `components` is your modules declaration registry
@@ -129,7 +129,7 @@ On `config.json`:
Where:
* `client.favicon` is an URL to a distant favicon
-* `client.css` is an URL to a distant CSS that'll be the last one loaded by the Hubl
+* `client.css` is an URL to a distant CSS that'll be the last one loaded by the Orbit
* `client.i18n.lang` is the fallback langage in case the visitor's browser one does not contain the string
* `client.i18n.force` allows to ignore the visitor's browser langage and force the `client.i18n.lang` one
@@ -171,9 +171,9 @@ Eg. to add the `notification` module:
### About
-About is a short page about the technology behind Hubl.
+About is a short page about the technology behind Orbit.
-To activate about on Hubl, add this module declaration your `config.json`:
+To activate about on Orbit, add this module declaration your `config.json`:
```json
{
@@ -186,7 +186,7 @@ To activate about on Hubl, add this module declaration your `config.json`:
Administration is a minimal modulable admin module for all other ones.
-To activate administration on Hubl, add this module declaration your `config.json`:
+To activate administration on Orbit, add this module declaration your `config.json`:
```json
{
@@ -197,7 +197,7 @@ To activate administration on Hubl, add this module declaration your `config.jso
### Analytics
-Hubl support Google or Matomo as analytics trackers. To use them, add to your `config.json`:
+Orbit support Google or Matomo as analytics trackers. To use them, add to your `config.json`:
```json
{
@@ -277,9 +277,9 @@ Eg.:
### Communities
-Communities are an optional layer to add on an Hubl. They add a SOLID representation of one to many group of users on your data server.
+Communities are an optional layer to add on an Orbit. They add a SOLID representation of one to many group of users on your data server.
-If you're upgrading an existion Hubl, you can assign all your local users to a community this way:
+If you're upgrading an existion Orbit, you can assign all your local users to a community this way:
```bash
./manage.py create_community --name="My community"
@@ -287,7 +287,7 @@ If you're upgrading an existion Hubl, you can assign all your local users to a c
Don't forget to set some users as admin of the community from the Django Admin if you want to allow them to create new users from app.
-To activate community on Hubl, add this module declaration your `config.json`:
+To activate community on Orbit, add this module declaration your `config.json`:
```json
{
@@ -619,7 +619,7 @@ The user registration module allows users to self-register.
Community module is mandatory.
-If you set `allow_self_registration` on a community, it'll disable the auto-login feature of Hubl and allow your users to self register on your application.
+If you set `allow_self_registration` on a community, it'll disable the auto-login feature of Orbit and allow your users to self register on your application.
To activate it, you need:
@@ -645,7 +645,7 @@ Where:
### Theme checker
-The [Hubl theme manager](https://cdn.startinblox.com/hubl/theme/) is very handy for customer to easily customize the main colors they want to use.
+The [Orbit theme manager](https://cdn.startinblox.com/hubl/theme/) is very handy for customer to easily customize the main colors they want to use.
But developers should verify that their development use those colors to fit the customer wishes.
@@ -685,7 +685,7 @@ Module declaration, on `config.json`:
### Route generation
-Hubl will, by default, generate an unique route for every of your module. You can customize this route by setting a `route` attribute on your module declaration.
+Orbit will, by default, generate an unique route for every of your module. You can customize this route by setting a `route` attribute on your module declaration.
Eg. for the Users Directory:
@@ -703,15 +703,15 @@ Eg. for the Users Directory:
Will lead to `http://client.url/directory` as URL to reach the module instead of the default `http://client.url/profileDirectory`.
-If you provide no `route`, then Hubl will use the `type` as route view name. If two modules share the same `route`, they'll get suffixed with a random unique id.
+If you provide no `route`, then Orbit will use the `type` as route view name. If two modules share the same `route`, they'll get suffixed with a random unique id.
Some module don't need any route to be active, set `route` to `false` so.
-Components can get the route of a module with `window.hubl.getRoute('componentName')`.
+Components can get the route of a module with `window.orbit.getRoute('componentName')`.
#### Change the default route
-By default, Hubl will take a Dashboard as a default route.
+By default, Orbit will take a Dashboard as a default route.
You can enforce a component to be the default one by adding `defaultRoute` to its parameters.
diff --git a/config.sample.json b/config.sample.json
index 1a97d26..f098383 100644
--- a/config.sample.json
+++ b/config.sample.json
@@ -1,6 +1,6 @@
{
"client": {
- "name": "Sample of a functional Hubl",
+ "name": "Sample of a functional Orbit",
"logo": "https://cdn.startinblox.com/logos/webp/hubl.webp"
},
"components": [{
diff --git a/cypress/integration/leave-channel.spec.js b/cypress/integration/leave-channel.spec.js
index 03116df..15353b3 100644
--- a/cypress/integration/leave-channel.spec.js
+++ b/cypress/integration/leave-channel.spec.js
@@ -5,7 +5,7 @@ context('Leave Channel Browser Testing', () => {
let tableQuery = [
'solid-display.table-body',
'solid-display:last-child',
- 'hubl-admin-circle-leave-button',
+ 'orbit-admin-circle-leave-button',
'solid-delete'
],
tableListQuery = [
diff --git a/cypress/integration/leave-project.spec.js b/cypress/integration/leave-project.spec.js
index 778717d..c076302 100644
--- a/cypress/integration/leave-project.spec.js
+++ b/cypress/integration/leave-project.spec.js
@@ -5,7 +5,7 @@ context('Leave Project Browser Testing', () => {
let tableQuery = [
'solid-display.table-body',
'solid-display:last-child',
- 'hubl-admin-project-leave-button',
+ 'orbit-admin-project-leave-button',
'solid-delete'
],
tableListQuery = [
diff --git a/internal/parcel.js b/internal/parcel.js
index ac5d52f..170ee85 100644
--- a/internal/parcel.js
+++ b/internal/parcel.js
@@ -35,18 +35,18 @@ const options = {
let manifest = {
"lang": "fr",
"dir": "ltr",
- "name": config.client.name || "My Personal Hubl",
- "description": `Hubl of ${config.client.name || "My Personal Hubl"}`,
- "short_name": config.client.name || "My Personal Hubl",
+ "name": config.client.name || "My Personal Orbit",
+ "description": `Orbit of ${config.client.name || "My Personal Orbit"}`,
+ "short_name": config.client.name || "My Personal Orbit",
"icons": [{
"src": config.client.logo || '/images/logo.webp',
"purpose": "any"
}, {
- "src": "/images/hubl-icon-192.png",
+ "src": "/images/orbit-icon-192.png",
"sizes": "192x192",
"type": "image/png"
}, {
- "src": "/images/hubl-icon-512.png",
+ "src": "/images/orbit-icon-512.png",
"sizes": "512x512",
"type": "image/png"
}],
@@ -58,7 +58,7 @@ const options = {
}
await fse.writeJSON('./src/manifest.webmanifest', manifest)
- console.log(`Created manifest for ${config.client.name || "My Personal Hubl"}`);
+ console.log(`Created manifest for ${config.client.name || "My Personal Orbit"}`);
await fse.copy("./src/locales", "./dist/locales")
console.log(`Copied locales to dist folder`);
diff --git a/package-lock.json b/package-lock.json
index 5885a91..39c8bf1 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,5 +1,5 @@
{
- "name": "hubl",
+ "name": "orbit",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
diff --git a/package.json b/package.json
index 749be9f..10acecb 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
{
- "name": "hubl",
+ "name": "orbit",
"version": "1.0.0",
"license": "MIT",
"repository": {
diff --git a/src/components/getRoute.js b/src/components/getRoute.js
index d31a6e1..10050fc 100644
--- a/src/components/getRoute.js
+++ b/src/components/getRoute.js
@@ -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) {
diff --git a/src/components/hubl-search-users.js b/src/components/hubl-search-users.js
deleted file mode 100644
index 1ea857b..0000000
--- a/src/components/hubl-search-users.js
+++ /dev/null
@@ -1,19 +0,0 @@
-import {
- widgetFactory
-} from 'https://cdn.skypack.dev/@startinblox/core@0.17';
-
-const HublSearchUsers = widgetFactory(
- 'hubl-search-users',
- ``
-);
-
-export {
- HublSearchUsers
-}
\ No newline at end of file
diff --git a/src/components/hubl-auto-login.js b/src/components/orbit-auto-login.js
similarity index 70%
rename from src/components/hubl-auto-login.js
rename to src/components/orbit-auto-login.js
index 71b5a49..c637388 100644
--- a/src/components/hubl-auto-login.js
+++ b/src/components/orbit-auto-login.js
@@ -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);
\ No newline at end of file
+Sib.register(OrbitAutoLogin);
\ No newline at end of file
diff --git a/src/components/hubl-reactivity.js b/src/components/orbit-reactivity.js
similarity index 94%
rename from src/components/hubl-reactivity.js
rename to src/components/orbit-reactivity.js
index 0d8a883..5b77308 100644
--- a/src/components/hubl-reactivity.js
+++ b/src/components/orbit-reactivity.js
@@ -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);
\ No newline at end of file
+Sib.register(OrbitReactivity);
\ No newline at end of file
diff --git a/src/components/sw-toolbox.js b/src/components/sw-toolbox.js
index 9d51eee..d91f5fa 100644
--- a/src/components/sw-toolbox.js
+++ b/src/components/sw-toolbox.js
@@ -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) => {
diff --git a/src/images/hubl-icon-192.png b/src/images/orbit-icon-192.png
similarity index 100%
rename from src/images/hubl-icon-192.png
rename to src/images/orbit-icon-192.png
diff --git a/src/images/hubl-icon-512.png b/src/images/orbit-icon-512.png
similarity index 100%
rename from src/images/hubl-icon-512.png
rename to src/images/orbit-icon-512.png
diff --git a/src/index.pug b/src/index.pug
index fd4c073..c7e00f6 100644
--- a/src/index.pug
+++ b/src/index.pug
@@ -3,7 +3,7 @@ html(lang="en")
head
meta(charset="UTF-8")
- title #{client.name || "My Personal Hubl"}
+ title #{client.name || "My Personal Orbit"}
meta(name="viewport", content="width=device-width, initial-scale=1.0")
meta(http-equiv="X-UA-Compatible", content="ie=edge")
@@ -25,18 +25,18 @@ html(lang="en")
script(src="https://browser.sentry-cdn.com/5.25.0/bundle.tracing.min.js" defer)
- include hubl-router.pug
+ include orbit-router.pug
+ include orbit-unify.pug
script(type="module" src="/components/getRoute.js" defer)
script(type="module" src="/components/sentry.js" defer)
- script(type="module" src="/components/hubl-auto-login.js" defer)
- script(type="module" src="/components/hubl-search-users.js" defer)
- script(type="module" src="/components/hubl-reactivity.js" defer)
+ script(type="module" src="/components/orbit-auto-login.js" defer)
+ script(type="module" src="/components/orbit-reactivity.js" defer)
script(type="module" src="/components/sw-toolbox.js" defer)
script(src="index.js" defer)
- include dependencies.pug
- include context.pug
+ include orbit-dependencies.pug
+ include orbit-context.pug
//- swal2 does not work with skypack
script(src="https://cdn.jsdelivr.net/npm/sweetalert2@10" defer)
@@ -53,7 +53,7 @@ html(lang="en")
sib-auth-provider(
data-authority=`${component.parameters.authority}`
data-id=`${component.parameters.authorityName || "authority"}`
- data-client-name=`${client.name || "My Personal Hubl"}`
+ data-client-name=`${client.name || "My Personal Orbit"}`
)
if component.type == "registering"
if component.parameters
@@ -62,7 +62,7 @@ html(lang="en")
sib-auth-provider(
data-authority=`${component.parameters.authority}`
data-id=`${component.parameters.authorityName || "authority"}`
- data-client-name=`${client.name || "My Personal Hubl"}`
+ data-client-name=`${client.name || "My Personal Orbit"}`
)
if componentSet.has("registering")
@@ -95,20 +95,20 @@ html(lang="en")
if component.type == "chat"
.whitespace-normal
- hubl-reactivity(bind-user nested-field='inbox' target-src="store://user.contacts")
+ orbit-reactivity(bind-user nested-field='inbox' target-src="store://user.contacts")
include views/page-messages.pug
if component.type == "circles"
.with-sidebar.whitespace-normal.jsMobileContentSidebarControl
- hubl-reactivity(bind-user nested-field='inbox' target-src="store://user.circles")
- hubl-reactivity(bind-user nested-field="circles" target-src="store://user")
- hubl-reactivity(data-src=`${component.endpoints.get}joinable/` target-src=`${component.endpoints.get}`)
- hubl-reactivity(data-src=`${component.endpoints.post}` target-src=`${component.endpoints.get}`)
- hubl-reactivity(bind-user nested-field="circles" target-src=`${component.endpoints.post}`)
- hubl-reactivity(bind-user nested-field="circles" target-src=`${component.endpoints.post}joinable/`)
- hubl-reactivity(data-src=`${component.endpoints.get}joinable/` target-src=`${component.endpoints.get}`)
- hubl-reactivity(bind-user nested-field="circles" target-src=`${component.endpoints.get}`)
- hubl-reactivity(bind-user nested-field="circles" target-src=`${component.endpoints.get}joinable/`)
+ orbit-reactivity(bind-user nested-field='inbox' target-src="store://user.circles")
+ orbit-reactivity(bind-user nested-field="circles" target-src="store://user")
+ orbit-reactivity(data-src=`${component.endpoints.get}joinable/` target-src=`${component.endpoints.get}`)
+ orbit-reactivity(data-src=`${component.endpoints.post}` target-src=`${component.endpoints.get}`)
+ orbit-reactivity(bind-user nested-field="circles" target-src=`${component.endpoints.post}`)
+ orbit-reactivity(bind-user nested-field="circles" target-src=`${component.endpoints.post}joinable/`)
+ orbit-reactivity(data-src=`${component.endpoints.get}joinable/` target-src=`${component.endpoints.get}`)
+ orbit-reactivity(bind-user nested-field="circles" target-src=`${component.endpoints.get}`)
+ orbit-reactivity(bind-user nested-field="circles" target-src=`${component.endpoints.get}joinable/`)
include views/page-circle.pug
if component.type == "communities"
@@ -125,15 +125,15 @@ html(lang="en")
if component.type == "jobBoard"
.scrollbar-content
- hubl-reactivity(data-src=`${component.endpoints.post}current/` target-src=`${component.endpoints.get}`)
- hubl-reactivity(data-src=`${component.endpoints.post}expired/` target-src=`${component.endpoints.get}`)
- hubl-reactivity(data-src=`${component.endpoints.post}` target-src=`${component.endpoints.get}`)
- hubl-reactivity(data-src=`${component.endpoints.get}current/` target-src=`${component.endpoints.get}`)
- hubl-reactivity(data-src=`${component.endpoints.get}current/` target-src=`${component.endpoints.get}expired/`)
- hubl-reactivity(data-src=`${component.endpoints.get}expired/` target-src=`${component.endpoints.get}`)
- hubl-reactivity(bind-user nested-field="joboffers" target-src=`${component.endpoints.get}expired/`)
- hubl-reactivity(bind-user nested-field="joboffers" target-src=`${component.endpoints.get}`)
- hubl-reactivity(bind-user nested-field="joboffers" target-src=`${component.endpoints.get}current/`)
+ orbit-reactivity(data-src=`${component.endpoints.post}current/` target-src=`${component.endpoints.get}`)
+ orbit-reactivity(data-src=`${component.endpoints.post}expired/` target-src=`${component.endpoints.get}`)
+ orbit-reactivity(data-src=`${component.endpoints.post}` target-src=`${component.endpoints.get}`)
+ orbit-reactivity(data-src=`${component.endpoints.get}current/` target-src=`${component.endpoints.get}`)
+ orbit-reactivity(data-src=`${component.endpoints.get}current/` target-src=`${component.endpoints.get}expired/`)
+ orbit-reactivity(data-src=`${component.endpoints.get}expired/` target-src=`${component.endpoints.get}`)
+ orbit-reactivity(bind-user nested-field="joboffers" target-src=`${component.endpoints.get}expired/`)
+ orbit-reactivity(bind-user nested-field="joboffers" target-src=`${component.endpoints.get}`)
+ orbit-reactivity(bind-user nested-field="joboffers" target-src=`${component.endpoints.get}current/`)
include views/page-job-board.pug
if component.type == "polls"
@@ -142,15 +142,15 @@ html(lang="en")
if component.type == "projects"
.with-sidebar.whitespace-normal.jsMobileContentSidebarControl
- hubl-reactivity(bind-user nested-field='inbox' target-src="store://user.projects")
- hubl-reactivity(bind-user nested-field="projects" target-src="store://user")
- hubl-reactivity(data-src=`${component.endpoints.post}joinable/` target-src=`${component.endpoints.get}`)
- hubl-reactivity(data-src=`${component.endpoints.post}` target-src=`${component.endpoints.get}`)
- hubl-reactivity(bind-user nested-field="projects" target-src=`${component.endpoints.post}`)
- hubl-reactivity(bind-user nested-field="projects" target-src=`${component.endpoints.post}joinable/`)
- hubl-reactivity(data-src=`${component.endpoints.get}joinable/` target-src=`${component.endpoints.get}`)
- hubl-reactivity(bind-user nested-field="projects" target-src=`${component.endpoints.get}`)
- hubl-reactivity(bind-user nested-field="projects" target-src=`${component.endpoints.get}joinable/`)
+ orbit-reactivity(bind-user nested-field='inbox' target-src="store://user.projects")
+ orbit-reactivity(bind-user nested-field="projects" target-src="store://user")
+ orbit-reactivity(data-src=`${component.endpoints.post}joinable/` target-src=`${component.endpoints.get}`)
+ orbit-reactivity(data-src=`${component.endpoints.post}` target-src=`${component.endpoints.get}`)
+ orbit-reactivity(bind-user nested-field="projects" target-src=`${component.endpoints.post}`)
+ orbit-reactivity(bind-user nested-field="projects" target-src=`${component.endpoints.post}joinable/`)
+ orbit-reactivity(data-src=`${component.endpoints.get}joinable/` target-src=`${component.endpoints.get}`)
+ orbit-reactivity(bind-user nested-field="projects" target-src=`${component.endpoints.get}`)
+ orbit-reactivity(bind-user nested-field="projects" target-src=`${component.endpoints.get}joinable/`)
include views/page-project.pug
if component.type == "resources"
@@ -159,8 +159,8 @@ html(lang="en")
if component.type == "profileDirectory"
.scrollbar-content
- hubl-reactivity(bind-user nested-field="profile" target-src="store://user")
- hubl-reactivity(bind-user nested-field="account" target-src="store://user")
+ orbit-reactivity(bind-user nested-field="profile" target-src="store://user")
+ orbit-reactivity(bind-user nested-field="account" target-src="store://user")
include views/page-directory.pug
else
//- Components declaration without any route (`route`="false") but that need some code declaration
@@ -181,7 +181,7 @@ html(lang="en")
include views/partials/notifications.pug
if component.type == "lang"
- hubl-lang(
+ orbit-lang(
hidden
lang=component.parameters.name
file=component.parameters.file
@@ -228,7 +228,7 @@ html(lang="en")
a(data-trans='errors.reload' href='/')
if client.i18n
- hubl-fallback-lang(
+ orbit-fallback-lang(
hidden
lang=client.i18n.lang?client.i18n.lang:"fr"
)&attributes({"force": client.i18n.force})
diff --git a/src/locales/en.json b/src/locales/en.json
index 8e018cb..e7cc7e2 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -304,7 +304,7 @@
"template-captain": {
"isLead": "Captain"
},
- "hublStatus": "Public = Public, Private = Private",
+ "orbitStatus": "Public = Public, Private = Private",
"success": "Success!",
"errors": {
"somethingGoesWrong": "Something went wrong, try to",
diff --git a/src/locales/es.json b/src/locales/es.json
index ae27507..0f35122 100644
--- a/src/locales/es.json
+++ b/src/locales/es.json
@@ -304,7 +304,7 @@
"template-captain": {
"isLead": "Líder"
},
- "hublStatus": "Público = Public, Privado = Private",
+ "orbitStatus": "Público = Public, Privado = Private",
"success": "¡Éxito!",
"errors": {
"somethingGoesWrong": "Algo sale mal, intenta",
diff --git a/src/locales/fr.json b/src/locales/fr.json
index 9dc0998..ff31899 100644
--- a/src/locales/fr.json
+++ b/src/locales/fr.json
@@ -302,7 +302,7 @@
"template-captain": {
"isLead": "Capitaine"
},
- "hublStatus": "Public = Public, Privé = Private",
+ "orbitStatus": "Public = Public, Privé = Private",
"success": "Succès!",
"errors": {
"somethingGoesWrong": "Quelque chose ne va pas, essayez de",
diff --git a/src/context.pug b/src/orbit-context.pug
similarity index 100%
rename from src/context.pug
rename to src/orbit-context.pug
diff --git a/src/dependencies.pug b/src/orbit-dependencies.pug
similarity index 96%
rename from src/dependencies.pug
rename to src/orbit-dependencies.pug
index 64f03fc..9c9295a 100644
--- a/src/dependencies.pug
+++ b/src/orbit-dependencies.pug
@@ -17,7 +17,7 @@ if componentSet.has("autoLogin") || componentSet.has("registering")
//- script(type="module" src="/lib/sib-auth/index.js" defer)
if componentSet.has("chat") || componentSet.has("circles") || componentSet.has("projects")
- script(type="module" src="https://cdn.skypack.dev/@startinblox/component-chat@6.1" defer)
+ script(type="module" src="https://cdn.skypack.dev/@startinblox/component-chat@6.2" defer)
//- script(type="module" src="/lib/solid-xmpp-chat/dist/index.js" defer)
if componentSet.has("communities")
@@ -25,7 +25,7 @@ if componentSet.has("communities")
//- script(type="module" src="/lib/sib-core/dist/components/solid-map.js" defer)
if componentSet.has("dashboard")
- script(type="module" src="https://cdn.skypack.dev/@startinblox/component-dashboard@5.0" defer)
+ script(type="module" src="https://cdn.skypack.dev/@startinblox/component-dashboard@5.1" defer)
//- script(type="module" src="/lib/solid-dashboard/dist/index.js" defer)
if componentSet.has("events")
@@ -40,7 +40,7 @@ if componentSet.has('invoices')
//- script(type="module" src="/lib/solid-invoicing/solid-invoicing.js" defer)
if componentSet.has("jobBoard")
- script(type="module" src="https://cdn.skypack.dev/@startinblox/component-job-board@6.1" defer)
+ script(type="module" src="https://cdn.skypack.dev/@startinblox/component-job-board@6.2" defer)
//- script(type="module" src="/lib/solid-job-board/dist/index.js" defer)
if componentSet.has("notification")
@@ -52,7 +52,7 @@ if componentSet.has("polls")
//- script(type="module" src="/lib/solid-poll/index.js" defer)
if componentSet.has("profileDirectory")
- script(type="module" src="https://cdn.skypack.dev/@startinblox/component-directory@6.0" defer)
+ script(type="module" src="https://cdn.skypack.dev/@startinblox/component-directory@6.1" defer)
//- script(type="module" src="/lib/solid-directory/dist/index.js" defer)
if componentSet.has("resources")
diff --git a/src/hubl-router.pug b/src/orbit-router.pug
similarity index 82%
rename from src/hubl-router.pug
rename to src/orbit-router.pug
index a9a13e8..fccf125 100644
--- a/src/hubl-router.pug
+++ b/src/orbit-router.pug
@@ -1,11 +1,11 @@
//-
- Hubl router declaration for latter generation
- Create a window.hubl.components, accessible by all components with the route declaration.
+ Orbit router declaration for latter generation
+ Create a window.orbit.components, accessible by all components with the route declaration.
Components can also get benefits from the `getRoute` function
Eg.
```
- window.hubl.getRoute('chat', true)
- window.hubl.getRoute('uxnzsa') // Where uxnzsa is the uniq of the component
+ window.orbit.getRoute('chat', true)
+ window.orbit.getRoute('uxnzsa') // Where uxnzsa is the uniq of the component
```
will return the route of the first chat component, if exists, or triggers an error.
-
@@ -85,5 +85,5 @@ for component of components
defaultRoute = defaultComponent[0].uniq;
}
-- const hublComponents = `window.hubl={};window.hubl.components = ${JSON.stringify(components)};window.hubl.defaultRoute = "${defaultRoute}";window.hubl.client = ${JSON.stringify(client)}`;
-script!=hublComponents
\ No newline at end of file
+- const orbitComponents = `window.orbit={};window.orbit.components = ${JSON.stringify(components)};window.orbit.defaultRoute = "${defaultRoute}";window.orbit.client = ${JSON.stringify(client)};window.hubl = window.orbit;`;
+script!=orbitComponents
\ No newline at end of file
diff --git a/src/orbit-unify.pug b/src/orbit-unify.pug
new file mode 100644
index 0000000..e69de29
diff --git a/src/scripts/hubl-geocoord.js b/src/scripts/hubl-geocoord.js
index 7d9551f..67514d9 100644
--- a/src/scripts/hubl-geocoord.js
+++ b/src/scripts/hubl-geocoord.js
@@ -1,10 +1,10 @@
/*
Geocoord helper using Nominatim
Usage:
- const madrid = await hubl.geocoord('Madrid');
+ const madrid = await orbit.geocoord('Madrid');
madrid == ["-3.7035825", "40.4167047"]
*/
-window.hubl.geocoord = async (address = false) => {
+window.orbit.geocoord = async (address = false) => {
if (address) {
const nominatim = await fetch('https://nominatim.openstreetmap.org/?format=geocodejson&limit=1&q=' + encodeURI(address));
const response = await nominatim.json();
@@ -22,9 +22,9 @@ window.hubl.geocoord = async (address = false) => {
return ["-47.15", "-123.716667"];
}
-window.hubl.geocalc = (element) => {
+window.orbit.geocalc = (element) => {
const editionForm = element.parentElement.parentElement.parentElement.parentElement;
- window.hubl.geocoord(editionForm.querySelector('input[name="address_line1"]').value + " " + editionForm.querySelector('input[name="address_line2"]').value).then(coords => {
+ window.orbit.geocoord(editionForm.querySelector('input[name="address_line1"]').value + " " + editionForm.querySelector('input[name="address_line2"]').value).then(coords => {
editionForm.querySelector('input[name="lat"]').value = coords[1];
editionForm.querySelector('input[name="lng"]').value = coords[0];
editionForm.querySelector('input[type="submit"]').click();
diff --git a/src/scripts/intl.js b/src/scripts/intl.js
index 04bbe02..16197e4 100644
--- a/src/scripts/intl.js
+++ b/src/scripts/intl.js
@@ -14,7 +14,7 @@ class JsI18n {
Method for automatically detecting the language, does not work in every browser.
*/
async detectLanguage() {
- const customLangs = document.querySelectorAll('hubl-lang');
+ const customLangs = document.querySelectorAll('orbit-lang');
if (customLangs) {
for (let lang of customLangs) {
let name = lang.getAttribute('lang'),
@@ -34,7 +34,7 @@ class JsI18n {
}
resumeDetection() {
- const langComponent = document.querySelector('hubl-fallback-lang');
+ const langComponent = document.querySelector('orbit-fallback-lang');
if (langComponent) {
if (langComponent.hasAttribute('lang')) {
this.defaultLocale = langComponent.getAttribute('lang');
@@ -252,20 +252,20 @@ class JsI18n {
}
//Global
-window.hubl.intl = new JsI18n;
+window.orbit.intl = new JsI18n;
document.addEventListener("DOMContentLoaded", () => {
// Detect the lang & initialize, based on the browser or "language" item from localstorage
- window.hubl.intl.detectLanguage();
+ window.orbit.intl.detectLanguage();
let timer;
(new MutationObserver((mutations) => {
mutations.forEach(mutation => {
if (mutation.target.attributes["data-trans"] != null) {
// Render the target of the mutation instantly
- window.hubl.intl.processNode(mutation.target);
+ window.orbit.intl.processNode(mutation.target);
// Then wait one arbitrary second to re-render the whole document in case a widget re-rendered
clearTimeout(timer);
- timer = setTimeout(() => window.hubl.intl.processNode(document.querySelector('body')), 500);
+ timer = setTimeout(() => window.orbit.intl.processNode(document.querySelector('body')), 500);
}
});
}).observe(document.body, {
@@ -273,9 +273,9 @@ document.addEventListener("DOMContentLoaded", () => {
childList: true
}));
document.addEventListener('widgetRendered', event => {
- window.hubl.intl.processNode(event.target);
+ window.orbit.intl.processNode(event.target);
// Then wait one arbitrary second to re-render the whole document in case a widget re-rendered
clearTimeout(timer);
- timer = setTimeout(() => window.hubl.intl.processNode(document.querySelector('body')), 500);
+ timer = setTimeout(() => window.orbit.intl.processNode(document.querySelector('body')), 500);
});
});
\ No newline at end of file
diff --git a/src/scripts/login-element-visibility.js b/src/scripts/login-element-visibility.js
index 6337812..2d77db6 100644
--- a/src/scripts/login-element-visibility.js
+++ b/src/scripts/login-element-visibility.js
@@ -40,7 +40,7 @@ window.addEventListener("navigate", e => {
window.dispatchEvent(
new CustomEvent('requestNavigation', {
detail: {
- route: window.hubl.getRoute((window.hubl.defaultRoute || "dashboard"), true)
+ route: window.orbit.getRoute((window.orbit.defaultRoute || "dashboard"), true)
}
}),
);
diff --git a/src/scripts/navigate-event.js b/src/scripts/navigate-event.js
index 7d358b0..86d311a 100644
--- a/src/scripts/navigate-event.js
+++ b/src/scripts/navigate-event.js
@@ -76,7 +76,7 @@ function openRightMobileMenu() {
}
document.addEventListener("DOMContentLoaded", function () {
- const componentSet = new Set(window.hubl.components.map(c => c.type));
+ const componentSet = new Set(window.orbit.components.map(c => c.type));
// Workaround - No "navigate" event after the login on `/login`
if (window.location.pathname == "/login") {
@@ -92,7 +92,7 @@ document.addEventListener("DOMContentLoaded", function () {
window.dispatchEvent(
new CustomEvent('requestNavigation', {
detail: {
- route: window.hubl.getRoute((window.hubl.defaultRoute || "dashboard"), true)
+ route: window.orbit.getRoute((window.orbit.defaultRoute || "dashboard"), true)
}
}),
);
@@ -112,7 +112,7 @@ document.addEventListener("DOMContentLoaded", function () {
onlyAdmin.setAttribute('hidden', '');
}
}
- for (component of window.hubl.components) {
+ for (component of window.orbit.components) {
let adminTarget = document.querySelector(`solid-route[name="admin-${component.route}"]`);
let adminTargetTwo = document.querySelector(`.jsRightMenu solid-link[next="admin-${component.route}"]`);
if (e.detail.route.startsWith(`admin-${component.route}`)) {
@@ -139,7 +139,7 @@ document.addEventListener("DOMContentLoaded", function () {
window.dispatchEvent(
new CustomEvent('requestNavigation', {
detail: {
- route: window.hubl.getRoute((window.hubl.defaultRoute || "dashboard"), true)
+ route: window.orbit.getRoute((window.orbit.defaultRoute || "dashboard"), true)
}
}),
);
diff --git a/src/styles/admin-circles/_index.scss b/src/styles/admin-circles/_index.scss
index 6831190..c3e1a19 100644
--- a/src/styles/admin-circles/_index.scss
+++ b/src/styles/admin-circles/_index.scss
@@ -74,11 +74,11 @@
cursor: pointer;
}
- hubl-admin-circle-name:hover {
+ orbit-admin-circle-name:hover {
text-decoration: underline;
}
- hubl-admin-community-logo {
+ orbit-admin-community-logo {
height: 76px;
width: 100%;
display: block;
@@ -111,7 +111,7 @@
}
}
- hubl-communities-profile-logo {
+ orbit-communities-profile-logo {
height: 155px;
width: 100%;
display: block;
@@ -264,7 +264,7 @@
border-bottom: 1px solid #E4E9F1;
}
- hubl-communities-profile-logo {
+ orbit-communities-profile-logo {
height: 100px;
}
diff --git a/src/styles/admin-projects/_index.scss b/src/styles/admin-projects/_index.scss
index f58ffe9..e59d7d5 100644
--- a/src/styles/admin-projects/_index.scss
+++ b/src/styles/admin-projects/_index.scss
@@ -1,3 +1,3 @@
-#admin-projects hubl-admin-project-join-button>solid-form>form {
+#admin-projects orbit-admin-project-join-button>solid-form>form {
vertical-align: bottom;
}
\ No newline at end of file
diff --git a/src/styles/communities/_index.scss b/src/styles/communities/_index.scss
index 0fd54ca..709f4c6 100644
--- a/src/styles/communities/_index.scss
+++ b/src/styles/communities/_index.scss
@@ -47,7 +47,7 @@
justify-content: center;
>div>solid-display {
display: contents;
- >div>hubl-index-select-community {
+ >div>orbit-index-select-community {
display: contents;
}
}
@@ -59,8 +59,8 @@
justify-content: center;
>solid-display,
- hubl-index-community-logo,
- hubl-index-community-text {
+ orbit-index-community-logo,
+ orbit-index-community-text {
display: contents;
}
}
@@ -68,7 +68,7 @@
solid-form-text-label,
solid-form-password-label,
- hubl-input-type-email {
+ orbit-input-type-email {
color: #5D7393;
}
diff --git a/src/styles/index.scss b/src/styles/index.scss
index 4bbecc1..b39ca44 100644
--- a/src/styles/index.scss
+++ b/src/styles/index.scss
@@ -69,7 +69,7 @@ main#content {
}
}
-hubl-menu-empty+hubl-menu-empty {
+orbit-menu-empty+orbit-menu-empty {
display: none;
/* Duplicate widget generation? */
}
diff --git a/src/styles/left-nav/_index.scss b/src/styles/left-nav/_index.scss
index f2262ca..9773c79 100644
--- a/src/styles/left-nav/_index.scss
+++ b/src/styles/left-nav/_index.scss
@@ -173,8 +173,8 @@ nav#main__menu {
/* Ellipsis */
.ellipsis {
- hubl-menu-fix-url-circle,
- hubl-menu-fix-url-project {
+ orbit-menu-fix-url-circle,
+ orbit-menu-fix-url-project {
display: block;
}
@@ -223,7 +223,7 @@ nav#main__menu {
height: 28px;
display: block;
- hubl-menu-contact-removed {
+ orbit-menu-contact-removed {
display: none;
button {
visibility: hidden;
@@ -232,12 +232,12 @@ nav#main__menu {
&:hover {
- hubl-menu-fix-url-contact {
+ orbit-menu-fix-url-contact {
display: inline-block;
width: 100%;
}
- hubl-counter {
+ orbit-counter {
padding-right: 25px;
}
@@ -246,7 +246,7 @@ nav#main__menu {
width: 74%;
}
- hubl-menu-contact-removed {
+ orbit-menu-contact-removed {
width: 38px;
height: 27.75px;
text-align: right;
@@ -257,11 +257,12 @@ nav#main__menu {
padding-top: 5px;
button {
- visibility: visible;
+ visibility: hidden;
&::before {
font-size: 18px;
color: white;
+ visibility: visible;
}
}
}
@@ -271,7 +272,7 @@ nav#main__menu {
/* End */
/* Modal to keep/remove a contact */
- hubl-menu-contact-removed dialog {
+ orbit-menu-contact-removed dialog {
background: white !important;
border: none;
padding: 60px 30px;
diff --git a/src/views/page-messages.pug b/src/views/page-messages.pug
index 3133479..a3b2e46 100644
--- a/src/views/page-messages.pug
+++ b/src/views/page-messages.pug
@@ -13,7 +13,7 @@ div.segment.full.padding-top-small.padding-right-large.padding-bottom-small.padd
class-hypen='text-color-heading'
class-username='margin-right-xxsmall'
- widget-account.picture='hubl-user-avatar'
+ widget-account.picture='orbit-user-avatar'
)
solid-link.icon.icon-info.icon-secondary.hover(
diff --git a/src/views/page-registering.pug b/src/views/page-registering.pug
index 73f1e32..e9b4a11 100644
--- a/src/views/page-registering.pug
+++ b/src/views/page-registering.pug
@@ -8,15 +8,15 @@
data-trans="communities.index.login"
)
p.text-xlarge.text-semibold.margin-top-xxlarge.line-xlarge(data-trans="communities.index.newUser")
- solid-widget(name='hubl-index-community-logo')
+ solid-widget(name='orbit-index-community-logo')
template ${value != "" ? `