-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* CB-5033 remove reshadow from log viewer and other packages * CB-5033 remove unused code * CB-5033 migrate small data viewer components to css modules * CB-5033 review fixes --------- Co-authored-by: mr-anton-t <[email protected]>
- Loading branch information
1 parent
7aaee50
commit 01ea479
Showing
29 changed files
with
306 additions
and
371 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* CloudBeaver - Cloud Database Manager | ||
* Copyright (C) 2020-2024 DBeaver Corp and others | ||
* | ||
* Licensed under the Apache License, Version 2.0. | ||
* you may not use this file except in compliance with the License. | ||
*/ | ||
import { getProgressPercent } from './getProgressPercent'; | ||
|
||
describe('getProgressPercent', () => { | ||
it('calculates the correct percentage', () => { | ||
expect(getProgressPercent(50, 100)).toBe(50); | ||
expect(getProgressPercent(25, 100)).toBe(25); | ||
}); | ||
|
||
it('returns 0% when nothing is done', () => { | ||
expect(getProgressPercent(0, 100)).toBe(0); | ||
}); | ||
|
||
it('returns 100% when done equals total', () => { | ||
expect(getProgressPercent(100, 100)).toBe(100); | ||
}); | ||
|
||
it('does not exceed 100%', () => { | ||
expect(getProgressPercent(110, 100)).toBe(100); | ||
}); | ||
|
||
it('does not drop below 0%', () => { | ||
expect(getProgressPercent(-10, 100)).toBe(0); | ||
}); | ||
|
||
it('handles total as zero without throwing error', () => { | ||
expect(getProgressPercent(10, 0)).toBe(100); | ||
}); | ||
}); |
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
webapp/packages/plugin-data-viewer/src/DataViewerPage/DataViewerPanel.m.css
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,12 @@ | ||
/* | ||
* CloudBeaver - Cloud Database Manager | ||
* Copyright (C) 2020-2024 DBeaver Corp and others | ||
* | ||
* Licensed under the Apache License, Version 2.0. | ||
* you may not use this file except in compliance with the License. | ||
*/ | ||
|
||
.tableViewerLoader { | ||
padding: 8px; | ||
padding-bottom: 0; | ||
} |
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
16 changes: 16 additions & 0 deletions
16
webapp/packages/plugin-data-viewer/src/TableViewer/TableStatistics.m.css
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,16 @@ | ||
/* | ||
* CloudBeaver - Cloud Database Manager | ||
* Copyright (C) 2020-2024 DBeaver Corp and others | ||
* | ||
* Licensed under the Apache License, Version 2.0. | ||
* you may not use this file except in compliance with the License. | ||
*/ | ||
|
||
.statistics { | ||
composes: theme-typography--caption from global; | ||
flex: 1; | ||
overflow: auto; | ||
box-sizing: border-box; | ||
white-space: pre-wrap; | ||
padding: 16px; | ||
} |
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
16 changes: 16 additions & 0 deletions
16
...plugin-data-viewer/src/ValuePanelPresentation/BooleanValue/BooleanValuePresentation.m.css
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,16 @@ | ||
/* | ||
* CloudBeaver - Cloud Database Manager | ||
* Copyright (C) 2020-2024 DBeaver Corp and others | ||
* | ||
* Licensed under the Apache License, Version 2.0. | ||
* you may not use this file except in compliance with the License. | ||
*/ | ||
|
||
.container { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.radio { | ||
padding: 0; | ||
} |
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
42 changes: 42 additions & 0 deletions
42
webapp/packages/plugin-log-viewer/src/LogViewer/LogEntry.m.css
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,42 @@ | ||
/* | ||
* CloudBeaver - Cloud Database Manager | ||
* Copyright (C) 2020-2024 DBeaver Corp and others | ||
* | ||
* Licensed under the Apache License, Version 2.0. | ||
* you may not use this file except in compliance with the License. | ||
*/ | ||
|
||
.message { | ||
word-break: break-word; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
padding-right: 16px; | ||
text-overflow: ellipsis; | ||
} | ||
|
||
.messageCell { | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.link { | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
|
||
&:hover { | ||
cursor: pointer; | ||
} | ||
} | ||
|
||
.icon { | ||
padding: 0; | ||
} | ||
|
||
.selected { | ||
font-weight: 500; | ||
} | ||
|
||
.iconOrImage { | ||
width: 24px; | ||
height: 24px; | ||
} |
Oops, something went wrong.