This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Showing
10 changed files
with
298 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/** | ||
* About this module FormApp | ||
* @extends FormApplication | ||
*/ | ||
class PinCushionAboutApp extends FormApplication { | ||
constructor(options={}) { | ||
super(options); | ||
} | ||
|
||
/** | ||
* Call app default options | ||
* @override | ||
*/ | ||
static get defaultOptions() { | ||
return mergeObject(super.defaultOptions, { | ||
id: "pin-cushion-about", | ||
title: `About ${PinCushion.MODULE_TITLE}`, | ||
template: `${PinCushion.PATH}/templates/about.hbs`, | ||
popOut: true, | ||
width: 500, | ||
height: 480 | ||
}); | ||
} | ||
|
||
/** | ||
* Supplies data to the template | ||
*/ | ||
async getData() { | ||
return { | ||
moduleName: PinCushion.MODULE_TITLE, | ||
version: game.modules.get(PinCushion.MODULE_NAME).data.version, | ||
patrons: await this.fetchPatrons() | ||
} | ||
} | ||
|
||
/** | ||
* Fetches a list of Patrons to display on the About page | ||
*/ | ||
async fetchPatrons() { | ||
const jsonPath = `${PinCushion.PATH}/patrons.json`; | ||
const response = await fetch(jsonPath); | ||
if (!response.ok) return null; | ||
|
||
const json = await response.json(); | ||
return json; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
[ | ||
{ | ||
"name": "John O" | ||
}, | ||
{ | ||
"name": "Greg L" | ||
}, | ||
{ | ||
"name": "Cody R" | ||
}, | ||
{ | ||
"name": "4535992" | ||
}, | ||
{ | ||
"name": "Lazytron" | ||
}, | ||
{ | ||
"name": "Alessandro V" | ||
}, | ||
{ | ||
"name": "Little A" | ||
}, | ||
{ | ||
"name": "wmiller1000 ." | ||
}, | ||
{ | ||
"name": "Bernie F" | ||
}, | ||
{ | ||
"name": "Norc" | ||
}, | ||
{ | ||
"name": "Sybearian" | ||
}, | ||
{ | ||
"name": "Yicheng M" | ||
}, | ||
{ | ||
"name": "Tsulex X" | ||
}, | ||
{ | ||
"name": "Martin K" | ||
}, | ||
{ | ||
"name": "Duncan" | ||
}, | ||
{ | ||
"name": "Zondark" | ||
}, | ||
{ | ||
"name": "cesarvillavi" | ||
}, | ||
{ | ||
"name": "Sammy P" | ||
}, | ||
{ | ||
"name": "Kelevra" | ||
}, | ||
{ | ||
"name": "Gerry S" | ||
}, | ||
{ | ||
"name": "Mr E" | ||
}, | ||
{ | ||
"name": "Shawn M" | ||
}, | ||
{ | ||
"name": "TotalFusionOne" | ||
}, | ||
{ | ||
"name": "Leon" | ||
}, | ||
{ | ||
"name": "Andrés A" | ||
}, | ||
{ | ||
"name": "Alex B" | ||
}, | ||
{ | ||
"name": "Cody S" | ||
}, | ||
{ | ||
"name": "Apostol" | ||
}, | ||
{ | ||
"name": "Ms E" | ||
}, | ||
{ | ||
"name": "David B" | ||
}, | ||
{ | ||
"name": "Trevor s" | ||
}, | ||
{ | ||
"name": "David C" | ||
}, | ||
{ | ||
"name": "Youness A" | ||
}, | ||
{ | ||
"name": "Kyle R" | ||
}, | ||
{ | ||
"name": "jlew" | ||
}, | ||
{ | ||
"name": "Darshyne I" | ||
}, | ||
{ | ||
"name": "Kevin J" | ||
}, | ||
{ | ||
"name": "Saevar L" | ||
}, | ||
{ | ||
"name": "Thomas Z" | ||
}, | ||
{ | ||
"name": "Gene R" | ||
}, | ||
{ | ||
"name": "Jose R" | ||
}, | ||
{ | ||
"name": "Istvan S" | ||
}, | ||
{ | ||
"name": "Mark W" | ||
}, | ||
{ | ||
"name": "Shawn" | ||
}, | ||
{ | ||
"name": "tim p" | ||
} | ||
] |
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,43 @@ | ||
<form autocomplete="off" onsubmit="event.preventDefault()"> | ||
<div class="flexrow"> | ||
<h1>{{moduleName}}</h1> | ||
<span class="version"><strong>v{{version}}</strong></span> | ||
</div> | ||
<div class="readme"> | ||
<p><a href="https://github.com/death-save/pin-cushion/wiki" title="Wiki"><i class="fas fa-book"></i> Wiki / More Info</a></p> | ||
</div> | ||
<div class="made-by flexcol"> | ||
<span class="made"> | ||
Made with <span class="heart">❤</span> by <strong>DEATH SAVE DEVELOPMENT</strong> | ||
</span> | ||
</div> | ||
<div class="patrons"> | ||
<p>Thanks to the support of these awesome people:</p> | ||
<ol class="patrons"> | ||
{{#each patrons}} | ||
<li class="patron">{{this.name}}</li> | ||
{{/each}} | ||
</ol> | ||
</div> | ||
<footer class="flexrow"> | ||
<div class="logo"> | ||
<a href="https://deathsave.dev"> | ||
<img src="modules/pin-cushion/img/deathsave-newlogo.png" class="death-save" title="DEATH SAVE DEVELOPMENT" height="120px" width="120px"> | ||
</a> | ||
</div> | ||
<div class="discord"> | ||
<a href="https://discord.gg/wwH7DQc"> | ||
<img src="modules/pin-cushion/img/Discord-Logo-Color.png" title="Discord" height="100px" width="100px"> | ||
<br/> | ||
<span>Join us on Discord</span> | ||
</a> | ||
</div> | ||
<div class="patreon"> | ||
<a href="https://www.patreon.com/bePatron?u=21811555"> | ||
<img src="modules/pin-cushion/img/Digital-Patreon-Logo_FieryCoral.png" title="Patreon" height="100px" width="100px"> | ||
<br/> | ||
<span>Become a Patron</span> | ||
</a> | ||
</div> | ||
</footer> | ||
</form> |