Skip to content

Commit 9d48fb1

Browse files
author
ozelot379
committed
Fix
1 parent 6d59210 commit 9d48fb1

4 files changed

Lines changed: 29 additions & 17 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"devDependencies": {
2626
"css-loader": "^3.2.0",
2727
"favicons-webpack-plugin": "^1.0.1",
28-
"file-saver": "^2.0.2",
28+
"file-saver": "https://github.com/eligrey/FileSaver.js",
2929
"file-to-array-buffer": "^1.0.0",
3030
"fs-extra": "^8.1.0",
3131
"gh-pages": "^2.1.1",

‎src/webapp/html/index.html‎

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,36 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Convert Minecraft Java texture packs to Minecraft Bedrock texture packs</title>
6+
<meta content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
67
</head>
78
<body>
8-
<nav class="nav-extended brown">
9-
<div class="nav-content">
10-
<span class="nav-title">Convert Minecraft Java texture packs to Minecraft Bedrock texture packs</span>
11-
</div>
12-
</nav>
13-
<div class="section center">
14-
<button class="btn green" id="selectInputFileButton" type="button">Select input file</button>
15-
</div>
9+
<header>
10+
<nav class="nav-extended brown">
11+
<div class="nav-content">
12+
<span class="nav-title">Convert Minecraft Java texture packs to Minecraft Bedrock texture packs</span>
13+
</div>
14+
</nav>
15+
</header>
16+
<main class="section center">
17+
<button class="btn green" id="selectInputFileButton" type="button">Select</button>
18+
</main>
1619
<footer class="page-footer brown">
1720
<div class="footer-copyright">
1821
<div class="container">
19-
Source:
20-
<a class="green-text" href="https://github.com/ozelot379/ConvertMinecraftJavaTextureToBedrock" target="_blank">https://github.com/ozelot379/ConvertMinecraftJavaTextureToBedrock</a>
22+
<div class="row">
23+
<div class="col l6">
24+
Works directly in your browser
25+
</div>
26+
<div class="col l6">
27+
<div>
28+
Version: <%= require("./../../../package").version %>
29+
</div>
30+
<div>
31+
Source:
32+
<a class="green-text" href="https://github.com/ozelot379/ConvertMinecraftJavaTextureToBedrock" target="_blank">https://github.com/ozelot379/ConvertMinecraftJavaTextureToBedrock</a>
33+
</div>
34+
</div>
35+
</div>
2136
</div>
2237
</div>
2338
</footer>

‎src/webapp/js/index.js‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ document.addEventListener("DOMContentLoaded", () => {
7676
await swal({
7777
text: "Conversion was successfully",
7878
icon: "success",
79-
buttons: {
80-
download: "Download"
81-
}
79+
buttons: "Save"
8280
});
8381

8482
downloadFile(output, path.parse(input[1]).name + ".mcpack", "application/zip");

‎yarn.lock‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2198,10 +2198,9 @@ figgy-pudding@^3.5.1:
21982198
resolved "https://registry.yarnpkg.com/figgy-pudding/-/figgy-pudding-3.5.1.tgz#862470112901c727a0e495a80744bd5baa1d6790"
21992199
integrity sha512-vNKxJHTEKNThjfrdJwHc7brvM6eVevuO5nTj6ez8ZQ1qbXTvGthucRF7S4vf2cr71QVnT70V34v0S1DyQsti0w==
22002200

2201-
file-saver@^2.0.2:
2201+
"file-saver@https://github.com/eligrey/FileSaver.js":
22022202
version "2.0.2"
2203-
resolved "https://registry.yarnpkg.com/file-saver/-/file-saver-2.0.2.tgz#06d6e728a9ea2df2cce2f8d9e84dfcdc338ec17a"
2204-
integrity sha512-Wz3c3XQ5xroCxd1G8b7yL0Ehkf0TC9oYC6buPFkNnU9EnaPlifeAFCyCh+iewXTyFRcg0a6j3J7FmJsIhlhBdw==
2203+
resolved "https://github.com/eligrey/FileSaver.js#556db1f6df33da0fe8954dcea3fb49b11830e9c5"
22052204

22062205
file-to-array-buffer@^1.0.0:
22072206
version "1.0.0"

0 commit comments

Comments
 (0)