Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
8c33440
save changes
alx652 Apr 22, 2025
f991d7e
misc
alx652 Apr 23, 2025
d09c020
Merge branch 'development_3.0' into awmisc_nikosbanner_merge
alx652 Apr 25, 2025
a167fe6
save exp. changes
alx652 May 5, 2025
70dab88
Merge branch 'development_3.0' into awmisc_nikosbanner_merge
alx652 May 6, 2025
831c01d
edits
alx652 May 6, 2025
3a63bad
try footer
alx652 May 6, 2025
164fcb9
save work
alx652 May 6, 2025
6cc5702
changes to footer code
alx652 May 6, 2025
671e9e1
process index changes
alx652 May 14, 2025
9d1163a
make products work with top banner
alx652 May 20, 2025
212d212
merge from dev 3.0
alx652 May 28, 2025
e7dc725
collapse height 0
alx652 May 30, 2025
b6d2fd2
Merge branch 'development_3.0' into awmisc_nikosbanner_with_footer_at…
alx652 Jun 13, 2025
5a9194c
minor edits
alx652 Jun 23, 2025
06b6075
add margin-bottom to searches
alx652 Jun 24, 2025
f6a3dc4
corect some links
alx652 Jun 26, 2025
08de087
corect some links
alx652 Jun 26, 2025
080f9d4
Update Scilligence.JSDraw2.Pro.js
alx652 Jul 14, 2025
2282e53
Merge branch 'development_3.0' into awmisc_nikosbanner_with_footer_at…
alx652 Aug 7, 2025
94afe17
cv scroll
alx652 Aug 8, 2025
fba7f13
showLoginButton option, make footer better
alx652 Aug 8, 2025
632fa67
foot style improvements
alx652 Aug 8, 2025
53ec947
Merge branch 'development_3.0' into awmisc_nikosbanner_with_footer_at…
alx652 Aug 13, 2025
fcce116
Merge branch 'development_3.0' into awmisc_nikosbanner_with_footer_at…
alx652 Aug 14, 2025
1a58b7f
merge before fix merge issues
alx652 Mar 10, 2026
562d9ca
save changes from merge and improve notes on ncats branch changes
alx652 Mar 11, 2026
c388087
edits
alx652 Mar 16, 2026
297c3f3
more edits to merge with newer angular
alx652 Apr 28, 2026
4eb53a8
edits
alx652 Apr 29, 2026
560bf74
merge devevelopment_3.0 after pfda iaro merge
alx652 Apr 29, 2026
8e558b5
create helping components
alx652 May 1, 2026
01222ed
save files after merge from devel 3
alx652 May 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
728 changes: 407 additions & 321 deletions package-lock.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,85 +1,87 @@
.form-row {
width: 100%;
display: flex;
justify-content: space-between;
align-items: flex-end;
width:100%;
display: flex;
justify-content: space-between;
align-items: flex-end;
}

.double-row {
justify-content: space-evenly;
justify-content: space-evenly;
}

.validation {
display: flex;
flex-direction: column;
width: 100%;
margin-bottom: 5px;
display:flex;
flex-direction: column;
width: 100%;
margin-bottom:5px;
}

.ERROR {
background-color: var(--regular-red-color);
color: var(--error-dialog-color);
background-color: var(--error-dialog-bg-color);
padding: 4px 5px;
margin-right: 5px;
border-radius: 5px;
background-color: var(--regular-red-color);
color: var(--error-dialog-color);
background-color: var(--error-dialog-bg-color);
padding: 4px 5px;
margin-right: 5px;
border-radius: 5px;
}

.WARNING {
color: var(--warning-dialog-color);
background-color: var(--warning-dialog-bg-color);
padding: 4px 5px;
margin-right: 5px;
border-radius: 5px;
color: var(--warning-dialog-color);
background-color: var(--warning-dialog-bg-color);
padding: 4px 5px;
margin-right: 5px;
border-radius: 5px;
}

