1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-25 18:56:28 +02:00
Commit Graph

2702 Commits

Author SHA1 Message Date
Brett Sun
b4e9bb270d Merge efaa1ba16d into fe2ab10441 2016-07-04 09:23:19 +00:00
Brett Sun
fe2ab10441 Merge pull request #205 from ascribe/use-js-utility-belt
Use js-utility-belt
2016-07-04 11:21:49 +02:00
Brett Sun
d8e92f6e01 Upgrade js-utility-belt 2016-06-22 13:00:46 +02:00
Brett Sun
bafcfe83d9 Use eslint-config-ascribe-react 2016-06-21 17:20:28 +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
0d05eb17fa Upgrade js-utility-belt 2016-06-17 18:27:25 +02:00
Brett Sun
9c47c22e91 Resolve PR comments 2016-06-17 18:26:38 +02:00
Brett Sun
efaa1ba16d Fix nav dropdown menu's styling if menu item is currently active route 2016-06-17 16:32:38 +02:00
Brett Sun
830598509a Fix styling after moving ascribe powered by logo 2016-06-17 16:32:38 +02:00
Brett Sun
11fbfa1fe3 Fix nav dropdown styling after replacing DropdownButton with NavDropdown 2016-06-17 16:32:38 +02:00
Brett Sun
5b11b7bc27 Add missing nav dropdown styles to 23vivi 2016-06-17 16:32:38 +02:00
Brett Sun
06df3a69e9 Fix missing comma in form utils' getAclFormMessage 2016-06-17 16:32:38 +02:00
Brett Sun
8bb3203521 Fix header notifications appearing before account dropdowns when navbar is collapsed 2016-06-17 16:32:38 +02:00
Brett Sun
f9dcdb0318 Control expanded state of Navbar.Collapse
Controlling the expanded state allows us to close the collapse after
items are selected (as recommended by react-bootstrap maintainers).

Also makes changes to the nav components to pass through props
(required by react-bootstrap to correctly wire everything together).
2016-06-17 16:32:37 +02:00
Brett Sun
f775222768 Break up HeaderNotifications into stateless components and pass props down to MenuItems
React-bootstrap Dropdowns expect that passed down props will reach
their MenuItems in order for event callbacks to be triggered (ie. auto
closing the dropdown on select).
2016-06-17 16:32:37 +02:00
Brett Sun
388e10471b Use NavDropdown instead of DropdownButton in nav 2016-06-17 16:32:37 +02:00
Brett Sun
6eac3663d0 Pass props through AclProxy 2016-06-17 16:32:37 +02:00
Brett Sun
f9bacec62a Fix ESLint errors with nav bar and notifications 2016-06-17 16:32:37 +02:00
Brett Sun
8581131fc7 Fix notification links causing page refreshes 2016-06-17 16:32:37 +02:00
Brett Sun
ccdaa355ec Remove obsolete fix for closing dropdown menus in nav bar 2016-06-17 16:32:37 +02:00
Brett Sun
9244f9bf08 Remove unnecessary eventKeys from nav bar 2016-06-17 16:32:37 +02:00
Brett Sun
d89ef347ac Fix broken styling for PieceListFilterDisplay from upgrade to React 15 2016-06-17 16:32:37 +02:00
Brett Sun
a2e8c04427 Rework ascribe-powered-by styling in nav bar 2016-06-17 16:32:33 +02:00
Brett Sun
77d7633690 Remove unnecessary !important styling for font-sizing and ascribe-powered-by logos 2016-06-17 16:32:30 +02:00
Brett Sun
f67c5758a7 Remove lingering hover styling on nav buttons when collapsing dropdowns through clicks 2016-06-16 15:52:32 +02:00
Brett Sun
fcc406504f Merge pull request #204 from ascribe/remove-unused-bootstrap-styles
Remove unused bootstrap styles
2016-06-16 10:47:56 +02:00
Brett Sun
685ac0d941 Check if baseRequest throws a Response before assuming so 2016-06-15 14:46:35 +02:00
Brett Sun
c0ddea975a Remove IE8 support from UglifyJS 2016-06-15 13:00:51 +02:00
Brett Sun
c0be5e0b6c Explicitly ask for sourceMaps from UglifyJS
Otherwise breaks on webpack2-beta.9+
2016-06-15 12:58:36 +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
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