Commit d7a3e6c4 authored by Enrique Alcantara's avatar Enrique Alcantara

Create EKS cluster Vue app skeleton

- Add AWS SDK Dependency
- Create placeholders for Vue components
- Create store with state structure
parent 43a40ac9
<script>
import ServiceCredentialsForm from './service_credentials_form.vue';
import EksClusterConfigurationForm from './eks_cluster_configuration_form.vue';
export default {
components: {
ServiceCredentialsForm,
EksClusterConfigurationForm,
},
};
</script>
<template>
<eks-cluster-configuration-form />
</template>
<script>
import RoleNameDropdown from './role_name_dropdown.vue';
import SecurityGroupDropdown from './security_group_dropdown.vue';
import SubnetDropdown from './subnet_dropdown.vue';
import VPCDropdown from './vpc_dropdown.vue';
export default {
components: {
RoleNameDropdown,
SecurityGroupDropdown,
SubnetDropdown,
VPCDropdown,
},
};
</script>
<template>
<form name="eks-cluster-configuration-form"></form>
</template>
<template>
<form name="service-credentials-form"></form>
</template>
import Vue from 'vue';
import Vuex from 'vuex';
import CreateEksCluster from './components/create_eks_cluster.vue';
import createStore from './store';
Vue.use(Vuex);
export default () =>
new Vue({
el: '.js-create-eks-cluster-form-container',
store: createStore(),
components: {
CreateEksCluster,
},
data() {},
render(createElement) {
return createElement('create-eks-cluster');
},
});
// import awsServices from '../services/aws_services_facade';
export default () => {};
import Vuex from 'vuex';
import * as actions from './actions';
import * as getters from './getters';
import mutations from './mutations';
import state from './state';
const createStore = () =>
new Vuex.Store({
actions,
getters,
mutations,
state,
});
export default createStore;
export default () => ({
serviceCredentials: {
accessKeyId: '',
secretAccessKey: '',
},
isValidatingCredentials: false,
validCredentials: false,
isLoadingRoles: false,
isLoadingVPCs: false,
isLoadingSubnets: false,
isLoadingSecurityGroups: false,
roles: [],
vpcs: [],
subnets: [],
securityGroups: [],
selectedRole: '',
selectedVPC: '',
selectedSubnet: '',
selectedSecurityGroup: '',
});
import initCreateEKSCluster from '~/create_cluster/eks_cluster';
document.addEventListener('DOMContentLoaded', () => {
initCreateEKSCluster();
});
...@@ -5,6 +5,9 @@ ...@@ -5,6 +5,9 @@
- link_end = '<a/>'.html_safe - link_end = '<a/>'.html_safe
= javascript_include_tag 'https://apis.google.com/js/api.js' = javascript_include_tag 'https://apis.google.com/js/api.js'
- if create_eks_enabled
= javascript_include_tag 'https://sdk.amazonaws.com/js/aws-sdk-2.523.0.min.js'
= render_gcp_signup_offer = render_gcp_signup_offer
.row.prepend-top-default .row.prepend-top-default
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment