Skip to content
Snippets Groups Projects

Add runner registration instructions (2)

Merged Miguel Rincon requested to merge 383139-add-runner-registration-instructions into master
All threads resolved!
Compare and Show latest version
15 files
+ 279
96
Compare changes
  • Side-by-side
  • Inline
Files
15
@@ -8,18 +8,35 @@ export default {
props: {
prompt: {
type: String,
required: true,
required: false,
default: '',
},
command: {
type: String,
required: true,
type: [Array, String],
required: false,
default: '',
},
},
computed: {
lines() {
if (typeof this.command === 'string') {
return [this.command];
}
return this.command;
},
clipboard() {
return this.lines.join('');
},
},
};
</script>
<template>
<div class="gl-display-flex gl-gap-3 align-items-start">
<pre class="gl-w-full">{{ prompt }} {{ command }}</pre>
<clipboard-button :text="command" :title="__('Copy')" />
<!-- eslint-disable vue/require-v-for-key-->
<pre
class="gl-w-full"
><span v-if="prompt" class="gl-user-select-none">{{ prompt }} </span><template v-for="line in lines">{{ line }}<br class="gl-user-select-none"/></template></pre>
<!-- eslint-enable vue/require-v-for-key-->
<clipboard-button :text="clipboard" :title="__('Copy')" />
</div>
</template>
Loading