first commit

This commit is contained in:
s.golasch
2023-08-01 12:47:58 +02:00
commit b1439a55bb
65 changed files with 3085 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
'use strict'
const {receivedTimeline} = require('./actions')
module.exports = {
// urls that should be called for the remote actions
urls: {
fetch: 'https://layla.amazon.de/api/cards?limit=50',
},
postHooks: {
// called after the timeline has been fetched
fetch: (store, data) => {
return new Promise((resolve, reject) => {
store.dispatch(receivedTimeline(data.cards))
resolve(data)
})
},
}
}