forked from jaegertracing/jaeger-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Ant Design instead of Semantic UI (jaegertracing#169)
* Shift top nav to ant.design Signed-off-by: Joe Farro <joef@uber.com> * Use the better string comparator Signed-off-by: Joe Farro <joef@uber.com> * Search uses Ant - flow, tests, cleanup are TODO Signed-off-by: Joe Farro <joef@uber.com> * Highlight currently active menu option Signed-off-by: Joe Farro <joef@uber.com> * Using Ant for all pages, flow and tests are TODO Signed-off-by: Joe Farro <joef@uber.com> * Fix bug with text ellipsis in FF Signed-off-by: Joe Farro <joef@uber.com> * Fix flow after moving to ant design Signed-off-by: Joe Farro <joef@uber.com> * Unit tests passing after shift to ant design Signed-off-by: Joe Farro <joef@uber.com> * Fix loss of focus on first change in search form Signed-off-by: Joe Farro <joef@uber.com> * Search page aesthetic tweaks Signed-off-by: Joe Farro <joef@uber.com> * Remove basscss and semantic-ui. Signed-off-by: Joe Farro <joef@uber.com> * Upgrade react-scripts to fix failing unit tests Signed-off-by: Joe Farro <joef@uber.com> * Only bundle icons that are used from react-icons Signed-off-by: Joe Farro <joef@uber.com> * Misc cleanup Signed-off-by: Joe Farro <joef@uber.com> * Fix search form error when deselecting a service Signed-off-by: Joe Farro <joef@uber.com> * Adjust the ant theme to the Jaeger teal color Signed-off-by: Joe Farro <joef@uber.com> * Swith to using a variant of basscss (u-basscss) Signed-off-by: Joe Farro <joef@uber.com> Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
- Loading branch information
Showing
91 changed files
with
3,489 additions
and
2,121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@primary-color: #199; | ||
|
||
@font-size-base: 14px; | ||
@text-color-dark: #e4e4e4; | ||
@text-color-secondary-dark: #fff; | ||
|
||
// Layout | ||
@layout-body-background :#fff; | ||
@layout-header-background : #404040; | ||
@layout-footer-background : @layout-body-background; | ||
@layout-header-height : 64px; | ||
@layout-header-padding : 0 50px; | ||
@layout-footer-padding : 24px 50px; | ||
@layout-sider-background : @layout-header-background; | ||
@layout-trigger-height : 48px; | ||
@layout-trigger-background : tint(@heading-color, 20%); | ||
@layout-trigger-color : #fff; | ||
@layout-zero-trigger-width : 36px; | ||
@layout-zero-trigger-height : 42px; | ||
|
||
@menu-dark-bg: #151515; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright (c) 2017 Uber Technologies, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
/* eslint-disable import/no-extraneous-dependencies */ | ||
|
||
const fs = require('fs'); | ||
const { injectBabelPlugin } = require('react-app-rewired'); | ||
const rewireLess = require('react-app-rewire-less'); | ||
const lessToJs = require('less-vars-to-js'); | ||
|
||
// Read the less file in as string | ||
const loadedVarOverrides = fs.readFileSync('config-overrides-ant-variables.less', 'utf8'); | ||
|
||
// Pass in file contents | ||
const modifyVars = lessToJs(loadedVarOverrides); | ||
|
||
module.exports = function override(_config, env) { | ||
let config = _config; | ||
config = injectBabelPlugin(['import', { libraryName: 'antd', style: true }], config); | ||
config = rewireLess.withLoaderOptions({ modifyVars })(config, env); | ||
return config; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.