Skip to content

Commit

Permalink
DP/RP folders + better dialogs + vsc ext icon
Browse files Browse the repository at this point in the history
  • Loading branch information
DEVTomatoCake committed May 20, 2024
1 parent 4a37f81 commit c7870a9
Show file tree
Hide file tree
Showing 11 changed files with 347 additions and 399 deletions.
327 changes: 167 additions & 160 deletions assets/script.js

Large diffs are not rendered by default.

47 changes: 7 additions & 40 deletions assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -121,54 +121,21 @@ summary {
cursor: pointer;
}

.dialog {
position: fixed;
display: none;
z-index: 1;
left: 0;
top: 0;
padding-top: 100px;
width: 100%;
height: 100%;
overflow: auto;
background-color: var(--dialog-shadow);
transition: .3s;
dialog {
max-width: 90%;
}

.dialog-content {
position: relative;
margin: auto;
width: 75%;
padding: 20px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
animation-name: animateDialog;
animation-duration: 0.4s;
background-color: var(--dialog-bg);
border-radius: 5px;
}

@keyframes animateDialog {
from {
width: 0;
opacity: 0;
}
to {
width: 75%;
opacity: 1;
}
}

.close {
dialog .close {
color: #AAA;
float: right;
font-size: 28px;
font-weight: bold;
font-weight: 700;
transition: .2s;
}
.close:hover, .close:focus {
color: black;
cursor: pointer;
}
dialog .close:hover, dialog .close:focus {
color: #000;
}

a:link {
color: var(--link);
Expand Down
74 changes: 35 additions & 39 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,49 +56,45 @@ <h1 id="progress"></h1>
<canvas id="shareImage" width="955" height="500"></canvas>
<p id="result"></p>

<div id="aboutDialog" class="dialog">
<div class="dialog-content">
<span class="close">&times;</span>
<h1>About</h1>
<dialog id="aboutDialog">
<span class="close">&times;</span>
<h1>About</h1>

<p>
Made in HTML, plain JavaScript and CSS, this site allows you to get usage stats from your Minecraft data and resource packs.
It also allows analyzing of whole worlds and shaders.
<br>
Everything is done locally, no data ever gets sent to any server (except for anonymous Cloudflare statistics).
</p>
<p>
Made in HTML, plain JavaScript and CSS, this site allows you to get usage stats from your Minecraft data and resource packs.
It also allows analyzing of whole worlds and shaders.
<br>
Everything is done locally, no data ever gets sent to any server (except for anonymous Cloudflare statistics).
</p>

<p>
Developed by: <a href="https://discord.com/users/581146486646243339" target="_blank" rel="noopener">TomatoCake</a>
</p>
<p>
Inspired by: <a href="https://github.com/ErrorCraft/FunctionAnalyser" target="_blank" rel="noopener">ErrorCrafts FunctionAnalyser</a>
</p>
<p>
Uses <a href="https://github.com/misode/mcmeta" target="_blank" rel="noopener">misodes mcmeta</a> to get a list of all Minecraft versions with their respective pack formats.
</p>
<p>
GitHub: <a href="https://github.com/DEVTomatoCake/Pack-Analyzer" target="_blank" rel="noopener">https://github.com/DEVTomatoCake/Pack-Analyzer</a>
</p>
<p>
Support/Feedback:
<a href="https://discord.gg/JXVDQFf" target="_blank" rel="noopener">Vanilla Minigames Discord</a> or
<a href="https://github.com/DEVTomatoCake/Pack-Analyzer/issues" target="_blank" rel="noopener">GitHub</a>
</p>
</div>
</div>
<p>
Developed by: <a href="https://discord.com/users/581146486646243339" target="_blank" rel="noopener">TomatoCake</a>
</p>
<p>
Inspired by: <a href="https://github.com/ErrorCraft/FunctionAnalyser" target="_blank" rel="noopener">ErrorCrafts FunctionAnalyser</a>
</p>
<p>
Uses <a href="https://github.com/misode/mcmeta" target="_blank" rel="noopener">misodes mcmeta</a> to get a list of all Minecraft versions with their respective pack formats.
</p>
<p>
GitHub: <a href="https://github.com/DEVTomatoCake/Pack-Analyzer" target="_blank" rel="noopener">https://github.com/DEVTomatoCake/Pack-Analyzer</a>
</p>
<p>
Support/Feedback:
<a href="https://discord.gg/JXVDQFf" target="_blank" rel="noopener">Vanilla Minigames Discord</a> or
<a href="https://github.com/DEVTomatoCake/Pack-Analyzer/issues" target="_blank" rel="noopener">GitHub</a>
</p>
</dialog>

<div id="shareDialog" class="dialog">
<div class="dialog-content">
<span class="close">&times;</span>
<h1>Share the results as link</h1>
<dialog id="shareDialog">
<span class="close">&times;</span>
<h1>Share the results as link</h1>

<a id="share-link" href="https://sh0rt.zip"></a>
<br>
<br>
<img id="share-img" width="180" height="180" alt="QR code for sharing">
</div>
</div>
<a id="share-link" href="https://sh0rt.zip"></a>
<br>
<br>
<img id="share-img" width="180" height="180" alt="QR code for sharing">
</dialog>
</main>
</body>
</html>
2 changes: 1 addition & 1 deletion minify.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const minifyFile = async (path, options = {}) => {
})
}

async function main() {
const main = async () => {
await minifyFile("./assets/script.js")
await minifyFile("./assets/jszip.js", {
mangle: {
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"eslint-plugin-html": "^8.1.1",
"eslint-plugin-sonarjs": "^1.0.3",
"eslint-plugin-unicorn": "^53.0.0",
"globals": "^15.2.0"
"globals": "^15.3.0"
}
}
Binary file added vscExtension/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c7870a9

Please sign in to comment.