Initial commit
@@ -0,0 +1,13 @@
|
||||
import react from '@vitejs/plugin-react';
|
||||
import { resolve } from 'path';
|
||||
import { defineConfig } from 'vite';
|
||||
import tsconfigPaths from 'vite-tsconfig-paths';
|
||||
const nitroRenderer = resolve(__dirname, '..', 'nitro-renderer');
|
||||
export default defineConfig({
|
||||
plugins: [ react(), tsconfigPaths() ],
|
||||
server: { fs: { allow: [resolve(__dirname), nitroRenderer] }, proxy: { '/api': { target: 'http://localhost:3000', changeOrigin: true } } },
|
||||
resolve: { alias: { '@': resolve(__dirname, 'src'), '~': resolve(__dirname, 'node_modules'), '@nitrots/nitro-renderer': nitroRenderer + '/index.js', '@nitrots/api': nitroRenderer + '/packages/api/src/index.ts', '@nitrots/assets': nitroRenderer + '/packages/assets/src/index.ts', '@nitrots/avatar': nitroRenderer + '/packages/avatar/src/index.ts', '@nitrots/camera': nitroRenderer + '/packages/camera/src/index.ts', '@nitrots/communication': nitroRenderer + '/packages/communication/src/index.ts', '@nitrots/configuration': nitroRenderer + '/packages/configuration/src/index.ts', '@nitrots/events': nitroRenderer + '/packages/events/src/index.ts', '@nitrots/localization': nitroRenderer + '/packages/localization/src/index.ts', '@nitrots/room': nitroRenderer + '/packages/room/src/index.ts', '@nitrots/session': nitroRenderer + '/packages/session/src/index.ts', '@nitrots/sound': nitroRenderer + '/packages/sound/src/index.ts', '@nitrots/utils/src': nitroRenderer + '/packages/utils/src', '@nitrots/utils': nitroRenderer + '/packages/utils/src/index.ts', 'pixi.js': nitroRenderer + '/node_modules/pixi.js', 'pixi-filters': nitroRenderer + '/node_modules/pixi-filters', 'howler': nitroRenderer + '/node_modules/howler' } },
|
||||
build: { outDir: 'dist', rollupOptions: { input: { main: resolve(__dirname, 'index.html'), 'nitro-renderer': nitroRenderer + '/index.js' } } }
|
||||
});
|
||||
chmod 644 "\$CLIENT_PATH/vite.config.mjs" 2>/dev/null || true
|
||||
chown www-data:www-data "\$CLIENT_PATH/vite.config.mjs" 2>/dev/null || true
|
||||
@@ -0,0 +1,63 @@
|
||||
<IfModule mod_rewrite.c>
|
||||
<IfModule mod_negotiation.c>
|
||||
Options -MultiViews -Indexes
|
||||
</IfModule>
|
||||
|
||||
RewriteEngine On
|
||||
|
||||
# Handle Authorization Header
|
||||
RewriteCond %{HTTP:Authorization} .
|
||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP_AUTHORIZATION}]
|
||||
|
||||
# Redirect Trailing Slashes If Not A Folder...
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_URI} (.+)/$
|
||||
RewriteRule ^ %1 [L,R=301]
|
||||
|
||||
# Send Requests To Front Controller...
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^ index.php [L]
|
||||
</IfModule>
|
||||
|
||||
# Browser Caching - Improve performance for returning visitors
|
||||
<IfModule mod_expires.c>
|
||||
ExpiresActive On
|
||||
ExpiresByType image/jpg "access plus 1 year"
|
||||
ExpiresByType image/jpeg "access plus 1 year"
|
||||
ExpiresByType image/gif "access plus 1 year"
|
||||
ExpiresByType image/png "access plus 1 year"
|
||||
ExpiresByType image/webp "access plus 1 year"
|
||||
ExpiresByType image/svg+xml "access plus 1 year"
|
||||
ExpiresByType image/x-icon "access plus 1 year"
|
||||
ExpiresByType video/mp4 "access plus 1 year"
|
||||
ExpiresByType video/mpeg "access plus 1 year"
|
||||
ExpiresByType audio/mpeg "access plus 1 year"
|
||||
ExpiresByType audio/wav "access plus 1 year"
|
||||
ExpiresByType application/pdf "access plus 1 month"
|
||||
ExpiresByType text/css "access plus 1 month"
|
||||
ExpiresByType application/javascript "access plus 1 month"
|
||||
ExpiresByType application/json "access plus 0 seconds"
|
||||
</IfModule>
|
||||
|
||||
# Gzip Compression - Reduce file sizes
|
||||
<IfModule mod_deflate.c>
|
||||
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/json application/xml
|
||||
</IfModule>
|
||||
|
||||
RewriteEngine On
|
||||
|
||||
# Handle Authorization Header
|
||||
RewriteCond %{HTTP:Authorization} .
|
||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
||||
|
||||
# Redirect Trailing Slashes If Not A Folder...
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_URI} (.+)/$
|
||||
RewriteRule ^ %1 [L,R=301]
|
||||
|
||||
# Send Requests To Front Controller...
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^ index.php [L]
|
||||
</IfModule>
|
||||
@@ -0,0 +1,223 @@
|
||||
#flash-container,
|
||||
body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #000;
|
||||
}
|
||||
|
||||
#client-ui {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#flash-container {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.interstitial,
|
||||
Rabbo-client-reload {
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
Rabbo-client-reload {
|
||||
left: 0;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
background: rgba(0, 0, 0, 0.9);
|
||||
display: flex;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
z-index: 620;
|
||||
}
|
||||
|
||||
.client-reload__button {
|
||||
box-shadow: 0 3px 0 1px rgba(0, 0, 0, 0.3);
|
||||
display: inline-block;
|
||||
line-height: 1.2;
|
||||
text-align: center;
|
||||
background-color: #00813e;
|
||||
color: #fff;
|
||||
font-size: 16px;
|
||||
border-radius: 5px;
|
||||
margin-bottom: 4px;
|
||||
text-transform: uppercase;
|
||||
border-color: #8eda55;
|
||||
border-style: solid;
|
||||
border-width: 2px;
|
||||
padding: 12px 24px;
|
||||
}
|
||||
|
||||
.client-reload__button:hover {
|
||||
background-color: #00ab54;
|
||||
border-color: #b9f373;
|
||||
}
|
||||
|
||||
.client-reload__button:active,
|
||||
.client-reload__button:disabled {
|
||||
background-color: #006743;
|
||||
border-color: #5abb37;
|
||||
}
|
||||
|
||||
.client-reload__button:active,
|
||||
.client-reload__button:hover {
|
||||
border-bottom-style: solid;
|
||||
border-bottom-width: 2px;
|
||||
}
|
||||
|
||||
.client-reload__button:active {
|
||||
box-shadow: 0 1px 0 1px rgba(0, 0, 0, 0.3);
|
||||
transform: translate(0, 2px);
|
||||
}
|
||||
|
||||
.client-reload__button:disabled,
|
||||
.client__buttons .client__close:disabled,
|
||||
.client__buttons button:disabled,
|
||||
.discussions__reply:disabled,
|
||||
.register-banner__button:disabled {
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
.text {
|
||||
text-transform: uppercase;
|
||||
font-size: 36px;
|
||||
color: #fff;
|
||||
font-family: "Ubuntu Condensed", "Trebuchet MS", "Lucida Grande",
|
||||
"Lucida Sans Unicode", "Lucida Sans", Tahoma, sans-serif;
|
||||
font-weight: 400;
|
||||
line-height: 1.2;
|
||||
margin: 0.6em 0;
|
||||
}
|
||||
|
||||
#adsbanner120,
|
||||
#flash-container {
|
||||
position: absolute;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#adsbanner120 {
|
||||
color: #000;
|
||||
width: 173px;
|
||||
font-family: "Exo 2", sans-serif;
|
||||
font-size: 15px;
|
||||
z-index: 70000;
|
||||
top: 47px;
|
||||
right: 5px;
|
||||
display: block;
|
||||
min-height: 20px;
|
||||
background-position: 0 214px;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.hb-container {
|
||||
max-width: 600px;
|
||||
background-color: #111524;
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
color: #96b9ee;
|
||||
display: block;
|
||||
font-family: Ubuntu, "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode",
|
||||
"Lucida Sans", Tahoma, sans-serif;
|
||||
margin: 80px auto 0;
|
||||
padding: 12px 24px;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-weight: 400;
|
||||
line-height: 1.2;
|
||||
text-transform: uppercase;
|
||||
color: #fff;
|
||||
margin: 0.6em 0;
|
||||
}
|
||||
|
||||
.hb-container p {
|
||||
font-size: 16px;
|
||||
margin: 0.75em 0;
|
||||
}
|
||||
|
||||
.hb-container ul {
|
||||
list-style-type: disc;
|
||||
padding-left: 26px;
|
||||
margin: 12px 0;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
outline: 0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.frank {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.hb-button_nav {
|
||||
position: fixed;
|
||||
top: 15px;
|
||||
left: 15px;
|
||||
}
|
||||
|
||||
.hb-button_nav .button-left {
|
||||
background-color: #ffb900;
|
||||
border: 2px solid #ffea00;
|
||||
font-size: 12px;
|
||||
border-radius: 5px 0 0 5px;
|
||||
display: inline-block;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.hb-button_nav .button-center {
|
||||
background-color: #ffb900;
|
||||
border: 2px solid #ffea00;
|
||||
font-size: 12px;
|
||||
border-radius: 0;
|
||||
display: inline-block;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.hb-button_nav .button-right {
|
||||
background-color: #ffb900;
|
||||
border: 2px solid #ffea00;
|
||||
font-size: 12px;
|
||||
border-radius: 0 5px 5px 0;
|
||||
display: inline-block;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.hb-button_nav .button-left:hover,
|
||||
.hb-button_nav .button-center:hover,
|
||||
.hb-button_nav .button-right:hover {
|
||||
background-color: #ffd400;
|
||||
border: 2px solid #fffd70;
|
||||
}
|
||||
|
||||
.hb-button_nav .button-left img,
|
||||
.hb-button_nav .button-center img,
|
||||
.hb-button_nav .button-right img {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.hb-button_nav .button-left a,
|
||||
.hb-button_nav .button-center a,
|
||||
.hb-button_nav .button-right a {
|
||||
color: #000;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
.tippy-box[data-animation=scale][data-placement^=top]{transform-origin:bottom}.tippy-box[data-animation=scale][data-placement^=bottom]{transform-origin:top}.tippy-box[data-animation=scale][data-placement^=left]{transform-origin:right}.tippy-box[data-animation=scale][data-placement^=right]{transform-origin:left}.tippy-box[data-animation=scale][data-state=hidden]{transform:scale(.5);opacity:0}
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 110 KiB |
|
After Width: | Height: | Size: 110 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 100 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 63 KiB |
|
After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 85 KiB |
|
After Width: | Height: | Size: 104 KiB |
|
After Width: | Height: | Size: 88 KiB |
|
After Width: | Height: | Size: 96 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 50 KiB |
|
After Width: | Height: | Size: 142 KiB |
|
After Width: | Height: | Size: 48 KiB |
|
After Width: | Height: | Size: 156 KiB |
|
After Width: | Height: | Size: 150 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 199 KiB |
|
After Width: | Height: | Size: 208 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 100 KiB |
|
After Width: | Height: | Size: 63 KiB |
|
After Width: | Height: | Size: 102 KiB |
|
After Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 98 KiB |
|
After Width: | Height: | Size: 103 KiB |
|
After Width: | Height: | Size: 277 KiB |
|
After Width: | Height: | Size: 190 KiB |
|
After Width: | Height: | Size: 267 KiB |
|
After Width: | Height: | Size: 210 KiB |
|
After Width: | Height: | Size: 56 KiB |
|
After Width: | Height: | Size: 71 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 90 KiB |
|
After Width: | Height: | Size: 57 KiB |
|
After Width: | Height: | Size: 87 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 101 KiB |
|
After Width: | Height: | Size: 138 KiB |
|
After Width: | Height: | Size: 145 KiB |
|
After Width: | Height: | Size: 97 KiB |
|
After Width: | Height: | Size: 94 KiB |
|
After Width: | Height: | Size: 244 KiB |
|
After Width: | Height: | Size: 70 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
After Width: | Height: | Size: 89 KiB |
|
After Width: | Height: | Size: 106 KiB |
|
After Width: | Height: | Size: 86 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 55 KiB |
|
After Width: | Height: | Size: 189 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
After Width: | Height: | Size: 74 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 98 KiB |
|
After Width: | Height: | Size: 77 KiB |
|
After Width: | Height: | Size: 71 KiB |
|
After Width: | Height: | Size: 122 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 98 KiB |
|
After Width: | Height: | Size: 134 KiB |
|
After Width: | Height: | Size: 93 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 101 KiB |
|
After Width: | Height: | Size: 183 KiB |
|
After Width: | Height: | Size: 111 KiB |
|
After Width: | Height: | Size: 63 KiB |
|
After Width: | Height: | Size: 156 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 57 KiB |
|
After Width: | Height: | Size: 7.1 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 74 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 46 KiB |