diff --git a/.gitignore b/.gitignore index 9491a2f..5ad5780 100644 --- a/.gitignore +++ b/.gitignore @@ -360,4 +360,6 @@ MigrationBackup/ .ionide/ # Fody - auto-generated XML schema -FodyWeavers.xsd \ No newline at end of file +FodyWeavers.xsd +/geradoresfe/package-lock.json +/geradoresfe/public diff --git a/Geradores.sln b/Geradores.sln index ce8d27b..8b77bcc 100644 --- a/Geradores.sln +++ b/Geradores.sln @@ -3,7 +3,28 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.6.33829.357 MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionFiles", "SolutionFiles", "{6370AD16-6443-4846-B933-702A86A48A19}" + ProjectSection(SolutionItems) = preProject + .gitattributes = .gitattributes + .gitignore = .gitignore + README.md = README.md + EndProjectSection +EndProject +Project("{54A90642-561A-4BB1-A94E-469ADEE60C69}") = "geradoresfe", "geradoresfe\geradoresfe.esproj", "{1D9DDDEB-6FBA-4A9C-AE85-6A3630D8B9AC}" +EndProject Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {1D9DDDEB-6FBA-4A9C-AE85-6A3630D8B9AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1D9DDDEB-6FBA-4A9C-AE85-6A3630D8B9AC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1D9DDDEB-6FBA-4A9C-AE85-6A3630D8B9AC}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {1D9DDDEB-6FBA-4A9C-AE85-6A3630D8B9AC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1D9DDDEB-6FBA-4A9C-AE85-6A3630D8B9AC}.Release|Any CPU.Build.0 = Release|Any CPU + {1D9DDDEB-6FBA-4A9C-AE85-6A3630D8B9AC}.Release|Any CPU.Deploy.0 = Release|Any CPU + EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection diff --git a/geradoresfe/.gitignore b/geradoresfe/.gitignore new file mode 100644 index 0000000..4d29575 --- /dev/null +++ b/geradoresfe/.gitignore @@ -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* diff --git a/geradoresfe/.vscode/launch.json b/geradoresfe/.vscode/launch.json new file mode 100644 index 0000000..612d630 --- /dev/null +++ b/geradoresfe/.vscode/launch.json @@ -0,0 +1,19 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "edge", + "request": "launch", + "name": "localhost (Edge)", + "url": "http://localhost:3000", + "webRoot": "${workspaceFolder}" + }, + { + "type": "chrome", + "request": "launch", + "name": "localhost (Chrome)", + "url": "http://localhost:3000", + "webRoot": "${workspaceFolder}" + } + ] +} diff --git a/geradoresfe/README.md b/geradoresfe/README.md new file mode 100644 index 0000000..b87cb00 --- /dev/null +++ b/geradoresfe/README.md @@ -0,0 +1,46 @@ +# Getting Started with Create React App + +This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). + +## Available Scripts + +In the project directory, you can run: + +### `npm start` + +Runs the app in the development mode.\ +Open [http://localhost:3000](http://localhost:3000) to view it in the browser. + +The page will reload if you make edits.\ +You will also see any lint errors in the console. + +### `npm test` + +Launches the test runner in the interactive watch mode.\ +See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. + +### `npm run build` + +Builds the app for production to the `build` folder.\ +It correctly bundles React in production mode and optimizes the build for the best performance. + +The build is minified and the filenames include the hashes.\ +Your app is ready to be deployed! + +See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. + +### `npm run eject` + +**Note: this is a one-way operation. Once you `eject`, you can’t go back!** + +If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. + +Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. + +You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. + +## Learn More + +You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). + +To learn React, check out the [React documentation](https://reactjs.org/). diff --git a/geradoresfe/geradoresfe.esproj b/geradoresfe/geradoresfe.esproj new file mode 100644 index 0000000..170c85f --- /dev/null +++ b/geradoresfe/geradoresfe.esproj @@ -0,0 +1,13 @@ + + + set BROWSER=none&&npm start + src\ + Jest + + + + npm run build + + $(MSBuildProjectDirectory)\build + + \ No newline at end of file diff --git a/geradoresfe/nuget.config b/geradoresfe/nuget.config new file mode 100644 index 0000000..6548586 --- /dev/null +++ b/geradoresfe/nuget.config @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/geradoresfe/package.json b/geradoresfe/package.json new file mode 100644 index 0000000..dc30e96 --- /dev/null +++ b/geradoresfe/package.json @@ -0,0 +1,47 @@ +{ + "name": "geradoresfe", + "version": "0.1.0", + "private": true, + "dependencies": { + "@testing-library/jest-dom": "^5.17.0", + "@testing-library/react": "^13.4.0", + "@testing-library/user-event": "^13.5.0", + "@types/jest": "^27.5.2", + "@types/node": "^16.18.95", + "@types/react": "^18.2.74", + "@types/react-dom": "^18.2.24", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "react-scripts": "5.0.1", + "typescript": "^4.9.5", + "web-vitals": "^2.1.4" + }, + "scripts": { + "start": "react-scripts start", + "build": "react-scripts build", + "test": "react-scripts test", + "eject": "react-scripts eject" + }, + "eslintConfig": { + "extends": [ + "react-app", + "react-app/jest" + ] + }, + "browserslist": { + "production": [ + ">0.2%", + "not dead", + "not op_mini all" + ], + "development": [ + "last 1 chrome version", + "last 1 firefox version", + "last 1 safari version" + ] + }, + "devDependencies": { + "eslint-config-react-app": "^7.0.1", + "jest-editor-support": "^31.1.2" + } +} diff --git a/geradoresfe/src/App.css b/geradoresfe/src/App.css new file mode 100644 index 0000000..74b5e05 --- /dev/null +++ b/geradoresfe/src/App.css @@ -0,0 +1,38 @@ +.App { + text-align: center; +} + +.App-logo { + height: 40vmin; + pointer-events: none; +} + +@media (prefers-reduced-motion: no-preference) { + .App-logo { + animation: App-logo-spin infinite 20s linear; + } +} + +.App-header { + background-color: #282c34; + min-height: 100vh; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + font-size: calc(10px + 2vmin); + color: white; +} + +.App-link { + color: #61dafb; +} + +@keyframes App-logo-spin { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +} diff --git a/geradoresfe/src/App.test.tsx b/geradoresfe/src/App.test.tsx new file mode 100644 index 0000000..2a68616 --- /dev/null +++ b/geradoresfe/src/App.test.tsx @@ -0,0 +1,9 @@ +import React from 'react'; +import { render, screen } from '@testing-library/react'; +import App from './App'; + +test('renders learn react link', () => { + render(); + const linkElement = screen.getByText(/learn react/i); + expect(linkElement).toBeInTheDocument(); +}); diff --git a/geradoresfe/src/App.tsx b/geradoresfe/src/App.tsx new file mode 100644 index 0000000..a53698a --- /dev/null +++ b/geradoresfe/src/App.tsx @@ -0,0 +1,26 @@ +import React from 'react'; +import logo from './logo.svg'; +import './App.css'; + +function App() { + return ( +
+
+ logo +

