-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c422a61
commit 4f6a62d
Showing
70 changed files
with
3,268 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Editor configuration, see https://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.ts] | ||
quote_type = single | ||
|
||
[*.md] | ||
max_line_length = off | ||
trim_trailing_whitespace = false |
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,31 @@ | ||
module.exports = { | ||
root: true, | ||
env: { browser: true, es2020: true }, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:react-hooks/recommended', | ||
], | ||
ignorePatterns: ['dist', '.eslintrc.cjs'], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['react-refresh'], | ||
rules: { | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ | ||
args: 'all', | ||
argsIgnorePattern: '^_', | ||
caughtErrors: 'all', | ||
caughtErrorsIgnorePattern: '^_', | ||
destructuredArrayIgnorePattern: '^(_|set)', | ||
varsIgnorePattern: '^_', | ||
ignoreRestSiblings: true | ||
} | ||
], | ||
'react-refresh/only-export-components': [ | ||
'warn', | ||
{ allowConstantExport: true }, | ||
], | ||
'@typescript-eslint/no-explicit-any': 'off' | ||
}, | ||
} |
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 @@ | ||
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: Node.js CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [18.x, 20.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
# cache: 'npm' # enable after committing lock file from first install | ||
- run: echo "@infragistics:registry=https://packages.infragistics.com/npm/js-licensed/" >> ~/.npmrc | ||
- run: echo "//packages.infragistics.com/npm/js-licensed/:_auth=${{ secrets.NPM_AUTH_TOKEN }}" >> ~/.npmrc | ||
- run: echo "//packages.infragistics.com/npm/js-licensed/:always-auth=true" >> ~/.npmrc | ||
- run: npm i # replace with 'npm ci' after committing lock file from first install | ||
# - run: npm run lint | ||
- run: npm run build | ||
- run: npm run test | ||
|
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 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
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,2 @@ | ||
@infragistics:registry=https://packages.infragistics.com/npm/js-licensed/ | ||
//packages.infragistics.com/npm/js-licensed/:always-auth=true |
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,48 @@ | ||
# empty-react-project | ||
|
||
This project was generated with [Ignite UI CLI](https://github.com/IgniteUI/igniteui-cli) version 13.2.4.<br> | ||
The template builds upon a project bootstrapped with [Vite](https://vitejs.dev/). | ||
|
||
## Development server | ||
|
||
Run `ig start` to build the application, start a web server and open the application in the default browser. <br> | ||
The default serving port is `http://localhost:3003/`. Default serving port can be configured in `ignite-ui-cli.json` via `defaultProp` property. | ||
|
||
## Build | ||
|
||
Run `ig build` to build the application into an output directory. | ||
|
||
## Step by step mode | ||
|
||
If you want to get a guided experience through the available options, you can initialize the step by step mode that will help you to create and setup your new application, as well as update a project previously created with the Ignite UI CLI. To start the guide, simply run the `ig` command. | ||
|
||
## List templates | ||
|
||
The `ig list` command lists all available templates for this project. | ||
|
||
## Adding components | ||
|
||
Add a new component or template to the project passing component ID and choosing a name. | ||
|
||
`ig add <component/template> <component_name>` | ||
|
||
The ID matches either a component ("grid", "category-chart", etc) or a predefined template. Predefined templates can provide either multiple components or fulfilling a specific use case like "form-validation", "master-detail" and so on. | ||
|
||
## Running unit tests | ||
|
||
Run `ig test` to execute the unit tests. | ||
|
||
## Commands Help | ||
|
||
`ig help` lists the available commands and provides a brief description of what they do. | ||
|
||
## Learn More | ||
|
||
To get more help on the IgniteUI CLI go check out the [IgniteUI CLI Wiki](https://github.com/IgniteUI/igniteui-cli/wiki). | ||
|
||
Learn more about Vite features in the [Vite documentation](https://vitejs.dev/guide/). | ||
|
||
To learn React, check out the [React documentation](https://reactjs.org/). | ||
|
||
|
||
|
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,58 @@ | ||
:root { | ||
--ig-font-family: "Montserrat"; | ||
--ig-elevation-factor: 0; | ||
--ig-primary-h: 155deg; | ||
--ig-primary-s: 49%; | ||
--ig-primary-l: 55%; | ||
--ig-secondary-h: 205deg; | ||
--ig-secondary-s: 56%; | ||
--ig-secondary-l: 29%; | ||
--ig-error-h: 355deg; | ||
--ig-error-s: 60%; | ||
--ig-error-l: 50%; | ||
--ig-success-h: 85deg; | ||
--ig-success-s: 49%; | ||
--ig-success-l: 55%; | ||
--ig-warn-h: 24deg; | ||
--ig-warn-s: 81%; | ||
--ig-warn-l: 59%; | ||
--ig-info-h: 179deg; | ||
--ig-info-s: 52%; | ||
--ig-info-l: 41%; | ||
--ig-primary-800-contrast: black; | ||
--ig-primary-900-contrast: black; | ||
--ig-primary-A700-contrast: black; | ||
--ig-secondary-200-contrast: white; | ||
--ig-secondary-300-contrast: white; | ||
--ig-secondary-400-contrast: white; | ||
--ig-secondary-500-contrast: white; | ||
--ig-secondary-A100-contrast: white; | ||
--ig-secondary-A200-contrast: white; | ||
--ig-error-500-contrast: white; | ||
--ig-error-600-contrast: white; | ||
--ig-error-A400-contrast: white; | ||
--ig-success-900-contrast: black; | ||
--ig-success-A700-contrast: black; | ||
--ig-warn-900-contrast: white; | ||
--ig-warn-A700-contrast: white; | ||
--ig-info-600-contrast: black; | ||
--ig-info-700-contrast: black; | ||
--ig-info-800-contrast: black; | ||
--ig-info-A400-contrast: black; | ||
} | ||
|
||
/* align icons in their containers */ | ||
.material-icons, .imx-icon { | ||
vertical-align: middle; | ||
} | ||
|
||
.ig-typography h1, | ||
.ig-typography h2, | ||
.ig-typography h3, | ||
.ig-typography h4, | ||
.ig-typography h5, | ||
.ig-typography h6, | ||
.ig-typography p, | ||
.ig-typography__body-1 { | ||
margin: 0 !important; | ||
} |
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 @@ | ||
{ | ||
"version": "13.2.4", | ||
"project": { | ||
"defaultPort": 3003, | ||
"framework": "react", | ||
"projectType": "igr-ts", | ||
"projectTemplate": "base", | ||
"theme": "default", | ||
"isBundle": false, | ||
"components": [], | ||
"sourceFiles": [], | ||
"isShowcase": false, | ||
"version": "" | ||
}, | ||
"build": {} | ||
} |
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,33 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="shortcut icon" href="/favicon.ico" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1, shrink-to-fit=no" | ||
/> | ||
<meta name="theme-color" content="#000000" /> | ||
<title>Health Vault</title> | ||
<link rel="stylesheet" href="./styles.css"> | ||
<link href='https://fonts.googleapis.com/icon?family=Material+Icons' rel='stylesheet'> | ||
<link rel='stylesheet' href='./node_modules/igniteui-webcomponents/themes/light/material.css'> | ||
<link href='https://fonts.googleapis.com/css?family=Montserrat:wght@300;400;600;700' rel='stylesheet'> | ||
<link rel='stylesheet' href='./ig-theme.css'> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
<!-- | ||
This HTML file is a template. | ||
If you open it directly in the browser, you will see an empty page. | ||
You can add webfonts, meta tags, or analytics to this file. | ||
The build step will place the bundled scripts into the <body> tag. | ||
To begin the development, run `npm start` or `yarn start`. | ||
To create a production bundle, use `npm run build` or `yarn build`. | ||
--> | ||
</body> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</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,50 @@ | ||
{ | ||
"name": "health-vault", | ||
"version": "0.1.0", | ||
"private": true, | ||
"type": "module", | ||
"dependencies": { | ||
"@infragistics/igniteui-react": "18.6.1", | ||
"@infragistics/igniteui-react-charts": "18.6.1", | ||
"@infragistics/igniteui-react-core": "18.6.1", | ||
"@testing-library/jest-dom": "^6.1.3", | ||
"@testing-library/react": "^14.0.0", | ||
"element-internals-polyfill": "^1.3.10", | ||
"functions-have-names": "^1.2.3", | ||
"react": "^18.2.0", | ||
"react-app-polyfill": "^0.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-router-dom": "^6.16.0", | ||
"resize-observer-polyfill": "^1.5.1", | ||
"vitest": "^0.34.4" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^18.2.15", | ||
"@types/react-dom": "^18.2.7", | ||
"@typescript-eslint/eslint-plugin": "^6.2.1", | ||
"@typescript-eslint/parser": "^6.2.1", | ||
"@vitejs/plugin-react": "^4.0.3", | ||
"eslint": "^8.46.0", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"eslint-plugin-react-refresh": "^0.4.3", | ||
"jsdom": "^22.1.0", | ||
"typescript": "^5.0.2", | ||
"vite": "^4.4.9", | ||
"vitest-canvas-mock": "^0.3.3", | ||
"igniteui-cli": "~13.2.4" | ||
}, | ||
"scripts": { | ||
"start": "vite", | ||
"build": "tsc && vite build", | ||
"preview": "vite preview", | ||
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", | ||
"test": "vitest", | ||
"infragistics-login": "echo \"IMPORTANT: When prompted for username enter in this format `name!!domain.com`\" && npm adduser --registry=https://packages.infragistics.com/npm/js-licensed/ --scope=@infragistics --always-auth" | ||
}, | ||
"browserslist": [ | ||
">0.2%", | ||
"not dead", | ||
"not ie <= 11", | ||
"not op_mini all" | ||
] | ||
} |
Binary file not shown.
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 @@ | ||
import { redirect } from 'react-router-dom'; | ||
import Home from './home/home'; | ||
import Medications from './medications/medications'; | ||
import HealthIndicators from './health-indicators/health-indicators'; | ||
import Appointments from './appointments/appointments'; | ||
import Profile from './profile/profile'; | ||
import Emergency from './emergency/emergency'; | ||
export const routes = [ | ||
{ index: true, loader: () => redirect('home') }, | ||
{ path: 'home', element: <Home />, text: 'Home' }, | ||
{ path: 'medications', element: <Medications />, text: 'Medications' }, | ||
{ path: 'health-indicators', element: <HealthIndicators />, text: 'Health Indicators' }, | ||
{ path: 'appointments', element: <Appointments />, text: 'Appointments' }, | ||
{ path: 'profile', element: <Profile />, text: 'Profile' }, | ||
{ path: 'emergency', element: <Emergency />, text: 'Emergency' } | ||
]; |
Oops, something went wrong.