Improve links (#36639)

This commit is contained in:
Tim Roes 2019-05-20 09:08:05 -04:00 committed by GitHub
parent efe91c3be0
commit c252732f02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 24 additions and 24 deletions

View file

@ -26,7 +26,7 @@ removes it from {kib} permanently.
[horizontal]
`csv:quoteValues`:: Set this property to `true` to quote exported values.
`csv:separator`:: A string that serves as the separator for exported values.
`dateFormat`:: The format to use for displaying http://momentjs.com/docs/#/displaying/format/[pretty formatted dates].
`dateFormat`:: The format to use for displaying https://momentjs.com/docs/#/displaying/format/[pretty formatted dates].
`dateFormat:dow`:: The day that a week should start on.
`dateFormat:scaled`:: The values that define the format to use to render ordered time-based data. Formatted timestamps must
adapt to the interval between measurements. Keys are http://en.wikipedia.org/wiki/ISO_8601#Time_intervals[ISO8601 intervals].

View file

@ -48,7 +48,7 @@
<span i18n-id="kbn.management.editIndexPattern.timeFilterLabel.timeFilterDetail"
i18n-default-message="This page lists every field in the {indexPatternTitle} index and the field's associated core type as recorded by Elasticsearch. To change a field type, use the Elasticsearch"
i18n-values="{ html_indexPatternTitle: '<strong>' + indexPattern.title + '</strong>' }"></span>
<a target="_window" class="euiLink euiLink--primary" href="http://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html">
<a target="_blank" class="euiLink euiLink--primary" href="http://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html">
<span i18n-id="kbn.management.editIndexPattern.timeFilterLabel.mappingAPILink"
i18n-default-message="Mapping API"></span>
<i aria-hidden="true" class="fa-link fa"></i>

View file

@ -141,7 +141,7 @@ export function getUiSettingDefaults() {
'kbn.advancedSettings.dateFormat.optionsLinkText',
values: {
formatLink:
'<a href="http://momentjs.com/docs/#/displaying/format/" target="_blank" rel="noopener noreferrer">' +
'<a href="https://momentjs.com/docs/#/displaying/format/" target="_blank" rel="noopener noreferrer">' +
i18n.translate('kbn.advancedSettings.dateFormat.optionsLinkText', {
defaultMessage: 'format',
}) +

View file

@ -3,7 +3,7 @@
<div class="clearfix form-group">
<label for="markdownVisInput">Markdown</label>
<small class="pull-right">
<a target="_window" href="https://help.github.com/articles/github-flavored-markdown/">
<a target="_blank" href="https://help.github.com/articles/github-flavored-markdown/" rel="noreferrer noopener">
<icon aria-hidden="true" size="'s'" type="'link'"></icon>
<span
i18n-id="markdownVis.params.helpLinkLabel"

View file

@ -158,7 +158,7 @@ class MarkdownEditor extends Component {
{handlebarLink} on the available expressions."
values={{
handlebarLink: (
<a href="http://handlebarsjs.com/expressions.html" target="_BLANK">
<a href="http://handlebarsjs.com/expressions.html" target="_BLANK" rel="noreferrer noopener">
<FormattedMessage
id="tsvb.markdownEditor.howUseVariablesInMarkdownDescription.documentationLinkText"
defaultMessage="Click here for documentation"

View file

@ -843,7 +843,7 @@ exports[`FieldEditor should show deprecated lang warning 1`] = `
</eui-code>,
"painlessLink": <eui-link
href="(docLink for scriptedFields.painless)"
target="_window"
target="_blank"
>
<FormattedMessage
defaultMessage="Painless"

View file

@ -12,7 +12,7 @@ exports[`BytesFormatEditor should render normally 1`] = `
<EuiLink
color="primary"
href="https://adamwdraper.github.io/Numeral-js/"
target="_window"
target="_blank"
type="button"
>
<FormattedMessage

View file

@ -11,8 +11,8 @@ exports[`DateFormatEditor should render normally 1`] = `
<span>
<EuiLink
color="primary"
href="http://momentjs.com/"
target="_window"
href="https://momentjs.com/"
target="_blank"
type="button"
>
<FormattedMessage

View file

@ -71,7 +71,7 @@ export class DateFormatEditor extends DefaultFormatEditor {
error={error}
helpText={
<span>
<EuiLink target="_window" href="http://momentjs.com/">
<EuiLink target="_blank" href="https://momentjs.com/">
<FormattedMessage id="common.ui.fieldEditor.date.documentationLabel" defaultMessage="Documentation" />&nbsp;
<EuiIcon type="link" />
</EuiLink>

View file

@ -12,7 +12,7 @@ exports[`NumberFormatEditor should render normally 1`] = `
<EuiLink
color="primary"
href="https://adamwdraper.github.io/Numeral-js/"
target="_window"
target="_blank"
type="button"
>
<FormattedMessage

View file

@ -62,7 +62,7 @@ export class NumberFormatEditor extends DefaultFormatEditor {
}
helpText={
<span>
<EuiLink target="_window" href="https://adamwdraper.github.io/Numeral-js/">
<EuiLink target="_blank" href="https://adamwdraper.github.io/Numeral-js/">
<FormattedMessage id="common.ui.fieldEditor.number.documentationLabel" defaultMessage="Documentation" />&nbsp;
<EuiIcon type="link" />
</EuiLink>

View file

@ -12,7 +12,7 @@ exports[`PercentFormatEditor should render normally 1`] = `
<EuiLink
color="primary"
href="https://adamwdraper.github.io/Numeral-js/"
target="_window"
target="_blank"
type="button"
>
<FormattedMessage

View file

@ -23,7 +23,7 @@ exports[`ScriptingWarningCallOut should render normally 1`] = `
"scripFields": <EuiLink
color="primary"
href="(docLink for scriptedFields.scriptFields)"
target="_window"
target="_blank"
type="button"
>
<FormattedMessage
@ -39,7 +39,7 @@ exports[`ScriptingWarningCallOut should render normally 1`] = `
"scriptsInAggregation": <EuiLink
color="primary"
href="(docLink for scriptedFields.scriptAggs)"
target="_window"
target="_blank"
type="button"
>
<FormattedMessage

View file

@ -45,13 +45,13 @@ export const ScriptingWarningCallOut = ({
defaultMessage="Please familiarize yourself with {scripFields} and with {scriptsInAggregation} before using scripted fields."
values={{
scripFields: (
<EuiLink target="_window" href={getDocLink('scriptedFields.scriptFields')}>
<EuiLink target="_blank" href={getDocLink('scriptedFields.scriptFields')}>
<FormattedMessage id="common.ui.fieldEditor.warningCallOutLabel.scripFieldsLink" defaultMessage="script fields" />&nbsp;
<EuiIcon type="link" />
</EuiLink>
),
scriptsInAggregation: (
<EuiLink target="_window" href={getDocLink('scriptedFields.scriptAggs')}>
<EuiLink target="_blank" href={getDocLink('scriptedFields.scriptAggs')}>
<FormattedMessage
id="common.ui.fieldEditor.warningCallOutLabel.scriptsInAggregationLink"
defaultMessage="scripts in aggregations"

View file

@ -45,7 +45,7 @@ export const ScriptingSyntax = () => (
values={{
painless: (
<EuiLink
target="_window"
target="_blank"
href={getDocLink('scriptedFields.painless')}
>
<FormattedMessage id="common.ui.fieldEditor.syntax.defaultLabel.painlessLink" defaultMessage="Painless" />
@ -68,7 +68,7 @@ export const ScriptingSyntax = () => (
values={{
javaAPIs: (
<EuiLink
target="_window"
target="_blank"
href={getDocLink('scriptedFields.painlessApi')}
>
<FormattedMessage id="common.ui.fieldEditor.syntax.painlessLabel.javaAPIsLink" defaultMessage="native Java APIs" />&nbsp;
@ -77,7 +77,7 @@ export const ScriptingSyntax = () => (
),
syntax: (
<EuiLink
target="_window"
target="_blank"
href={getDocLink('scriptedFields.painlessSyntax')}
>
<FormattedMessage id="common.ui.fieldEditor.syntax.painlessLabel.syntaxLink" defaultMessage="syntax" />&nbsp;
@ -102,7 +102,7 @@ export const ScriptingSyntax = () => (
values={{
lucene: (
<EuiLink
target="_window"
target="_blank"
href={getDocLink('scriptedFields.luceneExpressions')}
>
<FormattedMessage id="common.ui.fieldEditor.syntax.lucene.commonLabel.luceneLink" defaultMessage="Lucene Expressions" />

View file

@ -295,7 +295,7 @@ export class FieldEditorComponent extends PureComponent {
values={{
language: <EuiCode>{field.lang}</EuiCode>,
painlessLink: (
<EuiLink target="_window" href={getDocLink('scriptedFields.painless')}>
<EuiLink target="_blank" href={getDocLink('scriptedFields.painless')}>
<FormattedMessage
id="common.ui.fieldEditor.warningLabel.painlessLinkLabel"
defaultMessage="Painless"

View file

@ -89,7 +89,7 @@ class RangeValueInputUI extends Component<Props> {
</EuiFlexItem>
</EuiFlexGroup>
{type === 'date' ? (
<EuiLink target="_window" href={getDocLink('date.dateMath')}>
<EuiLink target="_blank" href={getDocLink('date.dateMath')}>
<FormattedMessage
id="common.ui.filterEditor.dateFormatHelpLinkLabel"
defaultMessage="Accepted date formats"

View file

@ -159,7 +159,7 @@ data (as that is typically done by the server models already).
They do, however, serve as a consistent place in the data path for translating wire representations of certain types of data into
more suitable in-memory representations, for example: converting an [ISO8601-formatted timestamp](https://en.wikipedia.org/wiki/ISO_8601)
into a [moment instance](http://momentjs.com/).
into a [moment instance](https://momentjs.com/).
They are also the right place for establishing relationships between models — for example, a watch contains many actions — and for
encapsulating operations around such relationships — for example, updating the status of a watch's action.