K2InformaticsGmbH / dderl

Web based Data Explorer / Data Jump Station with Erlang In-Memory Support
Apache License 2.0
23 stars 12 forks source link

009069 Background Color for DDerl Connections #611

Closed stoch closed 5 years ago

stoch commented 5 years ago

DDerl connections must be given a class attribute during configuration with the use of a drop_down selection of standard connection classes. Standard classes will be the following atoms (arbitrarily extensible by configuration):

The picked class will be stored in ddConn.access (a map).

ddConfig will give the list of possible classes (for the generation of a drop-down list in the connect popup) and backgroundColors for each class lookup. The default config will be:

[{dderl,connectionClasses}]     [test,mgmt,stag,inte,prod]
[{dderl,backgroundColor},test]  <<"lightblue">>
[{dderl,backgroundColor},mgmt]  <<"#CDFECD">>
[{dderl,backgroundColor},stag]  <<"#FFFACD">>
[{dderl,backgroundColor},inte]  <<"rgb(220,220,160)">>
[{dderl,backgroundColor},prod]  <<"rgb(255,255,255)">>
[{dderl,backgroundColor}]       <<"rgb(220,220,220)">>

Possible values for backgroundColor are html color names or a strings as indicated above.

The backgroundColor value lookup will be used as background color for the connection.

acautin commented 5 years ago

Final configuration:

image

image