Update Wwws_project

philc 2025-01-27 18:47:21 +00:00
parent 3148ecfbe6
commit 9bfde17578

@ -56,9 +56,56 @@ tribename/objects/wwws/itm/appname.json
} }
} }
``` ```
### a wco (web component)
A web component is an objects store into /objects/wco , we have only one js code that make works the component sobject/wco/wconame/wconame.js. All the template are store in tpl and the data related are store in tpldata.
Content of a wco is for example for /tribename/objects/wco/itm/apxid.json :
```
{
"wconame": "apxid",
"owner": "philc",
"price": 1,
"aliascode": [],
"commentaliascode": "if paid wco then [tribename_uniquecode,...]",
"codehash": "123",
"thumbnail": "",
"title": "apXtri pagans create and authentification interface",
"description": "",
"lang": [
"fr"
],
"tpl": {
"apxidscreensignup": "{{tribe}}/objects/wco/apxid/screensignup",
"apxidscreensignin": "{{tribe}}/objects/wco/apxid/screensignin",
"apxidscreenlogout": "{{tribe}}/objects/wco/apxid/screenlogout",
"apxidscreeninformation": "{{tribe}}/objects/wco/apxid/screeninformation",
"apxidscreenforgetkey": "{{tribe}}/objects/wco/apxid/screenforgetkey"
},
"tpldatamodel": {},
"options": {
"profil": "{{tribeId}}/objects/options/profil"
},
"ref": {
"Odmdb": "adminapi/objects/tplstrings/Odmdb",
"Pagans": "adminapi/objects/tplstrings/Pagans",
"Persons": "adminapi/objects/tplstrings/Persons"
},
"schema": [
"adminapi/objects/pagans",
"{{tribe}}/objects/persons"
]
}
```
### page web ### page web
To add a wco To create a new web page here is a model, third parties like axios, and other can be accessible in /adminapi/node_modules or /tribename/node_modules depending of where they are installed.
To add wco component it must exists and you can add one with a simple script src with the endpoint returning a js. This endpoint also check that all wco pre-request are well set in the webapp conf in tribe/objects/wwws/itm/webappname.json.
When the web page is load the localdb settings is updating, then the app get localy from apx.js in localstorage all the tpl, tpldata available for the wco.js worked.
``` ```
<!DOCTYPE html> <!DOCTYPE html>