v1.1.1; snowfall fix; other fixes

This commit is contained in:
2020-12-26 21:47:42 +03:00
parent a8f62159c7
commit dda2d5ecf7
12 changed files with 10 additions and 18 deletions
+2 -5
View File
@@ -10,12 +10,9 @@
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="Unmei">
<meta name="application-name" content="Unmei">
<meta name="theme-color" content="#0b0b1a">
<meta name="theme-color" content="#0b0b0b">
<link rel="apple-touch-icon" sizes="180x180" href="/static/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/static/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/static/icons/favicon-16x16.png">
<link rel="shortcut icon" href="/static/icons/favicon.ico">
<link sizes="512x512" href="/favicon.png">
<link rel="manifest" href="/manifest.json">
</head>
<body>
+4 -8
View File
@@ -2,16 +2,12 @@
"short_name": "Unmei",
"name": "Unmei",
"icons": [{
"src": "/static/icons/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
}, {
"src": "/static/icons/android-chrome-512x512.png",
"src": "favicon.png",
"sizes": "512x512",
"type": "image/png"
}],
"display": "fullscreen",
"start_url": "/",
"theme_color": "#0b0b1a",
"background_color": "#121222"
}
"theme_color": "#0b0b0b",
"background_color": "#121212"
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 402 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

+1 -1
View File
@@ -53,6 +53,6 @@ const TranslateExitStatus: { [id: string]: string } = {
}
export const getVersion = () => get<VersionResponse>('version');
export const version = '1.0';
export const version = '1.1';
export { get, post, put, del, TranslateStatus, TranslatePlatform, TranslateExitStatus };
+1 -2
View File
@@ -80,7 +80,6 @@ class App extends React.Component<Props, State> {
if(hasPermission(user, 'mobile_debug'))
eruda.init();
}).catch((err: ApiError) => {
console.log(err)
if(err.code !== 3 && err.text)
console.error(err.text);
});
@@ -113,7 +112,7 @@ class App extends React.Component<Props, State> {
return (
<>
{snowfall.snowfallStatus && (
<Snowfall color={'white'} snowflakeCount={snowfall.snowflakeCount} style={{ zIndex: 1000 }}/>
<Snowfall color={'white'} snowflakeCount={snowfall.snowflakeCount} style={{ zIndex: 1000, position: "fixed" }}/>
)}
<Navbar/>
<div className={'Container'}>
+2 -2
View File
@@ -80,7 +80,6 @@ class User extends React.Component<Props, State> {
const style: CSSProperties = !user.is_activated ? { marginTop: '1rem' } : {};
const userNameStyle: CSSProperties = JSON.parse(localStorage.getItem('color-name') || 'false') && user.group.id !== 0 ? { color: user.group.color } : {};
console.log(userNameStyle, localStorage.getItem('color-name'));
return (
<div className={'User'}>
@@ -114,7 +113,8 @@ class User extends React.Component<Props, State> {
{user.group.name}
</div>
</div>
</div>) : (
</div>
) : (
<div className={'User__Info_Main'}>
<div className="User__Info_Avatar"
style={{ backgroundImage: `url(${user.avatar}?s=96&t=${new Date().getTime()})` }}/>