-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(toolbar): should be built as a single plugin #114
also refactor: cleanup plugin exports
closes #114
- Loading branch information
Showing
31 changed files
with
238 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
import plugin from '../plugin.js' | ||
import VueMDCButton from './mdc-button.vue' | ||
|
||
export {VueMDCButton} | ||
|
||
export default { | ||
install (vm) { | ||
vm.component('mdc-button', VueMDCButton) | ||
} | ||
} | ||
export default plugin ({ | ||
VueMDCButton | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,6 @@ | |
|
||
<script> | ||
export default { | ||
name: 'mdc-text' | ||
name: 'mdc-card-text' | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import plugin from '../plugin.js' | ||
import VueMDCCheckbox from './mdc-checkbox.vue' | ||
|
||
export {VueMDCCheckbox} | ||
|
||
export default { | ||
install (vm) { | ||
vm.component('mdc-checkbox', VueMDCCheckbox) | ||
} | ||
export { | ||
VueMDCCheckbox | ||
} | ||
|
||
export default plugin ({ | ||
VueMDCCheckbox | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import plugin from '../plugin.js' | ||
import VueMDCDialog from './mdc-dialog.vue' | ||
|
||
export {VueMDCDialog} | ||
|
||
export default { | ||
install (vm) { | ||
vm.component('mdc-dialog', VueMDCDialog) | ||
} | ||
export { | ||
VueMDCDialog | ||
} | ||
|
||
export default plugin ({ | ||
VueMDCDialog | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import plugin from '../plugin.js' | ||
import VueMDCFAB from './mdc-fab.vue' | ||
|
||
export {VueMDCFAB} | ||
|
||
export default { | ||
install (vm) { | ||
vm.component('mdc-fab', VueMDCFAB) | ||
} | ||
export { | ||
VueMDCFAB | ||
} | ||
|
||
export default plugin ({ | ||
VueMDCFAB | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import plugin from '../plugin.js' | ||
import VueMDCGridList from './mdc-grid-list.vue' | ||
import VueMDCGridTile from './mdc-grid-tile.vue' | ||
|
||
export {VueMDCGridList, VueMDCGridTile} | ||
|
||
export default { | ||
install (vm) { | ||
vm.component('mdc-grid-list', VueMDCGridList) | ||
vm.component('mdc-grid-tile', VueMDCGridTile) | ||
} | ||
export { | ||
VueMDCGridList, | ||
VueMDCGridTile | ||
} | ||
|
||
export default plugin ({ | ||
VueMDCGridList, | ||
VueMDCGridTile | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import plugin from '../plugin.js' | ||
import VueMDCIConToggle from './mdc-icon-toggle.vue' | ||
|
||
export {VueMDCIConToggle} | ||
|
||
export default { | ||
install (vm) { | ||
vm.component('mdc-icon-toggle', VueMDCIConToggle) | ||
} | ||
export { | ||
VueMDCIConToggle | ||
} | ||
|
||
export default plugin ({ | ||
VueMDCIConToggle | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import plugin from '../plugin.js' | ||
import VueMDCICon from './mdc-icon.vue' | ||
|
||
export {VueMDCICon} | ||
|
||
export default { | ||
install (vm) { | ||
vm.component('mdc-icon', VueMDCICon) | ||
} | ||
export { | ||
VueMDCICon | ||
} | ||
|
||
export default plugin({ | ||
VueMDCICon | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import plugin from '../plugin.js' | ||
import VueMDCLayoutApp from './mdc-layout-app.vue' | ||
|
||
export {VueMDCLayoutApp} | ||
|
||
export default { | ||
install (vm) { | ||
vm.component('mdc-layout-app', VueMDCLayoutApp) | ||
} | ||
export { | ||
VueMDCLayoutApp | ||
} | ||
|
||
export default plugin({ | ||
VueMDCLayoutApp | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
import plugin from '../plugin.js' | ||
import VueMDCLayoutGrid from './mdc-layout-grid.vue' | ||
import VueMDCLayoutCell from './mdc-layout-cell.vue' | ||
import VueMDCLayoutInnerGrid from './mdc-layout-inner-grid.vue' | ||
|
||
export {VueMDCLayoutGrid} | ||
export {VueMDCLayoutCell} | ||
export {VueMDCLayoutInnerGrid} | ||
|
||
export default { | ||
install (vm) { | ||
vm.component('mdc-layout-grid', VueMDCLayoutGrid) | ||
vm.component('mdc-layout-cell', VueMDCLayoutCell) | ||
vm.component('mdc-layout-inner-grid', VueMDCLayoutInnerGrid) | ||
} | ||
export { | ||
VueMDCLayoutGrid, | ||
VueMDCLayoutCell, | ||
VueMDCLayoutInnerGrid | ||
} | ||
|
||
export default plugin ({ | ||
VueMDCLayoutGrid, | ||
VueMDCLayoutCell, | ||
VueMDCLayoutInnerGrid | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
import plugin from '../plugin.js' | ||
import VueMDCLinearProgress from './mdc-linear-progress.vue' | ||
|
||
export { | ||
VueMDCLinearProgress | ||
} | ||
|
||
export default { | ||
install (vm) { | ||
vm.component('mdc-linear-progress', VueMDCLinearProgress) | ||
} | ||
} | ||
export default plugin ({ | ||
VueMDCLinearProgress | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export default function (components) { | ||
return { | ||
install: (vm) => { | ||
for (let key in components) { | ||
let component = components[key] | ||
let name = component.name | ||
vm.component(name, component) | ||
} | ||
}, | ||
components | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import plugin from '../plugin.js' | ||
import VueMDCRadio from './mdc-radio.vue' | ||
|
||
export {VueMDCRadio} | ||
|
||
export default { | ||
install (vm) { | ||
vm.component('mdc-radio', VueMDCRadio) | ||
} | ||
export { | ||
VueMDCRadio | ||
} | ||
|
||
export default plugin ({ | ||
VueMDCRadio | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,14 @@ | ||
import plugin from '../plugin.js' | ||
import VueMDCSelect from './mdc-select.vue' | ||
import VueMDCOption from './mdc-option.vue' | ||
import VueMDCMenuSelect from './mdc-menu-select.vue' | ||
import VueMDCMenuOption from './mdc-menu-option.vue' | ||
import VueMDCMultiSelect from './mdc-multi-select.vue' | ||
import VueMDCMultiOption from './mdc-multi-option.vue' | ||
import VueMDCNativeSelect from './mdc-native-select.vue' | ||
import VueMDCNativeOption from './mdc-native-option.vue' | ||
import VueMDCMenuPlugin from '../menu' | ||
|
||
|
||
export { | ||
VueMDCSelect, | ||
VueMDCOption, | ||
VueMDCMenuSelect, | ||
VueMDCMenuOption, | ||
VueMDCMultiSelect, | ||
VueMDCMultiOption, | ||
VueMDCNativeSelect, | ||
VueMDCNativeOption, | ||
VueMDCMenuPlugin | ||
} | ||
|
||
export default { | ||
install (vm) { | ||
vm.use(VueMDCMenuPlugin) | ||
vm.component('mdc-select', VueMDCSelect) | ||
vm.component('mdc-option', VueMDCOption) | ||
vm.component('mdc-menu-select', VueMDCMenuSelect) | ||
vm.component('mdc-menu-option', VueMDCMenuOption) | ||
vm.component('mdc-native-select', VueMDCNativeSelect) | ||
vm.component('mdc-native-option', VueMDCNativeOption) | ||
vm.component('mdc-multi-select', VueMDCMultiSelect) | ||
vm.component('mdc-multi-option', VueMDCMultiOption) | ||
} | ||
} | ||
export default plugin ({ | ||
VueMDCSelect, | ||
VueMDCOption, | ||
}) |
Oops, something went wrong.