mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
chore: set all to warning
for easy development, temporary
This commit is contained in:
parent
0fb344d0c2
commit
9b42b45cfb
@ -43,11 +43,11 @@ const renderSuggestion = (suggestion, { query, isHighlighted }): Node => {
|
||||
<div>
|
||||
{parts.map((part, index) => {
|
||||
return part.highlight ? (
|
||||
<span href={ suggestion.link } key={ String(index) } style={ { fontWeight: fontWeight.semiBold } }>
|
||||
<span href={suggestion.link} key={String(index)} style={{ fontWeight: fontWeight.semiBold }}>
|
||||
{part.text}
|
||||
</span>
|
||||
) : (
|
||||
<span href={ suggestion.link } key={ String(index) } style={ { fontWeight: fontWeight.light } }>
|
||||
<span href={suggestion.link} key={String(index)} style={{ fontWeight: fontWeight.light }}>
|
||||
{part.text}
|
||||
</span>
|
||||
);
|
||||
@ -100,7 +100,7 @@ const AutoComplete = ({
|
||||
<Wrapper>
|
||||
<Autosuggest
|
||||
{...autosuggestProps}
|
||||
inputProps={ {
|
||||
inputProps={{
|
||||
value,
|
||||
onChange,
|
||||
placeholder,
|
||||
@ -109,16 +109,16 @@ const AutoComplete = ({
|
||||
color,
|
||||
onKeyDown,
|
||||
onBlur,
|
||||
} }
|
||||
onSuggestionSelected={ onClick }
|
||||
renderSuggestionsContainer={ ({ containerProps, children, query }) => (
|
||||
<Paper { ...containerProps } square={true}>
|
||||
}}
|
||||
onSuggestionSelected={onClick}
|
||||
renderSuggestionsContainer={({ containerProps, children, query }) => (
|
||||
<Paper {...containerProps} square={true}>
|
||||
{suggestionsLoaded && children === null && query && renderMessage(SUGGESTIONS_RESPONSE.NO_RESULT)}
|
||||
{suggestionsLoading && query && renderMessage(SUGGESTIONS_RESPONSE.LOADING)}
|
||||
{suggestionsError && renderMessage(SUGGESTIONS_RESPONSE.FAILURE)}
|
||||
{children}
|
||||
</Paper>
|
||||
) }
|
||||
)}
|
||||
/>
|
||||
</Wrapper>
|
||||
);
|
||||
|
@ -17,15 +17,15 @@ const Footer = (): Element<Wrapper> => (
|
||||
<Love>♥</Love>
|
||||
on
|
||||
<ToolTip>
|
||||
<Earth name={ 'earth' } size={ 'md' } />
|
||||
<Earth name={'earth'} size={'md'} />
|
||||
<Flags>
|
||||
<Flag name={ 'spain' } size={ 'md' } />
|
||||
<Flag name={ 'nicaragua' } size={ 'md' } />
|
||||
<Flag name={ 'india' } size={ 'md' } />
|
||||
<Flag name={ 'brazil' } size={ 'md' } />
|
||||
<Flag name={ 'pakistan' } size={ 'md' } />
|
||||
<Flag name={ 'china' } size={ 'md' } />
|
||||
<Flag name={ 'austria' } size={ 'md' } />
|
||||
<Flag name={'spain'} size={'md'} />
|
||||
<Flag name={'nicaragua'} size={'md'} />
|
||||
<Flag name={'india'} size={'md'} />
|
||||
<Flag name={'brazil'} size={'md'} />
|
||||
<Flag name={'pakistan'} size={'md'} />
|
||||
<Flag name={'china'} size={'md'} />
|
||||
<Flag name={'austria'} size={'md'} />
|
||||
</Flags>
|
||||
</ToolTip>
|
||||
</Left>
|
||||
|
@ -184,8 +184,7 @@ class Header extends Component<IProps, IState> {
|
||||
transformOrigin={{
|
||||
vertical: 'top',
|
||||
horizontal: 'right',
|
||||
}}
|
||||
>
|
||||
}}>
|
||||
<MenuItem disabled={true}>
|
||||
<Greetings>{`Hi,`}</Greetings>
|
||||
<Label capitalize={true} limit={140} text={username} weight={'bold'} />
|
||||
|
@ -17,9 +17,7 @@ import { CardStyled as Card, HelpTitle } from './styles';
|
||||
function renderHeadingClipboardSegments(title: string, text: string): Node {
|
||||
return (
|
||||
<Fragment>
|
||||
<Typography variant={ 'body2' }>
|
||||
{title}
|
||||
</Typography>
|
||||
<Typography variant={'body2'}>{title}</Typography>
|
||||
<CopyToClipBoard text={text} />
|
||||
</Fragment>
|
||||
);
|
||||
@ -29,17 +27,17 @@ const Help = (): Node => {
|
||||
const registryUrl = getRegistryURL();
|
||||
|
||||
return (
|
||||
<Card id={ 'help-card' }>
|
||||
<Card id={'help-card'}>
|
||||
<CardContent>
|
||||
<Typography component={'h2'} gutterBottom={true} id={'help-card__title'} variant={'headline'}>
|
||||
No Package Published Yet.
|
||||
</Typography>
|
||||
<HelpTitle color={ 'textSecondary' } gutterBottom={ true }>
|
||||
<HelpTitle color={'textSecondary'} gutterBottom={true}>
|
||||
To publish your first package just:
|
||||
</HelpTitle>
|
||||
{renderHeadingClipboardSegments('1. Login', `$ npm adduser --registry ${registryUrl}`)}
|
||||
{renderHeadingClipboardSegments('2. Publish', `$ npm publish --registry ${registryUrl}`)}
|
||||
<Typography variant={ 'body2' }>3. Refresh this page.</Typography>
|
||||
<Typography variant={'body2'}>3. Refresh this page.</Typography>
|
||||
</CardContent>
|
||||
<CardActions>
|
||||
<Button color={'primary'} href={'https://verdaccio.org/docs/en/installation'} size={'small'} target={'_blank'}>
|
||||
|
@ -40,11 +40,11 @@ export const Icons: $Shape<IIconsMap> = {
|
||||
const Icon = ({ className, name, size = 'sm', img = false, pointer = false, ...props }: IProps): Node => {
|
||||
const title = capitalize(name);
|
||||
return img ? (
|
||||
<ImgWrapper className={ className } pointer={ pointer } size={ size } title={ title } {...props}>
|
||||
<Img alt={ title } src={ Icons[name] } />
|
||||
<ImgWrapper className={className} pointer={pointer} size={size} title={title} {...props}>
|
||||
<Img alt={title} src={Icons[name]} />
|
||||
</ImgWrapper>
|
||||
) : (
|
||||
<SVG className={ className } pointer={ pointer } size={ size } {...props}>
|
||||
<SVG className={className} pointer={pointer} size={size} {...props}>
|
||||
<title>{title}</title>
|
||||
<use xlinkHref={`${Icons[name]}#${name}`} />
|
||||
</SVG>
|
||||
|
@ -18,7 +18,7 @@ const Wrapper = styled.div`
|
||||
|
||||
const Label = ({ text = '', capitalize = false, weight = 'regular', ...props }: IProps): Node => {
|
||||
return (
|
||||
<Wrapper capitalize={ capitalize } weight={ weight } {...props}>
|
||||
<Wrapper capitalize={capitalize} weight={weight} {...props}>
|
||||
{text}
|
||||
</Wrapper>
|
||||
);
|
||||
|
@ -14,7 +14,7 @@ import { Wrapper, Badge } from './styles';
|
||||
const Loading = (): Node => (
|
||||
<Wrapper>
|
||||
<Badge>
|
||||
<Logo md={ true } />
|
||||
<Logo md={true} />
|
||||
</Badge>
|
||||
<Spinner />
|
||||
</Wrapper>
|
||||
|
@ -52,8 +52,7 @@ const Package = ({ name: label, version, time, author: { name, avatar }, descrip
|
||||
</OverviewItem>
|
||||
)}
|
||||
<OverviewItem>
|
||||
<Icon name={'time'}
|
||||
pointer={ true } />
|
||||
<Icon name={'time'} pointer={true} />
|
||||
<Published modifiers={spacing('margin', '0px', '5px', '0px', '0px')}>{`Published on ${formatDate(time)} •`}</Published>
|
||||
{`${formatDateDistance(time)} ago`}
|
||||
</OverviewItem>
|
||||
|
@ -8,6 +8,6 @@ import 'github-markdown-css';
|
||||
|
||||
import { IProps } from './types';
|
||||
|
||||
const Readme = ({ description }: IProps) => <div className={ 'markdown-body' } dangerouslySetInnerHTML={ { __html: description } } />;
|
||||
const Readme = ({ description }: IProps) => <div className={'markdown-body'} dangerouslySetInnerHTML={{ __html: description }} />;
|
||||
|
||||
export default Readme;
|
||||
|
@ -1,28 +1,28 @@
|
||||
/**
|
||||
* @prettier
|
||||
* @flow
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import Dialog from '@material-ui/core/Dialog/index';
|
||||
import DialogActions from '@material-ui/core/DialogActions/index';
|
||||
import Button from '@material-ui/core/Button/index';
|
||||
import { Title, Content } from './styles';
|
||||
|
||||
import type { Node } from 'react';
|
||||
|
||||
import { IProps } from './types';
|
||||
|
||||
const RegistryInfoDialog = ({ open = false, children, onClose }: IProps): Node => (
|
||||
<Dialog id={'registryInfo--dialog-container'} onClose={onClose} open={open}>
|
||||
<Title disableTypography={ true }>Register Info</Title>
|
||||
<Content>{children}</Content>
|
||||
<DialogActions>
|
||||
<Button autoFocus={true} color={'inherit'} id={'registryInfo--dialog-close'} onClick={onClose}>
|
||||
CLOSE
|
||||
</Button>
|
||||
</DialogActions>
|
||||
</Dialog>
|
||||
);
|
||||
|
||||
export default RegistryInfoDialog;
|
||||
/**
|
||||
* @prettier
|
||||
* @flow
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import Dialog from '@material-ui/core/Dialog/index';
|
||||
import DialogActions from '@material-ui/core/DialogActions/index';
|
||||
import Button from '@material-ui/core/Button/index';
|
||||
import { Title, Content } from './styles';
|
||||
|
||||
import type { Node } from 'react';
|
||||
|
||||
import { IProps } from './types';
|
||||
|
||||
const RegistryInfoDialog = ({ open = false, children, onClose }: IProps): Node => (
|
||||
<Dialog id={'registryInfo--dialog-container'} onClose={onClose} open={open}>
|
||||
<Title disableTypography={true}>Register Info</Title>
|
||||
<Content>{children}</Content>
|
||||
<DialogActions>
|
||||
<Button color={'inherit'} id={'registryInfo--dialog-close'} onClick={onClose}>
|
||||
CLOSE
|
||||
</Button>
|
||||
</DialogActions>
|
||||
</Dialog>
|
||||
);
|
||||
|
||||
export default RegistryInfoDialog;
|
||||
|
@ -9,8 +9,6 @@ import type { Element } from 'react';
|
||||
import { IProps } from './types';
|
||||
import { Wrapper } from './styles';
|
||||
|
||||
const Tag = ({ children }: IProps): Element<Wrapper> => (<Wrapper>
|
||||
{children}
|
||||
</Wrapper>);
|
||||
const Tag = ({ children }: IProps): Element<Wrapper> => <Wrapper>{children}</Wrapper>;
|
||||
|
||||
export default Tag;
|
||||
|
@ -24,9 +24,9 @@ class RouterApp extends Component<IProps, IState> {
|
||||
return (
|
||||
<Router>
|
||||
<Switch>
|
||||
<Route exact={ true } path={ '/' } render={ () => <HomePage isUserLoggedIn={ isUserLoggedIn } packages={ packages } /> } />
|
||||
<Route exact={ true } path={ '/detail/@:scope/:package' } render={ props => <DetailPackage { ...props } isUserLoggedIn={ isUserLoggedIn } /> } />
|
||||
<Route exact={ true } path={ '/detail/:package' } render={ props => <DetailPackage { ...props } isUserLoggedIn={ isUserLoggedIn } /> } />
|
||||
<Route exact={true} path={'/'} render={() => <HomePage isUserLoggedIn={isUserLoggedIn} packages={packages} />} />
|
||||
<Route exact={true} path={'/detail/@:scope/:package'} render={props => <DetailPackage {...props} isUserLoggedIn={isUserLoggedIn} />} />
|
||||
<Route exact={true} path={'/detail/:package'} render={props => <DetailPackage {...props} isUserLoggedIn={isUserLoggedIn} />} />
|
||||
</Switch>
|
||||
</Router>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user