This repository has been archived by the owner on Dec 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #136 from tsheils/development
Development
- Loading branch information
Showing
39 changed files
with
4,039 additions
and
2,960 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
libs/features/ramp/reaction-classes-from-analytes/.eslintrc.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"extends": ["../../../../.eslintrc.json"], | ||
"ignorePatterns": ["!**/*"], | ||
"overrides": [ | ||
{ | ||
"files": ["*.ts"], | ||
"extends": [ | ||
"plugin:@nx/angular", | ||
"plugin:@angular-eslint/template/process-inline-templates" | ||
], | ||
"rules": { | ||
"@angular-eslint/directive-selector": [ | ||
"error", | ||
{ | ||
"type": "attribute", | ||
"prefix": "lib", | ||
"style": "camelCase" | ||
} | ||
], | ||
"@angular-eslint/component-selector": [ | ||
"error", | ||
{ | ||
"type": "element", | ||
"prefix": "lib", | ||
"style": "kebab-case" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"files": ["*.html"], | ||
"extends": ["plugin:@nx/angular-template"], | ||
"rules": {} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# features-ramp-reaction-classes-from-analytes | ||
|
||
This library was generated with [Nx](https://nx.dev). | ||
|
||
## Running unit tests | ||
|
||
Run `nx test features-ramp-reaction-classes-from-analytes` to execute the unit tests. |
23 changes: 23 additions & 0 deletions
23
libs/features/ramp/reaction-classes-from-analytes/jest.config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* eslint-disable */ | ||
export default { | ||
displayName: 'features-ramp-reaction-classes-from-analytes', | ||
preset: '../../../../jest.preset.js', | ||
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'], | ||
coverageDirectory: | ||
'../../../../coverage/libs/features/ramp/reaction-classes-from-analytes', | ||
transform: { | ||
'^.+\\.(ts|mjs|js|html)$': [ | ||
'jest-preset-angular', | ||
{ | ||
tsconfig: '<rootDir>/tsconfig.spec.json', | ||
stringifyContentPathRegex: '\\.(html|svg)$', | ||
}, | ||
], | ||
}, | ||
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'], | ||
snapshotSerializers: [ | ||
'jest-preset-angular/build/serializers/no-ng-attributes', | ||
'jest-preset-angular/build/serializers/ng-snapshot', | ||
'jest-preset-angular/build/serializers/html-comment', | ||
], | ||
}; |
21 changes: 21 additions & 0 deletions
21
libs/features/ramp/reaction-classes-from-analytes/project.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "features-ramp-reaction-classes-from-analytes", | ||
"$schema": "../../../../node_modules/nx/schemas/project-schema.json", | ||
"sourceRoot": "libs/features/ramp/reaction-classes-from-analytes/src", | ||
"prefix": "lib", | ||
"tags": [], | ||
"projectType": "library", | ||
"targets": { | ||
"test": { | ||
"executor": "@nx/jest:jest", | ||
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"], | ||
"options": { | ||
"jestConfig": "libs/features/ramp/reaction-classes-from-analytes/jest.config.ts" | ||
} | ||
}, | ||
"lint": { | ||
"executor": "@nx/eslint:lint", | ||
"outputs": ["{options.outputFile}"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './lib/features-ramp-reaction-classes-from-analytes/features-ramp-reaction-classes-from-analytes.component'; |
41 changes: 41 additions & 0 deletions
41
...eaction-classes-from-analytes/features-ramp-reaction-classes-from-analytes.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<div class="content-panel"> | ||
<div class="row space-around-row"> | ||
<div class="full-width"> | ||
<h1 class="page-title"> | ||
{{ title | titlecase }} | ||
</h1> | ||
</div> | ||
</div> | ||
<div class="row space-around-row"> | ||
<div class="full-width"> | ||
<ramp-description | ||
[supportedIds]="supportedIds" | ||
[description]="description" | ||
></ramp-description> | ||
</div> | ||
</div> | ||
|
||
<ramp-input-row | ||
[input]="input" | ||
[examples]="examples" | ||
(dataSearch)="fetchReactions($event)" | ||
(dataDownload)="fetchReactionsFile($event)" | ||
> | ||
</ramp-input-row> | ||
|
||
<ramp-feedback-panel | ||
[matchesLength]="matches.length" | ||
[dataLength]="dataAsDataProperty.length" | ||
[inputLength]="inputList.length" | ||
[noMatches]="noMatches" | ||
[inputType]="input" | ||
[function]="query.functionCall" | ||
> | ||
</ramp-feedback-panel> | ||
|
||
<ramp-query-page | ||
[dataColumns]="reactionColumns" | ||
[dataAsDataProperty]="dataAsDataProperty" | ||
> | ||
</ramp-query-page> | ||
</div> |
Empty file.
39 changes: 39 additions & 0 deletions
39
...tion-classes-from-analytes/features-ramp-reaction-classes-from-analytes.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; | ||
import { provideEffects } from "@ngrx/effects"; | ||
import { provideStore, StoreModule } from "@ngrx/store"; | ||
import { provideStoreDevtools } from "@ngrx/store-devtools"; | ||
import { RampEffects, rampReducer } from "@ramp/stores/ramp-store"; | ||
import { FeaturesRampReactionClassesFromAnalytesComponent } from './features-ramp-reaction-classes-from-analytes.component'; | ||
|
||
describe('FeaturesRampReactionClassesFromAnalytesComponent', () => { | ||
let component: FeaturesRampReactionClassesFromAnalytesComponent; | ||
let fixture: ComponentFixture<FeaturesRampReactionClassesFromAnalytesComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [ | ||
BrowserAnimationsModule, | ||
FeaturesRampReactionClassesFromAnalytesComponent, | ||
StoreModule | ||
], | ||
providers: [ | ||
provideStore({ | ||
rampStore: rampReducer | ||
}), | ||
provideEffects([RampEffects]), | ||
provideStoreDevtools({ maxAge: 25, logOnly: false }), | ||
], | ||
}).compileComponents(); | ||
|
||
fixture = TestBed.createComponent( | ||
FeaturesRampReactionClassesFromAnalytesComponent, | ||
); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
34 changes: 34 additions & 0 deletions
34
...-reaction-classes-from-analytes/features-ramp-reaction-classes-from-analytes.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { ChangeDetectorRef, Component, OnInit } from "@angular/core"; | ||
import { CommonModule, TitleCasePipe } from "@angular/common"; | ||
import { InputRowComponent } from "@ramp/shared/ramp/input-row"; | ||
import { PageCoreComponent } from "@ramp/shared/ramp/page-core"; | ||
import { QueryPageComponent } from "@ramp/shared/ramp/query-page"; | ||
import { DescriptionComponent } from "@ramp/shared/ui/description-panel"; | ||
import { FeedbackPanelComponent } from "@ramp/shared/ui/feedback-panel"; | ||
|
||
@Component({ | ||
selector: 'lib-features-ramp-reaction-classes-from-analytes', | ||
standalone: true, | ||
imports: [ | ||
CommonModule, | ||
DescriptionComponent, | ||
InputRowComponent, | ||
FeedbackPanelComponent, | ||
QueryPageComponent, | ||
TitleCasePipe, | ||
], | ||
templateUrl: './features-ramp-reaction-classes-from-analytes.component.html', | ||
styleUrl: './features-ramp-reaction-classes-from-analytes.component.scss', | ||
}) | ||
export class FeaturesRampReactionClassesFromAnalytesComponent | ||
extends PageCoreComponent | ||
implements OnInit { | ||
|
||
constructor(private ref: ChangeDetectorRef) { | ||
super(); | ||
} | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} |
8 changes: 8 additions & 0 deletions
8
libs/features/ramp/reaction-classes-from-analytes/src/test-setup.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// @ts-expect-error https://thymikee.github.io/jest-preset-angular/docs/getting-started/test-environment | ||
globalThis.ngJest = { | ||
testEnvironmentOptions: { | ||
errorOnUnknownElements: true, | ||
errorOnUnknownProperties: true, | ||
}, | ||
}; | ||
import 'jest-preset-angular/setup-jest'; |
29 changes: 29 additions & 0 deletions
29
libs/features/ramp/reaction-classes-from-analytes/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es2022", | ||
"useDefineForClassFields": false, | ||
"forceConsistentCasingInFileNames": true, | ||
"strict": true, | ||
"noImplicitOverride": true, | ||
"noPropertyAccessFromIndexSignature": true, | ||
"noImplicitReturns": true, | ||
"noFallthroughCasesInSwitch": true, | ||
}, | ||
"files": [], | ||
"include": [], | ||
"references": [ | ||
{ | ||
"path": "./tsconfig.lib.json", | ||
}, | ||
{ | ||
"path": "./tsconfig.spec.json", | ||
}, | ||
], | ||
"extends": "../../../../tsconfig.base.json", | ||
"angularCompilerOptions": { | ||
"enableI18nLegacyMessageIdFormat": false, | ||
"strictInjectionParameters": true, | ||
"strictInputAccessModifiers": true, | ||
"strictTemplates": true, | ||
}, | ||
} |
17 changes: 17 additions & 0 deletions
17
libs/features/ramp/reaction-classes-from-analytes/tsconfig.lib.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "../../../../dist/out-tsc", | ||
"declaration": true, | ||
"declarationMap": true, | ||
"inlineSources": true, | ||
"types": [] | ||
}, | ||
"exclude": [ | ||
"src/**/*.spec.ts", | ||
"src/test-setup.ts", | ||
"jest.config.ts", | ||
"src/**/*.test.ts" | ||
], | ||
"include": ["src/**/*.ts"] | ||
} |
16 changes: 16 additions & 0 deletions
16
libs/features/ramp/reaction-classes-from-analytes/tsconfig.spec.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "../../../../dist/out-tsc", | ||
"module": "commonjs", | ||
"target": "es2016", | ||
"types": ["jest", "node"] | ||
}, | ||
"files": ["src/test-setup.ts"], | ||
"include": [ | ||
"jest.config.ts", | ||
"src/**/*.test.ts", | ||
"src/**/*.spec.ts", | ||
"src/**/*.d.ts" | ||
] | ||
} |
Oops, something went wrong.