1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00
Commit Graph

256 Commits

Author SHA1 Message Date
Brett Sun
d5469b3efa Add rewritten uploader and UI elements 2016-07-08 18:39:47 +02:00
Brett Sun
1511f06504 Move getDisplayName to react-utility-belt 2016-07-04 15:25:28 +02:00
Brett Sun
dbaf1a2e99 Consolidate Raven constants under one namespace 2016-06-24 16:11:43 +02:00
Brett Sun
b598b428b4 Move file hashing and creation utils to js-utility-belt 2016-06-23 19:48:42 +02:00
Brett Sun
685ac0d941 Check if baseRequest throws a Response before assuming so 2016-06-15 14:46:35 +02:00
Brett Sun
2309e21571 Rewrite requests module using js-utility-belt's request 2016-06-14 17:58:01 +02:00
Brett Sun
136213856b Rename requests util 2016-06-14 17:58:00 +02:00
Brett Sun
fc153f4ab7 Add csrf utils 2016-06-14 17:58:00 +02:00
Brett Sun
c2eb37506a Replace utils in fetch_api with js-utility-belt's 2016-06-14 17:58:00 +02:00
Brett Sun
7014514654 Use UrlResolver to resolve api urls based on white labelling rather than updating ApiUrl's export
Keeping an export constant is more predictable and less surprising for
most people.
2016-06-14 17:58:00 +02:00
Brett Sun
17762ed7b2 Move escapeHTML to dom utils 2016-06-14 17:58:00 +02:00
Brett Sun
4d4cb7f505 Move getSubdomain to url utils 2016-06-14 17:58:00 +02:00
Brett Sun
ad2b7c223c Replace replaceSubstringAtIndex with built-in String.replace 2016-06-14 17:58:00 +02:00
Brett Sun
de571c7fab Use js-utility-belt's truncateText 2016-06-14 17:57:59 +02:00
Brett Sun
ec78ecb8ab Replace remaining general utils with js-utility-belt's
And removes a few unused utils
2016-06-14 17:57:59 +02:00
Brett Sun
56044488d7 Replace mergeOptions with js-utility-belt's safeMerge
And avoid using safeMerge when a normal Object.assign() would do.
2016-06-14 17:57:59 +02:00
Brett Sun
06c02ceecb Use js-utility-belt's text utils 2016-06-14 17:57:59 +02:00
Brett Sun
9e03ef2b90 Use sanitize from js-utility-belt 2016-06-14 17:57:59 +02:00
Brett Sun
5172b4da1f Remove obsolete tests for utils 2016-06-14 17:57:59 +02:00
Brett Sun
574a06311f Fix ESLint errors with form utils 2016-06-14 17:57:59 +02:00
Brett Sun
085d0aaa26 Fix ESLint errors with url utils 2016-06-14 17:57:58 +02:00
Brett Sun
8689585d74 Use js-utility-belt's url utils 2016-06-14 17:57:58 +02:00
Brett Sun
643b45bdee Fix ESLint errors with language utils 2016-06-14 17:57:58 +02:00
Brett Sun
5a270442cb Use js-utility-belt's language utils 2016-06-14 17:57:58 +02:00
Brett Sun
63310c5717 Fix ESLint errors with computeHashOfFile 2016-06-14 17:57:58 +02:00
Brett Sun
f814a6ceb5 Use js-utility-belt's file utilities 2016-06-14 17:57:58 +02:00
Brett Sun
4784dff694 Use js-utility-belt's feature detection 2016-06-14 17:57:57 +02:00
Brett Sun
a4216db6d9 Remove redundant '_utils' suffix in util file names 2016-06-14 17:57:57 +02:00
Brett Sun
5073b0988d Convert withCurrentUser and withWhitelabel to withContext 2016-06-08 13:53:46 +02:00
Brett Sun
b02695a33a Convert whitelabel to be passed down through context and withWhitelabel HOC 2016-06-08 13:11:48 +02:00
Brett Sun
b5eda1cdd2 Inject isLoggedIn through withCurrentUser
Makes checking for logged in status less error prone than always using
`currentUser.email` or `currentUser.username`.
2016-06-07 14:56:40 +02:00
Brett Sun
d1dba86b1a Convert currentUser to be passed down through context and withCurrentUser HOC
Similar to what react-router did with their router and withRouter HOC.
2016-06-07 14:56:35 +02:00
Brett Sun
d995dc238b Log error json payloads in Sentry 2016-04-13 10:19:41 +02:00
Brett Sun
91cc3c63ff Merge pull request #175 from ascribe/fix-request-unexpected-end-of-input
Fix unexpected end of input exceptions from requests
2016-04-13 09:58:14 +02:00
Tim Daubenschütz
7a59960255 Restrict thumbnail expansion if file is TIFF 2016-03-10 15:09:22 +01:00
Brett Sun
8952a607b7 Simplify error handling in requests 2016-03-10 12:16:30 +01:00
Brett Sun
30ba85d937 Fix "Unexpected end of input" JSON parse exceptions 2016-03-10 12:11:45 +01:00
Tim Daubenschütz
5b79648385 Merge pull request #153 from ascribe/fix-digital-work-file-name
Fix digital work file name download
2016-03-03 10:05:13 +01:00
Tim Daubenschütz
f2c7f02480 Add component for signing S3 url 2016-02-17 11:38:01 +01:00
Brett Sun
a4292f09c3 Merge with master 2016-02-05 17:06:16 +01:00
Brett Sun
acd7c0f0a3 Fix PR comments 2016-02-05 15:17:59 +01:00
Brett Sun
826ca08073 Merge with master 2016-02-05 10:38:59 +01:00
Brett Sun
2ad2ea242d Changes for PR comments 2016-01-18 17:31:56 +01:00
Brett Sun
8531b77633 Merge with master 2016-01-11 17:52:32 +01:00
Brett Sun
f31d6352eb Merge general_utils.js from #35 for selectFromObject 2016-01-11 17:09:17 +01:00
Brett Sun
41df6fe837 Add global notification to form validation 2015-12-17 13:05:39 +01:00
Brett Sun
ad17a9d6f3 Show server error in notification if one is given for failed piece registrations 2015-12-16 18:14:06 +01:00
Brett Sun
d9615188b0 Only assume TypeError if request's response is null 2015-12-14 14:54:57 +01:00
Brett Sun
9342262f5c Move ignoreSentry parameter of logGlobal to be last in parameter list 2015-12-14 14:31:53 +01:00
Brett Sun
7605f093ab Fix Request error case 2015-12-09 14:44:31 +01:00