This PR adds the following functionalities to vandal:
add custom/arbitrary headers when requesting sending a request to graphiti backend
CRUD using the UI, relationships need to be created manually. E.g. , when a store has multiple products you would need to first create a store and then create the products and then map them via foreign keys.
Access remote graphiti backends, when specifying a environment variable REMOTE_HOSTS the vandal_UI project will add these hosts to vandal and then one is able to connect to different hosts, rather than the default/own server.
The first to features also work for remote hosts.
Headers
The headers will be used when firing a request to the server and the fields are stored using localStorage and ls-secure for encryption.
CRUD
This is mostly affecting the query.ts. Still the payload (update/create) is passed from All.vue to the query object.
Remote Hosts
Vandal would expect an ENV called REMOTE_HOST which contains a JSON array with the following objects:
{
"name" : "<application name that will be shown in frontend>",
"url" : "https://<server url>"}, ## 'https://' needs to be there
"schemaPath" : "</path/to/schema>/schema.json"
}
Right now vandal_ui looks inside index.html and replaced the string __REMOTE_HOSTS__ with the value of the ENV or an {} when no value is set.
Side note: I will create a PR for vandal_ui with the same branch name, that uses this version of vandal.
Hello,
This PR adds the following functionalities to vandal:
REMOTE_HOSTS
the vandal_UI project will add these hosts to vandal and then one is able to connect to different hosts, rather than the default/own server.The first to features also work for remote hosts.
Headers
The headers will be used when firing a request to the server and the fields are stored using localStorage and ls-secure for encryption.
CRUD
This is mostly affecting the
query.ts
. Still the payload (update/create) is passed from All.vue to the query object.Remote Hosts
Vandal would expect an ENV called REMOTE_HOST which contains a JSON array with the following objects:
Right now vandal_ui looks inside
index.html
and replaced the string__REMOTE_HOSTS__
with the value of the ENV or an{}
when no value is set.Side note: I will create a PR for vandal_ui with the same branch name, that uses this version of vandal.