Trevor Buckner
9519a0b4e4
Fix duplicated text from Class Feature snippet
...
When adding the Class Feature snippet, all curent text in the document is inserted in place of the randomly generated class name, creating several duplicates of the document and generally creating a mess. See #413 which was closed but the issue was never fixed.
Most of the snippet code generators do not have any input arguments in the `module.exports` function, so they don't have this issue. However, Table of Contents needs to parse the text in the brew, so it is passed a copy of the brew document. Unfortunately, Class Feature (classfeature.gen.js) also has an input parameter for when it is used as part of the Full Class snippet. Thus, the unintended consequence occurs in snippetbar.jsx in the `execute` function.
This fix simply adds a check to the execute function and only passes in the brew as an argument if the clicked snipped actually is the Table of Contents. Some restructuring might later reveal a cleaner way to do this rather than an awkward special case check like this.
2018-05-11 10:20:18 +01:00
Eric Scheid
9dd16b6dd5
add page-break-inside to support Firefox, the laggard
2018-05-10 14:36:24 -04:00
Eric Scheid
d693301c37
Fix property name break-inside
2018-05-10 14:36:24 -04:00
Rae Che
fd5d142c16
Fix calculation of currently-viewed page.
...
Previously, this relied on a hard-coded constant determining the
height of a page. However, that's unnecessary -- we know the scroll
height of the window and the number of pages, so we can compute it.
2018-05-10 14:35:03 -04:00
Trevor Buckner
ee63d2d857
Fix duplicate table headers
...
Fixes a common issue. See #318 .
2018-05-10 18:26:46 +01:00
Vincent Durmont
7c3946fb03
Some typos
2018-05-10 13:11:40 -04:00
Trevor Buckner
3e69e8c1aa
Revert "Merge pull request #1 from calculuschild/Fix-Duplicated-Table-Headers"
...
This reverts commit 1a0bc1952c , reversing
changes made to 4f4ef908e0 .
2018-05-08 21:33:34 -04:00
Trevor Buckner
1a0bc1952c
Merge pull request #1 from calculuschild/Fix-Duplicated-Table-Headers
...
Fix Duplicated Table Header
2018-05-08 12:45:02 -04:00
Trevor Buckner
7e2c3381ae
Fix Duplicated Table Header
...
Fixes a pretty common issue. See #318 .
2018-05-08 12:42:11 -04:00
Trevor Buckner
4f4ef908e0
Merge branch 'master' of https://github.com/calculuschild/homebrewery
2018-05-08 12:39:50 -04:00
Trevor Buckner
3fe2360d92
Revert "Fix duplicated table headers"
...
This reverts commit 13a2a7efd2 .
2018-05-08 12:36:30 -04:00
Trevor Buckner
13a2a7efd2
Fix duplicated table headers
...
Fixes a pretty common issue. See #318 .
2018-05-08 12:33:36 -04:00
Trevor Buckner
073fb73bde
Wrap the text in the "source" page.
...
See #332 .
2018-05-07 10:56:23 +01:00
Trevor Buckner
847615ef8e
Wrap the text in the "source" page.
...
See #332 .
2018-04-17 21:03:50 -04:00
Scott Tolksdorf
3583c2e776
upgrading to mongoose v5
2018-04-09 00:12:56 -04:00
Scott Tolksdorf
2a753ccc7c
Removing picofluc for now
2018-04-09 00:12:56 -04:00
Scott Tolksdorf
55c529473a
adding bithoundrc and updating pico-router
2018-04-09 00:12:56 -04:00
Scott Tolksdorf
164f646e08
Updating some packages
2018-04-09 00:12:56 -04:00
Scott Tolksdorf
6f4962926c
Upping version
2018-04-09 00:12:56 -04:00
Scott Tolksdorf
f18a181e2e
Updating to user create-react-class
2018-04-09 00:12:56 -04:00
Scott Tolksdorf
c4bff6afa0
Upping the node ver on circleci
2018-04-09 00:12:56 -04:00
Scott Tolksdorf
63e8a0d9b7
Updating superagent
2018-04-09 00:12:56 -04:00
Scott Tolksdorf
ce3fda683b
Adding in the missing repository field
2018-04-09 00:12:56 -04:00
Scott Tolksdorf
9594b73b0d
Updating build scripts and libraries
2018-04-09 00:12:56 -04:00
Scott Tolksdorf
78ad4bea09
Updating build scripts and libraries
2018-04-09 00:12:56 -04:00
Scott Tolksdorf
ed1b5252be
lint
2018-04-09 00:12:56 -04:00
Scott Tolksdorf
bf27250990
Updating navbar link to go to the new subreddit
2018-04-09 00:12:56 -04:00
Scott Tolksdorf
bab11d692e
Adding mongo image to the circleci config
2018-04-09 00:12:56 -04:00
Scott Tolksdorf
3350b04f64
Updating contributing and issue guides, added new verify npm task
2018-04-09 00:12:56 -04:00
Scott Tolksdorf
5ebba25183
Moving babelrc into package
2018-04-09 00:12:56 -04:00
Scott Tolksdorf
8f77ac9e56
Adding in test case runner
2018-04-09 00:12:56 -04:00
Scott Tolksdorf
3f728e7993
adding a circleCI task
2018-04-09 00:12:56 -04:00
Scott Tolksdorf
3f22572f98
Adding circleCI and eslint
2018-04-09 00:12:56 -04:00
Scott Tolksdorf
a52f628fdf
Adding circleCI
2018-04-09 00:12:56 -04:00
Trevor Buckner
fe63133d7c
Re-enable Box Shadows in PDF
...
Box shadows have been fixed in Chrome. No reason to hide them anymore.
2018-04-08 23:23:49 -04:00
Scott Tolksdorf
3247cab214
Fixing issue#413 class feature duping entire brew
2017-06-04 16:07:49 -04:00
Scott Tolksdorf
b68c6a4ad2
Added ability to hide render wanring notification
v2.7.4
2017-04-22 12:09:18 -04:00
Scott Tolksdorf
6e0f042b42
Adding quick fix for PPR getting out of sync
v2.7.3
2017-03-03 19:25:56 -05:00
Scott Tolksdorf
c47d492ed3
fix
2017-02-18 14:48:45 -05:00
Scott Tolksdorf
18852932e8
Added new delete brew option on user page
v2.7.2
2017-02-18 14:46:14 -05:00
Scott Tolksdorf
cc8e874ad1
Disabling zoom check, since it does not play well with many browsers
2017-01-21 20:38:35 -05:00
Scott Tolksdorf
8b148b81b8
Merge branch 'v2.7'
2017-01-19 12:43:48 -05:00
Scott Tolksdorf
063d701a0e
Updating the changelog and welcome msg
2017-01-19 12:39:13 -05:00
Scott Tolksdorf
296b066ed3
Added a brew lookup for admin page
2017-01-19 12:28:00 -05:00
Scott Tolksdorf
9fe6fd979b
Adding in line highlight for new pages
2017-01-19 12:10:19 -05:00
Scott Tolksdorf
70346ffce7
Fixed saving authors and systems to brews
2017-01-19 12:06:14 -05:00
Scott Tolksdorf
c417c1aa0c
Hiding the editor snapping for now
2017-01-19 11:50:01 -05:00
Scott Tolksdorf
5e04e5dc99
Code to brew page jumping working
2017-01-17 23:32:34 -05:00
Scott Tolksdorf
6544d63b23
Updated vitreum, fixed events in render warnings
2017-01-17 00:39:28 -05:00
Scott Tolksdorf
5bfa195dc7
added listner for zoom event
2017-01-15 11:38:22 -05:00