-
Notifications
You must be signed in to change notification settings - Fork 5
Cns website #1811
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
Open
edlu77
wants to merge
41
commits into
develop
Choose a base branch
from
cns-website
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Cns website #1811
Changes from 2 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
fe8ab6f
Set up cns website app
edlu77 646d001
Merge branch 'develop' of https://github.com/hubmapconsortium/hra-ui …
edlu77 fb7c132
Updates
edlu77 4271b94
Add cns light mode theme
edlu77 1b15696
Enable design system styles for cns website
edlu77 170d475
Formatting
edlu77 2b671a2
Merge branch 'develop' of https://github.com/hubmapconsortium/hra-ui …
edlu77 15acbc2
Merge branch 'develop' of https://github.com/hubmapconsortium/hra-ui …
edlu77 9ff6eea
Merge branch 'develop' into cns-website
axdanbol 5edf104
refactor: Add content template to cns-website
axdanbol e01ea32
Cns footer (#1889)
edlu77 30d7ad4
Merge branch 'develop' of github.com:hubmapconsortium/hra-ui into cns…
saaivignesh20 a654373
Merge branch 'develop' into cns-website
axdanbol 6f7daa9
style: Lint fixes
axdanbol 3fa3127
Merge branch 'develop' into cns-website
axdanbol 32fc909
CNS Website - Visitor Info Page (#1877)
saaivignesh20 7566d20
Merge branch 'develop' into cns-website
axdanbol 22b7a3f
CNS Website - Jobs page (#1884)
gauri2029 4f24a5d
CNS Website - Privacy Policy Page (#1894)
gauri2029 94d957e
Merge branch 'develop' into cns-website
axdanbol 32842c2
Amatria page (#1895)
prashantchanne12 3b5d986
add about page for cns website (#1896)
rchavan10 a98845b
Merge branch 'develop' into cns-website
axdanbol ac7bd18
Cns header (#1930)
edlu77 4ede688
refactor(app:cns-website): Add base configuration
axdanbol 723e68a
Add people profile template (#1933)
prashantchanne12 de43100
Merge branch 'develop' of github.com:hubmapconsortium/hra-ui into cns…
saaivignesh20 23eb3e2
update yaml - add anchor tags (#1984)
rchavan10 6ce9202
CNS Website - 404 Page (#1985)
saaivignesh20 d130c03
refactor(app:cns-website): Update header to use `hraLink` (#1997)
axdanbol a288396
refactor(app:cns-website): Update footer privacy links
axdanbol 519048f
Merge branch 'develop' into cns-website
axdanbol 34df151
CNS Website - Content Page Component (#1987)
saaivignesh20 23110ec
CNS Website - Add Breadcrumbs (#1988)
saaivignesh20 5473677
refactor(lib:design-system): Move breadcrumb schema into its own file
axdanbol d3e5cb8
refactor(app:cns-website): Update schemas
axdanbol f3d7bd0
test(app:cns-website): Fix conflicting schema ids
axdanbol 8df3252
refactor(app:cns-website): General tweaks
axdanbol 840cdfb
CNS Website - Landing Page Content (#1995)
saaivignesh20 15662b5
refactor(lib:design-system): :lipstick: Remove incorrect styles from …
axdanbol 52f7160
Merge branch 'develop' into cns-website
axdanbol File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 nx from '@nx/eslint-plugin'; | ||
| import baseConfig from '../../eslint.config.mjs'; | ||
|
|
||
| export default [ | ||
| ...baseConfig, | ||
| ...nx.configs['flat/angular'], | ||
| ...nx.configs['flat/angular-template'], | ||
| { | ||
| files: ['**/*.ts'], | ||
| rules: { | ||
| '@angular-eslint/directive-selector': [ | ||
| 'error', | ||
| { | ||
| type: 'attribute', | ||
| prefix: 'cns', | ||
| style: 'camelCase', | ||
| }, | ||
| ], | ||
| '@angular-eslint/component-selector': [ | ||
| 'error', | ||
| { | ||
| type: 'element', | ||
| prefix: 'cns', | ||
| style: 'kebab-case', | ||
| }, | ||
| ], | ||
| }, | ||
| }, | ||
| { | ||
| files: ['**/*.html'], | ||
| // Override or add rules here | ||
| rules: {}, | ||
| }, | ||
| ]; | ||
This file contains hidden or 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,6 @@ | ||
| export default { | ||
| displayName: 'cns-website', | ||
| preset: '../../jest.preset.js', | ||
| setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'], | ||
| coverageDirectory: '../../coverage/apps/cns-website', | ||
| }; |
This file contains hidden or 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,61 @@ | ||
| { | ||
| "name": "cns-website", | ||
| "$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
| "projectType": "application", | ||
| "prefix": "cns", | ||
| "sourceRoot": "apps/cns-website/src", | ||
| "tags": ["type:app"], | ||
axdanbol marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "targets": { | ||
| "build": { | ||
| "configurations": { | ||
axdanbol marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "production": { | ||
| "budgets": [ | ||
| { | ||
| "type": "initial", | ||
| "maximumWarning": "500kb", | ||
| "maximumError": "1mb" | ||
| }, | ||
| { | ||
| "type": "anyComponentStyle", | ||
| "maximumWarning": "4kb", | ||
| "maximumError": "8kb" | ||
| } | ||
| ], | ||
| "outputHashing": "all" | ||
| }, | ||
| "development": { | ||
| "optimization": false, | ||
| "extractLicenses": false, | ||
| "sourceMap": true | ||
| } | ||
| }, | ||
| "executor": "@nx/angular:application", | ||
| "options": { | ||
| "assets": [ | ||
| { | ||
| "glob": "**/*", | ||
| "input": "apps/cns-website/public" | ||
| }, | ||
| { | ||
| "input": "libs/design-system/assets", | ||
| "glob": "**/*", | ||
| "output": "./assets" | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| "serve": { | ||
| "executor": "@nx/angular:dev-server", | ||
| "continuous": true | ||
| }, | ||
| "compodoc": { | ||
| "executor": "@twittwer/compodoc:compodoc", | ||
| "options": { | ||
| "tsConfig": "apps/cns-website/tsconfig.app.json" | ||
| } | ||
| }, | ||
| "build-webcomponent": { | ||
| "command": "node tools/scripts/bundle-scripts.mjs dist/apps/cns-website/browser/" | ||
| } | ||
| } | ||
| } | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 @@ | ||
| <router-outlet></router-outlet> |
Empty file.
This file contains hidden or 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,11 @@ | ||
| import { Component } from '@angular/core'; | ||
| import { RouterModule } from '@angular/router'; | ||
| import { HraCommonModule } from '@hra-ui/common'; | ||
|
|
||
| @Component({ | ||
| imports: [HraCommonModule, RouterModule], | ||
| selector: 'cns-website', | ||
| templateUrl: './app.component.html', | ||
| styleUrl: './app.component.scss', | ||
| }) | ||
| export class AppComponent {} |
This file contains hidden or 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,27 @@ | ||
| import { ApplicationConfig, provideZonelessChangeDetection } from '@angular/core'; | ||
| import { provideRouter, withComponentInputBinding, withInMemoryScrolling } from '@angular/router'; | ||
| import { provideAnalytics, withErrorHandler, withRouterEvents } from '@hra-ui/common/analytics'; | ||
| import { provideAppConfiguration } from '@hra-ui/common/injectors'; | ||
| import { provideDesignSystem } from '@hra-ui/design-system'; | ||
| import { provideMarkdown } from 'ngx-markdown'; | ||
| import { appRoutes } from './app.routes'; | ||
|
|
||
| /** Application configuration */ | ||
| export const appConfig: ApplicationConfig = { | ||
| providers: [ | ||
| provideAppConfiguration({ | ||
| name: 'cns-website', | ||
| version: '1.0.0', | ||
| url: 'https://cns.iu.edu/', | ||
| }), | ||
| provideAnalytics(withRouterEvents(), withErrorHandler()), | ||
| provideZonelessChangeDetection(), | ||
| provideDesignSystem(), | ||
| provideMarkdown(), | ||
| provideRouter( | ||
| appRoutes, | ||
| withComponentInputBinding(), | ||
| withInMemoryScrolling({ anchorScrolling: 'disabled', scrollPositionRestoration: 'enabled' }), | ||
| ), | ||
| ], | ||
| }; |
This file contains hidden or 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,10 @@ | ||
| import { Route } from '@angular/router'; | ||
| import { LandingPageComponent } from './pages/landing-page.component'; | ||
|
|
||
| export const appRoutes: Route[] = [ | ||
| { | ||
| path: '', | ||
| pathMatch: 'full', | ||
| component: LandingPageComponent, | ||
| }, | ||
| ]; |
This file contains hidden or 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 @@ | ||
| <p>landing-page works!</p> |
This file contains hidden or 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,3 @@ | ||
| :host { | ||
| display: block; | ||
| } |
This file contains hidden or 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,11 @@ | ||
| import { ChangeDetectionStrategy, Component } from '@angular/core'; | ||
| import { HraCommonModule } from '@hra-ui/common'; | ||
|
|
||
| @Component({ | ||
| selector: 'cns-landing-page', | ||
| imports: [HraCommonModule], | ||
| templateUrl: './landing-page.component.html', | ||
| styleUrl: './landing-page.component.scss', | ||
| changeDetection: ChangeDetectionStrategy.OnPush, | ||
| }) | ||
| export class LandingPageComponent {} |
This file contains hidden or 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 @@ | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <title>Cyberinfrastructure for Network Science Center</title> | ||
| <base href="/" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| <link rel="icon" type="image/png" href="cns.png" /> | ||
| <link rel="preload" href="media/nunito-sans-latin-wght-normal.woff2" as="font" type="font/woff2" crossorigin /> | ||
| <link rel="preload" href="media/metropolis-latin-500-normal.woff2" as="font" type="font/woff2" crossorigin /> | ||
| <link | ||
| rel="preload" | ||
| href="media/material-symbols-rounded-latin-fill-normal.woff2" | ||
| as="font" | ||
| type="font/woff2" | ||
| crossorigin | ||
| /> | ||
| <link | ||
| rel="preload" | ||
| href="media/material-symbols-outlined-latin-fill-normal.woff2" | ||
| as="font" | ||
| type="font/woff2" | ||
| crossorigin | ||
| /> | ||
| </head> | ||
| <body> | ||
| <cns-website></cns-website> | ||
| </body> | ||
| </html> |
This file contains hidden or 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,5 @@ | ||
| import { bootstrapApplication } from '@angular/platform-browser'; | ||
| import { appConfig } from './app/app.config'; | ||
| import { AppComponent } from './app/app.component'; | ||
|
|
||
| bootstrapApplication(AppComponent, appConfig).catch((err) => console.error(err)); |
This file contains hidden or 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,9 @@ | ||
| @use '@angular/material' as mat; | ||
| @use 'vars'; | ||
| @use 'light-theme'; | ||
| @use 'theming'; | ||
| @use 'utils'; | ||
|
|
||
| @include utils.global-styles() { | ||
| @include theming.theme(light-theme.$theme); | ||
| } |
This file contains hidden or 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 @@ | ||
| import '@testing-library/jest-dom'; | ||
| import { setupZonelessTestEnv } from 'jest-preset-angular/setup-env/zoneless'; | ||
|
|
||
| setupZonelessTestEnv({ | ||
| errorOnUnknownElements: true, | ||
| errorOnUnknownProperties: true, | ||
| }); |
This file contains hidden or 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,10 @@ | ||
| { | ||
| "extends": "./tsconfig.json", | ||
| "compilerOptions": { | ||
| "outDir": "../../dist/out-tsc", | ||
| "types": [] | ||
| }, | ||
| "files": ["src/main.ts"], | ||
| "include": ["src/**/*.ts"], | ||
| "exclude": ["jest.config.ts", "src/test-setup.ts", "**/*.spec.ts"] | ||
| } |
axdanbol marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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 @@ | ||
| { | ||
| "compilerOptions": {}, | ||
| "files": [], | ||
| "include": [], | ||
| "references": [ | ||
| { | ||
| "path": "./tsconfig.editor.json" | ||
| }, | ||
| { | ||
| "path": "./tsconfig.app.json" | ||
| }, | ||
| { | ||
| "path": "./tsconfig.spec.json" | ||
| } | ||
| ], | ||
| "extends": "../../tsconfig.base.json", | ||
| "angularCompilerOptions": { | ||
| "enableI18nLegacyMessageIdFormat": false, | ||
| "strictInjectionParameters": true, | ||
| "strictInputAccessModifiers": true, | ||
| "strictTemplates": true | ||
| } | ||
| } |
This file contains hidden or 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 @@ | ||
| { | ||
| "compilerOptions": {}, | ||
| "files": [], | ||
| "include": [], | ||
| "references": [ | ||
| { | ||
| "path": "./tsconfig.editor.json" | ||
| }, | ||
| { | ||
| "path": "./tsconfig.app.json" | ||
| }, | ||
| { | ||
| "path": "./tsconfig.spec.json" | ||
| } | ||
| ], | ||
| "extends": "../../tsconfig.base.json", | ||
| "angularCompilerOptions": { | ||
| "enableI18nLegacyMessageIdFormat": false, | ||
| "strictInjectionParameters": true, | ||
| "strictInputAccessModifiers": true, | ||
| "strictTemplates": true | ||
| } | ||
| } |
This file contains hidden or 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,9 @@ | ||
| { | ||
| "extends": "./tsconfig.json", | ||
| "compilerOptions": { | ||
| "outDir": "../../dist/out-tsc", | ||
| "types": ["jest", "node", "jest-dom"] | ||
| }, | ||
| "files": ["src/test-setup.ts"], | ||
| "include": ["jest.config.ts", "**/*.spec.ts", "**/*.d.ts"] | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.