minor: add new fields

This commit is contained in:
Jean-Baptiste Pasquier 2021-05-31 17:49:38 +02:00
parent 3cfacf7789
commit 2343bdd5ea
3 changed files with 11 additions and 2 deletions

View File

@ -482,10 +482,17 @@ Module declaration, on `config.json`:
"get": "http://server.url/job-offers/",
"post": "http://server.url/job-offers/",
"skills": "http://server.url/skills/"
},
"parameters": {
"fields": "earnBusinessProviding"
}
}
```
Where:
* `parameters.fields`: Optional set of custom fields. Notice that only `earnBusinessProviding` is already handled on djangoldp-joboffer.
### 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:

View File

@ -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.0" defer)
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-job-board@6.1" defer)
//- script(type="module" src="/lib/solid-job-board/dist/index.js" defer)
if componentSet.has("notification")

View File

@ -3,4 +3,6 @@ solid-job-board(
post-data-src=`${component.endpoints.post}`
range-skills=`${component.endpoints.skills}`
uniq=component.uniq
)
)&attributes({
"fields": component.parameters ? component.parameters.fields : false
})