Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Features/13 #7

Merged
merged 4 commits into from
Sep 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion Database/LookupTables/dbo.CustomRichTextType.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ USING (VALUES
(5, 'LabelsAndDefinitionsList', 'Labels and Definitions List'),
(6, 'WatershedList', 'Watershed List'),
(7, 'MultiVariableMultiSite', 'Multi-Variable Multi-Site'),
(8, 'PairedRegressionAnalysis', 'Paired Regression Analysis')
(8, 'PairedRegressionAnalysis', 'Paired Regression Analysis'),
(9, 'DiversionScenario', 'Diversion Scenario')

)
AS Source (CustomRichTextTypeID, CustomRichTextTypeName, CustomRichTextTypeDisplayName)
Expand Down
10 changes: 9 additions & 1 deletion Database/LookupTables/dbo.FieldDefinitionType.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ USING (VALUES
(2, 'AggregationMode', 'Aggregation Mode'),
(3, 'TimeInterval', 'Time Interval'),
(4, 'Filter', 'Filter'),
(5, 'RegressionMethod', 'Regression Method')
(5, 'RegressionMethod', 'Regression Method'),
(6, 'DiversionRate', 'Diversion Rate (cfs)'),
(7, 'StorageMaxDepth', 'Storage Max Depth (cfs)'),
(8, 'StorageInitialDepth', 'Storage Initial Depth (ft)'),
(9, 'StorageArea', 'Storage Area (sqft)'),
(10, 'InfiltrationRate', 'Infiltration Rate (in/hr)'),
(11, 'MonthsActive', 'Months Active'),
(12, 'WeekdaysActive', 'Weekdays Active'),
(13, 'HoursActive', 'Hours Active')
)
AS Source (FieldDefinitionTypeID, FieldDefinitionTypeName, FieldDefinitionTypeDisplayName)
ON Target.FieldDefinitionTypeID = Source.FieldDefinitionTypeID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@ insert into dbo.CustomRichTextType (CustomRichTextTypeID, CustomRichTextTypeName
values (8, 'PairedRegressionAnalysis', 'Paired Regression Analysis')

insert into dbo.CustomRichText (CustomRichTextTypeID, CustomRichTextContent)
values (8, 'Paired Regression Analysis Default Content')
values (8, 'Paired Regression Analysis Default Content')

insert into dbo.CustomRichTextType (CustomRichTextTypeID, CustomRichTextTypeName, CustomRichTextTypeDisplayName)
values (9, 'DiversionScenario', 'Diversion Scenario')

insert into dbo.CustomRichText (CustomRichTextTypeID, CustomRichTextContent)
values (9, 'Diversion Scenario Default Content')
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
insert into dbo.FieldDefinitionType(FieldDefinitionTypeID, FieldDefinitionTypeName, FieldDefinitionTypeDisplayName)
values (6, 'DiversionRate', 'Diversion Rate (cfs)'),
(7, 'StorageMaxDepth', 'Storage Max Depth (cfs)'),
(8, 'StorageInitialDepth', 'Storage Initial Depth (ft)'),
(9, 'StorageArea', 'Storage Area (sqft)'),
(10, 'InfiltrationRate', 'Infiltration Rate (in/hr)'),
(11, 'MonthsActive', 'Months Active'),
(12, 'WeekdaysActive', 'Weekdays Active'),
(13, 'HoursActive', 'Hours Active')

insert into dbo.FieldDefinition (FieldDefinitionTypeID, FieldDefinitionValue)
select FieldDefinitionTypeID, 'Default definition for ' + FieldDefinitionTypeName
from dbo.FieldDefinitionType
where FieldDefinitionTypeID > 5
3 changes: 2 additions & 1 deletion Source/Nebula.Web/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"src/styles.scss",
"node_modules/leaflet.fullscreen/Control.FullScreen.css",
"node_modules/leaflet-gesture-handling/dist/leaflet-gesture-handling.css",
"node_modules/leaflet-loading/src/Control.Loading.css"
"node_modules/leaflet-loading/src/Control.Loading.css",
"node_modules/@ng-select/ng-select/themes/default.theme.css"
],
"scripts": [
"node_modules/jquery/dist/jquery.slim.min.js",
Expand Down
26 changes: 26 additions & 0 deletions Source/Nebula.Web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Source/Nebula.Web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"@ckeditor/ckeditor5-upload": "^18.0.0",
"@microsoft/applicationinsights-web": "^2.6.5",
"@ng-bootstrap/ng-bootstrap": "^6.1.0",
"@ng-select/ng-select": "^4.0.4",
"@nguniversal/express-engine": "^9.1.0",
"@ngx-progressbar/core": "^5.3.2",
"@swimlane/ngx-charts": "^14.0.0",
Expand Down
2 changes: 2 additions & 0 deletions Source/Nebula.Web/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { FieldDefinitionListComponent } from './pages/field-definition-list/fiel
import { FieldDefinitionEditComponent } from './pages/field-definition-edit/field-definition-edit.component';
import { MultiVariableMultiSiteComponent } from './pages/multi-variable-multi-site/multi-variable-multi-site.component';
import { PairedRegressionAnalysisComponent } from './pages/paired-regression-analysis/paired-regression-analysis.component';
import { DiversionScenarioComponent } from './pages/diversion-scenario/diversion-scenario.component';

const routes: Routes = [
{ path: "labels-and-definitions/:id", component: FieldDefinitionEditComponent, canActivate: [UnauthenticatedAccessGuard, ManagerOnlyGuard, AcknowledgedDisclaimerGuard] },
Expand All @@ -33,6 +34,7 @@ const routes: Routes = [
{ path: "invite-user", component: UserInviteComponent, canActivate: [UnauthenticatedAccessGuard, ManagerOnlyGuard, AcknowledgedDisclaimerGuard] },
{ path: "multi-variable-multi-site", component: MultiVariableMultiSiteComponent, canActivate: [UnauthenticatedAccessGuard, ManagerOnlyGuard, AcknowledgedDisclaimerGuard]},
{ path: "paired-regression-analysis", component: PairedRegressionAnalysisComponent, canActivate: [UnauthenticatedAccessGuard, ManagerOnlyGuard, AcknowledgedDisclaimerGuard]},
{ path: "diversion-scenario", component: DiversionScenarioComponent, canActivate: [UnauthenticatedAccessGuard, ManagerOnlyGuard, AcknowledgedDisclaimerGuard]},
{ path: "", component: HomeIndexComponent},
{ path: "disclaimer", component: DisclaimerComponent },
{ path: "disclaimer/:forced", component: DisclaimerComponent },
Expand Down
6 changes: 5 additions & 1 deletion Source/Nebula.Web/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ import { environment } from 'src/environments/environment';
import { AppInsightsService } from './shared/services/app-insights.service';
import { GlobalErrorHandlerService } from './shared/services/global-error-handler.service';
import { PairedRegressionAnalysisComponent } from './pages/paired-regression-analysis/paired-regression-analysis.component';
import { DiversionScenarioComponent } from './pages/diversion-scenario/diversion-scenario.component';
import { NgSelectModule } from '@ng-select/ng-select';

export function init_app(appLoadService: AppInitService, appInsightsService: AppInsightsService) {
return () => appLoadService.init().then(() => {
Expand Down Expand Up @@ -73,6 +75,7 @@ export function init_app(appLoadService: AppInitService, appInsightsService: Ap
FieldDefinitionEditComponent,
MultiVariableMultiSiteComponent,
PairedRegressionAnalysisComponent,
DiversionScenarioComponent
],
imports: [
AppRoutingModule,
Expand All @@ -89,7 +92,8 @@ export function init_app(appLoadService: AppInitService, appInsightsService: Ap
AgGridModule.withComponents([]),
SelectDropDownModule,
MyDatePickerModule,
CKEditorModule
CKEditorModule,
NgSelectModule
],
providers: [
CookieService,
Expand Down
Loading