-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathindex.html
355 lines (314 loc) · 21 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
<!DOCTYPE html>
<html ng-app="assetApp" ng-controller="assetController" lang="en">
<head>
<title ng-bind="ngMeta.title">MC Assets - Browser for Minecraft Asset Files</title>
<link id="favicon" rel="shortcut icon" type="image/png" href="/favicon.png"/>
<meta name="description" content="MC Assets is a browser for Minecraft asset files. Explore all Textures, Sounds, Models, Fonts, Shaders, and more from any Minecraft version">
<meta name="keywords" content="minecraft,assets,browser,explorer,textures,sounds,models,shaders,fonts,version,extract,resource">
<meta name="author" content="inventivetalent">
<meta property="og:type" content="website">
<meta property="og:title" content="{{ ngMeta['title'] || 'Minecraft Assets' }}">
<meta property="og:image" content="{{ ngMeta['image'] || 'https://mcasset.cloud/img/mc-assets-2-512.png' }}">
<meta property="og:description" content="MC Assets is a browser for Minecraft asset files. Explore all Textures, Sounds, Models, Fonts, Shaders, and more from any Minecraft version, without having to extract the files yourself">
<meta property="twitter:title" content="{{ ngMeta['title'] || 'Minecraft Assets' }}">
<meta property="twitter:image" content="{{ ngMeta['image'] || 'https://mcasset.cloud/img/mc-assets-2-512.png' }}">
<meta property="twitter:description" content="MC Assets is a browser for Minecraft asset files. Explore all Textures, Sounds, Models, Fonts, Shaders, and more from any Minecraft version, without having to extract the files yourself">
<meta property="twitter:creator" content="@Inventivtalent">
<meta property="twitter:card" content="summary">
<meta name="flattr:id" content="okelw0">
<meta name="robots" content="index, follow">
<link href="/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.1/css/all.css" integrity="sha384-O8whS3fhG2OnA5Kas0Y9l3cfpmYjapjI0E4theH4iuMD+pLhbf6JI0jIMfYcK3yZ" crossorigin="anonymous">
<meta name=viewport content="width=device-width, initial-scale=1">
<base href="/">
<style>
.list-group-item-file {
}
.list-group-item-dir {
background-color: #f9f9f9;
}
.far {
font-size: 18px;
}
</style>
<!-- Cookie Consent by TermsFeed https://www.TermsFeed.com -->
<script charset="UTF-8" src="https://www.termsfeed.com/public/cookie-consent/4.1.0/cookie-consent.js" type="text/javascript"></script>
<script charset="UTF-8" type="text/javascript">
document.addEventListener('DOMContentLoaded', function () {
cookieconsent.run({"notice_banner_type":"simple","consent_type":"express","palette":"dark","language":"en","page_load_consent_levels":["strictly-necessary"],"notice_banner_reject_button_hide":false,"preferences_center_close_button_hide":false,"page_refresh_confirmation_buttons":false,"website_name":"inventivetalent","website_privacy_policy_url":"https://legal.inventivetalent.org/privacy"});
});
</script>
<!-- Google tag (gtag.js) -->
<script async data-cookie-consent="tracking" src="https://www.googletagmanager.com/gtag/js?id=G-HBJZL7F0XS"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-HBJZL7F0XS');
</script>
<!-- google adsense -->
<script async data-cookie-consent="targeting" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2604356629473365"
crossorigin="anonymous"></script>
<!-- end of google adsense-->
<!-- donation popup -->
<script>
window.DOP_config = {
links: { // Replace with your links
paypal: "https://paypal.me/inventivetalent",
patreon: "https://patreon.com/inventivetalent"
},
enableAnalytics: true
}
</script>
<script async data-cookie-consent="functionality" src="https://cdn.jsdelivr.net/gh/InventivetalentDev/DonationPopup@master/DonationPopup.min.js" type="text/plain"></script>
<!-- end of donation popup-->
<noscript>Free cookie consent management tool by <a href="https://www.termsfeed.com/privacy-policy-generator/">TermsFeed Free Privacy Policy Generator</a></noscript>
<!-- End Cookie Consent by TermsFeed https://www.TermsFeed.com -->
</head>
<body ng-cloak>
<a href="https://github.com/InventivetalentDev/mcasset.cloud" target="_blank">
<img style="position: absolute; top: 0; right: 0; border: 0;"
src="https://camo.githubusercontent.com/a6677b08c955af8400f44c6298f40e7d19cc5b2d/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677261795f3664366436642e706e67"
alt="Fork me on GitHub"
data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png">
</a>
<nav class="navbar navbar-default navbar-fixed-top" ng-show="asset.version && showNav" style="min-height: 40px; height: 50px;">
<div class="container" style="height:40px;padding:5px;">
<ol class="breadcrumb">
<a href="#" ng-if="asset.pathElements.length > 0" ng-click="goToPath(getJoinedPath(asset.pathElements.length-1))" style="padding-right: 6px;">
<i class="fa fa-arrow-left" aria-hidden="true"></i>
</a>
<li class="breadcrumb-item">
<a href="#" ng-click="goToPath('/')">
{{asset.version}}
</a>
</li>
<li class="breadcrumb-item" ng-repeat="element in asset.pathElements" ng-class="{'active': $last}">
<a href="#" ng-click="goToPath(getJoinedPath($index+1))">
{{element}}
</a>
</li>
<span class="pull-right" ng-show="assetIndex">{{ assetIndex.length }} Files</span>
</ol>
</div>
</nav>
<div class="container-fluid" style="margin-bottom: 100px;">
<div class="jumbotron">
<div class="container">
<div class="row">
<div class="col-md-2">
<img src="/img/mc-assets-2-256.png" class="img-responsive">
</div>
<div class="col-md-10">
<h1>Minecraft Assets</h1>
</div>
</div>
<br/>
<div class="row">
<div class="col-md-12">
<h2 style="font-size: 20px; margin-bottom: 15px; font-weight: 200;">
A Browser for Minecraft Asset Files!<br/>
Explore all <strong>Textures, Sounds, Models, Fonts, Shaders, and more</strong> from any Minecraft version, without having to extract the files yourself
</h2>
</div>
</div>
</div>
</div>
<div class="container">
<div>
<div ng-show="versions.versions.length > 0">
<h4>Minecraft Version</h4>
<div class="form-group">
<label class="col-lg-2 control-label" for="inputVersion">
<strong>Minecraft Version</strong>
</label>
<div class="col-lg-10">
<select id="inputVersion" ng-model="asset.version" class="form-control" ng-change="versionChanged()">
<option value="" disabled selected>Please select a Minecraft Version</option>
<optgroup label="Releases">
<option ng-repeat="version in versions.versions" ng-if="version.type==='release'" value="{{version.id}}">{{version.id + (version.id === versions.latest.release ? " (latest)" : "")}}</option>
</optgroup>
<optgroup label="Snapshots">
<option ng-repeat="version in versions.versions" ng-if="version.type==='snapshot'" value="{{version.id}}">{{version.id + (version.id === versions.latest.snapshot ? " (latest)" : "")}}</option>
</optgroup>
<optgroup label="Old Beta" ng-if="showOldVersions">
<option ng-repeat="version in versions.versions" ng-if="showOldVersions && version.type==='old_beta'">{{version.id}}</option>
</optgroup>
<optgroup label="Old Alpha" ng-if="showOldVersions">
<option ng-repeat="version in versions.versions" ng-if="showOldVersions && version.type==='old_alpha'">{{version.id}}</option>
</optgroup>
</select>
</div>
</div>
<!--
<div class="form-group">
<div class="col-lg-2">
</div>
<div class="col-lg-10">
<input type="checkbox" ng-model="showOldVersions">
<label>Include old versions (beta/alpha)</label>
</div>
</div>
-->
</div>
<div ng-hide="versions.versions.length > 0">
<img src="img/loading.svg">
<strong>Loading Versions...</strong>
</div>
</div>
<br/>
<br/>
<div>
<div ng-show="asset.version">
<h4>Browse Files</h4>
<ol class="breadcrumb">
<a href="#" ng-if="asset.pathElements.length > 0" ng-click="goToPath(getJoinedPath(asset.pathElements.length-1))" style="padding-right: 6px;">
<i class="fa fa-arrow-left" aria-hidden="true"></i>
</a>
<li class="breadcrumb-item">
<a href="#" ng-click="goToPath('/')">
{{asset.version}}
</a>
</li>
<li class="breadcrumb-item" ng-repeat="element in asset.pathElements" ng-class="{'active': $last}">
<a href="#" ng-click="goToPath(getJoinedPath($index+1))">
{{element}}
</a>
</li>
<span class="pull-right" ng-show="assetIndex">{{ assetIndex.length }} Files</span>
</ol>
<div ng-show="assetIndex.length > 0" style="margin-bottom: 20px;">
<ul class="list-group">
<li class="list-group-item" ng-repeat="file in assetIndex" ng-class="{'list-group-item-dir': file.type==='dir'}">
<a href="{{ asset.version + '/' + file.path }}" ng-click="file.type==='dir' ? goToPath(file.path, $event) : openFile(file, $event)">
<i class="far fa-folder" aria-hidden="true" ng-if="file.type==='dir'"></i>
<i class="far fa-file" aria-hidden="true" ng-if="file.type==='file' && !isJsonFile(file.name) && !isImageFile(file.name) && !isAudioFile(file.name)"></i>
<i class="far fa-file-code" aria-hidden="true" ng-if="file.type==='file' && isJsonFile(file.name)"></i>
<i class="far fa-file-image" aria-hidden="true" ng-if="file.type==='file' && isImageFile(file.name)"></i>
<i class="far fa-file-audio" aria-hidden="true" ng-if="file.type==='file' && isAudioFile(file.name)"></i>
{{file.name}}
</a>
</li>
</ul>
</div>
<div>
<span>
Download
<a href="https://github.com/InventivetalentDev/minecraft-assets/zipball/refs/heads/{{asset.version}}" title="Download .zip archive"><i class="fa fa-download" aria-hidden="true"></i> .zip</a>
<a href="https://github.com/InventivetalentDev/minecraft-assets/tarball/refs/heads/{{asset.version}}" title="Download .tar.gz archive"><i class="fa fa-download" aria-hidden="true"></i> .tar.gz</a>
</span>
<span ng-show="assetIndex.length === 1000">
This list has been truncated. <a href="#" ng-click="loadMore()">Load more</a>
</span>
<span class="pull-right"><span class="text-muted">Files last downloaded & extracted on </span>{{versionInfo.downloadTimestamp | date: "medium"}}</span>
</div>
</div>
<div ng-show="asset.version && assetIndex.length <= 0">
<img src="/img/loading.svg">
<strong>Loading Assets...</strong>
</div>
<br/>
<br/>
<a href="https://www.patreon.com/bePatron?u=554075" data-patreon-widget-type="become-patron-button">Become a Patron!</a>
<script async src="https://c6.patreon.com/becomePatronButton.bundle.js"></script>
</div>
</div>
</div>
<footer class="footer navbar-fixed-bottom" style="background-color: #f5f5f5; padding-top: 16px; padding-bottom: 16px;">
<div class="container">
<div class="row">
<div class="col-sm-4">
<span>Maintained by <a href="https://inventivetalent.org/?utm_source=mcassets&utm_medium=author_link" target="_blank">inventivetalent</a></span>
<br/>
<span>More projects: <span class="pageref"></span></span>
</div>
<div class="col-sm-4">
Not affiliated with Minecraft / Mojang AB.
</div>
<div class="col-sm-4">
<span class="pull-right">
<a style="cursor: pointer" data-toggle="modal" data-target="#githubAuthModal" class="text-muted" title="{{githubRequestsReset>0 ? 'Resets on ' + (githubRequestsReset*1000 | date : 'medium') : ''}}">{{githubRequestsRemaining}} GitHub requests remaining</a>
<span ng-if="githubAccessToken" style="color: green;" title="GitHub authenticated! ({{githubUser.name}})"><i class="fa fa-check" aria-hidden="true"></i></span>
<span ng-if="githubAccessToken == undefined" style="color: red;" title="GitHub not yet authenticated"><i class="fa fa-times" aria-hidden="true"></i></span>
</span>
</div>
</div>
</div>
</footer>
<!-- MODALS -->
<div id="previewModal" class="modal fade" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h2 class="modal-title">{{previewFile.name}}</h2>
</div>
<div class="modal-body">
<pre ng-if="previewFile._isText()">{{previewFile._content}}</pre>
<img class="img-responsive" ng-if="previewFile._isImage()" ng-src="{{previewFile.proxy_url}}" style="width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges;">
<audio ng-if="previewFile._isAudio()" controls>
<source ng-src="{{previewFile.proxy_url}}" type="{{previewFile._contentType}}">
</audio>
<div ng-if="previewFile._contentType && !previewFile._isText() && !previewFile._isImage() && !previewFile._isAudio()">
<p>
<strong>File cannot be displayed.</strong>
<br/>
Please use the links below to view/download the file directly.
</p>
</div>
<div ng-if="!previewFile._contentType">
<img src="/img/loading.svg">
</div>
</div>
<div class="modal-footer">
<span class="text-muted pull-left">
<a target="_blank" href="{{previewFile.proxy_url}}">{{asset.version}}/{{previewFile.path}}</a>
</span>
<span>
<a href="{{previewFile.html_url}}" target="_blank"><i class="fa fa-github" aria-hidden="true"></i> View on GitHub</a>
<a href="{{previewFile.download_url}}" target="_blank"><i class="fa fa-download" aria-hidden="true"></i> Download File</a>
</span>
</div>
</div>
</div>
</div>
<div id="githubAuthModal" class="modal fade" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h2 class="modal-title">GitHub authentication</h2>
</div>
<div class="modal-body">
<p>
<strong>Hey! Please authenticate via GitHub to use this website.</strong>
<br/>
<br/>
Non-authenticated requests to the GitHub API are limited to 60 per hour (see the bottom right corner),<br/>
please click the button below to authenticate yourself for up to 5,000 requests per hour.
<br/>
<br/>
<span class="text-muted">(This isn't required, but you'll run into problems when browsing a lot of files)</span>
<br/>
</p>
<div class="text-center">
<a href="https://auth.mcasset.cloud/github/index.php" class="btn btn-success">Authenticate via GitHub</a>
</div>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha256-cCueBR6CsyA4/9szpPfrX3s49M9vUU5BgtiJj06wt/s=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js" integrity="sha384-V6/dyDFv85/V/Ktq3ez5B80/c9ZY7jV9c/319rqwNOz3h9CIPdd2Eve0UQBYMMr/" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-route.js" integrity="sha384-k+Qp/8rZxoiiYGVjOBiZwkEp5yv6clgl2EmwNaE1oUMlfmEYgCWazxf4CyxfZiWG" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.0/angular-cookies.min.js" integrity="sha384-4Rqc4WCYcTgQGo7N/eJANj8VFLYiS0J/XRW6ThAPed/9YJmlNO7iD+ZdbeKi1Eqx" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ng-meta/1.0.3/ngMeta.min.js"></script>
<script async src="https://pageref.inventive.workers.dev/script.js"></script>
<script src="script.js"></script>
</body>
</html>