-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Release new frontend upon the world (#858)
🎉
- staging-siarnaq-backend-2.0.6
- staging-saturn-1.0.0-beta
- siarnaq-frontend-1.0.8
- siarnaq-frontend-1.0.7
- siarnaq-frontend-1.0.6
- siarnaq-frontend-1.0.5
- siarnaq-frontend-1.0.4
- siarnaq-frontend-1.0.3
- siarnaq-frontend-1.0.2
- siarnaq-frontend-1.0.1
- siarnaq-frontend-1.0.0
- siarnaq-backend-2.0.5
- siarnaq-backend-2.0.4
Showing
327 changed files
with
7,059 additions
and
70,302 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
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
REACT_APP_THIS_URL=http://localhost:3000 | ||
REACT_APP_BACKEND_URL=http://localhost:8000 | ||
REACT_APP_REPLAY_URL=https://play.battlecode.org | ||
VITE_THIS_URL=http://localhost:3000 | ||
VITE_BACKEND_URL=http://localhost:8000 | ||
VITE_REPLAY_URL=https://play.battlecode.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
REACT_APP_THIS_URL=https://play.battlecode.org | ||
REACT_APP_BACKEND_URL=https://api.battlecode.org | ||
REACT_APP_REPLAY_URL=https://play.battlecode.org | ||
VITE_THIS_URL=https://play.battlecode.org | ||
VITE_BACKEND_URL=https://api.battlecode.org | ||
VITE_REPLAY_URL=https://play.battlecode.org | ||
GENERATE_SOURCEMAP=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 |
---|---|---|
@@ -1,130 +1,25 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
.pnpm-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
*.lcov | ||
|
||
# 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 | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# Microbundle cache | ||
.rpt2_cache/ | ||
.rts2_cache_cjs/ | ||
.rts2_cache_es/ | ||
.rts2_cache_umd/ | ||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
# testing | ||
/coverage | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
# production | ||
/build | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variable files | ||
.env | ||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
.env.local | ||
|
||
# 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 | ||
|
||
# Docusaurus cache and generated files | ||
.docusaurus | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
# TernJS port file | ||
.tern-port | ||
|
||
# Stores VSCode versions used for testing VSCode extensions | ||
.vscode-test | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# yarn v2 | ||
.yarn/cache | ||
.yarn/unplugged | ||
.yarn/build-state.yml | ||
.yarn/install-state.gz | ||
.pnp.* | ||
*.log |
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,5 +1,42 @@ | ||
# Legacy Battlecode Frontend | ||
# Battlecode Frontend | ||
|
||
Fully static frontend in React, based on `battlecode19/app`, using modified template from http://creative-tim.com. | ||
The new and improved frontend, for the Battlecode competitor portal. | ||
|
||
**This folder (and its frontend as a whole) will soon be no longer used or maintained. See #663 for tracking.** | ||
## Local setup | ||
|
||
See [docs/local-setup.md](docs/local-setup.md). | ||
|
||
## Important scripts | ||
|
||
See [docs/create-react-app.md](docs/create-react-app.md) or [package.json](./package.json) for lesser-used scripts. | ||
|
||
You can run the scripts below in the project directory. | ||
|
||
`npm run start` | ||
|
||
Runs the app in the development mode. Open [http://localhost:3000](http://localhost:3000) to view it in the browser. | ||
|
||
`npm run lint` | ||
|
||
Runs ESLint and Prettier checks. | ||
|
||
`npm run format` | ||
|
||
Applies ESLint and Prettier fixes. | ||
|
||
`npm start` | ||
|
||
Runs the app in the development mode. Open [http://localhost:3000](http://localhost:3000) to view it in the browser. | ||
|
||
## Codebase intro | ||
|
||
See [docs/onboard.md](docs/onboard.md) for an introduction to the frontend codebase, in order to make changes. This is helpful not only for frontend devs themselves but also for **just a working knowledge of frontend features, even if you're not a frontend dev!** | ||
|
||
## Generate API types | ||
|
||
We use a bash script to generate API types / functions from our backend code automatically. To run the bash script, ensure you have followed all the setup setps in the top-level directory and in [docs/local-setup.md](docs/local-setup.md). | ||
|
||
The following steps assume that you begin in the `galaxy` directory. | ||
|
||
1. `cd ./frontend` | ||
2. `./generate_types.sh` (runs the bash script) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
Oops, something went wrong.