debian-mirror-gitlab/app/assets/javascripts/google_cloud/components/home.vue

82 lines
1.9 KiB
Vue
Raw Normal View History

2022-01-26 12:08:38 +05:30
<script>
import { GlTabs, GlTab } from '@gitlab/ui';
2022-03-02 08:16:31 +05:30
import DeploymentsServiceTable from './deployments_service_table.vue';
2022-05-07 20:08:51 +05:30
import RevokeOauth from './revoke_oauth.vue';
2022-01-26 12:08:38 +05:30
import ServiceAccountsList from './service_accounts_list.vue';
2022-05-07 20:08:51 +05:30
import GcpRegionsList from './gcp_regions_list.vue';
2022-01-26 12:08:38 +05:30
export default {
components: {
GlTabs,
GlTab,
2022-03-02 08:16:31 +05:30
DeploymentsServiceTable,
2022-05-07 20:08:51 +05:30
RevokeOauth,
2022-01-26 12:08:38 +05:30
ServiceAccountsList,
2022-05-07 20:08:51 +05:30
GcpRegionsList,
2022-01-26 12:08:38 +05:30
},
props: {
serviceAccounts: {
type: Array,
required: true,
},
createServiceAccountUrl: {
type: String,
required: true,
},
2022-05-07 20:08:51 +05:30
configureGcpRegionsUrl: {
type: String,
required: true,
},
2022-01-26 12:08:38 +05:30
emptyIllustrationUrl: {
type: String,
required: true,
},
2022-04-04 11:22:00 +05:30
enableCloudRunUrl: {
2022-03-02 08:16:31 +05:30
type: String,
required: true,
},
2022-04-04 11:22:00 +05:30
enableCloudStorageUrl: {
2022-03-02 08:16:31 +05:30
type: String,
required: true,
},
2022-05-07 20:08:51 +05:30
gcpRegions: {
type: Array,
required: true,
},
revokeOauthUrl: {
type: String,
required: true,
},
2022-01-26 12:08:38 +05:30
},
};
</script>
<template>
<gl-tabs>
<gl-tab :title="__('Configuration')">
<service-accounts-list
class="gl-mx-4"
:list="serviceAccounts"
:create-url="createServiceAccountUrl"
:empty-illustration-url="emptyIllustrationUrl"
/>
2022-05-07 20:08:51 +05:30
<hr />
<gcp-regions-list
class="gl-mx-4"
:empty-illustration-url="emptyIllustrationUrl"
:create-url="configureGcpRegionsUrl"
:list="gcpRegions"
/>
<hr v-if="revokeOauthUrl" />
<revoke-oauth v-if="revokeOauthUrl" :url="revokeOauthUrl" />
2022-01-26 12:08:38 +05:30
</gl-tab>
2022-03-02 08:16:31 +05:30
<gl-tab :title="__('Deployments')">
<deployments-service-table
2022-04-04 11:22:00 +05:30
:cloud-run-url="enableCloudRunUrl"
:cloud-storage-url="enableCloudStorageUrl"
2022-03-02 08:16:31 +05:30
/>
</gl-tab>
2022-01-26 12:08:38 +05:30
<gl-tab :title="__('Services')" disabled />
</gl-tabs>
</template>