added better favicons, moved from sass to glamor, moved components

and utils to src dir, and removed packages no longer being used
This commit is contained in:
JJ Kasper
2018-11-04 01:28:46 -06:00
parent b47f3917bd
commit 31321e635a
99 changed files with 3821 additions and 21818 deletions

19
src/util/parseSort.js Normal file
View File

@@ -0,0 +1,19 @@
export default sort => {
let key, ascDesc
switch (typeof sort) {
case 'object': {
key = Object.keys(sort).pop()
ascDesc = sort[key]
break
}
case 'string': {
const parts = sort.split(':')
key = parts[0]
ascDesc = parts[1]
break
}
default:
break
}
return `$sort[${key}]=${ascDesc}`
}