-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fixed default export of plugin #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
import bAlert from './alert' | ||
import bBreadcrumb from './breadcrumb' | ||
import bButtonCheckbox from './button-checkbox' | ||
import bButtonGroup from './button-group' | ||
import bButtonRadio from './button-radio' | ||
import bButton from './button' | ||
import bCard from './card' | ||
import bCarousel from './carousel' | ||
import bCarouselSlide from './carousel' | ||
import bCollapse from './collapse' | ||
import bCollapseToggle from './collapse-toggle' | ||
import bDropdown from './dropdown' | ||
import bDropdownSelect from './dropdown-select' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). |
||
import bFormCheckbox from './form-checkbox' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). |
||
import bFormRadio from './form-radio' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). |
||
import bFormInput from './form-input' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). |
||
import bFormSelect from './form-select' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). |
||
import bFormTextarea from './form-textarea' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). |
||
import bJumbotron from './jumbotron' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). |
||
import bTags from './tags' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). |
||
import bListGroup from './list-group' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). |
||
import bListGroupItem from './list-group-item' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). |
||
import bMedia from './media' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). |
||
import bModal from './modal' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). |
||
import bNav from './nav' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). |
||
import bNavItem from './nav-item' | ||
import bNavItemDropdown from './nav-item-dropdown' | ||
import bNavbar from './navbar' | ||
import bPagination from './pagination' | ||
import bPopover from './popover' | ||
import bProgress from './progress' | ||
import bTables from './tables' | ||
import bTabs from './tabs' | ||
import bTab from './tab' | ||
import bTooltip from './tooltip' | ||
|
||
export { | ||
bAlert, | ||
bBreadcrumb, | ||
bButtonCheckbox, | ||
bButtonGroup, | ||
bButtonRadio, | ||
bButton as bButton, | ||
bButton as bBtn, | ||
bCard, | ||
bDropdown, | ||
bDropdownSelect, | ||
bFormCheckbox, | ||
bFormRadio, | ||
bFormInput, | ||
bFormSelect, | ||
bFormTextarea, | ||
bJumbotron, | ||
bTags, | ||
bMedia, | ||
bModal, | ||
bNavbar, | ||
bPagination, | ||
bPopover, | ||
bProgress, | ||
bTables, | ||
bTooltip, | ||
bTab, | ||
bTabs, | ||
bNav, | ||
bNavItem, | ||
bNavItemDropdown, | ||
bListGroupItem, | ||
bListGroup, | ||
bCarouselSlide, | ||
bCarousel, | ||
bCollapse, | ||
bCollapseToggle | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,99 +1,20 @@ | ||
import bAlert from './alert' | ||
import bBreadcrumb from './breadcrumb' | ||
import bButtonCheckbox from './button-checkbox' | ||
import bButtonGroup from './button-group' | ||
import bButtonRadio from './button-radio' | ||
import bButton from './button' | ||
import bCard from './card' | ||
import carousel from './carousel' | ||
import carouselSlide from './carousel' | ||
import collapse from './collapse' | ||
import collapseToggle from './collapse-toggle' | ||
import bDropdown from './dropdown' | ||
import bDropdownSelect from './dropdown-select' | ||
import bFormCheckbox from './form-checkbox' | ||
import bFormRadio from './form-radio' | ||
import bFormInput from './form-input' | ||
import bFormSelect from './form-select' | ||
import bFormTextarea from './form-textarea' | ||
import bJumbotron from './jumbotron' | ||
import bTags from './tags' | ||
import listGroup from './list-group' | ||
import listGroupItem from './list-group-item' | ||
import bMedia from './media' | ||
import bModal from './modal' | ||
import nav from './nav' | ||
import navItem from './nav-item' | ||
import navItemDropdown from './nav-item-dropdown' | ||
import bNavbar from './navbar' | ||
import bPagination from './pagination' | ||
import bPopover from './popover' | ||
import bProgress from './progress' | ||
import bTables from './tables' | ||
import tabs from './tabs' | ||
import tab from './tab' | ||
import bTooltip from './tooltip' | ||
|
||
|
||
var components = { | ||
bAlert, | ||
bBreadcrumb, | ||
bButtonCheckbox, | ||
bButtonGroup, | ||
bButtonRadio, | ||
bButton, | ||
bBtn: bButton, | ||
bCard, | ||
bDropdown, | ||
bDropdownSelect, | ||
bFormCheckbox, | ||
bFormRadio, | ||
bFormInput, | ||
bFormSelect, | ||
bFormTextarea, | ||
bJumbotron, | ||
bTags, | ||
bMedia, | ||
bModal, | ||
bNavbar, | ||
bPagination, | ||
bPopover, | ||
bProgress, | ||
bTables, | ||
bTooltip, | ||
bTab: tab, | ||
bTabs: tabs, | ||
bNav: nav, | ||
bNavItem: navItem, | ||
bNavItemDropdown: navItemDropdown, | ||
|
||
bListGroupItem: listGroupItem, | ||
bListGroup: listGroup, | ||
|
||
bCarouselSlide: carouselSlide, | ||
bCarousel: carousel, | ||
|
||
bCollapse: collapse, | ||
bCollapseToggle: collapseToggle, | ||
}; | ||
import * as components from './components'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). |
||
|
||
function plugin(Vue) { | ||
|
||
if (plugin.installed) { | ||
return; | ||
} | ||
|
||
Object.keys(components).forEach(function (key) { | ||
Vue.component(key, components[key]); | ||
}); | ||
|
||
} | ||
|
||
if (typeof window !== 'undefined') { | ||
if (window.Vue) | ||
if (window.Vue) { | ||
window.Vue.use(plugin); | ||
//require('../styles/style.css'); | ||
} | ||
} | ||
|
||
module.exports = components; | ||
module.exports.default = plugin; | ||
export * from './components'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'export' is only available in ES6 (use 'esversion: 6'). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'export' is only available in ES6 (use 'esversion: 6'). |
||
export default plugin; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'export' is only available in ES6 (use 'esversion: 6'). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'export' is only available in ES6 (use 'esversion: 6'). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.