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

Commit

Permalink
fix(store): Fixes store export
Browse files Browse the repository at this point in the history
- Removes revue
  • Loading branch information
alexander-heimbuch committed Jul 23, 2018
1 parent f876ba5 commit 542d16d
Show file tree
Hide file tree
Showing 6 changed files with 182 additions and 137 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
"redux": "3.7.2",
"redux-actions": "2.4.0",
"redux-vuex": "^0.1.1",
"revue": "3.0.0",
"superagent": "3.8.3",
"v-tooltip": "2.0.0-rc.33",
"vue": "2.5.16",
Expand Down
3 changes: 2 additions & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { createApp } from 'core'

// Store
import store from 'store'
import actions from 'store/actions'

// UI Components
import App from './components/App'
Expand All @@ -15,7 +16,7 @@ export default config => {
}

// Initialize meta for store
store.dispatch(store.actions.init(config))
store.dispatch(actions.init(config))

window.PODLOVE_STORE = store

Expand Down
2 changes: 1 addition & 1 deletion src/embed/embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ window.podlovePlayer = (selector, episode) =>
// Set Title for accessibility
.then(setAccessibilityAttributes(config))
.then(resizer)
.then(sandboxWindow(['PODLOVE_STORE', 'store']))
.then(sandboxWindow(['PODLOVE_STORE']))
.then(dispatchUrlParameters)
)
.catch(err => {
Expand Down
7 changes: 2 additions & 5 deletions src/store/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Vue from 'vue'
import Revue from 'revue'
import { createStore, applyMiddleware, compose } from 'redux'
import { connect } from 'redux-vuex'

Expand All @@ -9,10 +8,8 @@ import actions from './actions'

const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose

const reduxStore = createStore(reducers, composeEnhancers(applyMiddleware(effects)))
const store = createStore(reducers, composeEnhancers(applyMiddleware(effects)))

connect({ Vue, store: reduxStore, actions })

const store = new Revue(Vue, reduxStore, actions)
connect({ Vue, store, actions })

export default store
1 change: 0 additions & 1 deletion src/vendor.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import 'vue'
import 'lodash'
import 'redux'
import 'revue'

/** Shared Components */
import './components/tabs/info/Info'
Expand Down
Loading

0 comments on commit 542d16d

Please sign in to comment.