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-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="Unmei"> <meta name="apple-mobile-web-app-title" content="Unmei">
<meta name="application-name" 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 sizes="512x512" href="/favicon.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 rel="manifest" href="/manifest.json"> <link rel="manifest" href="/manifest.json">
</head> </head>
<body> <body>
+3 -7
View File
@@ -2,16 +2,12 @@
"short_name": "Unmei", "short_name": "Unmei",
"name": "Unmei", "name": "Unmei",
"icons": [{ "icons": [{
"src": "/static/icons/android-chrome-192x192.png", "src": "favicon.png",
"sizes": "192x192",
"type": "image/png"
}, {
"src": "/static/icons/android-chrome-512x512.png",
"sizes": "512x512", "sizes": "512x512",
"type": "image/png" "type": "image/png"
}], }],
"display": "fullscreen", "display": "fullscreen",
"start_url": "/", "start_url": "/",
"theme_color": "#0b0b1a", "theme_color": "#0b0b0b",
"background_color": "#121222" "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 getVersion = () => get<VersionResponse>('version');
export const version = '1.0'; export const version = '1.1';
export { get, post, put, del, TranslateStatus, TranslatePlatform, TranslateExitStatus }; 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')) if(hasPermission(user, 'mobile_debug'))
eruda.init(); eruda.init();
}).catch((err: ApiError) => { }).catch((err: ApiError) => {
console.log(err)
if(err.code !== 3 && err.text) if(err.code !== 3 && err.text)
console.error(err.text); console.error(err.text);
}); });
@@ -113,7 +112,7 @@ class App extends React.Component<Props, State> {
return ( return (
<> <>
{snowfall.snowfallStatus && ( {snowfall.snowfallStatus && (
<Snowfall color={'white'} snowflakeCount={snowfall.snowflakeCount} style={{ zIndex: 1000 }}/> <Snowfall color={'white'} snowflakeCount={snowfall.snowflakeCount} style={{ zIndex: 1000, position: "fixed" }}/>
)} )}
<Navbar/> <Navbar/>
<div className={'Container'}> <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 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 } : {}; 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 ( return (
<div className={'User'}> <div className={'User'}>
@@ -114,7 +113,8 @@ class User extends React.Component<Props, State> {
{user.group.name} {user.group.name}
</div> </div>
</div> </div>
</div>) : ( </div>
) : (
<div className={'User__Info_Main'}> <div className={'User__Info_Main'}>
<div className="User__Info_Avatar" <div className="User__Info_Avatar"
style={{ backgroundImage: `url(${user.avatar}?s=96&t=${new Date().getTime()})` }}/> style={{ backgroundImage: `url(${user.avatar}?s=96&t=${new Date().getTime()})` }}/>