Skip to content

Commit

Permalink
chore: push everything including commits
Browse files Browse the repository at this point in the history
  • Loading branch information
molecula451 committed Mar 1, 2024
1 parent de7c732 commit 57c10af
Show file tree
Hide file tree
Showing 69 changed files with 14,435 additions and 18 deletions.
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "lib/ubiquibot"]
path = lib/ubiquibot
url = https://github.com/ubiquity/ubiquibot
branch = development
12 changes: 5 additions & 7 deletions build/esbuild-build.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// @ts-expect-error - Could not find a declaration file for module
import esbuild from "esbuild";
const typescriptEntries = ["static/main.ts"];
// const cssEntries = ["static/style.css"];
const entries = [
...typescriptEntries,
// ...cssEntries
];
const typescriptEntries = ["static/scripts/onboarding/onboarding.ts"];
const cssEntries = ["static/styles/rewards/rewards.css", "static/styles/audit-report/audit.css", "static/styles/onboarding/onboarding.css"];
export const entries = [...typescriptEntries, ...cssEntries];

export const esBuildContext: esbuild.BuildOptions = {
sourcemap: true,
Expand All @@ -19,7 +17,7 @@ export const esBuildContext: esbuild.BuildOptions = {
".ttf": "dataurl",
".svg": "dataurl",
},
outdir: "static/dist",
outdir: "static/out",
};

esbuild
Expand Down
1 change: 1 addition & 0 deletions lib/ubiquibot
Submodule ubiquibot added at cb0849
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,15 @@
"open-source"
],
"dependencies": {
"dotenv": "^16.4.4"
"@ethersproject/providers": "^5.7.2",
"@octokit/core": "^5.1.0",
"@octokit/plugin-create-or-update-text-file": "^4.0.1",
"@octokit/rest": "^20.0.2",
"@types/libsodium-wrappers": "^0.7.13",
"@uniswap/permit2-sdk": "^1.2.0",
"dotenv": "^16.4.4",
"ethers": "^5.7.2",
"yaml": "^2.3.4"
},
"devDependencies": {
"@commitlint/cli": "^18.6.1",
Expand Down
79 changes: 71 additions & 8 deletions static/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,76 @@
<!doctype html>
<html lang="en">
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Ubiquity TypeScript Template</title>
<link rel="stylesheet" href="style.css" />
<title>Onboarding</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="out/styles/onboarding/onboarding.css" rel="stylesheet" />
</head>
<body>
<h1>Ubiquity TypeScript Template</h1>
<script type="module" src="dist/main.js"></script>
<body style="justify-content: start">
<div class="container" id="user-access">
<h1 class="title">Onboarding</h1>
<div id="stepper" class="stepper">
<div class="step active">
<span class="step-number">1</span>
<span class="step-label">CONFIG</span>
</div>
<div class="step">
<span class="step-number">2</span>
<span class="step-label">APPROVE</span>
</div>
</div>
<div id="step1" class="step-container">
<div class="mb-3">
<label for="chainId" class="form-label">CHAIN_ID</label>
<select class="form-control" id="chainId">
<option value="1">Ethereum Mainnet</option>
<option value="100">Gnosis Mainnet</option>
</select>
<span class="status-log"></span>
</div>
<div class="mb-3">
<label for="walletPrivateKey" class="form-label">WALLET_PRIVATE_KEY</label>
<input type="text" class="form-control" id="walletPrivateKey" />
<span class="status-log"></span>
</div>
<div class="mb-3">
<label for="githubPat" class="form-label">GITHUB_PAT</label>
<input type="text" class="form-control" id="githubPat" />
<span class="status-log"></span>
</div>
<div class="mb-3">
<label for="orgName" class="form-label">ORG_NAME</label>
<input type="text" class="form-control" id="orgName" />
<span class="status-log"></span>
</div>
<div class="mb-3 pos-rel">
<label for="outKey" class="form-label">OUTPUT</label>
<div class="out-file">ubiquibot-config.yml</div>
<textarea type="text" class="form-control" id="outKey" disabled="true"></textarea>
</div>
</div>
<div id="step2" class="step-container hidden">
<div class="mb-3">
<label for="allowance" class="form-label">ALLOWANCE AMOUNT</label>
<div>
<input type="text" class="form-control" style="max-width: 200px" id="allowance" />
<span style="font-size: 1.2rem; color: #808080">DAI</span>
<span class="status-log"></span>
</div>
</div>
</div>

<div class="mb-3">
<label for="statusKey" class="form-label">STATUS</label>
<input type="text" class="form-control" id="statusKey" disabled="true" />
</div>
<div class="mb-3 loader-wrap" style="display: none">
<span class="loader-x"></span>
</div>
<div class="btn-container">
<button type="button" class="btn btn-primary mb-3" id="setBtn">🌐 Set</button>
</div>
</div>
<script src="out/scripts/onboarding/onboarding.js" type="application/javascript"></script>
</body>
</html>
Loading

0 comments on commit 57c10af

Please sign in to comment.