hubl/README.md

924 lines
23 KiB
Markdown
Raw Permalink Normal View History

2020-11-26 22:21:55 +00:00
<h1 align="center">
<br>
2021-06-15 12:02:32 +00:00
<a href="https://startinblox.com"><img src="https://cdn.startinblox.com/logos/startinblox.png" alt="Orbit" width="200"></a>
2020-11-26 22:21:55 +00:00
<br>
</h1>
2021-06-15 12:02:32 +00:00
<h4 align="center">A magic orchestrator that allows any Blox to thrive in a decentralized way, built on top of <a href="https://startinblox.com/" target="_blank">Startin'blox</a>.</h4>
2020-11-26 22:21:55 +00:00
<hr>
2018-09-28 19:24:25 +00:00
2020-12-09 19:48:14 +00:00
<p align="center">
<a href="https://git.startinblox.com/management/product-owners-sync/issues/"><img alt="create a feature request" src="https://img.shields.io/badge/%2B-feature%20request-blue" /></a>
2021-06-15 12:02:32 +00:00
<a href="https://git.startinblox.com/applications/orbit/issues/"><img alt="create an issue" src="https://img.shields.io/badge/%2B-issue-orange" /></a>
<a href="https://git.startinblox.com/applications/orbit/commits/master"><img alt="pipeline status" src="https://git.startinblox.com/applications/orbit/badges/master/pipeline.svg" /></a>
2020-12-09 19:48:14 +00:00
</p>
2020-12-09 19:43:44 +00:00
2019-04-29 12:46:13 +00:00
## Getting Started
2018-11-14 12:50:38 +00:00
2019-12-02 14:22:25 +00:00
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
2018-11-14 12:50:38 +00:00
2019-04-29 12:46:13 +00:00
### Prerequisites
2018-11-14 12:50:38 +00:00
2021-06-15 11:48:49 +00:00
To install Orbit, you'll need:
2018-11-14 12:50:38 +00:00
2021-06-15 11:48:49 +00:00
* 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)
2019-12-02 14:22:25 +00:00
* A SMTP Server (optional)
* NodeJS on your machine
2018-11-14 12:50:38 +00:00
2021-06-15 11:48:49 +00:00
Before diving in you have to check your DjangoLDP Server supports the following LDP packages:
2018-11-14 12:50:38 +00:00
2020-03-14 16:17:27 +00:00
* djangoldp_account
2020-05-08 13:27:44 +00:00
* djangoldp_uploader
* an oidc_provider (eg: [django-webidoidc-provider](https://git.startinblox.com/djangoldp-packages/django-webidoidc-provider))
2018-11-14 12:50:38 +00:00
Those packages are given with the last stable version tested.
2018-11-14 12:50:38 +00:00
2021-06-15 11:48:49 +00:00
Refer to the [documentation to install a DjangoLDP Server](https://docs.startinblox.com/import_documentation/install-djangoldp-server.html) with this configuration.
2019-04-29 12:46:13 +00:00
## Build the application
In order to find your server(s) the client application needs to be assembled with the proper configuration.
2019-04-29 12:46:13 +00:00
2021-06-15 11:48:49 +00:00
Get the code of the Orbit on your machine:
2019-12-02 14:22:25 +00:00
```bash
git clone ...
2021-06-15 11:48:49 +00:00
cd orbit
2020-05-04 12:09:39 +00:00
npm install
2019-04-29 12:46:13 +00:00
```
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.
2021-06-15 11:48:49 +00:00
Then build your new Orbit:
2019-12-02 14:22:25 +00:00
```bash
npm run build
```
2019-04-29 12:46:13 +00:00
The application bundle is in the `dist` folder, ready to be deployed everywhere as a static file.
2019-04-29 12:46:13 +00:00
2019-12-02 14:22:25 +00:00
## Developpers
Serve, watch files & rebuild on change with this command:
```bash
npm run watch
```
Notice that you may have to restart the watcher for the config.json and for locales files.
2020-12-14 10:24:35 +00:00
### Multiple config.json
You can have as many `config.*.json` as you need.
Watch on a custom config file:
```bash
CONFIG_PATH='config.customName.json' npm run watch
```
Build with a custom config file:
```bash
CONFIG_PATH='config.customName.json' npm run build
```
## Mandatory modules
2021-06-15 11:48:49 +00:00
By default, a Orbit includes only individual chat modules.
On Server: `djangoldp_account`, `djangoldp_upload`, `django-webidoidc-provider` packages
2020-06-18 18:02:54 +00:00
On `config.json`:
```json
{
"client": {
"name": "Localhost",
2021-06-15 19:55:06 +00:00
"logo": "/images/logo.webp",
"server": "http://server"
2021-02-26 13:52:30 +00:00
},
"components": []
}
```
Where:
2021-06-15 11:48:49 +00:00
* `client.name` is the name of your Orbit
* `client.logo` is an URL to an image file
2021-06-15 19:55:06 +00:00
* `client.server` is the main data server of the client
* `components` is your modules declaration registry
### Optional personalisation
2020-10-13 16:21:57 +00:00
On `config.json`:
2020-10-13 16:21:57 +00:00
```json
{
"client": {
"favicon": "/images/favicon.webp",
"css": "/path/to/custom.css",
2021-03-16 14:27:30 +00:00
"i18n": {
"lang": "fr",
2021-03-30 19:10:05 +00:00
"force": "false"
2021-03-16 14:27:30 +00:00
}
}
}
2020-10-13 16:21:57 +00:00
```
Where:
2020-10-13 16:21:57 +00:00
2021-02-26 13:52:30 +00:00
* `client.favicon` is an URL to a distant favicon
2021-06-15 11:48:49 +00:00
* `client.css` is an URL to a distant CSS that'll be the last one loaded by the Orbit
2021-03-16 14:27:30 +00:00
* `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
2021-02-17 17:40:12 +00:00
### Allow to login to your application
Most of other modules will need to have an user logged in, if you want to use communities, then scroll back to the User Registration module, else you'll need to activate the Auto Login module:
```json
{
"type": "autoLogin",
"parameters": {
"authority": "http://server.url/"
}
}
```
Where:
* `authority` is the OpenID Provider. Usually, if you use `djangoldp_account` it's the same as your djangoldp server.
## Optional modules
### Adding modules
You can append any module listed bellow to your `components` entry on your `config.json`
Eg. to add the `notification` module:
```json
{
"components": [
{
"type": "notification",
"route": false
}
]
}
```
### About
2021-06-15 11:48:49 +00:00
About is a short page about the technology behind Orbit.
2021-06-15 11:48:49 +00:00
To activate about on Orbit, add this module declaration your `config.json`:
```json
{
"type": "about",
"route": false
}
```
### Administration
Administration is a minimal modulable admin module for all other ones.
2021-06-15 11:48:49 +00:00
To activate administration on Orbit, add this module declaration your `config.json`:
```json
{
"type": "admin",
"route": false
}
```
2020-05-08 13:27:44 +00:00
### Analytics
2021-06-15 11:48:49 +00:00
Orbit support Google or Matomo as analytics trackers. To use them, add to your `config.json`:
2020-05-08 13:27:44 +00:00
```json
{
"type": "analytics",
"parameters": {
"type": "matomo",
"url": "https://my-personal.matomo.cloud/",
"id": "1"
},
"route": false
2020-05-08 13:27:44 +00:00
}
```
### Circles
Circles define group of users that can chat & share documents togethers.
Community module is mandatory.
To activate them, you need:
On Server: `djangoldp_circle`, `djangoldp_communities`, `djangoldp_notifications` packages
Module declaration, on `config.json`:
```json
{
"type": "circles",
2021-06-15 19:55:06 +00:00
"parameters": {
"dataSrc": "federation://circles/",
"dataSrcJoinable": "federation://circles/joinable/",
"owners": "federation://users/",
"post": "server://circles/",
"users": "federation://users/",
"noRender": "",
"xmpp": "wss://xmpp-dev.startinblox.com/xmpp-websocket"
2021-06-15 19:55:06 +00:00
},
"federation": [
"..."
],
"route": "circles"
}
```
Where:
2021-06-15 19:55:06 +00:00
* `dataSrc`: is a container listing every circles
* `dataSrcJoinable`: is a container listing every public & not joined circles for the user
* `post`: is where you create new circles
* `noRender`: will load datas only when it'll be on screen, remove it if you encounter any issue
* `owners`: is your users container which contains valid owners
* `users`: is your users container
* `xmpp` is your [Prosody](https://prosody.im/) with [appropriate modules](https://git.startinblox.com/infra/prosody-modules/) configured on.
#### Circles extensions
You can extend circles with other components, the same way you would add them to your modules.
2021-06-15 19:55:06 +00:00
Extensions always inherit from its parent federation.
Actually it support: Events, Resources & Polls.
Eg.:
```json
{
"type": "circles",
2021-06-15 19:55:06 +00:00
"parameters": {
"dataSrc": "federation://circles/",
"dataSrcJoinable": "federation://circles/joinable/",
"owners": "federation://users/",
"post": "server://circles/",
"users": "federation://users/",
"noRender": "",
"xmpp": "wss://xmpp-dev.startinblox.com/xmpp-websocket"
},
2021-06-15 19:55:06 +00:00
"federation": [
"..."
],
"route": "circles",
"extensions": [
{
"type": "events",
2021-06-15 19:55:06 +00:00
"parameters": {
"events": "federation://events/",
"circles": "federation://circles/",
"get": "federation://events/",
"post": "server://events/",
"postTypeevents": "server://typeevents/",
"typeevents": "federation://typeevents/",
"uploads": "server://upload/"
},
"federation": [
"..."
]
}
]
}
```
### Communities
2021-06-15 11:48:49 +00:00
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.
2021-06-15 11:48:49 +00:00
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"
```
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.
2021-06-15 11:48:49 +00:00
To activate community on Orbit, add this module declaration your `config.json`:
```json
{
"type": "communities",
"route": false
}
```
#### Activate the community directory
When you work with a federated application, you may want a directory for communities.
You can activate it by changing the route to anything else than false. Some endpoints will also get needed:
```json
{
"type": "communities",
2021-06-15 19:55:06 +00:00
"parameters": {
"addresses": "federation://community-addresses/",
"dataSrc": "federation://communities/",
"uploads": "server://upload/"
},
"route": "communities"
}
```
2020-05-08 13:27:44 +00:00
### Dashboard
Dashboard includes card generation from HTML. To activate them, you need:
On Server: `djangoldp_dashboard` packages
Module declaration, on `config.json`:
2020-05-08 13:27:44 +00:00
```json
{
"type": "dashboard",
"parameters": {
2021-06-15 19:55:06 +00:00
"dataSrc": "server://dashboards/",
"noRender": "",
"target": false
},
"route": "dashboard",
"experimental": [
"routing"
]
2020-12-14 10:24:35 +00:00
}
2020-05-08 13:27:44 +00:00
```
2020-11-26 22:21:55 +00:00
A [sample fixture](https://git.startinblox.com/djangoldp-packages/djangoldp-dashboard/blob/master/djangoldp_dashboard/fixtures/sample.json) can be loaded with `./manage.py loaddata sample`.
You can have multiple dashboard module, see the [related documentation](https://git.startinblox.com/components/solid-dashboard#having-multiple-dashboard).
2021-06-15 19:55:06 +00:00
You need the experimental routing enabled to have a Dashboard.
### Events
The events module includes a listing of upcoming events and the capability to create new ones.
To activate it, you need:
On Server: `djangoldp_event` packages
Module declaration, on `config.json`:
```json
{
"type": "events",
2021-06-15 19:55:06 +00:00
"parameters": {
"events": "federation://events/",
"circles": "federation://circles/",
"get": "federation://events/",
"post": "server://events/",
"postTypeevents": "server://typeevents/",
"typeevents": "federation://typeevents/",
"pastevents": "visible",
"visiblecheckbox": "visible",
"visibilityregions": "visible",
"uploads": "server://upload/"
},
"federation": [
"..."
]
}
```
2021-05-28 10:02:27 +00:00
Where:
* `parameters.pastevents`: is blank or hidden to display past events
* `parameters.visiblecheckbox`: is blank or hidden to add a checkbox that allow to show events from another website
* `parameters.visibilityregions`: is blank or hidden to have a Region field on events
You can get only future events by using:
```json
"get": "http://server.url/events/future/",
```
2021-03-30 19:10:05 +00:00
### Internationalization
Each client can overwrite langs files with their own or even create custom langs.
#### Overwrite langs
On `config.json`:
```json
{
"type": "lang",
"parameters": {
"name": "fr",
"file": "/path/to/fr.json"
},
"route": false
}
```
Where:
* `parameters.name` allows to use custom client lang file.
* `parameters.file` is the path the the json lang file
#### Custom langs
Needs `client.i18n.force` to `true` and `client.i18n.lang` to the custom lang name.
Your custom JSON file **must** contain every keys, from the template and from every bloxes, prefixed by the blox namespace. See example on `src/locales/fr.json`.
On `config.json`:
```json
"client": {
"i18n": {
"lang": "pirate",
"force": "true"
}
},
"components": [
{
"type": "i18n",
"parameters": {
"name": "pirate",
"file": "/path/to/yarr.json"
},
"route": false
}
]
```
Where:
* `parameters.name` allows to use custom client lang file.
* `parameters.file` is the path the the json lang file
Setting custom langs will not allow user to choose their own lang.
2021-04-15 13:57:17 +00:00
### Invoices
Invoices allow your Projects to manage invoices
Project is mandatory.
You'll need:
On Server: `djangoldp_invoice` packages
Module declaration, on `config.json`:
```json
{
"type": "projects",
"extensions": [
{
"type": "invoices",
2021-06-15 19:55:06 +00:00
"parameters": {
"uploads": "server://upload/"
2021-04-15 13:57:17 +00:00
}
}
]
}
```
2020-11-26 22:21:55 +00:00
### Job Offers
Job Offers includes a job board with conversation. To activate them
Community module is mandatory.
You'll need:
2020-11-26 22:21:55 +00:00
On Server: `djangoldp_joboffer`, `djangoldp_skill`, `djangoldp_upload`, `djangoldp_conversation` packages
Module declaration, on `config.json`:
2020-11-26 22:21:55 +00:00
```json
{
"type": "job-board",
2021-05-31 15:49:38 +00:00
"parameters": {
2021-06-15 19:55:06 +00:00
"dataSrc": "federation://job-offers/current/",
"dataSrcExpired": "federation://job-offers/expired/",
"postDataSrc": "server://job-offers/",
"noRender": "",
"rangeSkills": "federation://skills/",
2021-05-31 15:49:38 +00:00
"fields": "earnBusinessProviding"
2021-06-15 19:55:06 +00:00
},
"route": "job-offers",
"experimental": [
"routing"
]
2020-12-14 10:24:35 +00:00
}
2020-11-26 22:21:55 +00:00
```
2020-05-27 06:44:54 +00:00
2021-05-31 15:49:38 +00:00
Where:
* `parameters.fields`: Optional set of custom fields. Notice that only `earnBusinessProviding` is already handled on djangoldp-joboffer.
2021-06-15 19:55:06 +00:00
You need the experimental routing enabled to have a Job Board.
### Notifications
The notification module adds a bell with user's notification list and a badge on each menus with how much notifications are related to this resource. You'll need:
On Server: `djangoldp_notifications` packages
2020-05-08 13:27:44 +00:00
On `config.json`:
```json
{
"type": "notification",
"route": false
2020-12-14 10:24:35 +00:00
}
```
### One-to-one chat
One-to-one chat allow your users to chat together on a private channel.
Community & User Directory modules are mandatory.
2020-05-08 13:27:44 +00:00
You'll need:
Module declaration, on `config.json`:
```json
{
"type": "chat",
2021-06-15 19:55:06 +00:00
"parameters": {
"noRender": "",
"xmpp": "wss://xmpp-dev.startinblox.com/xmpp-websocket"
}
}
```
Where:
* `xmpp` is your [Prosody](https://prosody.im/) with [appropriate modules](https://git.startinblox.com/infra/prosody-modules/) configured on.
2020-08-31 21:27:07 +00:00
### Polls
2020-08-31 21:27:07 +00:00
The polls module allows user to create polls. To activate it, you need:
On Server: `djangoldp_polls`, `djangoldp_conversation` packages
2020-08-31 21:27:07 +00:00
On `config.json`:
```json
{
"type": "polls",
2021-06-15 19:55:06 +00:00
"parameters": {
"dataSrc": "http://server.url/polls/",
2021-04-09 17:02:13 +00:00
"post": "http://server.url/polls/",
"pollRangeTags": "http://server.url/tags/",
"pollRangeCircles": "http://server.url/circles/",
2021-06-15 19:55:06 +00:00
"uploads": "http://server.url/upload/",
"displayStartEndDates": false
}
2020-12-14 10:24:35 +00:00
}
2020-08-31 21:27:07 +00:00
```
Where:
* `parameters.displayStartEndDates` display or not the start and the end date of polls
### Project
Project are a private group chat including Customer and Business Provider management.
Community module is mandatory.
To activate them, you need:
On Server: `djangoldp_project` packages
Module declaration, on `config.json`:
```json
{
"type": "projects",
2021-06-15 19:55:06 +00:00
"parameters": {
"captains": "federation://users/",
"circles": "federation://circles/",
"dataSrc": "federation://projects/",
"dataSrcJoinable": "federation://projects/joinable/",
"post": "server://projects/",
"users": "federation://users/",
"noRender": "",
"xmpp": "wss://xmpp-dev.startinblox.com/xmpp-websocket"
2021-06-15 19:55:06 +00:00
},
"route": "projects"
}
```
Where:
* `captains`: is your users container which contains valid captains
* `xmpp` is your [Prosody](https://prosody.im/) with [appropriate modules](https://git.startinblox.com/infra/prosody-modules/) configured on.
2020-08-31 21:27:07 +00:00
### Resources
The resources module includes a listing of indexed resources and the capability to index new ones.
2020-08-31 21:27:07 +00:00
To activate it, you need:
On Server: `djangoldp_resource`, `djangoldp_conversation` packages
2020-08-31 21:27:07 +00:00
Module declaration, on `config.json`:
2020-08-31 21:27:07 +00:00
```json
{
2021-02-23 11:22:34 +00:00
"type": "resources",
2021-06-15 19:55:06 +00:00
"parameters": {
"dataSrc": "http://server.url/resources/",
2021-04-06 16:05:56 +00:00
"post": "http://server.url/resources/",
"types": "http://server.url/types/",
"keywords": "http://server.url/keywords/",
"circles": "http://server.url/circles",
2021-04-06 16:05:56 +00:00
"postTypes": "http://server.url/types/",
"postKeywords": "http://server.url/keywords/",
"uploads": "http://server.url/upload/"
}
2020-12-14 10:24:35 +00:00
}
2020-08-31 21:27:07 +00:00
```
### User registration
2020-08-31 21:27:07 +00:00
The user registration module allows users to self-register.
2020-08-31 21:27:07 +00:00
Community module is mandatory.
2020-08-31 21:27:07 +00:00
2021-06-15 11:48:49 +00:00
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:
Module declaration, on `config.json`:
2020-08-31 21:27:07 +00:00
```json
{
"type": "registering",
"parameters": {
2021-06-15 19:55:06 +00:00
"dataSrc": "server://open-communities/",
"authority": "http://server.url/",
"authorityName": "your-authority-indentifier"
}
2020-12-14 10:24:35 +00:00
}
2020-08-31 21:27:07 +00:00
```
Where:
2020-05-19 13:13:30 +00:00
* `authority` is the OpenID Provider. Usually, if you use `djangoldp_account` it's the same as your djangoldp server.
* `authorityName` is a visual name of your OpenID Provider
2020-05-19 13:13:30 +00:00
### Theme checker
2020-05-19 13:13:30 +00:00
2021-06-15 11:48:49 +00:00
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.
Module declaration, on `config.json`:
```json
{
"type": "themeChecker",
"route": false
}
2020-05-19 13:13:30 +00:00
```
Then you'll find the color picker tool in the header bar.
2020-05-19 13:13:30 +00:00
Changing the color will set them on the whole app so that you can verify that your development take them into account correctly.
### Users Directory
Directory includes a listing of each users of your app and editable individual profile. To activate them, you need:
On Server: `djangoldp_skill` packages
Community module is mandatory.
Module declaration, on `config.json`:
```json
{
"type": "directory",
2021-06-15 19:55:06 +00:00
"parameters": {
"dataSrc": "federation://users/",
"rangeSkills": "federation://skills/",
"noRender": "",
"paginateBy": "30",
"uploads": "server://upload/"
},
"federation": [
"..."
],
"route": "members",
"experimental": [
"routing"
]
}
2020-05-19 13:13:30 +00:00
```
2021-06-15 19:55:06 +00:00
You need the experimental routing enabled to have a Profile Directory.
2021-06-22 10:39:21 +00:00
### Add link to left menu
2021-07-05 16:05:23 +00:00
```json
2021-06-22 10:39:21 +00:00
{
"type": "link",
"parameters": {
"icon": "icon-docs",
"name": "some.path",
"target": "https://startinblox.com"
},
"route": true
},
```
Where:
2021-07-05 16:05:23 +00:00
2021-06-22 10:39:21 +00:00
* `parameters.icon` is a valid simple line icon
* `parameters.name` is a path to a translation. You can create your own with the lang component
* `parameters.target` is the target URL
2021-07-05 16:05:23 +00:00
### Enfore NPM package version
To enforce a version to get used from NPM, add this to your `config.json`:
```json
"npm": [
{
"package": "@startinblox/core",
"version": "0"
}
],
```
Where:
* `npm[].package` is the package name to include
* `npm[].version` if the version of the package you want to use
* `npm[].attributes` (optional) allows to add attributes to the script element
Package will get required from Skypack CDNs.
#### Use local packages
Use the `npm` parameter on your `config.json`
```json
{
"package": "@startinblox/oidc",
"version": "0",
"path": "./path/to/sib-auth/sib-auth.js"
}
```
### Route generation
2020-05-19 13:13:30 +00:00
2021-06-15 11:48:49 +00:00
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:
```json
{
"type": "directory",
2021-06-15 19:55:06 +00:00
"parameters": {
"dataSrc": "server://users/",
"skills": "server://skills/",
"uploads": "server://upload/"
},
"route": "profiles"
}
2020-05-19 13:13:30 +00:00
```
Will lead to `http://client.url/profiles` as URL to reach the module instead of the default `http://client.url/directory`.
2021-06-15 11:48:49 +00:00
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.
2021-06-15 11:48:49 +00:00
Components can get the route of a module with `window.orbit.getRoute('componentName')`.
2020-05-19 13:13:30 +00:00
2021-06-15 19:55:06 +00:00
#### Experimental routing
This experimental setting allow to create a view containing a `solid-*` with every parameters provided without any code.
```json
{
"type": "display",
"parameters": {
"dataSrc": "server://users/",
"fields": "name"
},
"experimental": [
"routing"
]
}
```
will provide a view with:
```html
<solid-display data-src="http://server/users/" fields="name"></solid-display>
```
2021-04-13 11:31:07 +00:00
#### Change the default route
2021-06-15 11:48:49 +00:00
By default, Orbit will take a Dashboard as a default route.
2021-04-13 11:31:07 +00:00
You can enforce a component to be the default one by adding `defaultRoute` to its parameters.
Eg.:
```json
{
"type": "directory",
2021-06-15 19:55:06 +00:00
"parameters": {
"dataSrc": "server://users/",
"skills": "server://skills/",
"uploads": "server://upload/"
2021-04-13 11:31:07 +00:00
},
"route": "directory",
"defaultRoute": true
}
```
If there is more than one component with this parameter, it'll be ignored.
2021-06-15 19:55:06 +00:00
### Federation generation
Any parameter of your config.json can take benefits from the source generation:
`server://` will be replaced by the value of `client.server`:
```json
{
"type": "awesome",
"parameters": {
"dataSrc": "server://users/"
}
}
```
`federation://` will generate a virtual federated container linking:
* `client.server`
* `client.servers`
* `component.federation`
* `extension.federation`, if on an extension
```json
{
"client": {
"server": "http://serverA",
"servers": [
"http://serverB"
]
},
"components": [
{
"type": "awesome",
"parameters": {
"dataSrc": "federation://users/"
},
"federation": [
"http://serverC"
]
}
]
}
```
Will result on a virtual federated container containing `http://serverA/users/`, `http://serverB/users/` and `http://serverC/users/` on data-src.
2020-11-26 22:21:55 +00:00
## Troubleshooting
### Circles or Projects are missing the @user list
Did you properly created subscriptions on your DjangoLDP's server? You can quickly create them with `./manage.py create_subscriptions`
2021-03-16 14:27:30 +00:00
### I see some technical strings instead of my fallback language strings
By default, the template fallback to `fr` lang, which is the most complete. If you're using your own fallback lang within your configuration, please ensure that this lang is completly translated.
### I see some technical strings instead of my custom language
Using a custom language file does not allow to use the default fallback language.
## Built With
2020-12-14 10:24:35 +00:00
* [Sib-Core](https://git.startinblox.com/framework/sib-core/) - A SOLID-Compliant framework