+ Edit src/App.tsx and save to reload. +

+ + Learn React + +
+
+ ); +} + +export default App; diff --git a/geradoresfe/src/index.css b/geradoresfe/src/index.css new file mode 100644 index 0000000..ec2585e --- /dev/null +++ b/geradoresfe/src/index.css @@ -0,0 +1,13 @@ +body { + margin: 0; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', + 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', + sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +code { + font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', + monospace; +} diff --git a/geradoresfe/src/index.tsx b/geradoresfe/src/index.tsx new file mode 100644 index 0000000..032464f --- /dev/null +++ b/geradoresfe/src/index.tsx @@ -0,0 +1,19 @@ +import React from 'react'; +import ReactDOM from 'react-dom/client'; +import './index.css'; +import App from './App'; +import reportWebVitals from './reportWebVitals'; + +const root = ReactDOM.createRoot( + document.getElementById('root') as HTMLElement +); +root.render( + + + +); + +// If you want to start measuring performance in your app, pass a function +// to log results (for example: reportWebVitals(console.log)) +// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals +reportWebVitals(); diff --git a/geradoresfe/src/logo.svg b/geradoresfe/src/logo.svg new file mode 100644 index 0000000..9dfc1c0 --- /dev/null +++ b/geradoresfe/src/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/geradoresfe/src/react-app-env.d.ts b/geradoresfe/src/react-app-env.d.ts new file mode 100644 index 0000000..6431bc5 --- /dev/null +++ b/geradoresfe/src/react-app-env.d.ts @@ -0,0 +1 @@ +/// diff --git a/geradoresfe/src/reportWebVitals.ts b/geradoresfe/src/reportWebVitals.ts new file mode 100644 index 0000000..49a2a16 --- /dev/null +++ b/geradoresfe/src/reportWebVitals.ts @@ -0,0 +1,15 @@ +import { ReportHandler } from 'web-vitals'; + +const reportWebVitals = (onPerfEntry?: ReportHandler) => { + if (onPerfEntry && onPerfEntry instanceof Function) { + import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { + getCLS(onPerfEntry); + getFID(onPerfEntry); + getFCP(onPerfEntry); + getLCP(onPerfEntry); + getTTFB(onPerfEntry); + }); + } +}; + +export default reportWebVitals; diff --git a/geradoresfe/src/setupTests.ts b/geradoresfe/src/setupTests.ts new file mode 100644 index 0000000..8f2609b --- /dev/null +++ b/geradoresfe/src/setupTests.ts @@ -0,0 +1,5 @@ +// jest-dom adds custom jest matchers for asserting on DOM nodes. +// allows you to do things like: +// expect(element).toHaveTextContent(/react/i) +// learn more: https://github.com/testing-library/jest-dom +import '@testing-library/jest-dom'; diff --git a/geradoresfe/tsconfig.json b/geradoresfe/tsconfig.json new file mode 100644 index 0000000..a273b0c --- /dev/null +++ b/geradoresfe/tsconfig.json @@ -0,0 +1,26 @@ +{ + "compilerOptions": { + "target": "es5", + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], + "allowJs": true, + "skipLibCheck": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "noFallthroughCasesInSwitch": true, + "module": "esnext", + "moduleResolution": "node", + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "jsx": "react-jsx" + }, + "include": [ + "src" + ] +}