Repository: Vitalii-Dzoma/quiz-app-moonlit
Branch: main
Commit: ae03cc330e67
Files: 13
Total size: 25.6 KB
Directory structure:
gitextract_0cni9gwh/
├── .gitignore
├── README.md
├── package.json
├── public/
│ ├── index.html
│ └── manifest.json
└── src/
├── App.css
├── App.js
├── App.test.js
├── data.js
├── index.css
├── index.js
├── reportWebVitals.js
└── setupTests.js
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitignore
================================================
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# production
/build
/dev
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
================================================
FILE: README.md
================================================
# 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 your browser.
The page will reload when you make changes.\
You may 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/).
### Code Splitting
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
### Analyzing the Bundle Size
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
### Making a Progressive Web App
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
### Advanced Configuration
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
### Deployment
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
### `npm run build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
================================================
FILE: package.json
================================================
{
"name": "quiz-app",
"version": "0.1.0",
"private": true,
"dependencies": {
"@emotion/react": "^11.10.4",
"@emotion/styled": "^11.10.4",
"@mui/material": "^5.10.3",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^13.5.0",
"bootstrap": "^5.1.3",
"lodash": "^4.17.21",
"react": "^18.0.0",
"react-bootstrap": "^2.3.0",
"react-dom": "^18.0.0",
"react-scripts": "5.0.1",
"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"
]
}
}
================================================
FILE: public/index.html
================================================
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="React Quiz APP" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React Quiz APP</title>
</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>
</html>
================================================
FILE: public/manifest.json
================================================
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
================================================
FILE: src/App.css
================================================
.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);
}
}
================================================
FILE: src/App.js
================================================
import "./App.css";
import { data } from "./data";
import { reduce } from "lodash/fp";
import { useEffect, useState } from "react";
function App() {
const { pages } = data;
const [pageNumber, setPageNumber] = useState(0);
const [pageContent, setPageContent] = useState(pages[pageNumber]);
const [selectedOption, setSelectedOption] = useState("");
const [selectedPartnerOption, setSelectedPartnerOption] = useState("");
const [selectedOptionValue, setSelectedOptionValue] = useState();
const [selectedOptionPartnerValue, setSelectedOptionPartnerValue] =
useState();
const [totalScore, setTotalScore] = useState(0);
const [totalPartnerScore, setTotalPartnerScore] = useState(0);
const [commonScore, setCommonScore] = useState([]);
const [commonPartnerScore, setCommonPartnerScore] = useState([]);
useEffect(() => {
setPageContent(pages[pageNumber]);
}, [pageNumber]);
useEffect(() => {
if (pageContent.defaultIndex) {
setSelectedOption(pageContent.options[pageContent.defaultIndex]);
setSelectedPartnerOption(pageContent.options[pageContent.defaultIndex]);
setSelectedOptionValue(pageContent.values[pageContent.defaultIndex]);
setSelectedOptionPartnerValue(
pageContent.values[pageContent.defaultIndex]
);
}
}, [pageContent]);
const handleInputChange = (e, option) => {
setSelectedOption(option);
setSelectedOptionValue(e.target.value);
};
const handleInputPartnerChange = (e, option) => {
setSelectedPartnerOption(option);
setSelectedOptionPartnerValue(e.target.value);
};
const handleNextClick = () => {
if (pageContent.options) {
setTotalScore((prevState) => prevState + +selectedOptionValue);
setCommonScore((prevState) => [...prevState, selectedOption]);
setTotalPartnerScore(
(prevState) => prevState + +selectedOptionPartnerValue
);
setCommonPartnerScore((prevState) => [
...prevState,
selectedPartnerOption,
]);
}
setPageNumber((prevState) => prevState + 1);
};
//added lodash/fp reduce
const getMostFrequent = (arr) => {
const hashmap = reduce((acc, val) => {
acc[val] = (acc[val] || 0) + 1;
return acc;
}, {})(arr);
return Object.keys(hashmap).reduce((a, b) =>
hashmap[a] > hashmap[b] ? a : b
);
};
const renderResults = () => {
const common = getMostFrequent(commonScore);
return pageContent.bodyBold
.replace("<total_score>", totalScore.toString())
.replace("<common_score>", `"${common}"`);
};
const renderPartnerResults = () => {
const commonPartner = getMostFrequent(commonPartnerScore);
return pageContent.bodyBold
.replace("Your", "Your Partner's")
.replace("your", "")
.replace("<total_score>", totalPartnerScore.toString())
.replace("<common_score>", `"${commonPartner}"`);
};
return (
<section className="bg-dark text-white">
<div className="container">
<div className="row vh-100 align-items-center justify-content-center">
<div className="col-lg-8">
<div
className="card p-4"
style={{ background: "#3d3d3d", borderColor: "#646464" }}
>
<div className="gap-md-3">
{pageContent.body && (
<div className="body">
{pageContent.body.replace("<partner name>", "Partner")}
</div>
)}
{pageContent.bodyBold && (
<div className="body-bold">{renderResults()}</div>
)}
{pageContent.bodyBold && (
<div className="body-bold">{renderPartnerResults()}</div>
)}
<h3 className="label" style={{ margin: 50 }}>
{pages?.indexOf(pageContent) <= 12
? pageContent.label
: pageContent.footnotes}
</h3>
<div className="d-flex justify-content-between gap-md-3">
<h5 className="mb-2 fs-normal lh-base">
{selectedOption?.label}
</h5>
<h5
style={{
color: "#60d600",
width: "100px",
textAlign: "right",
}}
>
{pages?.indexOf(pageContent)} / {pages?.length - 1}
</h5>
</div>
{pageContent.options && (
<div
style={{
display: "flex",
justifyContent: "center",
columnGap: 40,
marginBottom: 50,
}}
>
{" "}
{pageContent.options.map((option, index) => (
<label
htmlFor={option}
key={option}
style={{ display: "flex", flexDirection: "column" }}
>
{option}
<input
id={option}
type="checkbox"
value={pageContent.values[index]}
checked={option === selectedOption}
onChange={(e) => handleInputChange(e, option)}
/>
</label>
))}
</div>
)}
{pageContent.options && (
<div
style={{
display: "flex",
justifyContent: "center",
columnGap: 40,
marginBottom: 50,
}}
>
{pageContent.options.map((option, index) => (
<label
htmlFor={option}
key={option}
style={{ display: "flex", flexDirection: "column" }}
>
{option}
<input
id={option}
type="checkbox"
value={pageContent.values[index]}
checked={option === selectedPartnerOption}
onChange={(e) => handleInputPartnerChange(e, option)}
/>
</label>
))}
</div>
)}
{pageContent.done && (
<button
className="btn py-2 w-100 mt-3 bg-primary text-light fw-bold"
onClick={handleNextClick}
>
{pageContent.done}
</button>
)}
</div>
</div>
</div>
</div>
</div>
</section>
);
}
export default App;
================================================
FILE: src/App.test.js
================================================
import { render, screen } from "@testing-library/react";
import App from "./App";
import App1 from "./App";
test("renders learn react link", () => {
render(<App1 />);
const linkElement = screen.getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
});
================================================
FILE: src/data.js
================================================
export const data = {
"pages": [
{
"body": "How secure each of you feel as individuals is important for us to understand to create a lesson plan that's right for you. Try to answer the following section for yourself and for <partner name>. \n\np.s. If you decide to invite them to join you on Relish, they will get a chance to answer these questions too and your results will be updated to reflect that.",
"bodyColor": "warmGrey",
"collect": "info_attachment_intro",
"done": "Next",
"label": "How secure are you both?",
"textAlign": "center",
"type": "info"
},
{
"caption": "How much do you agree or disagree?",
"collect": "turntopartner",
"collect2": "pturntopartner",
"defaultIndex": 3,
"done": "Next",
"label": "It helps to turn to my partner in times of need.",
"options": [
"Strongly disagree",
"Disagree",
"Slightly disagree",
"Neutral",
"Slightly agree",
"Agree",
"Strongly agree"
],
"scaleTitle": "You",
"scaleTitle2": "Your partner",
"type": "rating_scale",
"values": [
7,
6,
5,
4,
3,
2,
1
]
},
{
"caption": "How much do you agree or disagree?",
"collect": "beloved",
"collect2": "pbeloved",
"defaultIndex": 3,
"done": "Next",
"label": "I need a lot of reassurance that I am loved by my partner.",
"options": [
"Strongly disagree",
"Disagree",
"Slightly disagree",
"Neutral",
"Slightly agree",
"Agree",
"Strongly agree"
],
"required": true,
"scaleTitle": "You",
"scaleTitle2": "Your partner",
"type": "rating_scale",
"values": [
1,
2,
3,
4,
5,
6,
7
]
},
{
"caption": "How much do you agree or disagree?",
"collect": "pullback",
"collect2": "ppullback",
"defaultIndex": 3,
"done": "Next",
"label": "I want to get close to my partner but I keep pulling back.",
"options": [
"Strongly disagree",
"Disagree",
"Slightly disagree",
"Neutral",
"Slightly agree",
"Agree",
"Strongly agree"
],
"partner": true,
"required": true,
"scaleTitle": "You",
"scaleTitle2": "Your partner",
"type": "rating_scale",
"values": [
1,
2,
3,
4,
5,
6,
7
]
},
{
"caption": "How much do you agree or disagree?",
"collect": "notwantclose",
"collect2": "pnotwantclose",
"defaultIndex": 3,
"done": "Next",
"label": "I find that my partner doesn't want to get as close as I would like.",
"options": [
"Strongly disagree",
"Disagree",
"Slightly disagree",
"Neutral",
"Slightly agree",
"Agree",
"Strongly agree"
],
"partner": true,
"required": true,
"scaleTitle": "You",
"scaleTitle2": "Your partner",
"type": "rating_scale",
"values": [
1,
2,
3,
4,
5,
6,
7
]
},
{
"caption": "How much do you agree or disagree?",
"collect": "partnercomfort",
"collect2": "ppartnercomfort",
"defaultIndex": 3,
"done": "Next",
"label": "I turn to my partner for many things including comfort and reassurance.",
"options": [
"Strongly disagree",
"Disagree",
"Slightly disagree",
"Neutral",
"Slightly agree",
"Agree",
"Strongly agree"
],
"partner": true,
"required": true,
"scaleTitle": "You",
"scaleTitle2": "Your partner",
"type": "rating_scale",
"values": [
7,
6,
5,
4,
3,
2,
1
]
},
{
"caption": "How much do you agree or disagree?",
"collect": "want_too_closed",
"collect2": "pwant_too_closed",
"defaultIndex": 3,
"done": "Next",
"label": "My desire to be very close sometimes scares people away.",
"options": [
"Strongly disagree",
"Disagree",
"Slightly disagree",
"Neutral",
"Slightly agree",
"Agree",
"Strongly agree"
],
"partner": true,
"required": true,
"scaleTitle": "You",
"scaleTitle2": "Your partner",
"type": "rating_scale",
"values": [
1,
2,
3,
4,
5,
6,
7
]
},
{
"caption": "How much do you agree or disagree?",
"collect": "avoid_too_close",
"collect2": "pavoid_too_close",
"defaultIndex": 3,
"done": "Next",
"label": "I try to avoid getting too close to my partner.",
"options": [
"Strongly disagree",
"Disagree",
"Slightly disagree",
"Neutral",
"Slightly agree",
"Agree",
"Strongly agree"
],
"partner": true,
"required": true,
"scaleTitle": "You",
"scaleTitle2": "Your partner",
"type": "rating_scale",
"values": [
1,
2,
3,
4,
5,
6,
7
]
},
{
"caption": "How much do you agree or disagree?",
"collect": "no_worry_adandoned",
"collect2": "pno_worry_adandoned",
"defaultIndex": 3,
"done": "Next",
"label": "I do not often worry about being abandoned.",
"options": [
"Strongly disagree",
"Disagree",
"Slightly disagree",
"Neutral",
"Slightly agree",
"Agree",
"Strongly agree"
],
"partner": true,
"required": true,
"scaleTitle": "You",
"scaleTitle2": "Your partner",
"type": "rating_scale",
"values": [
7,
6,
5,
4,
3,
2,
1
]
},
{
"caption": "How much do you agree or disagree?",
"collect": "discuss_problem",
"collect2": "pdiscuss_problem",
"defaultIndex": 3,
"done": "Next",
"label": "I usually discuss my problems and concerns with my partner.",
"options": [
"Strongly disagree",
"Disagree",
"Slightly disagree",
"Neutral",
"Slightly agree",
"Agree",
"Strongly agree"
],
"partner": true,
"required": true,
"scaleTitle": "You",
"scaleTitle2": "Your partner",
"type": "rating_scale",
"values": [
7,
6,
5,
4,
3,
2,
1
]
},
{
"caption": "How much do you agree or disagree?",
"collect": "frustrated",
"collect2": "pfrustrated",
"defaultIndex": 3,
"done": "Next",
"label": "I get frustrated if my partner is not available when I need them.",
"options": [
"Strongly disagree",
"Disagree",
"Slightly disagree",
"Neutral",
"Slightly agree",
"Agree",
"Strongly agree"
],
"partner": true,
"required": true,
"scaleTitle": "You",
"scaleTitle2": "Your partner",
"type": "rating_scale",
"values": [
1,
2,
3,
4,
5,
6,
7
]
},
{
"caption": "How much do you agree or disagree?",
"collect": "nervous_too_close",
"collect2": "pnervous_too_close",
"defaultIndex": 3,
"done": "Next",
"label": "I am nervous when my partner gets too close to me.",
"options": [
"Strongly disagree",
"Disagree",
"Slightly disagree",
"Neutral",
"Slightly agree",
"Agree",
"Strongly agree"
],
"partner": true,
"required": true,
"scaleTitle": "You",
"scaleTitle2": "Your partner",
"type": "rating_scale",
"values": [
1,
2,
3,
4,
5,
6,
7
]
},
{
"caption": "How much do you agree or disagree?",
"collect": "worry_no_care",
"collect2": "pworry_no_care",
"defaultIndex": 3,
"done": "Next",
"label": "I worry that my partner won't care about me as much as I care about them.",
"options": [
"Strongly disagree",
"Disagree",
"Slightly disagree",
"Neutral",
"Slightly agree",
"Agree",
"Strongly agree"
],
"partner": true,
"required": true,
"scaleTitle": "You",
"scaleTitle2": "Your partner",
"type": "rating_scale",
"values": [
1,
2,
3,
4,
5,
6,
7
]
},
{
"body": "We measure how secure you are based on your levels of anxiety and emotional avoidance. Based on what you've told us,",
"bodyBold": "Your total score was <total_score> and your most common score was <common_score>.",
"bodyColor": "warmGrey",
"collect": "info_attachment_result",
"footnotes": "You'll learn more about what this means for your relationship as you explore Relish.",
"headerBackgroundImage": "onboard_grey",
"label": "Your Initial Results",
"textAlign": "center",
"type": "attachment_result"
}
]
}
================================================
FILE: src/index.css
================================================
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;
letter-spacing: 0.5px;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
h1,
h2,
h3 {
font-family: 'Helvetica Neue';
font-weight: 600;
letter-spacing: 0.5px;
}
.btn,
.btn-dark,
.btn-check:focus + .btn-dark,
.btn-dark:focus,
.btn-check:focus + .btn,
.btn:focus {
border: none;
box-shadow: none;
}
.btn-dark:hover {
background: #212529;
}
.bg-primary,
.btn-light {
letter-spacing: 0.7px;
}
================================================
FILE: src/index.js
================================================
import React from "react";
import ReactDOM from "react-dom/client";
import reportWebVitals from "./reportWebVitals";
import "bootstrap/dist/css/bootstrap.min.css";
import "./index.css";
import App from "./App";
import App1 from "./App";
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
<React.StrictMode>
<App1 />
</React.StrictMode>
);
// 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();
================================================
FILE: src/reportWebVitals.js
================================================
const reportWebVitals = onPerfEntry => {
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;
================================================
FILE: src/setupTests.js
================================================
// 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';
gitextract_0cni9gwh/
├── .gitignore
├── README.md
├── package.json
├── public/
│ ├── index.html
│ └── manifest.json
└── src/
├── App.css
├── App.js
├── App.test.js
├── data.js
├── index.css
├── index.js
├── reportWebVitals.js
└── setupTests.js
SYMBOL INDEX (1 symbols across 1 files)
FILE: src/App.js
function App (line 6) | function App() {
Condensed preview — 13 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (29K chars).
[
{
"path": ".gitignore",
"chars": 315,
"preview": "# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.\n\n# dependencies\n/node_modules\n/.pn"
},
{
"path": "README.md",
"chars": 3359,
"preview": "# Getting Started with Create React App\n\nThis project was bootstrapped with [Create React App](https://github.com/facebo"
},
{
"path": "package.json",
"chars": 998,
"preview": "{\n \"name\": \"quiz-app\",\n \"version\": \"0.1.0\",\n \"private\": true,\n \"dependencies\": {\n \"@emotion/react\": \"^11.10.4\",\n "
},
{
"path": "public/index.html",
"chars": 1653,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n\n<head>\n <meta charset=\"utf-8\" />\n <link rel=\"icon\" href=\"%PUBLIC_URL%/favicon.ico\" /"
},
{
"path": "public/manifest.json",
"chars": 492,
"preview": "{\n \"short_name\": \"React App\",\n \"name\": \"Create React App Sample\",\n \"icons\": [\n {\n \"src\": \"favicon.ico\",\n "
},
{
"path": "src/App.css",
"chars": 564,
"preview": ".App {\n text-align: center;\n}\n\n.App-logo {\n height: 40vmin;\n pointer-events: none;\n}\n\n@media (prefers-reduced-motion:"
},
{
"path": "src/App.js",
"chars": 7045,
"preview": "import \"./App.css\";\nimport { data } from \"./data\";\nimport { reduce } from \"lodash/fp\";\nimport { useEffect, useState } fr"
},
{
"path": "src/App.test.js",
"chars": 273,
"preview": "import { render, screen } from \"@testing-library/react\";\nimport App from \"./App\";\nimport App1 from \"./App\";\n\ntest(\"rende"
},
{
"path": "src/data.js",
"chars": 9506,
"preview": "export const data = {\n \"pages\": [\n {\n \"body\": \"How secure each of you feel as individuals is important for us t"
},
{
"path": "src/index.css",
"chars": 762,
"preview": "body {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',\n 'Oxygen', 'Ubunt"
},
{
"path": "src/index.js",
"chars": 609,
"preview": "import React from \"react\";\nimport ReactDOM from \"react-dom/client\";\nimport reportWebVitals from \"./reportWebVitals\";\nimp"
},
{
"path": "src/reportWebVitals.js",
"chars": 362,
"preview": "const reportWebVitals = onPerfEntry => {\n if (onPerfEntry && onPerfEntry instanceof Function) {\n import('web-vitals'"
},
{
"path": "src/setupTests.js",
"chars": 241,
"preview": "// jest-dom adds custom jest matchers for asserting on DOM nodes.\n// allows you to do things like:\n// expect(element).to"
}
]
About this extraction
This page contains the full source code of the Vitalii-Dzoma/quiz-app-moonlit GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 13 files (25.6 KB), approximately 6.8k tokens, and a symbol index with 1 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.