Skip to content
This repository has been archived by the owner on May 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2 from FriendsOfShopware/export-shopware-instance
Browse files Browse the repository at this point in the history
Export Shopware Instance
  • Loading branch information
shyim committed Nov 26, 2021
2 parents e079999 + 2de738d commit f0e3553
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ import 'shopware-admin-vue-standalone/dist/shopware-admin-vue-standalone.css';
Vue.use(VueShopwareAdminStandalone);
```

Using Shopware global instance

```javascript
import { Shopware } from 'shopware-admin-vue-standalone';
```

### With vue-i18n

If you want to use the existing translations, you need to install vue-18n.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "shopware-admin-vue-standalone",
"description": "Standalone Shopware administration components for Vue",
"version": "0.1.1",
"version": "0.1.2",
"main": "dist/shopware-admin-vue-standalone.common.js",
"files": [
"dist/*"
Expand Down
2 changes: 2 additions & 0 deletions src/install.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Main from './load';
import Shopware from 'src/core/shopware';

const VueShopwareAdminStandalone = {
install(Vue, options) {
Expand All @@ -20,4 +21,5 @@ if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(VueShopwareAdminStandalone);
}

export const Shopware = Shopware;
export default VueShopwareAdminStandalone;

0 comments on commit f0e3553

Please sign in to comment.