Skip to content

Commit

Permalink
Release 0.8.2
Browse files Browse the repository at this point in the history
- Quick fix chrome view
- fix discovery on mobile
  • Loading branch information
FelixGail authored Oct 19, 2020
2 parents 99afd7b + 807a668 commit 2d2e8fe
Show file tree
Hide file tree
Showing 5 changed files with 391 additions and 275 deletions.
34 changes: 18 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,44 @@
{
"name": "musicbot-web",
"author": "Felix Gail <felix.clemens.gail@gmail.com>",
"version": "0.8.1",
"version": "0.8.2",
"private": true,
"license": "MIT",
"dependencies": {
"@ant-design/icons": "^4.0.5",
"@ant-design/icons": "^4.2.2",
"@types/deep-equal": "^1.0.1",
"@types/jest": "^26.0.3",
"@types/jest": "^26.0.7",
"@types/moment-duration-format": "^2.2.2",
"@types/node": "^14.0.14",
"@types/react": "^16.9.41",
"@types/node": "^14.11.8",
"@types/react": "^16.9.52",
"@types/react-dom": "^16.9.8",
"@types/react-router-dom": "^5.1.5",
"@types/styled-components": "^5.1.1",
"@types/uuid": "^7.0.0",
"@types/uuid": "^8.3.0",
"antd": "^4.1.0",
"axios": "^0.19.0",
"babel-plugin-import": "^1.12.1",
"customize-cra": "^0.9.1",
"deep-equal": "^2.0.1",
"dexie": "^3.0.1",
"http-proxy-middleware": "^1.0.0",
"customize-cra": "^1.0.0",
"deep-equal": "^2.0.3",
"dexie": "^3.0.2",
"http-proxy-middleware": "^1.0.5",
"icbint": "^0.1.7",
"moment-duration-format": "^2.3.2",
"node-gyp": "7.0.0",
"react": "^16.13.1",
"react-app-rewired": "^2.1.3",
"react-is": "^16.13.1",
"react-app-rewired": "^2.1.6",
"react-dom": "^16.13.1",
"react-request-hook": "^2.1.1",
"react-router-dom": "^5.2.0",
"react-scripts": "3.4.1",
"react-svg": "^11.0.29",
"react-svg": "^11.0.43",
"react-swipeable": "^5.5.1",
"react-use": "^15.3.2",
"styled-components": "^5.0.1",
"typescript": "^3.8.2",
"uuid": "^8.2.0"
"styled-components": "^5.2.0",
"typescript": "^3.9.7",
"uuid": "^8.2.0",
"dayjs": "^1.9.3"
},
"scripts": {
"start": "react-app-rewired start",
Expand All @@ -52,7 +54,7 @@
"development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ]
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^2.21.0",
"@typescript-eslint/eslint-plugin": "^4.0.0",
"@typescript-eslint/parser": "^3.5.0",
"eslint": "^6.8.0",
"eslint-config-google": "^0.14.0",
Expand Down
4 changes: 2 additions & 2 deletions src/components/login/setup/FetchInstances.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const FetchInstances = () => {
const instances = useResourceReload(
api.getInstances,
[],
20000,
10000,
true,
configuration.registryUrl
);
Expand All @@ -96,7 +96,7 @@ export const FetchInstances = () => {
<ClockCircleOutlined /> {formatDuration(duration(Date.now() - item.updated))} ago
</div>}
>
<List.Item.Meta title={item.name} description={`${item.domain}:${item.port}`} />
<List.Item.Meta title={item.name} />
</StyledInstanceListItem>)
, [elementCallback]);

Expand Down
6 changes: 2 additions & 4 deletions src/components/playing/StyledLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ export const StyledContent = styled(Layout.Content)`

export const StyledLayout = styled(Layout)`
display: flex;
min-height: 100vh !important;
min-height: -webkit-fill-available !important;
min-height: 100vh;
max-height: 100vh !important;
max-height: -webkit-fill-available !important;
max-height: 100vh;
.ant-layout-footer {
padding: 0;
Expand Down
8 changes: 4 additions & 4 deletions src/core/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import Axios from 'axios';
import api from './api/model';

export async function isInstanceAvailable(instance: BotInstance) {
return Axios.get<VersionInfo>(`https://${instance.domain}:${instance.port}/version`, api.getVersion()).then(
(value) => true,
(reason) => false
);
return Axios.get<VersionInfo>(`https://${instance.domain}:${instance.port}/version`, {
...api.getVersion(),
timeout: 1000
}).then((value) => true, (reason) => false);
}

const re = /^(https?:\/\/)?([^\s:]+)(:([1-9][0-9]*))?$/;
Expand Down
Loading

0 comments on commit 2d2e8fe

Please sign in to comment.