Skip to content

Commit

Permalink
Layout corrections + CB URL hardcoded in 2 GET 1 POST
Browse files Browse the repository at this point in the history
  • Loading branch information
gboege committed Apr 21, 2024
1 parent 88064ec commit 77c050b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 14 deletions.
10 changes: 9 additions & 1 deletion public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,26 @@ body {
justify-content: center;
align-items: center;
height: 80px;
background-color: #525286;
background-color: #1ED760;
color: #FFFFFF;
margin-bottom: 0px;
}

.header img {
image-align: center;
padding-top: 10px;
padding-bottom: 10px;
height: 110px;
width: 300px;
}

.header a {
color: #000000;
float: center;
}

.header h2 {
color: #000000;
float: center;
}

Expand Down
6 changes: 3 additions & 3 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ async function get_delivery(delivery_id, req_session) {
err: null,
delivery: null
}
var path = req_session.cb_endpoint + '/entities/' + delivery_id;
var path = 'https://one.batterypass.fiware.dev/orion-ld/ngsi-ld/v1' + '/entities/' + delivery_id;
var url = new URL(path);
url.searchParams.append('options', 'keyValues');

Expand Down Expand Up @@ -216,7 +216,7 @@ async function get_entities(type, req_session) {
err: null,
entities: null
}
var path = req_session.cb_endpoint + '/entities?type='+type;
var path = 'https://one.batterypass.fiware.dev/orion-ld/ngsi-ld/v1' + '/entities?type='+type;
var url = new URL(path);
try {
debug('Get request URL: %o', url);
Expand Down Expand Up @@ -298,7 +298,7 @@ async function patch_delivery(id, attr, val, req_session) {
err: null,
status: null
}
var path = req_session.cb_endpoint + '/entities/' + id + '/attrs/' + attr;
var path = 'https://one.batterypass.fiware.dev/orion-ld/ngsi-ld/v1' + '/entities/' + id + '/attrs/' + attr;
var url = new URL(path);
const body = {
type: "Property",
Expand Down
16 changes: 9 additions & 7 deletions views/default.pug
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ html
// header.header
// a.title(href='/')
// h1 #{title}
a.header(href='/')
img.header(src='https://thebatterypass.io/_next/static/media/logo_primary.ff8fcc3a.png' alt='Homepage')
a.header(href='/')
h2#login-with-verifiable-credentials-vcs-demo-brpowered-by-fiware-data-space-connector--pdp-component
| Login with Verifiable Credentials (VCs) demo
br
| (powered by FIWARE Data Space Connector PDP component)
div
a.header(href='/')
img.header(src='https://thebatterypass.io/_next/static/media/logo_primary.ff8fcc3a.png' alt='Homepage')
div
a.header(href='/')
h2.header#login-with-verifiable-credentials-vcs-demo-brpowered-by-fiware-data-space-connector--pdp-component
| Login with Verifiable Credentials (VCs) demo
br
| (powered by FIWARE Data Space Connector PDP component)
block topnav
block content
6 changes: 3 additions & 3 deletions views/index.pug
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
extends default

block content
div //.container-login
h1 Click link below to login
table(border='1' frame='void' rules='rows') // (class='table-login' border='1' frame='void' rules='rows')
div
h2 Click link below to login
table(border='1' frame='void' rules='rows')
if siop
tr
td
Expand Down

0 comments on commit 77c050b

Please sign in to comment.