Skip to content

Commit

Permalink
deploy: 396c65b
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Sep 3, 2024
0 parents commit bc84b19
Show file tree
Hide file tree
Showing 863 changed files with 39,425 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
Binary file added background/panorama_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added background/panorama_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added background/panorama_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added background/panorama_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added background/panorama_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added background/panorama_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":1,"defaultHost":"<from-proxy>","defaultProxy":"proxy.mcraft.fun","mapsProvider":"https://maps.mcraft.fun/","promoteServers":[{"ip":"kaboom.pw","version":"1.18.2","description":"Chaos and destruction server. Free for everyone."},{"ip":"go.mineberry.org","version":"1.18.2","description":"One of the best servers here. Join now!"},{"ip":"sus.shhnowisnottheti.me","version":"1.18.2","description":"Creative, your own 'boxes' (islands)"}]}
Binary file added favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
108 changes: 108 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
<!DOCTYPE html>
<html>
<head>
<script>
window.startLoad = Date.now()
</script>
<!-- // #region initial loader -->
<script async>
const loadingDiv = /* html */ `
<div class="initial-loader" style="position: fixed;transition:opacity 0.2s;inset: 0;background:black;display: flex;justify-content: center;align-items: center;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', Arial, Helvetica, sans-serif;gap: 15px;" ontransitionend="this.remove()">
<div>
<img src="./loading-bg.jpg" alt="Prismarine Web Client" style="position:fixed;inset:0;width:100%;height:100%;z-index: -2;object-fit: cover;filter: blur(3px);">
<div style="position: fixed;inset: 0;z-index: -1;background-color: rgba(0, 0, 0, 0.8);"></div>
</div>
<div>
<div style="font-size: calc(var(--font-size) * 1.8);color: lightgray;" class="title">Loading...</div>
<div style="font-size: var(--font-size);color: rgb(176, 176, 176);margin-top: 3px;text-align: center" class="subtitle">A true Minecraft client in your browser!</div>
</div>
</div>
`
const insertLoadingDiv = () => {
const loadingDivElem = document.createElement('div')
loadingDivElem.innerHTML = loadingDiv
if (!window.pageLoaded) {
document.documentElement.appendChild(loadingDivElem)
}
// load error handling
const onError = (message) => {
console.log(message)
if (document.querySelector('.initial-loader') && document.querySelector('.initial-loader').querySelector('.title').textContent !== 'Error') {
document.querySelector('.initial-loader').querySelector('.title').textContent = 'Error'
document.querySelector('.initial-loader').querySelector('.subtitle').textContent = message
if (window.navigator.maxTouchPoints > 1) window.location.hash = '#dev' // show eruda
}
}
window.addEventListener('unhandledrejection', (e) => onError(e.reason))
window.addEventListener('error', (e) => onError(e.message))
}
insertLoadingDiv()
document.addEventListener('DOMContentLoaded', () => {
// move loading div to the end of body
const loadingDivElem = document.querySelector('.initial-loader');
const newContainer = document.body; // replace with your new container
if (loadingDivElem) newContainer.appendChild(loadingDivElem);
})
</script>
<script type="module" async>
const checkLoadEruda = () => {
if (window.location.hash === '#dev') {
// todo precache (check offline)?
import('https://cdn.skypack.dev/eruda').then(({ default: eruda }) => {
eruda.init()
})
}
}
checkLoadEruda()
window.addEventListener('hashchange', (e) => {
setTimeout(() => {
checkLoadEruda()
})
})
</script>
<style>
html {
background: black;
}
.initial-loader {
--font-size: 20px;
}
@media screen and (min-width: 550px) {
.initial-loader {
--font-size: 30px;
}
}
@media screen and (min-width: 950px) {
.initial-loader {
--font-size: 50px;
}
}
</style>
<!-- // #endregion -->
<!-- <script type="module">
window.loadPluginScript = async ({ pluginName, script }) => {
window.loadedPlugins[pluginName] = await import(script)
}
</script> -->
<title>Prismarine Web Client</title>
<link rel="favicon" href="favicon.png">
<link rel="icon" type="image/png" href="favicon.png" />
<link rel="canonical" href="https://mcraft.fun">
<meta name="description" content="Minecraft web client running in your browser">
<meta name="keywords" content="Play, Minecraft, Online, Web, Java, Server, Single player, Javascript, PrismarineJS, Voxel, WebGL, Three.js">
<meta name="date" content="2024-07-11" scheme="YYYY-MM-DD">
<meta name="language" content="English">
<meta name="theme-color" content="#349474">
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover'>
<meta property="og:title" content="Prismarine Web Client" />
<meta property="og:type" content="website" />
<meta property="og:image" content="favicon.png" />
<meta name="format-detection" content="telephone=no">
<link rel="manifest" href="manifest.json" crossorigin="use-credentials">
<meta charset="UTF-8"><script defer src="/static/js/lib-polyfill.4c3d4bb4.js"></script><script defer src="/static/js/lib-lodash.6ca29103.js"></script><script defer src="/static/js/lib-react.23d1c0e4.js"></script><script defer src="/static/js/965.579b3de8.js"></script><script defer src="/static/js/index.2007644b.js"></script><link href="/static/css/965.fa89bdfc.css" rel="stylesheet"><link href="/static/css/index.3165b69b.css" rel="stylesheet"></head>
<body>
<div id="react-root"></div>
<div id="ui-root"></div>
<!-- inject script -->
</body>
</html>
Binary file added loading-bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "Prismarine Web Client",
"short_name": "Prismarine Web Client",
"scope": "./",
"start_url": "./",
"icons": [
{
"src": "favicon.png",
"sizes": "720x720"
}
],
"background_color": "#349474",
"theme_color": "#349474",
"lang": "en-US",
"orientation": "landscape",
"display": "standalone"
}
217 changes: 217 additions & 0 deletions mesher.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions mesher.js.map

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions playground.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<title>Renderer Playground</title>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover'>
<style type="text/css">
html {
overflow: hidden;
background: black;
}

