123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
- exports[`ApiTokens renders empty result 1`] = `
- <SideEffect(DocumentTitle)
- title="API Tokens - Sentry"
- >
- <div>
- <StyledSettingsPageHeading
- action={
- <Button
- align="center"
- className="ref-create-token"
- disabled={false}
- priority="primary"
- size="small"
- to="/settings/account/api/auth-tokens/new-token/"
- >
- Create New Token
- </Button>
- }
- noTitleStyles={false}
- title="Auth Tokens"
- />
- <TextBlock>
- Authentication tokens allow you to perform actions against the Sentry API on behalf of your account. They're the easiest way to get started using the API.
- </TextBlock>
- <TextBlock>
- <span
- key="5"
- >
- <span
- key="0"
- >
- For more information on how to use the web API, see our
- </span>
- <a
- href="https://docs.sentry.io/hosted/api/"
- key="2"
- >
- <span
- key="1"
- >
- documentation
- </span>
- </a>
- <span
- key="3"
- >
- .
- </span>
- </span>
- </TextBlock>
- <TextBlock>
- <small>
- psst. Looking for the
- <strong>
- DSN
- </strong>
- for an SDK? You'll find that under
-
- <strong>
- [Project] » Settings » Client Keys
- </strong>
- .
- </small>
- </TextBlock>
- <Panel>
- <PanelHeader
- disablePadding={true}
- >
- <Flex
- align="center"
- >
- <Box
- flex="1"
- px={2}
- >
- Auth Token
- </Box>
- </Flex>
- </PanelHeader>
- <PanelBody
- direction="column"
- disablePadding={true}
- flex={false}
- >
- <EmptyMessage>
- You haven't created any authentication tokens yet.
- </EmptyMessage>
- </PanelBody>
- </Panel>
- </div>
- </SideEffect(DocumentTitle)>
- `;
- exports[`ApiTokens renders with result 1`] = `
- <SideEffect(DocumentTitle)
- title="API Tokens - Sentry"
- >
- <div>
- <StyledSettingsPageHeading
- action={
- <Button
- align="center"
- className="ref-create-token"
- disabled={false}
- priority="primary"
- size="small"
- to="/settings/account/api/auth-tokens/new-token/"
- >
- Create New Token
- </Button>
- }
- noTitleStyles={false}
- title="Auth Tokens"
- />
- <TextBlock>
- Authentication tokens allow you to perform actions against the Sentry API on behalf of your account. They're the easiest way to get started using the API.
- </TextBlock>
- <TextBlock>
- <span
- key="5"
- >
- <span
- key="0"
- >
- For more information on how to use the web API, see our
- </span>
- <a
- href="https://docs.sentry.io/hosted/api/"
- key="2"
- >
- <span
- key="1"
- >
- documentation
- </span>
- </a>
- <span
- key="3"
- >
- .
- </span>
- </span>
- </TextBlock>
- <TextBlock>
- <small>
- psst. Looking for the
- <strong>
- DSN
- </strong>
- for an SDK? You'll find that under
-
- <strong>
- [Project] » Settings » Client Keys
- </strong>
- .
- </small>
- </TextBlock>
- <Panel>
- <PanelHeader
- disablePadding={true}
- >
- <Flex
- align="center"
- >
- <Box
- flex="1"
- px={2}
- >
- Auth Token
- </Box>
- </Flex>
- </PanelHeader>
- <PanelBody
- direction="column"
- disablePadding={true}
- flex={false}
- >
- <ApiTokenRow
- key="apitoken123"
- onRemove={[Function]}
- token={
- Object {
- "dateCreated": 2018-01-12T02:01:41.000Z,
- "scopes": Array [
- "scope1",
- "scope2",
- ],
- "token": "apitoken123",
- }
- }
- />
- </PanelBody>
- </Panel>
- </div>
- </SideEffect(DocumentTitle)>
- `;
|