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

right.vue « panes « components « ide « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 485412867f69c7fa9d1d8feae70bf39cdfb107e8 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<script>
import { mapActions, mapState } from 'vuex';
import tooltip from '../../../vue_shared/directives/tooltip';
import Icon from '../../../vue_shared/components/icon.vue';
import { rightSidebarViews } from '../../constants';
import PipelinesList from '../pipelines/list.vue';

export default {
  directives: {
    tooltip,
  },
  components: {
    Icon,
    PipelinesList,
  },
  computed: {
    ...mapState(['rightPane']),
  },
  methods: {
    ...mapActions(['setRightPane']),
  },
  rightSidebarViews,
};
</script>

<template>
  <div
    class="multi-file-commit-panel ide-right-sidebar"
  >
    <div
      class="multi-file-commit-panel-inner"
      v-if="rightPane"
    >
      <component :is="rightPane" />
    </div>
    <nav class="ide-activity-bar">
      <ul class="list-unstyled">
        <li>
          <button
            v-tooltip
            data-container="body"
            data-placement="left"
            :title="__('Pipelines')"
            class="ide-sidebar-link is-right"
            :class="{
              active: rightPane === $options.rightSidebarViews.pipelines
            }"
            type="button"
            @click="setRightPane($options.rightSidebarViews.pipelines)"
          >
            <icon
              :size="16"
              name="pipeline"
            />
          </button>
        </li>
      </ul>
    </nav>
  </div>
</template>

<style>
.ide-right-sidebar {
  width: auto;
  min-width: 60px;
}

.ide-right-sidebar .ide-activity-bar {
  border-left: 1px solid #eaeaea;
}

.ide-right-sidebar .multi-file-commit-panel-inner {
  width: 350px;
  padding: 8px 16px;
  background-color: #fff;
  border-left: 1px solid #eaeaea;
}
</style>