Skip to content

Commit

Permalink
[xprototype#4/feature] Review code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
wilcorrea committed Mar 30, 2019
1 parent d60eacc commit 9e8c9c7
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 9 deletions.
4 changes: 1 addition & 3 deletions src/app/Prototype/Contracts/Form/FormComponent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { clone } from 'src/app/Util'

/**
* @mixin {FieldComponent}
*/
Expand Down Expand Up @@ -108,7 +106,7 @@ export default {
field,
action,
true,
clone(parameters)
this.$util.clone(parameters)
)
}
return action
Expand Down
3 changes: 1 addition & 2 deletions src/app/Prototype/Contracts/Form/FormComponents.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { clone } from 'src/app/Util'
import FormComponent from 'src/app/Prototype/Contracts/Form/FormComponent'

/**
Expand Down Expand Up @@ -41,7 +40,7 @@ export default {
*/
renderComponents () {
this.groups = this.sections()
const fields = clone(this.fields())
const fields = this.$util.clone(this.fields())
this.components = Object.values(fields).sort(this.sortComponents).reduce(this.reduceComponents, {})
},
/**
Expand Down
2 changes: 2 additions & 0 deletions src/app/Prototype/Contracts/Form/FormField.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* @typedef {FormField}
*/
const FormField = {
/**
*/
methods: {
/**
* @param {string} component
Expand Down
7 changes: 4 additions & 3 deletions src/app/Prototype/Contracts/Form/FormRecord.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { clone } from 'src/app/Util'

/**
* @mixin {FormRecord}
*/
export default {
/**
*/
Expand Down Expand Up @@ -32,7 +33,7 @@ export default {
accumulator = this.$util.apply(accumulator, key, this.record[key])
return accumulator
}
return Object.keys(this.record).reduce(reduce, clone(this.payload))
return Object.keys(this.record).reduce(reduce, this.$util.clone(this.$payload))
}
}
}
1 change: 1 addition & 0 deletions src/app/Prototype/Contracts/Form/FormValidation.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { parseValidations } from 'src/app/Prototype/Contracts/Helper/validation'

/**
* @mixin {FormValidation}
*/
export default {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/app/Prototype/Contracts/Static.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Basic from './Basic'

/**
* @typedef {Inject}
* @typedef {Static}
*/
export default {
/**
Expand Down
1 change: 1 addition & 0 deletions src/app/Prototype/Contracts/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import TableColumns from './Table/TableColumns'
import TableFetch from './Table/TableFetch'

/**
* @typedef {Table}
*/
export default {
/**
Expand Down
3 changes: 3 additions & 0 deletions src/app/Prototype/Contracts/Table/TableColumns.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* @mixin {TableColumns}
*/
export default {
/**
*/
Expand Down
3 changes: 3 additions & 0 deletions src/app/Prototype/Contracts/Table/TableFetch.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* @mixin {TableFetch}
*/
export default {
/**
*/
Expand Down

0 comments on commit 9e8c9c7

Please sign in to comment.