diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 0fbcdf9..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: Deploy React App to GitHub Pages - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -permissions: - contents: read - pages: write - id-token: write - -concurrency: - group: "pages" - cancel-in-progress: false - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '18' - cache: 'npm' - - - name: Install dependencies - run: npm ci - - - name: Build project - run: npm run build - - - name: Setup Pages - uses: actions/configure-pages@v4 - - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - path: ./build - - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 4d29575..9a5aced 100644 --- a/.gitignore +++ b/.gitignore @@ -1,23 +1,139 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* -# dependencies -/node_modules -/.pnp -.pnp.js +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json -# testing -/coverage +# Runtime data +pids +*.pid +*.seed +*.pid.lock -# production -/build +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov -# misc -.DS_Store -.env.local -.env.development.local -.env.test.local -.env.production.local +# Coverage directory used by tools like istanbul +coverage +*.lcov -npm-debug.log* -yarn-debug.log* -yarn-error.log* +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# Snowpack dependency directory (https://snowpack.dev/) +web_modules/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional stylelint cache +.stylelintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variable files +.env +.env.* +!.env.example + +# parcel-bundler cache (https://parceljs.org/) +.cache +.parcel-cache + +# Next.js build output +.next +out + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# vuepress v2.x temp and cache directory +.temp +.cache + +# Sveltekit cache directory +.svelte-kit/ + +# vitepress build output +**/.vitepress/dist + +# vitepress cache directory +**/.vitepress/cache + +# Docusaurus cache and generated files +.docusaurus + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# Firebase cache directory +.firebase/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +# yarn v3 +.pnp.* +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/sdks +!.yarn/versions + +# Vite logs files +vite.config.js.timestamp-* +vite.config.ts.timestamp-* diff --git a/README.md b/README.md deleted file mode 100644 index 58beeac..0000000 --- a/README.md +++ /dev/null @@ -1,70 +0,0 @@ -# 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) diff --git a/asset-manifest.json b/asset-manifest.json new file mode 100644 index 0000000..83683b3 --- /dev/null +++ b/asset-manifest.json @@ -0,0 +1,15 @@ +{ + "files": { + "main.css": "/LeetCode/static/css/main.b6d3d15e.css", + "main.js": "/LeetCode/static/js/main.17432316.js", + "static/js/453.6e2f83e5.chunk.js": "/LeetCode/static/js/453.6e2f83e5.chunk.js", + "index.html": "/LeetCode/index.html", + "main.b6d3d15e.css.map": "/LeetCode/static/css/main.b6d3d15e.css.map", + "main.17432316.js.map": "/LeetCode/static/js/main.17432316.js.map", + "453.6e2f83e5.chunk.js.map": "/LeetCode/static/js/453.6e2f83e5.chunk.js.map" + }, + "entrypoints": [ + "static/css/main.b6d3d15e.css", + "static/js/main.17432316.js" + ] +} \ No newline at end of file diff --git a/public/favicon.ico b/favicon.ico similarity index 100% rename from public/favicon.ico rename to favicon.ico diff --git a/public/favicon.svg b/favicon.svg similarity index 100% rename from public/favicon.svg rename to favicon.svg diff --git a/index.html b/index.html new file mode 100644 index 0000000..ac7f633 --- /dev/null +++ b/index.html @@ -0,0 +1 @@ +
- The application encountered an unexpected error. Please refresh the page to try again. -
- - {process.env.NODE_ENV === 'development' && this.state.error && ( -
- {this.state.error.toString()}
- {this.state.errorInfo.componentStack}
-
- No problems found matching "{query}"
-Try different keywords or check spelling
-- - {problem.notes.length > 100 && '...'} -
- )} - - {/* Match score (for debugging - can be removed) */} - {process.env.NODE_ENV === 'development' && ( -To sync across devices:
-1. Save your data on the first device
-2. Click "Copy Current Gist ID" and share it
-3. On other devices, paste the Gist ID and click "Set Gist ID"
-No problems available yet.
-Add some problems to your categories to see a random one here!
-{randomProblem.notes}
- )} - -Added: {new Date(randomProblem.solvedAt).toLocaleDateString()}
- {(randomProblem.solvedTimes || 0) > 0 && ( -- Solved {randomProblem.solvedTimes} time{randomProblem.solvedTimes !== 1 ? 's' : ''} -
- )} -{category.description}
- )} -{problem.notes}
- )} -Added: {new Date(problem.solvedAt).toLocaleDateString()}
- {(problem.solvedTimes || 0) > 0 && ( -- Solved {problem.solvedTimes} time{problem.solvedTimes !== 1 ? 's' : ''} -
- )} -