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

2671 Commits

Author SHA1 Message Date
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
2ba96780f1 Update eslint-config-ascribe to avoid errors with long re-export lines 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
8ebd24251c Add js-utility-belt 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
8a3dc579fe Bump dependencies 2016-06-14 17:57:50 +02:00
Brett Sun
d378ecb0f3 Merge pull request #203 from ascribe/upgrade-react-styling
Fix styles for react upgrade
2016-06-13 11:52:24 +02:00
Brett Sun
8b4ff3ec8e Update README for modernization 2016-06-10 16:13:52 +02:00
Brett Sun
9d13ca3bf7 Fix visual regression tests for react-bootstrap update 2016-06-10 10:32:42 +02:00
Brett Sun
4a6d601dcb Fix whitelabel styling after updates 2016-06-10 10:32:42 +02:00
Brett Sun
9d89b0b7ca Fix 23vivi's colors 2016-06-10 10:32:42 +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
6eeac85012 Merge pull request #202 from ascribe/upgrade-react
Upgrade react and react-router
2016-06-10 10:30:33 +02:00
Brett Sun
6b1609e8d9 Merge pull request #201 from ascribe/modernize-build-system
Modernize build system
2016-06-10 10:26:24 +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
206eca16cb Add back spacing to npm scripts 2016-06-08 15:25:06 +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
4683ae6b17 Fix OTS font parsing errors during development
Caused by not using the ExtractTextPlugin for development.
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