Fix linting issues
This commit is contained in:
parent
7366131817
commit
a5939ffb50
|
@ -1,7 +1,7 @@
|
|||
module.exports = {
|
||||
plugins: {
|
||||
tailwindcss: "./tailwind.config.js",
|
||||
"postcss-nested": {},
|
||||
tailwindcss: './tailwind.config.js',
|
||||
'postcss-nested': {},
|
||||
autoprefixer: {}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,18 +53,18 @@ import StarToggle from '@/components/Application/StarToggle'
|
|||
export default {
|
||||
components: {
|
||||
ApplicationTags,
|
||||
StarToggle,
|
||||
StarToggle
|
||||
},
|
||||
|
||||
props: {
|
||||
application: Object,
|
||||
display: String,
|
||||
id: Number,
|
||||
id: Number
|
||||
},
|
||||
|
||||
data() {
|
||||
data () {
|
||||
return {
|
||||
starred: false,
|
||||
starred: false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<script>
|
||||
export default {
|
||||
props: {
|
||||
mode: String,
|
||||
},
|
||||
mode: String
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
export default {
|
||||
props: {
|
||||
level: String,
|
||||
type: String,
|
||||
},
|
||||
type: String
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -8,13 +8,13 @@
|
|||
<script>
|
||||
export default {
|
||||
props: {
|
||||
application: Object,
|
||||
application: Object
|
||||
},
|
||||
|
||||
data() {
|
||||
data () {
|
||||
return {
|
||||
starred: false
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -28,13 +28,13 @@ export default {
|
|||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
required: true,
|
||||
required: true
|
||||
},
|
||||
description: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
required: true
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
<script>
|
||||
export default {
|
||||
props: {
|
||||
label: { type: String },
|
||||
},
|
||||
label: { type: String }
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
@ -73,7 +73,6 @@
|
|||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
import ActionCard from '@/components/Environment/ActionCard'
|
||||
import ActionCardButton from '@/components/Environment/ActionCardButton'
|
||||
|
@ -81,7 +80,7 @@ import ActionCardButton from '@/components/Environment/ActionCardButton'
|
|||
export default {
|
||||
components: {
|
||||
ActionCard,
|
||||
ActionCardButton,
|
||||
ActionCardButton
|
||||
},
|
||||
|
||||
props: {
|
||||
|
@ -89,11 +88,11 @@ export default {
|
|||
isProduction: Boolean
|
||||
},
|
||||
|
||||
data() {
|
||||
data () {
|
||||
return {
|
||||
active: 'code',
|
||||
active: 'code'
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
@ -52,8 +52,8 @@
|
|||
export default {
|
||||
props: {
|
||||
environments: Object,
|
||||
id: String,
|
||||
},
|
||||
id: String
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
@ -41,29 +41,29 @@
|
|||
<script>
|
||||
export default {
|
||||
props: {
|
||||
hidden: Boolean,
|
||||
hidden: Boolean
|
||||
},
|
||||
|
||||
data() {
|
||||
data () {
|
||||
return {
|
||||
selected: 0,
|
||||
items: [
|
||||
{
|
||||
subject: 'Deploying code',
|
||||
text: 'Drag a code element from one environment to another environment, which creates a new tag for the HEAD of that branch and then deploys the tag.',
|
||||
text: 'Drag a code element from one environment to another environment, which creates a new tag for the HEAD of that branch and then deploys the tag.'
|
||||
},
|
||||
{
|
||||
subject: 'Copying files',
|
||||
text: 'Drag a file element from one environment to another environment, which writes new files, overwrites existing files, and ignores files already in place.',
|
||||
text: 'Drag a file element from one environment to another environment, which writes new files, overwrites existing files, and ignores files already in place.'
|
||||
},
|
||||
{
|
||||
subject: 'Copying database',
|
||||
text: 'Drag a database element from one environment to another environment, which overwrites the target database(s). Dragging database elements with more than one database displays a dialog box that allows you to select the databases to deploy',
|
||||
text: 'Drag a database element from one environment to another environment, which overwrites the target database(s). Dragging database elements with more than one database displays a dialog box that allows you to select the databases to deploy'
|
||||
},
|
||||
{
|
||||
subject: 'Task Log',
|
||||
text: 'The Task Log is displayed below your Acquia Cloud environments and contains information on all of the actions taken against your application, including code deployments, configuration updates and environment specific changes.',
|
||||
},
|
||||
text: 'The Task Log is displayed below your Acquia Cloud environments and contains information on all of the actions taken against your application, including code deployments, configuration updates and environment specific changes.'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,11 +19,11 @@ import TaskLogItem from '@/components/Environment/TaskLog/TaskLogItem'
|
|||
|
||||
export default {
|
||||
components: {
|
||||
TaskLogItem,
|
||||
TaskLogItem
|
||||
},
|
||||
|
||||
props: {
|
||||
tasks: Array,
|
||||
tasks: Array
|
||||
},
|
||||
|
||||
computed: {
|
||||
|
|
|
@ -54,12 +54,12 @@
|
|||
<script>
|
||||
export default {
|
||||
props: {
|
||||
task: Object,
|
||||
task: Object
|
||||
},
|
||||
|
||||
data() {
|
||||
data () {
|
||||
return {
|
||||
open: false,
|
||||
open: false
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<script>
|
||||
export default {
|
||||
props: {
|
||||
hidden: Boolean,
|
||||
},
|
||||
hidden: Boolean
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -24,7 +24,7 @@ import _ from 'lodash'
|
|||
|
||||
export default {
|
||||
props: {
|
||||
links: Array,
|
||||
links: Array
|
||||
},
|
||||
|
||||
computed: {
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
<script>
|
||||
export default {
|
||||
props: {
|
||||
links: Array,
|
||||
},
|
||||
links: Array
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
84
src/data.js
84
src/data.js
|
@ -10,23 +10,23 @@ export default {
|
|||
dev: {
|
||||
name: 'Dev',
|
||||
url: 'dev.rebuilding-acquia.com',
|
||||
label: 'develop',
|
||||
label: 'develop'
|
||||
},
|
||||
stage: {
|
||||
name: 'Stage',
|
||||
url: 'stg.rebuilding-acquia.com',
|
||||
label: 'master',
|
||||
label: 'master'
|
||||
},
|
||||
prod: {
|
||||
name: 'Prod',
|
||||
url: 'rebuilding-acquia.com',
|
||||
label: 'tags/2018-12-21',
|
||||
label: 'tags/2018-12-21'
|
||||
},
|
||||
ra: {
|
||||
name: 'RA',
|
||||
url: 'ra.rebuilding-acquia.com',
|
||||
label: 'tags/WELCOME',
|
||||
},
|
||||
label: 'tags/WELCOME'
|
||||
}
|
||||
},
|
||||
tasks: [
|
||||
{
|
||||
|
@ -38,7 +38,7 @@ export default {
|
|||
completed: 'Dec 19, 2018 3:48:29 PM UTC +0000'
|
||||
},
|
||||
loading: false,
|
||||
success: true,
|
||||
success: true
|
||||
},
|
||||
{
|
||||
text: 'Commit: 9688c41 Update IP address refs/heads/master',
|
||||
|
@ -46,10 +46,10 @@ export default {
|
|||
times: {
|
||||
display: 'Dec 19, 2018 3:50:31 PM UTC +0000',
|
||||
started: 'Dec 19, 2018 3:50:31 PM UTC +0000',
|
||||
completed: 'Dec 19, 2018 3:50:31 PM UTC +0000',
|
||||
completed: 'Dec 19, 2018 3:50:31 PM UTC +0000'
|
||||
},
|
||||
loading: false,
|
||||
success: true,
|
||||
success: true
|
||||
},
|
||||
{
|
||||
text: 'Deploy code from test to prod',
|
||||
|
@ -57,10 +57,10 @@ export default {
|
|||
times: {
|
||||
display: 'Dec 19, 2018 3:55:29 PM UTC +0000',
|
||||
started: 'Dec 19, 2018 3:55:29 PM UTC +0000',
|
||||
completed: 'Dec 19, 2018 3:55:29 PM UTC +0000',
|
||||
completed: 'Dec 19, 2018 3:55:29 PM UTC +0000'
|
||||
},
|
||||
loading: false,
|
||||
success: true,
|
||||
success: true
|
||||
},
|
||||
{
|
||||
text: 'Deploy the code reference master to dev',
|
||||
|
@ -68,10 +68,10 @@ export default {
|
|||
times: {
|
||||
display: 'Dec 20, 2018 10:13:48 PM UTC +0000',
|
||||
started: 'Dec 20, 2018 10:13:48 PM UTC +0000',
|
||||
completed: 'Dec 20, 2018 10:13:48 PM UTC +0000',
|
||||
completed: 'Dec 20, 2018 10:13:48 PM UTC +0000'
|
||||
},
|
||||
loading: false,
|
||||
success: true,
|
||||
success: true
|
||||
},
|
||||
{
|
||||
text: 'Deploy the code reference tags/2018-12-19 to test',
|
||||
|
@ -79,10 +79,10 @@ export default {
|
|||
times: {
|
||||
display: 'Dec 20, 2018 10:25:07 PM UTC +0000',
|
||||
started: 'Dec 20, 2018 10:25:07 PM UTC +0000',
|
||||
completed: 'Dec 20, 2018 10:25:07 PM UTC +0000',
|
||||
completed: 'Dec 20, 2018 10:25:07 PM UTC +0000'
|
||||
},
|
||||
loading: false,
|
||||
success: true,
|
||||
success: true
|
||||
},
|
||||
{
|
||||
text: 'Commit: e75c4a3 Merge branch \'voucher-code-bug-34\' refs/heads/master',
|
||||
|
@ -90,11 +90,11 @@ export default {
|
|||
times: {
|
||||
display: 'Dec 21, 2018 12:55:49 PM UTC +0000',
|
||||
started: 'Dec 21, 2018 12:55:49 PM UTC +0000',
|
||||
completed: 'Dec 21, 2018 12:55:49 PM UTC +0000',
|
||||
completed: 'Dec 21, 2018 12:55:49 PM UTC +0000'
|
||||
},
|
||||
status: 'Failed',
|
||||
loading: false,
|
||||
success: false,
|
||||
success: false
|
||||
},
|
||||
{
|
||||
text: 'Commit: 398945c Ensure stage_file_proxy is enabled refs/heads/master',
|
||||
|
@ -102,10 +102,10 @@ export default {
|
|||
times: {
|
||||
display: 'Dec 21, 2018 1:09:19 PM UTC +0000',
|
||||
started: 'Dec 21, 2018 1:09:19 PM UTC +0000',
|
||||
completed: 'Dec 21, 2018 1:09:19 PM UTC +0000',
|
||||
completed: 'Dec 21, 2018 1:09:19 PM UTC +0000'
|
||||
},
|
||||
loading: false,
|
||||
success: true,
|
||||
success: true
|
||||
},
|
||||
{
|
||||
text: 'Commit: 96ac151 Fix syntax refs/heads/master',
|
||||
|
@ -113,10 +113,10 @@ export default {
|
|||
times: {
|
||||
display: 'Dec 21, 2018 1:23:43 PM UTC +0000',
|
||||
started: 'Dec 21, 2018 1:23:43 PM UTC +0000',
|
||||
completed: 'Dec 21, 2018 1:23:43 PM UTC +0000',
|
||||
completed: 'Dec 21, 2018 1:23:43 PM UTC +0000'
|
||||
},
|
||||
loading: false,
|
||||
success: true,
|
||||
success: true
|
||||
},
|
||||
{
|
||||
text: 'Commit: 8056d51 Add production URLs as settings refs/heads/master',
|
||||
|
@ -124,13 +124,13 @@ export default {
|
|||
times: {
|
||||
display: 'Dec 21, 2018 1:34:13 PM UTC +0000',
|
||||
started: 'Dec 21, 2018 1:34:13 PM UTC +0000',
|
||||
completed: 'Dec 21, 2018 1:34:13 PM UTC +0000',
|
||||
completed: 'Dec 21, 2018 1:34:13 PM UTC +0000'
|
||||
},
|
||||
status: 'In progress',
|
||||
loading: true,
|
||||
success: true,
|
||||
},
|
||||
],
|
||||
success: true
|
||||
}
|
||||
]
|
||||
},
|
||||
2: {
|
||||
id: 2,
|
||||
|
@ -142,18 +142,18 @@ export default {
|
|||
dev: {
|
||||
name: 'Dev',
|
||||
url: 'dev.oliverdavies.uk',
|
||||
label: 'develop',
|
||||
label: 'develop'
|
||||
},
|
||||
stage: {
|
||||
name: 'Stage',
|
||||
url: 'stg.oliverdavies.uk',
|
||||
label: 'master',
|
||||
label: 'master'
|
||||
},
|
||||
prod: {
|
||||
name: 'Prod',
|
||||
url: 'oliverdavies.uk',
|
||||
label: 'tags/2018-12-21',
|
||||
},
|
||||
label: 'tags/2018-12-21'
|
||||
}
|
||||
},
|
||||
tasks: [
|
||||
{
|
||||
|
@ -162,10 +162,10 @@ export default {
|
|||
times: {
|
||||
display: 'Dec 23, 2018 11:26:48 PM UTC +0000',
|
||||
started: 'Dec 23, 2018 11:26:50 PM UTC +0000',
|
||||
completed: 'Dec 23, 2018 11:26:52 PM UTC +0000',
|
||||
completed: 'Dec 23, 2018 11:26:52 PM UTC +0000'
|
||||
},
|
||||
loading: false,
|
||||
success: true,
|
||||
success: true
|
||||
},
|
||||
{
|
||||
text: 'Create database opdaviestest in Stage.',
|
||||
|
@ -173,10 +173,10 @@ export default {
|
|||
times: {
|
||||
display: 'Dec 23, 2018 11:26:48 PM UTC +0000',
|
||||
started: 'Dec 23, 2018 11:26:50 PM UTC +0000',
|
||||
completed: 'Dec 23, 2018 11:26:52 PM UTC +0000',
|
||||
completed: 'Dec 23, 2018 11:26:52 PM UTC +0000'
|
||||
},
|
||||
loading: false,
|
||||
success: true,
|
||||
success: true
|
||||
},
|
||||
{
|
||||
text: 'Install Drupal 8 to Dev.',
|
||||
|
@ -184,10 +184,10 @@ export default {
|
|||
times: {
|
||||
display: 'Dec 23, 2018 11:33:52 PM UTC +0000',
|
||||
started: 'Dec 23, 2018 11:33:53 PM UTC +0000',
|
||||
completed: 'Dec 23, 2018 11:37:21 PM UTC +0000',
|
||||
completed: 'Dec 23, 2018 11:37:21 PM UTC +0000'
|
||||
},
|
||||
loading: false,
|
||||
success: true,
|
||||
success: true
|
||||
},
|
||||
{
|
||||
text: 'Commit: 9736ef5 Importing site archive refs/heads/master',
|
||||
|
@ -195,10 +195,10 @@ export default {
|
|||
times: {
|
||||
display: 'Dec 23, 2018 11:36:29 PM UTC +0000',
|
||||
started: 'Dec 23, 2018 11:36:30 PM UTC +0000',
|
||||
completed: 'Dec 23, 2018 11:37:16 PM UTC +0000',
|
||||
completed: 'Dec 23, 2018 11:37:16 PM UTC +0000'
|
||||
},
|
||||
loading: false,
|
||||
success: true,
|
||||
success: true
|
||||
},
|
||||
{
|
||||
text: 'Commit: 0ab620f Initial commit to Acquia Git starter repo. refs/tags/pre-import-2018-12-23',
|
||||
|
@ -206,12 +206,12 @@ export default {
|
|||
times: {
|
||||
display: 'Dec 23, 2018 11:36:30 PM UTC +0000',
|
||||
started: 'Dec 23, 2018 11:36:32 PM UTC +0000',
|
||||
completed: 'Dec 23, 2018 11:36:33 PM UTC +0000',
|
||||
completed: 'Dec 23, 2018 11:36:33 PM UTC +0000'
|
||||
},
|
||||
loading: false,
|
||||
success: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
success: true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
10
src/main.js
10
src/main.js
|
@ -9,12 +9,12 @@ import VueRouter from 'vue-router'
|
|||
|
||||
Vue.config.productionTip = false
|
||||
|
||||
Vue.component('header-buttons', HeaderButtons);
|
||||
Vue.component('navbar', Navbar);
|
||||
Vue.component('sidebar', Sidebar);
|
||||
Vue.component('title-block', TitleBlock);
|
||||
Vue.component('header-buttons', HeaderButtons)
|
||||
Vue.component('navbar', Navbar)
|
||||
Vue.component('sidebar', Sidebar)
|
||||
Vue.component('title-block', TitleBlock)
|
||||
|
||||
Vue.use(VueRouter);
|
||||
Vue.use(VueRouter)
|
||||
|
||||
new Vue({
|
||||
render: h => h(App),
|
||||
|
|
|
@ -7,19 +7,19 @@ export default {
|
|||
{
|
||||
path: '/',
|
||||
name: 'applications',
|
||||
component: Applications,
|
||||
component: Applications
|
||||
},
|
||||
{
|
||||
path: '/:id/environments',
|
||||
name: 'environments',
|
||||
component: Environments,
|
||||
props: true,
|
||||
props: true
|
||||
},
|
||||
{
|
||||
path: '/:id/environments/:environmentName',
|
||||
name: 'environment',
|
||||
component: Environment,
|
||||
props: true,
|
||||
props: true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -70,13 +70,13 @@ import data from '@/data'
|
|||
export default {
|
||||
components: {
|
||||
ApplicationCard,
|
||||
ApplicationDisplaySwitcher,
|
||||
ApplicationDisplaySwitcher
|
||||
},
|
||||
|
||||
data() {
|
||||
data () {
|
||||
return {
|
||||
applications: data.applications,
|
||||
display: 'grid',
|
||||
display: 'grid'
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -87,7 +87,7 @@ export default {
|
|||
},
|
||||
|
||||
methods: {
|
||||
handleDisplay(mode) {
|
||||
handleDisplay (mode) {
|
||||
this.display = mode
|
||||
}
|
||||
}
|
||||
|
|
|
@ -159,17 +159,17 @@ import data from '@/data'
|
|||
export default {
|
||||
components: {
|
||||
ActionCards,
|
||||
ApplicationTags,
|
||||
ApplicationTags
|
||||
},
|
||||
|
||||
props: {
|
||||
id: String,
|
||||
environmentName: String,
|
||||
environmentName: String
|
||||
},
|
||||
|
||||
data() {
|
||||
data () {
|
||||
return {
|
||||
applications: data.applications,
|
||||
applications: data.applications
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -183,16 +183,16 @@ export default {
|
|||
},
|
||||
|
||||
gitUrl: function () {
|
||||
return this.application.machineName + '@svn-1234.prod.hosting.acquia.com:' + this.application.machineName + '.git'
|
||||
return this.application.machineName + '@svn-1234.prod.hosting.acquia.com:' + this.application.machineName + '.git'
|
||||
},
|
||||
|
||||
isProduction: function () {
|
||||
return this.environmentName == 'prod'
|
||||
return this.environmentName === 'prod'
|
||||
},
|
||||
|
||||
sshUrl: function () {
|
||||
return this.application.machineName + '.' + this.environmentName + '@staging-1234.prod.hosting.acquia.com'
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
defaultTheme = require('tailwindcss/defaultTheme')
|
||||
let defaultTheme = require('tailwindcss/defaultTheme')
|
||||
|
||||
module.exports = {
|
||||
theme: {
|
||||
|
@ -9,7 +9,7 @@ module.exports = {
|
|||
100: '#29aae1',
|
||||
200: '#018dc7',
|
||||
300: '#0e68a7',
|
||||
400: '#004f86',
|
||||
400: '#004f86'
|
||||
},
|
||||
green: '#398002',
|
||||
grey: {
|
||||
|
@ -19,11 +19,11 @@ module.exports = {
|
|||
400: '#bbb',
|
||||
500: '#888',
|
||||
600: '#555',
|
||||
700: '#333',
|
||||
700: '#333'
|
||||
},
|
||||
orange: {
|
||||
100: '#fa9903',
|
||||
200: '#ffb401',
|
||||
200: '#ffb401'
|
||||
},
|
||||
purple: '#991faf',
|
||||
red: '#cc1f1a',
|
||||
|
@ -36,30 +36,30 @@ module.exports = {
|
|||
borderWidth: {
|
||||
3: '3px',
|
||||
6: '6px',
|
||||
10: '10px',
|
||||
10: '10px'
|
||||
},
|
||||
boxShadow: {
|
||||
md: '0 0 10px 0 rgba(0,0,0,0.1)',
|
||||
md: '0 0 10px 0 rgba(0,0,0,0.1)'
|
||||
},
|
||||
fontFamily: {
|
||||
sans: ['Proxima Nova', ...defaultTheme.fontFamily.sans],
|
||||
sans: ['Proxima Nova', ...defaultTheme.fontFamily.sans]
|
||||
},
|
||||
fontSize: {
|
||||
'2xs': '.625rem', // 10px
|
||||
'2xs': '.625rem' // 10px
|
||||
},
|
||||
spacing: {
|
||||
'2px': '2px',
|
||||
48: '10rem',
|
||||
56: '14rem',
|
||||
64: '16rem',
|
||||
64: '16rem'
|
||||
},
|
||||
width: {
|
||||
56: '14rem',
|
||||
},
|
||||
},
|
||||
56: '14rem'
|
||||
}
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
require('tailwindcss-spaced-items')({ values: defaultTheme.spacing }),
|
||||
require('tailwindcss-visuallyhidden')(),
|
||||
],
|
||||
require('tailwindcss-visuallyhidden')()
|
||||
]
|
||||
}
|
||||
|
|
Reference in a new issue