-
Notifications
You must be signed in to change notification settings - Fork 1
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
95f2eec
commit 7bc5c50
Showing
7 changed files
with
124 additions
and
1 deletion.
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,33 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "chrome", | ||
"request": "launch", | ||
"name": "Launch Chrome against localhost", | ||
"url": "http://localhost:3000", | ||
"webRoot": "${workspaceFolder}" | ||
}, | ||
{ | ||
"name": "Debug CRA Tests", | ||
"type": "node", | ||
"request": "launch", | ||
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/react-scripts", | ||
"args": [ | ||
"test", | ||
"--runInBand", | ||
"--no-cache", | ||
"--watchAll=false" | ||
], | ||
"cwd": "${workspaceRoot}", | ||
"console": "integratedTerminal", | ||
"internalConsoleOptions": "neverOpen", | ||
"env": { | ||
"CI": "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,61 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit" | ||
}, | ||
"eslint.workingDirectories": ["/src", "/tests"], | ||
"npm.exclude": ["**/dist"], | ||
"files.exclude": { | ||
"**/.git": true, | ||
"**/.svn": true, | ||
"**/.hg": true, | ||
"**/CVS": true, | ||
"**/.DS_Store": true, | ||
"**/Thumbs.db": true | ||
}, | ||
"typescript.tsdk": "<workspace>\\node_modules\\typescript\\lib", | ||
"todohighlight.isEnable": true, | ||
"todohighlight.isCaseSensitive": true, | ||
"todohighlight.keywords": [ | ||
"OPTIMIZE:", | ||
"HACK:", | ||
"DEBUG:", | ||
{ | ||
"text": "BUG:", | ||
"color": "#ecf0f1", | ||
"backgroundColor": "firebrick", | ||
"isWholeLine": false, | ||
"regex": { | ||
"pattern": "(?<=^|\"|\\s)BUG[:]?(?!\\w)" | ||
} | ||
}, | ||
{ | ||
"text": "NOTE:", | ||
"color": "#ecf0f1", | ||
"backgroundColor": "#0BB710", | ||
"isWholeLine": false, | ||
"regex": { | ||
"pattern": "(?<=^|\"|\\s)NOTE[:]?(?!\\w)" | ||
} | ||
} | ||
], | ||
"todohighlight.defaultStyle": { | ||
"color": "#2196D2", | ||
"backgroundColor": "none", | ||
"cursor": "pointer" | ||
}, | ||
"todohighlight.exclude": [ | ||
"**/.devcontainer/**", | ||
"**/.git/**", | ||
"**/.github/**", | ||
"**/.vscode/**", | ||
"**/.husky/**", | ||
"**/coverage/**", | ||
"**/dist/**", | ||
"**/build/**", | ||
"**/docs/**", | ||
"**/http/**", | ||
"**/node_modules/**", | ||
], | ||
"typescript.tsserver.maxTsServerMemory": 4072 | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
5 changes: 5 additions & 0 deletions
5
Services/TicketStore.Web/Client/web/src/components/core/progress/CenteredProgress.css
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,5 @@ | ||
.centred-progress { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
} |
16 changes: 16 additions & 0 deletions
16
Services/TicketStore.Web/Client/web/src/components/core/progress/CenteredProgress.tsx
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 React, { ReactNode } from 'react'; | ||
import './CenteredProgress.css'; | ||
import { Box, Typography, CircularProgress } from '@mui/material'; | ||
|
||
export function CenteredProgress({ children }: { children: ReactNode }) { | ||
return ( | ||
<div className="centred-progress"> | ||
<CircularProgress color="secondary" /> | ||
<Typography align="center" component="div"> | ||
<Box marginTop={2}> | ||
{children} | ||
</Box> | ||
</Typography> | ||
</div> | ||
) | ||
} |
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