-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kârūn The Rich
committed
May 23, 2024
1 parent
7bd1e8a
commit 43a29f5
Showing
22 changed files
with
276 additions
and
42 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,39 @@ | ||
import request from 'supertest'; | ||
import app from '../app'; | ||
|
||
describe('GET /', () => { | ||
let get: request.Test; | ||
beforeEach(() => { | ||
get = request(app).get('/'); | ||
}); | ||
it('should return w/an HTTP code = 302 Found', async () => { | ||
await get.expect(302); | ||
}); | ||
}); | ||
describe('GET /*/manifest.json', () => { | ||
let get: request.Test; | ||
beforeEach(() => { | ||
get = request(app).get('/home/manifest.json'); | ||
}); | ||
it('should return w/an HTTP code = 302 Found', async () => { | ||
await get.expect(302); | ||
}); | ||
}); | ||
describe('GET /home', () => { | ||
let get: request.Test; | ||
beforeEach(() => { | ||
get = request(app).get('/home'); | ||
}); | ||
it('should return w/an HTTP code = 200 OK', async () => { | ||
await get.expect(200); | ||
}); | ||
it('should return w/a Content-Type ~ html', async () => { | ||
await get.expect('Content-Type', /html/) | ||
}); | ||
it('should return w/a Content-Length > 0', async () => { | ||
await get.expect((res) => { | ||
const length = BigInt(res.headers['content-length']); | ||
expect(length).toBeGreaterThan(0); | ||
}); | ||
}); | ||
}); |
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,20 @@ | ||
import { Router } from 'express'; | ||
import { env_of } from './functions'; | ||
const router = Router(); | ||
|
||
/** REDIRECT to manifest.json. */ | ||
router.get(/\/[^/]+\/manifest\.json$/, (req, res) => { | ||
res.redirect('/manifest.json'); | ||
}); | ||
/** REDIRECT to home page. */ | ||
router.get('/', (req, res) => { | ||
res.redirect('/home'); | ||
}); | ||
/** GET home page. */ | ||
router.get('/home', (req, res) => { | ||
res.render('home/home.pig', { | ||
DESCRIPTION: 'Mine & Mint Proof-of-Work XPower Tokens', | ||
TITLE: 'XPower', ...env_of(req), | ||
}); | ||
}); | ||
export default router; |
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
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
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<div class="two-card"> | ||
<div class="lhs d-flex flex-column"> | ||
<h1>Mine Proof-of-Work XPOW</h1> | ||
<p>Mining XPower XPOW tokens is simple and rewarding: By using computational power to solve complex puzzles, you can earn tokens.</p> | ||
<p>The effort put into solving these puzzles ensures that everyone has a fair chance to acquire them — for widespread distribution.</p> | ||
<div class="logo d-flex flex-grow-1 justify-content-center align-items-center"> | ||
<img src="images/svg/xpow.svg" height="128" width="128" alt="XPOW logo"> | ||
</div> | ||
</div> | ||
<div class="rhs"> | ||
<img src="/images/jpg/desktop-mine.jpg" height="1442" width="1002" alt="Mine Proof-of-Work XPOW" /> | ||
</div> | ||
</div> | ||
<hr /> | ||
<div class="two-card"> | ||
<div class="lhs d-flex flex-column"> | ||
<h1>Mint stakeable NFTs</h1> | ||
<p>Creating XPower NFTs is unique: By depositing your XPOW, you can mint NFTs that represent something that's similar to bonds.</p> | ||
<p>These NFTs are not only of artistic value but also functional, allowing you to stake them and earn rewards over time.</p> | ||
<p class="emoji d-flex flex-grow-1 justify-content-center align-items-center">🖼️</p> | ||
</div> | ||
<div class="rhs"> | ||
<img src="/images/jpg/desktop-nfts.jpg" height="1442" width="1002" alt="Mint stakeable NFTs" /> | ||
</div> | ||
</div> | ||
<hr /> | ||
<div class="two-card"> | ||
<div class="lhs d-flex flex-column"> | ||
<h1>Claim APOW Rewards</h1> | ||
<p>When you stake your XPower NFTs, you start earning APower APOW tokens: The longer you hold and stake your NFTs, the more APOW you accumulate.</p> | ||
<p>This process ensures that your participation is continuously rewarded, making it an attractive option for those looking to maximize their involvement in the ecosystem.</p> | ||
<div class="logo d-flex flex-grow-1 justify-content-center align-items-center"> | ||
<img src="images/svg/apow.svg" height="128" width="128" alt="APOW logo"> | ||
</div> | ||
</div> | ||
<div class="rhs"> | ||
<img src="/images/jpg/desktop-ppts.jpg" height="1442" width="1002" alt="Claim APOW Rewards" /> | ||
</div> | ||
</div> | ||
<hr /> | ||
<div class="two-card"> | ||
<div class="lhs d-flex flex-column"> | ||
<h1>Swap XPOW & APOW</h1> | ||
<p>You have the ability to seamlessly swap your XPower XPOW and APower APOW tokens on a decentralized exchange, offering flexibility and convenience in managing your assets.</p> | ||
<p>Further, with the upcoming lending and borrowing feature, you'll be able to leverage your APOW as collateral to borrow XPOW or vice versa.</p> | ||
<p class="emoji d-flex flex-grow-1 justify-content-center align-items-center">🏛️</p> | ||
</div> | ||
<div class="rhs"> | ||
<img src="/images/jpg/desktop-swap.jpg" height="1442" width="1002" alt="Swap XPOW & APOW" /> | ||
</div> | ||
</div> |
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,18 @@ | ||
extends ../app.pug | ||
|
||
block styles | ||
include ../theme/theme.pug | ||
|
||
block globals | ||
include ../global/contracts.pug | ||
include ../global/urls.pug | ||
|
||
block header | ||
include ../header/header.pug | ||
|
||
block content | ||
content | ||
div: include ./content.html | ||
|
||
block footer | ||
include ../footer/footer.pug |
Oops, something went wrong.