-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…, ZENKO-3216, ZENKO-3219
- Loading branch information
1 parent
6973784
commit 948db40
Showing
20 changed files
with
276 additions
and
55 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,7 @@ | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
process(src, filename, config, options) { | ||
return 'module.exports = ' + JSON.stringify(path.basename(filename)) + ';'; | ||
}, | ||
}; |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,28 +1,29 @@ | ||
// @flow | ||
import * as L from '../../ui-elements/ListLayout2'; | ||
|
||
import MultiBucketsLogo from '../../../../public/assets/logo-multi-buckets.svg'; | ||
import React from 'react'; | ||
import type { S3BucketList } from '../../../types/s3'; | ||
import styled from 'styled-components'; | ||
|
||
const Number = styled.div` | ||
font-size: 50px; | ||
`; | ||
|
||
const Unit = styled.div` | ||
`; | ||
|
||
import { TextBadge } from '../../ui-elements/TextBadge'; | ||
|
||
type Props = { | ||
buckets: S3BucketList, | ||
}; | ||
export default function BucketHead({ buckets }: Props){ | ||
export default function BucketHead({ buckets }: Props) { | ||
const bucketLength = buckets ? buckets.size : 0; | ||
|
||
return <L.Head> | ||
<L.HeadSlice> | ||
<Number> | ||
{ buckets.size } | ||
</Number> | ||
<Unit> bucket{ buckets.size > 1 && 's' } </Unit> | ||
<L.HeadIcon> | ||
<img src={ MultiBucketsLogo } alt="Multi Buckets Logo" /> | ||
</L.HeadIcon> | ||
</L.HeadSlice> | ||
<L.HeadBody> | ||
<L.HeadTitleContainer> | ||
<L.HeadTitle> | ||
All Buckets | ||
<TextBadge text={ bucketLength } variant='infoPrimary'/> | ||
</L.HeadTitle> | ||
</L.HeadTitleContainer> | ||
</L.HeadBody> | ||
</L.Head>; | ||
} |
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 |
---|---|---|
@@ -1,14 +1,21 @@ | ||
// @flow | ||
// @noflow | ||
import * as L from '../../ui-elements/ListLayout2'; | ||
import React from 'react'; | ||
|
||
type Props = { | ||
bucketNameParam?: string, | ||
bucketName?: string, | ||
}; | ||
export default function ObjectHead({ bucketNameParam }: Props){ | ||
export default function ObjectHead({ bucketName }: Props) { | ||
return <L.Head> | ||
<L.HeadSlice> | ||
{bucketNameParam} | ||
<L.HeadIcon className="fa fa-glass-whiskey"/> | ||
</L.HeadSlice> | ||
<L.HeadBody> | ||
<L.HeadTitleContainer> | ||
<L.HeadTitle> | ||
{ bucketName } | ||
</L.HeadTitle> | ||
</L.HeadTitleContainer> | ||
</L.HeadBody> | ||
</L.Head>; | ||
} |
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
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
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,46 @@ | ||
import styled, { css } from 'styled-components'; | ||
|
||
const ScrollbarWrapper = styled.div` | ||
${props => { | ||
const brand = props.theme.brand; | ||
return css` | ||
* { | ||
// Chrome / Safari / Edge | ||
::-webkit-scrollbar { | ||
width: 8px; | ||
height: 8px; | ||
} | ||
::-webkit-scrollbar-track { | ||
background: ${brand.backgroundLevel1}; | ||
} | ||
::-webkit-scrollbar-thumb { | ||
width: 4px; | ||
height: 4px; | ||
background: ${brand.buttonSecondary}; | ||
border-radius: 4px; | ||
-webkit-border-radius: 4px; | ||
background-clip: padding-box; | ||
border: 2px solid rgba(0, 0, 0, 0); | ||
} | ||
::-webkit-scrollbar-button { | ||
width: 0; | ||
height: 0; | ||
display: none; | ||
} | ||
::-webkit-scrollbar-corner { | ||
background-color: transparent; | ||
} | ||
// Firefox | ||
scrollbar-color: ${brand.buttonSecondary} ${brand.backgroundLevel1}; | ||
scrollbar-width: thin; | ||
} | ||
`; | ||
}} | ||
`; | ||
|
||
export default ScrollbarWrapper; |
Oops, something went wrong.