Skip to content

Commit

Permalink
sample pages improvement (close #757, #758) (#829)
Browse files Browse the repository at this point in the history
* chore: set server address

* chore: add bce-python-sdk to requirements

* fix: limit max length of runs in chart tooltip table

* feat: add keyboard shortcuts in sample page

* feat: add image preview in image sample page
  • Loading branch information
PeterPanZH authored Sep 24, 2020
1 parent b8590f9 commit e50c15b
Show file tree
Hide file tree
Showing 19 changed files with 751 additions and 258 deletions.
3 changes: 3 additions & 0 deletions frontend/packages/core/public/icons/chevron-up.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions frontend/packages/core/public/icons/close.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions frontend/packages/core/public/icons/minus-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions frontend/packages/core/public/icons/plus-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions frontend/packages/core/public/icons/restore-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/packages/core/public/locales/en/sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"sample-rate": "Sample Rate",
"show-actual-size": "Show Actual Image Size",
"step": "Step",
"step-tip": "You can change step by pressing up & donw on your keyboard",
"text": "text"
}
1 change: 1 addition & 0 deletions frontend/packages/core/public/locales/zh/sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"sample-rate": "采样率",
"show-actual-size": "按真实大小展示",
"step": "Step",
"step-tip": "您还可以通过键盘 ↑ ↓ 键,快速调节step哦~",
"text": "文本"
}
4 changes: 2 additions & 2 deletions frontend/packages/core/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, {FunctionComponent, Suspense, useCallback, useEffect, useMemo, useState} from 'react';
import {Redirect, Route, BrowserRouter as Router, Switch, useLocation} from 'react-router-dom';
import {THEME, matchMedia} from '~/utils/theme';
import {headerHeight, position, size} from '~/utils/style';
import {headerHeight, position, size, zIndexes} from '~/utils/style';

import BodyLoading from '~/components/BodyLoading';
import ErrorBoundary from '~/components/ErrorBoundary';
Expand All @@ -27,7 +27,7 @@ const Main = styled.main`
`;

const Header = styled.header`
z-index: 10000;
z-index: ${zIndexes.header};
${size(headerHeight, '100%')}
${position('fixed', 0, 0, null, 0)}
Expand Down
Loading

0 comments on commit e50c15b

Please sign in to comment.