.INFO {
color: var(--regular-black-color);
background-color: var(--regular-lightgray-color);
padding: 4px 5px;
margin-right: 5px;
border-radius: 5px;
color: var(--regular-black-color);
background-color: var(--regular-lightgray-color);
padding: 4px 5px;
margin-right: 5px;
border-radius: 5px;
}

.message {
padding-top: 5px;
padding-left: 15px;
padding-top: 5px;
padding-left: 15px;
}
.content-fix {
min-height: 250px;
padding: 15px 20px;
min-height: 250px;
padding: 15px 20px;
/* __aw__ see if need for ncats branch */
overflow: scroll;
}

.src-column {
display: flex;
flex-direction: column;
width: 50%;
display: flex;
flex-direction:column;
width:50%;
}

.actions {
height: 75px;
height: 75px;
}

.title {
height: 42px;
height: 42px;
font-size: 32px;
font-weight: 500;
letter-spacing: normal;
margin-bottom: 20px;
}

.loading-container {
max-height: calc(100% - 150px);
min-height: 250px;
width: 100%;
align-content: center;
max-height: calc(100% - 150px);
min-height: 250px;
width: 100%;
align-content: center;
}

::ng-deep .mat-mdc-dialog-container .mdc-dialog__surface {
height: unset !important;
height: unset !important;
max-height: 90vh;
}

.delete-icon {
margin-bottom: 20px;
margin-bottom: 20px;
}
16 changes: 14 additions & 2 deletions src/app/core/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,20 @@ import { UserQueryListDialogComponent } from '@gsrs-core/bulk-search/user-query-
import { ListCreateDialogComponent } from '@gsrs-core/substances-browse/list-create-dialog/list-create-dialog.component';
import { ImportScrubberComponent } from '@gsrs-core/admin/import-management/import-scrubber/import-scrubber.component';
import { PrivacyStatementModule } from './privacy-statement/privacy-statement.module';

// ncats branch begin
import { TopContentSpacerComponent } from './spacers/top-content-spacer.component';
import { BottomContentSpacerComponent } from './spacers/bottom-content-spacer.component';
import { FooterComponent } from './footer/footer.component';

// ncats branch end

