gzip, exit tutorial auto on mobile

This commit is contained in:
ntr 2019-11-05 16:39:31 +11:00
parent 74a6e70c37
commit 990803583c
6 changed files with 29 additions and 9 deletions

View File

@ -4,9 +4,11 @@
*PRODUCTION* *PRODUCTION*
* can't reset password without knowing password =\ * can't reset password without knowing password =\
* ws gzip encoding
* mobile * mobile
- force to landscape view and try make everything fit - force to landscape view and try make everything fit
OR OR
- 2 pages vbox / equip - 2 pages vbox / equip
- vbox page as current with equip button at bottom - vbox page as current with equip button at bottom
@ -28,12 +30,12 @@
* combo rework * combo rework
- reduce number of items for creating t2/t3 items from 3 -> 2 - reduce number of items for creating t2/t3 items from 3 -> 2
- add lost complexity by adding skill spec items - add lost complexity by adding skill spec items
- Created by combining a skill with corresponding spec - Created by combining a skill with corresponding spec
e.g. e.g.
- Strike + PowerRR -> StrikePower (Will be the power symbol with strike text under) - Strike + PowerRR -> StrikePower (Will be the power symbol with strike text under)
- Construct does Y% more damage with Strike - Construct does Y% more damage with Strike
- Strike + SpeedRR -> StrikeSpeed (strike has Y% more speed) - Strike + SpeedRR -> StrikeSpeed (strike has Y% more speed)
- Strike + LifeRR -> StrikeLife (Strike recharges X% of damage as red life) - Strike + LifeRR -> StrikeLife (Strike recharges X% of damage as red life)
* move item from one construct to another * move item from one construct to another

View File

@ -15,6 +15,8 @@
<link href="https://fonts.googleapis.com/css?family=Jura" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Jura" rel="stylesheet">
<link rel="stylesheet" href="assets/styles/normalize.css"> <link rel="stylesheet" href="assets/styles/normalize.css">
<link rel="stylesheet" href="assets/styles/skeleton.css"> <link rel="stylesheet" href="assets/styles/skeleton.css">
<link rel="icon" sizes="512x512" href="assets/icons/mnml.png">
<link rel="apple-touch-icon" href="assets/icons/mnml.png">
</head> </head>
</head> </head>
<body> <body>

View File

@ -15,7 +15,7 @@
} }
], ],
"start_url": "/index.html", "start_url": "/index.html",
"display": "fullscreen", "display": "standalone",
"orientation": "landscape", "orientation": "landscape",
"theme_color": "#000000", "theme_color": "#000000",
"background_color": "#000000" "background_color": "#000000"

View File

@ -199,13 +199,16 @@ function tutorialStage(tutorial, ws, clearTutorial, instance) {
} }
if (tutorial === 8) { if (tutorial === 8) {
if (window.innerWidth < 1000) {
return exit();
}
return ( return (
<div> <div>
<h2>Tutorial</h2> <h2>Tutorial</h2>
<p>You've completed the tutorial! Try to create more skill and spec combinations. </p> <p>You've completed the tutorial! Try to create more skill and spec combinations. </p>
<p>You can unequip skills and specs back into the inventory by double clicking. <br /> <p>You can unequip skills and specs back into the inventory by double clicking. <br />
Reclaim can be used to refund the cost of items in your inventory. </p> Reclaim can be used to refund the cost of items in your inventory. </p>
<p>Click the <b>EXIT TUTORIAL</b> button to replace this section with more information.</p>
</div> </div>
); );
} }
@ -213,10 +216,11 @@ function tutorialStage(tutorial, ws, clearTutorial, instance) {
}; };
const classes = tutorial === 8 ? 'focus' : ''; const classes = tutorial === 8 ? 'focus' : '';
const text = tutorial === 8 ? 'Continue' : 'Close Tutorial'
const exitTutorial = <button const exitTutorial = <button
class={classes} class={classes}
onClick={e => e.stopPropagation()} onClick={e => e.stopPropagation()}
onMouseDown={exit}> Exit Tutorial </button>; onMouseDown={exit}> {text} </button>;
return ( return (
<div class='tutorial'> <div class='tutorial'>

View File

@ -15,6 +15,12 @@ map $http_upgrade $connection_upgrade {
server { server {
server_name mnml.gg; server_name mnml.gg;
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_types text/plain text/css text/xml application/json application/javascript application/xml+rss application/atom+xml image/svg+xml;
location / { location / {
root /var/lib/mnml/public/current; root /var/lib/mnml/public/current;
index index.html; index index.html;

View File

@ -15,8 +15,14 @@ map $http_upgrade $connection_upgrade {
server { server {
server_name sixtysix.pro; server_name sixtysix.pro;
auth_basic "who dis"; gzip on;
auth_basic_user_file /etc/mnml/htpasswd.users; gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_types text/plain text/css text/xml application/json application/javascript application/xml+rss application/atom+xml image/svg+xml;
# auth_basic "who dis";
# auth_basic_user_file /etc/mnml/htpasswd.users;
location / { location / {
root /var/lib/mnml/public/current; root /var/lib/mnml/public/current;