Skip to content

Commit

Permalink
deploy: c2ff35b
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Mar 18, 2024
0 parents commit 44c56c3
Show file tree
Hide file tree
Showing 642 changed files with 1,939,693 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
1 change: 1 addition & 0 deletions blocksStates/1.10.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions blocksStates/1.11.2.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions blocksStates/1.12.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions blocksStates/1.13.2.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions blocksStates/1.13.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions blocksStates/1.14.4.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions blocksStates/1.15.2.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions blocksStates/1.16.1.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions blocksStates/1.16.4.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions blocksStates/1.17.1.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions blocksStates/1.18.1.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions blocksStates/1.19.1.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions blocksStates/1.20.2.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions blocksStates/1.8.8.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions blocksStates/1.9.json

Large diffs are not rendered by default.

Binary file added button_click.mp3
Binary file not shown.
7 changes: 7 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"version": 1,
"defaultHost": "<from-proxy>",
"defaultProxy": "proxy.mcraft.fun",
"defaultVersion": "1.18.2",
"mapsProvider": "https://maps.mcraft.fun/"
}
Binary file added extra-textures/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 extra-textures/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 extra-textures/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 extra-textures/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 extra-textures/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 extra-textures/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.
Binary file added extra-textures/edition.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 extra-textures/gui.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 extra-textures/loading.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 favicon.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 generic_91.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 generic_92.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 generic_93.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 generic_94.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 generic_95.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions index.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions index.css.map

Large diffs are not rendered by default.

106 changes: 106 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
<!DOCTYPE html>
<html>
<head>
<script>
window.startLoad = Date.now()
</script>
<!-- // #region initial loader -->
<script async>
const loadingDiv = `
<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);" class="subtitle">A true Minecraft client in your browser!</div>
</div>
</div>
`
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))
</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="stylesheet" href="index.css">
<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="2023-09-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">
</head>
<body>
<div id="react-root"></div>
<div id="ui-root">
<pmui-hud id="hud" style="display: none;"></pmui-hud>
<pmui-pausescreen id="pause-screen" style="display: none;"></pmui-pausescreen>
<pmui-playscreen id="play-screen" style="display: none;"></pmui-playscreen>
<pmui-notification></pmui-notification>
<context-menu id="context-menu"></context-menu>
</div>
<script src="index.js"></script>
</body>
</html>
9,717 changes: 9,717 additions & 0 deletions index.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

Binary file added invsprite.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 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": "512x512"
}
],
"background_color": "#349474",
"theme_color": "#349474",
"lang": "en-US",
"orientation": "landscape",
"display": "standalone"
}
Loading

0 comments on commit 44c56c3

Please sign in to comment.