import { CsrfTokenInterceptor } from '@gsrs-core/auth/csrf-token.interceptor';
import { CrossEntitySearchModule } from '../fda/cross-entity-search/cross-entity-search.module';
import { FileSelectModule } from './file-select/file-select.module';
import { NitrosamineStandaloneModule } from './nitrosamine-standalone/nitrosamine-standalone.module';
import { MatDividerModule } from '@angular/material/divider';
import { TopBannerComponent } from './misc/top-banner.component';
@NgModule({
declarations: [
AppComponent,
Expand Down Expand Up @@ -165,8 +174,11 @@ import { MatDividerModule } from '@angular/material/divider';
MergeActionDialogComponent,
UserQueryListDialogComponent,
ListCreateDialogComponent,
ImportScrubberComponent

ImportScrubberComponent,
TopBannerComponent,
TopContentSpacerComponent,
BottomContentSpacerComponent,
FooterComponent
],
imports: [
BrowserModule,
Expand Down
5 changes: 3 additions & 2 deletions src/app/core/auth/login/login.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<div class="login-container">
<mat-card class="login-card" *ngIf="isLoaded">
<!-- ncats branch -->
<mat-card class="login-card" *ngIf="isLoaded && showLogin">
<mat-card-title> Login </mat-card-title>
<mat-card-content class="login-card-content">
<form class="login-form" [formGroup]="loginForm">
Expand Down Expand Up @@ -33,7 +34,7 @@
</button>
</mat-card-actions>
</mat-card>

<br />
<div
*ngIf="loadedComponents && loadedComponents.userRegistration"
Expand Down
19 changes: 18 additions & 1 deletion src/app/core/auth/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ export class LoginComponent implements OnInit, OnDestroy {
private newuserinfo = {};
private emailFormUserRegConf: any = undefined;
public emailFormUserRegActive: boolean = false;
// ncats branch begin
public showLogin = false;
// ncats branch end

constructor(
private authService: AuthService,
Expand All @@ -53,7 +56,21 @@ export class LoginComponent implements OnInit, OnDestroy {

ngOnInit() {
this.loadingService.setLoading(true);
// As we develop more types of userRegistration, make a utility service to provide configuration information.
// As we develop more types of userRegistration, make a utility service to provide configuration information.

// ncats branch begin

if(this.configService.configData.showLogin === undefined) {
this.showLogin = true;
} else {
if(this.configService.configData.showLogin === false) {
this.showLogin = false;
} else {
this.showLogin = true;
}
}
// ncats branch end

this.loadedComponents = this.configService.configData.loadedComponents || null;
if(typeof this.configService.configData.userRegistration !== "undefined" ) {
this.emailFormUserRegConf =
Expand Down
47 changes: 46 additions & 1 deletion src/app/core/base/base.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<!-- ncats branch begin (2 open divs) -->
<div class="base-page-wrapper">
<div *ngIf = "showTopBanner" class="top-banner">
<app-top-banner></app-top-banner>
</div>

<div [ngClass]="['base-menu-wrapper', (showTopBanner) ? 'base-menu-wrapper-with-top-banner': '']">

<!-- ncats branch begin end -->
<mat-toolbar
class="mat-elevation-z3"
class="mat-elevation-z3"
color="primary"
*ngIf="
showHeaderBar === 'true' &&
Expand Down Expand Up @@ -294,6 +303,8 @@
>
</app-substance-text-search>
<div class="user-section">
<!-- ncats branch begin -->
<div *ngIf="showLoginButton">
<button
mat-button
class="login-link"
Expand All @@ -302,6 +313,7 @@
>
Login
</button>
</div> <!-- ncats branch end -->
<div class="logged-in" *ngIf="auth">
<div class="user-actions">
<button
Expand Down Expand Up @@ -392,6 +404,39 @@
<div *ngIf="isPfdaVersion">
<app-pfda-toolbar></app-pfda-toolbar>
</div>

<div [ngClass]="['base-main-wrapper', (showTopBanner) ? 'base-main-wrapper-with-top-banner': '']">

<app-session-expiration></app-session-expiration>
<app-loading></app-loading>

<!--

ncats branch begin, probably not needed.

<div *ngIf = "showTopBanner">
<app-top-content-spacer></app-top-content-spacer>
</div> -->

<!-- <div style="height: 92px; clear: both;">&nbsp;</div>

ncats branch end
-->

<router-outlet></router-outlet>

<!-- ncats branch begin -->
<div *ngIf="showFooter">
<app-bottom-content-spacer></app-bottom-content-spacer>
</div>
</div>
</div> <!-- ncats branch fragment ngClass.2 bottom -->

</div>

<div *ngIf="showFooter" class="footer-wrapper">
<app-footer></app-footer>
</div>
<!-- ncats branch end -->


43 changes: 43 additions & 0 deletions src/app/core/base/base.component.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,46 @@
@use "../../../styles/variables" as *;

/* ncats branch begin */
.base-page-wrapper {
width: 100%;
display: inline;
position: fixed;
top: 0px;
}

.base-menu-wrapper {
width: 100%;
display: inline;

position: fixed;
top: 0px;
}

.base-menu-wrapper-with-top-banner mat-toolbar{
top: 32px !important;
}

.base-main-wrapper {
overflow: scroll;
height:100%;
width: 100%;
display: inline;
position: fixed;
top: 64px;
}

.base-main-wrapper-with-top-banner {
top: 102px !important;
}

.base-main-notification-wrapper {
width: 100%;
display: inline;
position: fixed;

}
/* ncats branch end */

.version {
color: var(--version-text-color);
font-size: 10pt;
Expand Down Expand Up @@ -252,3 +293,5 @@ button.mat-mdc-button.top-button {
display: none !important;
}
}


Loading
Loading