Welcome to mirror list, hosted at ThFree Co, Russian Federation.

environment_terminal_button.js.es6 « components « environments « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 050184ba497a3cc5cf6c18c88e58ad5a7d836e26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*= require vue */
/* global Vue */

(() => {
  window.gl = window.gl || {};
  window.gl.environmentsList = window.gl.environmentsList || {};

  gl.environmentsList.TerminalButtonComponent = Vue.component('terminal-button-component', {
    props: {
      terminalPath: {
        type: String,
        default: '',
      },
      terminalIconSvg: {
        type: String,
        default: '',
      },
    },

    template: `
      <a class="btn terminal-button"
        :href="terminalPath">
        <span class="js-terminal-icon-container" v-html="terminalIconSvg"></span>
      </a>
    `,
  });
})();