deltares / fews-ssd-requests Goto Github PK
View Code? Open in Web Editor NEWDelft-FEWS Schematic Status Display library (https://fewsdocs.deltares.nl/webservices/ssd/)
License: MIT License
Delft-FEWS Schematic Status Display library (https://fewsdocs.deltares.nl/webservices/ssd/)
License: MIT License
In the WebOC we the action response is required in the SSDTimeSeries
Vue component.
The SSDTimeSeries
is a child of SchematicStatusDisplay
and loaded when the objectId
is set.
The objectId is taken from the @action
event emitted by the fews-ssd-component
.
It is convenient to defer the GetAction
request in the fews-ssd-component
and perform the actual request in the SSDTimeSeries
Vue component.
Add a property deferaction
to schematic-status-display
to defer the action request.
This still emits the @action
event but without results
property.
Currently the tests for schematic-status-display component are failing as the stencil generated unit test are not updated
As an alternative to pass the src
to the webcomponent it should be possible to pass
<schematic-status-display
id="status-display"
panel="LB_Maas_StPieter_Lith_Hoogwater_10min"
time="2022-02-09T16:00:00Z"
width="400"
height="300"
></schematic-status-display>
Update dependencies on
@deltares/fews-web-oc-utils
@deltares/fews-web-pi-requests
Checkt that both the fews-ssd-requests
and fews-ssd-webcomponent
packages can be imported correctly (or used directly in the browser).
The PI services moved to expecting FewsWebServices in the base url, so it is no longer required to add it as an endpoint.
Support requests with relative url.
Support a relative url as src
in the fews-ssd-webcomponent
.
Add a (mock) authentication transform request to the angular example. Use as transform request function in app.component.ts:
async transformRequest(request: Request) {
const requestInit = {
headers: {
'Authorization': "Bearer 123"
},
}
const newRequest = new Request(request, requestInit)
return newRequest
}
At least the ActionWithConfig
, ResultWithConfig
, Config
, and TimeSeriesDisplay
are inconsistent with the response of the actual request. Moreover, the TimeSeriesDisplay
type is incorrect, as the response includes subplots
instead of subplot
. I'd expect the types to be consistent with the fews-pi-request
actionsResponse types.
The GetAction request has support for supplying the convertDatum
and useDisplayUnits
query parameters.
This should be added to this library.
It should be possible to request the capabilities of a single ssd
. Add filter options to include, amongst other, ssd
as a request parameter.
Action event should pass the actual response of the GetAction
request.
Response should contain the GetAction response as-is with the results
array.
Add the url of the getAction request.
Also add panelName
and objectId
properties.
Update packages
Remove lodash
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.