mirror of https://github.com/grafana/grafana
parent
3ca7523a02
commit
234713466e
@ -1,132 +1,158 @@ |
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP |
||||
|
||||
exports[`Render should render API keys table if there are any keys 1`] = ` |
||||
<div> |
||||
<Page |
||||
title="Configuration: Api Keys" |
||||
> |
||||
<PageHeader |
||||
model={Object {}} |
||||
model={ |
||||
Object { |
||||
"main": Object { |
||||
"text": "Configuration", |
||||
}, |
||||
"node": Object { |
||||
"text": "Api Keys", |
||||
}, |
||||
} |
||||
} |
||||
/> |
||||
<PageLoader |
||||
pageName="Api keys" |
||||
<PageContents |
||||
isLoading={true} |
||||
/> |
||||
</div> |
||||
</Page> |
||||
`; |
||||
|
||||
exports[`Render should render CTA if there are no API keys 1`] = ` |
||||
<div> |
||||
<Page |
||||
title="Configuration: Api Keys" |
||||
> |
||||
<PageHeader |
||||
model={Object {}} |
||||
model={ |
||||
Object { |
||||
"main": Object { |
||||
"text": "Configuration", |
||||
}, |
||||
"node": Object { |
||||
"text": "Api Keys", |
||||
}, |
||||
} |
||||
} |
||||
/> |
||||
<div |
||||
className="page-container page-body" |
||||
<PageContents |
||||
isLoading={false} |
||||
> |
||||
<EmptyListCTA |
||||
model={ |
||||
Object { |
||||
"buttonIcon": "fa fa-plus", |
||||
"buttonLink": "#", |
||||
"buttonTitle": " New API Key", |
||||
"onClick": [Function], |
||||
"proTip": "Remember you can provide view-only API access to other applications.", |
||||
"proTipLink": "", |
||||
"proTipLinkTitle": "", |
||||
"proTipTarget": "_blank", |
||||
"title": "You haven't added any API Keys yet.", |
||||
} |
||||
} |
||||
/> |
||||
<Component |
||||
in={false} |
||||
<div |
||||
className="page-container page-body" |
||||
> |
||||
<div |
||||
className="cta-form" |
||||
<EmptyListCTA |
||||
model={ |
||||
Object { |
||||
"buttonIcon": "fa fa-plus", |
||||
"buttonLink": "#", |
||||
"buttonTitle": " New API Key", |
||||
"onClick": [Function], |
||||
"proTip": "Remember you can provide view-only API access to other applications.", |
||||
"proTipLink": "", |
||||
"proTipLinkTitle": "", |
||||
"proTipTarget": "_blank", |
||||
"title": "You haven't added any API Keys yet.", |
||||
} |
||||
} |
||||
/> |
||||
<Component |
||||
in={false} |
||||
> |
||||
<button |
||||
className="cta-form__close btn btn-transparent" |
||||
onClick={[Function]} |
||||
> |
||||
<i |
||||
className="fa fa-close" |
||||
/> |
||||
</button> |
||||
<h5> |
||||
Add API Key |
||||
</h5> |
||||
<form |
||||
className="gf-form-group" |
||||
onSubmit={[Function]} |
||||
<div |
||||
className="cta-form" |
||||
> |
||||
<div |
||||
className="gf-form-inline" |
||||
<button |
||||
className="cta-form__close btn btn-transparent" |
||||
onClick={[Function]} |
||||
> |
||||
<i |
||||
className="fa fa-close" |
||||
/> |
||||
</button> |
||||
<h5> |
||||
Add API Key |
||||
</h5> |
||||
<form |
||||
className="gf-form-group" |
||||
onSubmit={[Function]} |
||||
> |
||||
<div |
||||
className="gf-form max-width-21" |
||||
> |
||||
<span |
||||
className="gf-form-label" |
||||
> |
||||
Key name |
||||
</span> |
||||
<input |
||||
className="gf-form-input" |
||||
onChange={[Function]} |
||||
placeholder="Name" |
||||
type="text" |
||||
value="" |
||||
/> |
||||
</div> |
||||
<div |
||||
className="gf-form" |
||||
className="gf-form-inline" |
||||
> |
||||
<span |
||||
className="gf-form-label" |
||||
<div |
||||
className="gf-form max-width-21" |
||||
> |
||||
Role |
||||
</span> |
||||
<span |
||||
className="gf-form-select-wrapper" |
||||
> |
||||
<select |
||||
className="gf-form-input gf-size-auto" |
||||
<span |
||||
className="gf-form-label" |
||||
> |
||||
Key name |
||||
</span> |
||||
<input |
||||
className="gf-form-input" |
||||
onChange={[Function]} |
||||
value="Viewer" |
||||
placeholder="Name" |
||||
type="text" |
||||
value="" |
||||
/> |
||||
</div> |
||||
<div |
||||
className="gf-form" |
||||
> |
||||
<span |
||||
className="gf-form-label" |
||||
> |
||||
<option |
||||
key="Viewer" |
||||
label="Viewer" |
||||
Role |
||||
</span> |
||||
<span |
||||
className="gf-form-select-wrapper" |
||||
> |
||||
<select |
||||
className="gf-form-input gf-size-auto" |
||||
onChange={[Function]} |
||||
value="Viewer" |
||||
> |
||||
Viewer |
||||
</option> |
||||
<option |
||||
key="Editor" |
||||
label="Editor" |
||||
value="Editor" |
||||
> |
||||
Editor |
||||
</option> |
||||
<option |
||||
key="Admin" |
||||
label="Admin" |
||||
value="Admin" |
||||
> |
||||
Admin |
||||
</option> |
||||
</select> |
||||
</span> |
||||
</div> |
||||
<div |
||||
className="gf-form" |
||||
> |
||||
<button |
||||
className="btn gf-form-btn btn-success" |
||||
<option |
||||
key="Viewer" |
||||
label="Viewer" |
||||
value="Viewer" |
||||
> |
||||
Viewer |
||||
</option> |
||||
<option |
||||
key="Editor" |
||||
label="Editor" |
||||
value="Editor" |
||||
> |
||||
Editor |
||||
</option> |
||||
<option |
||||
key="Admin" |
||||
label="Admin" |
||||
value="Admin" |
||||
> |
||||
Admin |
||||
</option> |
||||
</select> |
||||
</span> |
||||
</div> |
||||
<div |
||||
className="gf-form" |
||||
> |
||||
Add |
||||
</button> |
||||
<button |
||||
className="btn gf-form-btn btn-success" |
||||
> |
||||
Add |
||||
</button> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</form> |
||||
</div> |
||||
</Component> |
||||
</div> |
||||
</div> |
||||
</form> |
||||
</div> |
||||
</Component> |
||||
</div> |
||||
</PageContents> |
||||
</Page> |
||||
`; |
||||
|
@ -1,38 +1,64 @@ |
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP |
||||
|
||||
exports[`Render should render component 1`] = ` |
||||
<div> |
||||
<Page |
||||
title="Configuration: Org details" |
||||
> |
||||
<PageHeader |
||||
model={Object {}} |
||||
model={ |
||||
Object { |
||||
"main": Object { |
||||
"text": "Configuration", |
||||
}, |
||||
"node": Object { |
||||
"text": "Org details", |
||||
}, |
||||
} |
||||
} |
||||
/> |
||||
<div |
||||
className="page-container page-body" |
||||
<PageContents |
||||
isLoading={true} |
||||
> |
||||
<PageLoader |
||||
pageName="Organization" |
||||
<div |
||||
className="page-container page-body" |
||||
/> |
||||
</div> |
||||
</div> |
||||
</PageContents> |
||||
</Page> |
||||
`; |
||||
|
||||
exports[`Render should render organization and preferences 1`] = ` |
||||
<div> |
||||
<Page |
||||
title="Configuration: Org details" |
||||
> |
||||
<PageHeader |
||||
model={Object {}} |
||||
model={ |
||||
Object { |
||||
"main": Object { |
||||
"text": "Configuration", |
||||
}, |
||||
"node": Object { |
||||
"text": "Org details", |
||||
}, |
||||
} |
||||
} |
||||
/> |
||||
<div |
||||
className="page-container page-body" |
||||
<PageContents |
||||
isLoading={false} |
||||
> |
||||
<div> |
||||
<OrgProfile |
||||
onOrgNameChange={[Function]} |
||||
onSubmit={[Function]} |
||||
orgName="Cool org" |
||||
/> |
||||
<SharedPreferences |
||||
resourceUri="org" |
||||
/> |
||||
<div |
||||
className="page-container page-body" |
||||
> |
||||
<div> |
||||
<OrgProfile |
||||
onOrgNameChange={[Function]} |
||||
onSubmit={[Function]} |
||||
orgName="Cool org" |
||||
/> |
||||
<SharedPreferences |
||||
resourceUri="org" |
||||
/> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</PageContents> |
||||
</Page> |
||||
`; |
||||
|
Loading…
Reference in new issue