Skip to content

Commit 7dee361

Browse files
[CW-3431] Added ICP number support.
1 parent 0322850 commit 7dee361

13 files changed

Lines changed: 563 additions & 403 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Possible fields in config file:
5858
- `url` - URL to Gohan server
5959
- `sidebar` - array of custom sidebar buttons, must contain objects with following fields:
6060
- `path`
61-
- `title`
61+
- `title`
6262
- `id`
6363
- `sidebarFavorites` - array of links to views, must contain resources' IDs
6464
- `sidebarCategories` - array of objects including information about views' categories, must contain objects with following fields:
@@ -85,6 +85,7 @@ Possible fields in config file:
8585
- `useKeystoneDomain` - flag to enable use domain feature in keystone v3
8686
- `selectDomainFromHost` - regex to select domain from host (keystone v3)
8787
- `domainName` - default domain name
88+
- `icpNumber` - Internet Content Provider (ICP) number
8889

8990

9091
UI schema

circle.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

css/main.scss

Lines changed: 58 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ body {
175175
height: 100vh;
176176
}
177177

178+
.gohan-app {
179+
height: 100%;
180+
}
181+
178182
/*
179183
* Login
180184
*/
@@ -184,24 +188,38 @@ body {
184188
padding-top: 2em;
185189
}
186190

187-
.auth-container {
188-
height: 100vh;
189-
.auth-box {
190-
width: 23rem;
191-
margin-top: -4em;
192-
}
193-
.auth-body {
194-
> .pt-toast {
195-
margin-top: 0;
196-
margin-bottom: 1rem;
191+
.gohan-auth {
192+
height: 100%;
193+
display: flex;
194+
flex-direction: column;
195+
196+
&-body {
197+
display: flex;
198+
justify-content: center;
199+
align-items: center;
200+
flex: 1;
201+
202+
.auth-box {
203+
width: 23rem;
204+
margin-top: -4em;
197205
}
198-
.enable-tenant-filter {
199-
text-align: center;
200-
.pt-control {
201-
margin-bottom: 0;
206+
.auth-body {
207+
> .pt-toast {
208+
margin-top: 0;
209+
margin-bottom: 1rem;
210+
}
211+
.enable-tenant-filter {
212+
text-align: center;
213+
.pt-control {
214+
margin-bottom: 0;
215+
}
202216
}
203217
}
204218
}
219+
220+
&-footer {
221+
align-self: center;
222+
}
205223
}
206224

207225
/*
@@ -230,12 +248,22 @@ body {
230248
}
231249

232250
.view-content {
251+
display: flex;
252+
flex-direction: column;
233253
padding-top: 60px;
234254
padding-right: 0;
235255
padding-bottom: 0;
236256
padding-left: 260px;
237-
min-height: 400px;
238-
transition: padding-left 250ms ease-in;
257+
height: 100%;
258+
259+
&-body {
260+
flex: 1;
261+
transition: padding-left 250ms ease-in;
262+
}
263+
264+
&-footer {
265+
align-self: center;
266+
}
239267

240268
&.sidebar-hidden {
241269
padding-left: 0;
@@ -506,6 +534,20 @@ table.gohan-table {
506534
}
507535
}
508536

537+
/*
538+
* Footer component
539+
*/
540+
541+
.gohan-footer {
542+
padding: 20px 0;
543+
544+
&-text {
545+
font-size: smaller;
546+
font-weight: bold;
547+
color: $gray-500;
548+
}
549+
}
550+
509551
/*
510552
* ApiRequestForm component
511553
*/

0 commit comments

Comments
 (0)