Commit 0d0efbad authored by Vitaly Slobodin's avatar Vitaly Slobodin

Convert slot names to kebab-case

Convert slot names in Vue.js templates
to kebab-case to match our coding style.
parent f5c0bfd8
...@@ -26,7 +26,7 @@ export default { ...@@ -26,7 +26,7 @@ export default {
</script> </script>
<template> <template>
<div class="file-header-content d-flex align-items-center lh-100"> <div class="file-header-content d-flex align-items-center lh-100">
<slot name="filepathPrepend"></slot> <slot name="filepath-prepend"></slot>
<template v-if="blob.path"> <template v-if="blob.path">
<file-icon :file-name="blob.path" :size="18" aria-hidden="true" css-classes="mr-2" /> <file-icon :file-name="blob.path" :size="18" aria-hidden="true" css-classes="mr-2" />
......
...@@ -343,7 +343,7 @@ export default { ...@@ -343,7 +343,7 @@ export default {
> >
<span v-else class="js-cluster-application-title">{{ title }}</span> <span v-else class="js-cluster-application-title">{{ title }}</span>
</strong> </strong>
<slot name="installedVia"></slot> <slot name="installed-via"></slot>
<div> <div>
<slot name="description"></slot> <slot name="description"></slot>
</div> </div>
......
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
</span> </span>
</div> </div>
<div class="gl-display-flex gl-align-items-baseline"> <div class="gl-display-flex gl-align-items-baseline">
<slot name="resolveDiscussion"></slot> <slot name="resolve-discussion"></slot>
<button <button
v-if="isEditButtonVisible" v-if="isEditButtonVisible"
v-gl-tooltip v-gl-tooltip
...@@ -127,7 +127,7 @@ export default { ...@@ -127,7 +127,7 @@ export default {
class="note-text js-note-text md" class="note-text js-note-text md"
data-qa-selector="note_content" data-qa-selector="note_content"
></div> ></div>
<slot name="resolvedStatus"></slot> <slot name="resolved-status"></slot>
</template> </template>
<apollo-mutation <apollo-mutation
v-else v-else
......
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
</textarea> </textarea>
</template> </template>
</markdown-field> </markdown-field>
<slot name="resolveCheckbox"></slot> <slot name="resolve-checkbox"></slot>
<div class="note-form-actions gl-display-flex gl-justify-content-space-between"> <div class="note-form-actions gl-display-flex gl-justify-content-space-between">
<gl-button <gl-button
ref="submitButton" ref="submitButton"
......
...@@ -207,6 +207,6 @@ export default { ...@@ -207,6 +207,6 @@ export default {
/> />
</gl-collapse> </gl-collapse>
</template> </template>
<slot name="replyForm"></slot> <slot name="reply-form"></slot>
</div> </div>
</template> </template>
...@@ -69,7 +69,7 @@ export default { ...@@ -69,7 +69,7 @@ export default {
<div class="environments-container"> <div class="environments-container">
<gl-loading-icon v-if="isLoading" size="md" class="gl-mt-3" label="Loading environments" /> <gl-loading-icon v-if="isLoading" size="md" class="gl-mt-3" label="Loading environments" />
<slot name="emptyState"></slot> <slot name="empty-state"></slot>
<div v-if="!isLoading && environments.length > 0" class="table-holder"> <div v-if="!isLoading && environments.length > 0" class="table-holder">
<environment-table <environment-table
......
...@@ -365,7 +365,7 @@ export default { ...@@ -365,7 +365,7 @@ export default {
<template> <template>
<div v-gl-resize-observer="onResize" class="prometheus-graph"> <div v-gl-resize-observer="onResize" class="prometheus-graph">
<div class="d-flex align-items-center"> <div class="d-flex align-items-center">
<slot name="topLeft"></slot> <slot name="top-left"></slot>
<h5 <h5
ref="graphTitle" ref="graphTitle"
class="prometheus-graph-title gl-font-lg font-weight-bold text-truncate gl-mr-3" class="prometheus-graph-title gl-font-lg font-weight-bold text-truncate gl-mr-3"
......
...@@ -138,7 +138,7 @@ export default { ...@@ -138,7 +138,7 @@ export default {
href="#related-issues" href="#related-issues"
aria-hidden="true" aria-hidden="true"
/> />
<slot name="headerText">{{ __('Linked issues') }}</slot> <slot name="header-text">{{ __('Linked issues') }}</slot>
<gl-link <gl-link
v-if="hasHelpPath" v-if="hasHelpPath"
:href="helpPath" :href="helpPath"
...@@ -167,7 +167,7 @@ export default { ...@@ -167,7 +167,7 @@ export default {
/> />
</div> </div>
</h3> </h3>
<slot name="headerActions"></slot> <slot name="header-actions"></slot>
</div> </div>
<div <div
class="linked-issues-card-body bg-gray-light" class="linked-issues-card-body bg-gray-light"
......
...@@ -181,10 +181,10 @@ export default { ...@@ -181,10 +181,10 @@ export default {
<slot :name="slotName"></slot> <slot :name="slotName"></slot>
<popover v-if="hasPopover" :options="popoverOptions" class="gl-ml-2" /> <popover v-if="hasPopover" :options="popoverOptions" class="gl-ml-2" />
</div> </div>
<slot name="subHeading"></slot> <slot name="sub-heading"></slot>
</div> </div>
<slot name="actionButtons"></slot> <slot name="action-buttons"></slot>
<button <button
v-if="isCollapsible" v-if="isCollapsible"
......
...@@ -147,7 +147,7 @@ export default { ...@@ -147,7 +147,7 @@ export default {
class="card upload-dropzone-border upload-dropzone-overlay gl-w-full gl-h-full gl-absolute gl-display-flex gl-align-items-center gl-justify-content-center gl-p-3 gl-bg-white" class="card upload-dropzone-border upload-dropzone-overlay gl-w-full gl-h-full gl-absolute gl-display-flex gl-align-items-center gl-justify-content-center gl-p-3 gl-bg-white"
> >
<div v-show="!isDragDataValid" class="mw-50 gl-text-center"> <div v-show="!isDragDataValid" class="mw-50 gl-text-center">
<slot name="invalidDragDataSlot"> <slot name="invalid-drag-data-slot">
<h3 :class="{ 'gl-font-base gl-display-inline': !displayAsCard }"> <h3 :class="{ 'gl-font-base gl-display-inline': !displayAsCard }">
{{ __('Oh no!') }} {{ __('Oh no!') }}
</h3> </h3>
...@@ -159,7 +159,7 @@ export default { ...@@ -159,7 +159,7 @@ export default {
</slot> </slot>
</div> </div>
<div v-show="isDragDataValid" class="mw-50 gl-text-center"> <div v-show="isDragDataValid" class="mw-50 gl-text-center">
<slot name="validDragDataSlot"> <slot name="valid-drag-data-slot">
<h3 :class="{ 'gl-font-base gl-display-inline': !displayAsCard }"> <h3 :class="{ 'gl-font-base gl-display-inline': !displayAsCard }">
{{ __('Incoming!') }} {{ __('Incoming!') }}
</h3> </h3>
......
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
@openModal="openModal({ vulnerability })" @openModal="openModal({ vulnerability })"
/> />
<slot v-if="showEmptyState" name="emptyState"> <slot v-if="showEmptyState" name="empty-state">
<gl-empty-state <gl-empty-state
:title="s__(`We've found no vulnerabilities`)" :title="s__(`We've found no vulnerabilities`)"
:description=" :description="
......
...@@ -130,7 +130,7 @@ export default { ...@@ -130,7 +130,7 @@ export default {
<security-dashboard-table> <security-dashboard-table>
<template #emptyState> <template #emptyState>
<slot name="emptyState"></slot> <slot name="empty-state"></slot>
</template> </template>
</security-dashboard-table> </security-dashboard-table>
......
...@@ -233,7 +233,7 @@ export default { ...@@ -233,7 +233,7 @@ export default {
</template> </template>
<template #empty> <template #empty>
<slot name="emptyState"> <slot name="empty-state">
<gl-empty-state <gl-empty-state
ref="tableEmptyState" ref="tableEmptyState"
:title="s__('NetworkPolicies|No policies detected')" :title="s__('NetworkPolicies|No policies detected')"
......
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
:aria-labelledby="buttonId" :aria-labelledby="buttonId"
role="region" role="region"
> >
<slot name="subTitle"></slot> <slot name="sub-title"></slot>
<div ref="content" :style="contentStyles"><slot name="default"></slot></div> <div ref="content" :style="contentStyles"><slot name="default"></slot></div>
</div> </div>
</template> </template>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment