-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from Cambalab/107-expose-auth-action-types-in…
…-the-distributed-version Updates index.js
- Loading branch information
Showing
1 changed file
with
35 additions
and
12 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,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, | ||
} |