Skip to content

Commit

Permalink
Merge pull request #108 from Cambalab/107-expose-auth-action-types-in…
Browse files Browse the repository at this point in the history
…-the-distributed-version

Updates index.js
  • Loading branch information
sgobotta authored Apr 2, 2019
2 parents 41d0e2c + df81ae5 commit 3b5a1d1
Showing 1 changed file with 35 additions and 12 deletions.
47 changes: 35 additions & 12 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,46 @@
import Admin from '@components/Admin';
import {
Create,
Delete,
Edit,
EditButton,
List,
Show
} from '@components/Actions'
import Admin from '@components/Admin'
import AuthTypes from '@va-auth/types'
import Resource from '@components/Resource'
import { version } from '../package.json'
import { name, description, version } from '../package.json'

const components = [ Admin, Resource ];
const components = [
Admin, Resource,
Create, Delete, Edit, EditButton, List, Show,
]

const install = function(Vue) {
components.forEach(component => {
Vue.component(component.name, component);
});
};
Vue.component(component.name, component)
})
}

if (typeof window !== 'undefined' && window.Vue) {
install(window.Vue);
install(window.Vue)
}

const VueAdmin = {
export {
// Package data
name,
description,
version,
// Exports Actions components
Create,
Delete,
Edit,
EditButton,
List,
Show,
// Exports Core components
Admin,
Resource
};

export default VueAdmin;
Resource,
// Exports Types
AuthTypes,
}

0 comments on commit 3b5a1d1

Please sign in to comment.