html, body {
height: 100%;

margin: 0;
padding: 0;
}

canvas {
height: 100%;
width: 100%;
font-size: 0;

margin: 0;
padding: 0;
}
@font-face {
font-family: mojangles;
src: url(../../../assets/mojangles.ttf);
}
</style>
</head>
<body>
<script type="text/javascript" src="playground.js"></script>
</body>
</html>
28,607 changes: 28,607 additions & 0 deletions playground.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions service-worker.js

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

1 change: 1 addition & 0 deletions service-worker.js.map

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

6 changes: 6 additions & 0 deletions sounds.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions static/css/965.fa89bdfc.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/965.fa89bdfc.css.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions static/css/index.3165b69b.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/index.3165b69b.css.map

Large diffs are not rendered by default.

Binary file added static/font/mojangles.88ac1c69.ttf
Binary file not shown.
Binary file added static/font/pixelart-icons-font.8e870108.ttf
Binary file not shown.
Binary file added static/image/blocksAtlasLatest.53f4efd6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/image/blocksAtlasLegacy.7e041ce0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/image/isles.91ea480d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/image/itemsAtlasLatest.e40a6e87.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6,620 changes: 6,620 additions & 0 deletions static/js/965.579b3de8.js

Large diffs are not rendered by default.

114 changes: 114 additions & 0 deletions static/js/965.579b3de8.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/

/*!

JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>

(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.

JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/

/*!
* RSA library for Node.js
*
* Copyright (c) 2014 rzcoder
* All Rights Reserved.
*
* License BSD
*/

/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <[email protected]> <http://feross.org>
* @license MIT
*/

/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/

/*!
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/

/*! MIT License. Copyright 2015-2018 Richard Moore <[email protected]>. See LICENSE.txt. */

/*! https://mths.be/punycode v1.4.1 by @mathias */

/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */

/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */

/**
* @license
* Copyright 2009 The Closure Library Authors
* Copyright 2020 Daniel Wirtz / The long.js Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/

/**
* @license QR Code generator library (TypeScript)
* Copyright (c) Project Nayuki.
* SPDX-License-Identifier: MIT
*/

/**
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license qrcode.react
* Copyright (c) Paul O'Shannessy
* SPDX-License-Identifier: ISC
*/

/**
* filesize
*
* @copyright 2023 Jason Mulligan <[email protected]>
* @license BSD-3-Clause
* @version 10.0.12
*/

/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
1 change: 1 addition & 0 deletions static/js/965.579b3de8.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/js/async/214.f6676c6b.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/js/async/85.8aac54b6.js

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions static/js/index.2007644b.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/js/index.2007644b.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions static/js/lib-lodash.6ca29103.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/js/lib-lodash.6ca29103.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions static/js/lib-polyfill.4c3d4bb4.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/js/lib-polyfill.4c3d4bb4.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions static/js/lib-react.23d1c0e4.js

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions static/js/lib-react.23d1c0e4.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
1 change: 1 addition & 0 deletions static/js/lib-react.23d1c0e4.js.map

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions storybook/assets/ArmorBar.stories-6057d874.js

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

Loading

0 comments on commit bc84b19

Please sign in to comment.