-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Dockerfile * Use vite + update pkgs * Fix Vite issues with nodejs modules * WIP VDF * WIP POW * Make pow cancel button work * Working cancel button on Alert component * Use type * Disable address input form while loading * Working multi challenges * Some cleanup * Add types + cleanup * Properly validate address + cleanup * Add feedback to address form * Cleanup * Update pow worker code * Cleanup vite config and package.json * Display challenge counter + cleanup * npm audit fix * Add spinner for solving pow message * Working programmatic faucet script * Fix prod build issues * Make getTez script executable via import in file and also via CLI * Only check 0's in solution * Rename value * Add 5s timeout to axios reqs * Don't require captcha on verify endpoint * Don't bundle package.json * Misc cleanup * Log error message in POW worker * Make build more efficient * Use --noEmit flag for tsc * Cleanup packages * Check if txHash exists before trying to write * Add error event listener on worker * Move 'USER node' to top of Dockerfile' * Update pkgs * Add logic to log to terminal in dev * npm i -D ts-node * Don't rebuild application on every restart * Cleanup * npx npm-check-updates -u && npm i * Some readme cleanup * Cleanup + update .dockerignore * Keep button disabled if address isn't valid * Map over profiles * Remove unnecessary profile field * sort profiles by amount * getTez.js: Add verbose flag + in place text update * Update package.json fields * Add OxheadAlpha logo and links to header and footer * Better footer responsiveness * Add info about pow + captcha z-index + footer fixes * Fix footer and move captcha to left side * Default show info + use secondary button variant * Fix path to svg for built application * Handle if challenges are disabled * Make footer container fluid * Don't start loading until prompted captcha is solved * Keep header fixed and don't overlap it on scroll * update index.html * Handle in getTez.js if challenges are disabled * WIP to update README * npx npm-check-updates -i && npm i * getTez.js: Add log 'by Oxhead Alpha...'
- Loading branch information
Showing
33 changed files
with
8,151 additions
and
44,764 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
.dockerignore | ||
.DS_Store | ||
.env* | ||
.git | ||
.github | ||
build | ||
craco.config.ts | ||
.gitignore | ||
.vscode | ||
dist | ||
Dockerfile | ||
LICENSE.md | ||
node_modules | ||
npm-debug.log | ||
README.md |
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,15 +1,20 @@ | ||
FROM node:16-alpine as build | ||
FROM node:20-alpine | ||
|
||
USER node | ||
|
||
WORKDIR /app | ||
|
||
ENV PATH /app/node_modules/.bin:$PATH | ||
|
||
RUN chown node:node /app | ||
|
||
USER node | ||
COPY --chown=node:node package.json ./ | ||
COPY --chown=node:node package-lock.json ./ | ||
|
||
RUN npm install | ||
|
||
COPY --chown=node:node . ./ | ||
|
||
RUN npm install | ||
RUN npm run build | ||
|
||
CMD ["sh", "-c", "/app/entrypoint.sh" ] |
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
#!/bin/sh | ||
set -e | ||
# We need to buid because the configuration file may be modified at runtime. | ||
npm run build | ||
set -ex | ||
|
||
serve -s build -p 8080 | ||
# Validate the application's config.json. This includes a ts compilation that | ||
# validates the config's structure. It may have custom settings and was mounted | ||
# to the container in /public. Once validated, move it to /build to be served. | ||
npm run check-config | ||
cp ./public/config.json ./build/config.json | ||
|
||
serve build --single -p 8080 --no-port-switching |
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,22 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta name="keywords" content="tezos, faucet, testnet, teztnet, ghostnet, mondaynet, dailynet, blockchain"> | ||
<meta name="description" content="Get Free Tez for Tezos Networks"> | ||
<link rel="shortcut icon" id="favicon" href="favicon.ico"> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Titillium+Web"> | ||
|
||
<title>Tezos Faucet</title> | ||
</head> | ||
|
||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
<script type="module" src="/src/index.tsx"></script> | ||
</body> | ||
|
||
</html> |
Oops, something went wrong.