2021-11-18 22:05:49 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-01-26 12:08:38 +05:30
|
|
|
class Projects::GoogleCloudController < Projects::GoogleCloud::BaseController
|
2021-11-18 22:05:49 +05:30
|
|
|
def index
|
2021-12-11 22:18:48 +05:30
|
|
|
@js_data = {
|
2022-01-26 12:08:38 +05:30
|
|
|
screen: 'home',
|
2021-12-11 22:18:48 +05:30
|
|
|
serviceAccounts: GoogleCloud::ServiceAccountsService.new(project).find_for_project,
|
2022-01-26 12:08:38 +05:30
|
|
|
createServiceAccountUrl: project_google_cloud_service_accounts_path(project),
|
2022-04-04 11:22:00 +05:30
|
|
|
enableCloudRunUrl: project_google_cloud_deployments_cloud_run_path(project),
|
|
|
|
enableCloudStorageUrl: project_google_cloud_deployments_cloud_storage_path(project),
|
2021-12-11 22:18:48 +05:30
|
|
|
emptyIllustrationUrl: ActionController::Base.helpers.image_path('illustrations/pipelines_empty.svg')
|
|
|
|
}.to_json
|
2021-11-18 22:05:49 +05:30
|
|
|
end
|
|
|
|
end
|