summaryrefslogtreecommitdiff
path: root/scraper/client/types.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-12-15 21:32:51 +0100
committerJules Laplace <julescarbon@gmail.com>2018-12-15 21:32:51 +0100
commite0b0b2f976c61225a178c7715caf2656a1f6741f (patch)
tree78a0e5c861462822d212c065f0825c906209bfe9 /scraper/client/types.js
parentc5b02ffab8d388e8a2925e51736b902a48a95e71 (diff)
moving stuff
Diffstat (limited to 'scraper/client/types.js')
-rw-r--r--scraper/client/types.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/scraper/client/types.js b/scraper/client/types.js
deleted file mode 100644
index e3c64691..00000000
--- a/scraper/client/types.js
+++ /dev/null
@@ -1,21 +0,0 @@
-export const asType = (type, name) => [type, name].join('_').toUpperCase()
-export const tagAsType = (type, names) => (
- names.reduce((tags, name) => {
- tags[name] = asType(type, name)
- return tags
- }, {})
-)
-
-export const metadata = tagAsType('metadata', [
- 'loading', 'loaded', 'loaded_many', 'error', 'set_hash'
-])
-
-export const search = tagAsType('search', [
- 'loading', 'loaded', 'error', 'panic', 'update_options',
-])
-
-export const review = tagAsType('review', [
- 'loading', 'loaded', 'error', 'save', 'unsave', 'refresh', 'clear', 'dedupe', 'create', 'set_count'
-])
-
-export const init = '@@INIT'