mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
Minor fixes
This commit is contained in:
parent
326455a728
commit
e3bf86a6cb
@ -62,7 +62,7 @@
|
|||||||
|
|
||||||
> .puzzles {
|
> .puzzles {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fit, D(150px));
|
grid-template-columns: repeat(auto-fit, minmax(D(150px), 1fr));
|
||||||
@include S(grid-auto-rows, 120px);
|
@include S(grid-auto-rows, 120px);
|
||||||
@include S(grid-gap, 3px);
|
@include S(grid-gap, 3px);
|
||||||
@include S(margin-top, 10px);
|
@include S(margin-top, 10px);
|
||||||
@ -149,8 +149,6 @@
|
|||||||
align-self: end;
|
align-self: end;
|
||||||
@include S(height, 14px);
|
@include S(height, 14px);
|
||||||
|
|
||||||
@include DarkThemeInvert;
|
|
||||||
|
|
||||||
> .downloads {
|
> .downloads {
|
||||||
@include SuperSmallText;
|
@include SuperSmallText;
|
||||||
color: #000;
|
color: #000;
|
||||||
@ -162,6 +160,7 @@
|
|||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
@include DarkThemeInvert;
|
||||||
|
|
||||||
& {
|
& {
|
||||||
/* @load-async */
|
/* @load-async */
|
||||||
@ -179,6 +178,7 @@
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@include S(padding-left, 14px);
|
@include S(padding-left, 14px);
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
|
@include DarkThemeInvert;
|
||||||
|
|
||||||
& {
|
& {
|
||||||
/* @load-async */
|
/* @load-async */
|
||||||
|
@ -23,7 +23,7 @@ export class ClientAPI {
|
|||||||
this.token = null;
|
this.token = null;
|
||||||
|
|
||||||
this.syncToken = window.localStorage.getItem("tmp.syncToken");
|
this.syncToken = window.localStorage.getItem("tmp.syncToken");
|
||||||
if (!this.syncToken || G_IS_DEV) {
|
if (!this.syncToken) {
|
||||||
this.syncToken = rusha
|
this.syncToken = rusha
|
||||||
.createHash()
|
.createHash()
|
||||||
.update(new Date().getTime() + "=" + Math.random())
|
.update(new Date().getTime() + "=" + Math.random())
|
||||||
@ -78,10 +78,10 @@ export class ClientAPI {
|
|||||||
return res;
|
return res;
|
||||||
})
|
})
|
||||||
.then(res => res.json()),
|
.then(res => res.json()),
|
||||||
new Promise(resolve => setTimeout(resolve, 5000)),
|
new Promise((resolve, reject) => setTimeout(() => reject("timeout"), 15000)),
|
||||||
])
|
])
|
||||||
.then(data => {
|
.then(data => {
|
||||||
if (data.error) {
|
if (data && data.error) {
|
||||||
logger.warn("Got error from api:", data);
|
logger.warn("Got error from api:", data);
|
||||||
throw T.backendErrors[data.error] || data.error;
|
throw T.backendErrors[data.error] || data.error;
|
||||||
}
|
}
|
||||||
|
@ -1376,6 +1376,7 @@ backendErrors:
|
|||||||
can-not-report-your-own-puzzle: You can not report your own puzzle.
|
can-not-report-your-own-puzzle: You can not report your own puzzle.
|
||||||
bad-payload: The request contains invalid data.
|
bad-payload: The request contains invalid data.
|
||||||
bad-building-placement: Your puzzle contains invalid placed buildings.
|
bad-building-placement: Your puzzle contains invalid placed buildings.
|
||||||
|
timeout: The request timed out.
|
||||||
|
|
||||||
tips:
|
tips:
|
||||||
- The hub will accept any input, not just the current shape!
|
- The hub will accept any input, not just the current shape!
|
||||||
|
Loading…
Reference in New Issue
Block a user