1
0
mirror of https://github.com/ascribe/onion.git synced 2025-01-03 10:25:08 +01:00
Commit Graph

1982 Commits

Author SHA1 Message Date
Brett Sun
fea845ce3d Replace Form with react-utility-belt's 2016-07-13 23:26:32 +02:00
Brett Sun
61779e5535 Clean up AlertDismissable and move to root components folder 2016-07-11 19:05:20 +02:00
Brett Sun
d5469b3efa Add rewritten uploader and UI elements 2016-07-08 18:39:47 +02:00
Brett Sun
1069121e07 Remove old uploaders 2016-07-08 16:19:35 +02:00
Brett Sun
819b367896 Fix ProgressBar changes from updating react-bootstrap 2016-07-08 16:17:45 +02:00
Brett Sun
16a7e32840 Use react-utility-belt's uploader utils 2016-07-08 16:15:33 +02:00
Brett Sun
8a4243ffab Clean up FurtherDetails component 2016-07-08 16:06:00 +02:00
Brett Sun
0d751d5986 Log to sentry in addition to warning statements when checks fail in withContext 2016-07-08 16:06:00 +02:00
Brett Sun
2dce333c6a Change export of validationParts and validationTypes to be ValidationParts and ValidationTypes 2016-07-05 10:56:21 +02:00
Brett Sun
bf68efcd96 Stop including fineuploader by just copying its source
Onwards to react-components!
2016-06-29 12:02:19 +02:00
Brett Sun
2706f04f3a Add exports for custom propTypes as shape specs rather than the complete shape
Allows easier composition of the shapes in case we need to extend them
in components later
2016-06-27 11:30:32 +02:00
Brett Sun
ba62734bdb Move S3 settings to environment variables 2016-06-24 16:14:16 +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
406734d910 Cherrypicking unfinished uploader changes in preparation for move to react-components 2016-06-22 15:38:46 +02:00
Brett Sun
8dec470e46 Cherrypicking unfinished form changes in preparation of move to react-components 2016-06-22 15:34:06 +02:00
Brett Sun
881584111b Replace AppConstant's baseUrl with appBasePath to be more inline with environment variable 2016-06-20 10:15:49 +02:00
Brett Sun
9c47c22e91 Resolve PR comments 2016-06-17 18:26:38 +02:00
Brett Sun
2309e21571 Rewrite requests module using js-utility-belt's request 2016-06-14 17:58:01 +02:00
Brett Sun
fc153f4ab7 Add csrf utils 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
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
9e03ef2b90 Use sanitize from js-utility-belt 2016-06-14 17:57:59 +02:00
Brett Sun
8689585d74 Use js-utility-belt's url utils 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
36baa39491 Remove unused PasswordResetRequestModal 2016-06-14 17:57:57 +02:00
Brett Sun
1cc047d060 Fix PieceListToolbar styling 2016-06-10 10:32:42 +02:00
Brett Sun
4fd0e0d99c Fix Navbar and notification list styling 2016-06-10 10:32:42 +02:00
Brett Sun
9ffa834ec0 Fix Navbar not showing mobile toggle 2016-06-10 10:32:42 +02:00
Brett Sun
2aa3aa5ff7 Fix Footer rendering from route declarations
Also a few cosmetic changes to make it more obvious the route holds an
actual footer type.
2016-06-10 10:25:09 +02:00
Brett Sun
df1e6a55c4 Remove displayName declaration from ProxyHandler's component 2016-06-10 10:25:03 +02:00
Brett Sun
ec13e968a4 Make withContext's displayName more intuitive 2016-06-10 10:24:54 +02:00
Brett Sun
0f57137c52 Remove route from context and use setRouteLeaveHooks in top level route components 2016-06-08 15:10:58 +02:00
Brett Sun
71dbad2a18 Add location to context 2016-06-08 14:54:05 +02:00
Brett Sun
5a0a6e88db Convert usages of withRouter to withContext 2016-06-08 13:53:50 +02:00
Brett Sun
5073b0988d Convert withCurrentUser and withWhitelabel to withContext 2016-06-08 13:53:46 +02:00
Brett Sun
75247b2594 Remove obsolete AppRouteWrapper
Now that currentUser and whitelabel are passed as context, we don’t
need AppRouteWrapper to copy them into routes as props
2016-06-08 13:11:52 +02:00
Brett Sun
34b1a2c1fc Add whitelabel and isLoggedIn as arguments to ProxyHandler's redirectFunctions 2016-06-08 13:11:52 +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
6b67a8462f Convert usage of router from context to using withRouter 2016-06-06 16:54:38 +02:00
Brett Sun
c807f62297 Replace usage of history with router passed down through context 2016-06-06 16:10:41 +02:00
Brett Sun
d1dfdbdbec Only import what we need from react-router
Unfortunately webpack doesn’t understand jsnext:main declarations yet,
so we have to do this ourselves by using react-router’s es6 build
2016-06-06 16:07:47 +02:00
tim
30c03783d1 Replace getDOMNode with findDOMNode 2016-06-06 16:07:43 +02:00
tim
7e0068bec8 Fix app crashing warnings 2016-06-06 16:07:17 +02:00