0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-04 03:52:40 +00:00

Wrapping up the fix

This commit is contained in:
Scott Tolksdorf
2016-05-24 21:35:03 -04:00
parent 53529d14eb
commit 2ed9395e29
4 changed files with 175 additions and 172 deletions

View File

@@ -1,117 +1,120 @@
# changelog # changelog
### Thursday, 19/05/2016 - v2.0.2 ### Tuesday, 24/05/2016 - v2.0.3
- Fixed extra wide monster stat blocks sometimes only being one column
- No longer server-side pre-render brews, just incase the user entered invalid HTML, it might crahsh the server
- Bumped up the allowed entity size for extra-large brew (Thanks for reporting it dickboner93) ### Thursday, 19/05/2016 - v2.0.2
- Added a little error box when a save fails with a custom link to reporting the issue on github.
- No longer server-side pre-render brews, just incase the user entered invalid HTML, it might crahsh the server
### Saturday, 14/05/2016 - v2.0.0 (finally!) - Bumped up the allowed entity size for extra-large brew (Thanks for reporting it dickboner93)
- Added a little error box when a save fails with a custom link to reporting the issue on github.
I've been working on v2 for a *very* long time. I want to thank you guys for being paitent.
It started rather small, but as more and more features were added, I decided to just wait until everything was polished. ### Saturday, 14/05/2016 - v2.0.0 (finally!)
Massive changelog incoming: I've been working on v2 for a *very* long time. I want to thank you guys for being paitent.
It started rather small, but as more and more features were added, I decided to just wait until everything was polished.
#### Brews
- New flow for creating new brews. Before creating a new brew would immedaitely create a brew in the database and let you edit it. Many people would create a new brew just to experiment and close it, which lead to many "abandoned brews" (see the Under the hood section below). This started eating up a ton of database space. You now have to manually save a new brew for the first time, however Homebrewery will store anything you don't have saved in local storage, just in case your browser crashes or whatever, it will load that up when you go back to `/homebrew/new` Massive changelog incoming:
- Black blocking edges around notes and stat blocks when printing to PDFs have been fixed
- Borders sometimes not showing up in the second column have been fixed #### Brews
- All pseudo-element borders have been replaced with reliable border images. - New flow for creating new brews. Before creating a new brew would immedaitely create a brew in the database and let you edit it. Many people would create a new brew just to experiment and close it, which lead to many "abandoned brews" (see the Under the hood section below). This started eating up a ton of database space. You now have to manually save a new brew for the first time, however Homebrewery will store anything you don't have saved in local storage, just in case your browser crashes or whatever, it will load that up when you go back to `/homebrew/new`
- Chrome can finally print to PDF as good as Chrome Canary! Updating instructions. - Black blocking edges around notes and stat blocks when printing to PDFs have been fixed
- Added a little page number box. - Borders sometimes not showing up in the second column have been fixed
- Added in a new editable Brew Title. This will be shown in the navbar on share pages, and will default to the file name when you save as PDF. All exsisting brews will be defaulted with an empty title. - All pseudo-element borders have been replaced with reliable border images.
- Mutliline lists render better now - Chrome can finally print to PDF as good as Chrome Canary! Updating instructions.
- Firefox rendering has been slithgly improved. Firefox and Chrome render things **slightly** differently, over the course of a brew, these little changes add up and lead to very noticable rendering differences between the browsers. I'm trying my best to get Firefox rendering better, but it's a difficult problem. - Added a little page number box.
- A bunch of you have wanted to donate to me. I am super flattered by that. I created a [patreon page](https://www.patreon.com/stolksdorf). If you feel like helping out, head here :) - Added in a new editable Brew Title. This will be shown in the navbar on share pages, and will default to the file name when you save as PDF. All exsisting brews will be defaulted with an empty title.
- Mutliline lists render better now
#### Under the Hood Stuff - Firefox rendering has been slithgly improved. Firefox and Chrome render things **slightly** differently, over the course of a brew, these little changes add up and lead to very noticable rendering differences between the browsers. I'm trying my best to get Firefox rendering better, but it's a difficult problem.
- Setup a proper staging environment. Will be using this for tests, and hopefully getting the community to help me test future versions - A bunch of you have wanted to donate to me. I am super flattered by that. I created a [patreon page](https://www.patreon.com/stolksdorf). If you feel like helping out, head here :)
- Server-side prerendering now much faster
- Regular weekly database back-ups. Your brews are safe! #### Under the Hood Stuff
- Database is now uniquely indexed on both editId and shareId, page loads/saving should be much faster - Setup a proper staging environment. Will be using this for tests, and hopefully getting the community to help me test future versions
- Improved Admin console. This helps me answer people's questions about issues with their brews - Server-side prerendering now much faster
- Added a whole querying/pagniation API that I can use for stats and answering questions - Regular weekly database back-ups. Your brews are safe!
- Clearing out "Abandoned" brews (smaller than a tweet and haven't been viewed for a week). These account for nearly a third of all stored brews. - Database is now uniquely indexed on both editId and shareId, page loads/saving should be much faster
- Improved Admin console. This helps me answer people's questions about issues with their brews
#### Interface - Added a whole querying/pagniation API that I can use for stats and answering questions
- Added in a whole new editor with syntax highlighting for markdown - Clearing out "Abandoned" brews (smaller than a tweet and haven't been viewed for a week). These account for nearly a third of all stored brews.
- Built a splitpane! Remembers where you left the split in between sessions
- Re-organized the snippets into a hierarchical groups. Should be much easier to find what you need #### Interface
- Partial page rendering is working. The Homebrewery will now only load the viewable pages, and any page with `<style>` tags on them. If you are working on a large brew you should notice *significant* performance improvements - Added in a whole new editor with syntax highlighting for markdown
- Edit page saving interface has been improved significantly. Auto-saves after 3 seconds on inactivity, now allows user to save at anytime. Will stop the tab from closing witha pop-up if there are unsaved changes. - Built a splitpane! Remembers where you left the split in between sessions
- Navbar and overall style has been improved and spacing made more consistent - Re-organized the snippets into a hierarchical groups. Should be much easier to find what you need
- Elements under the hood are way more organized and should behaviour much more reliably in many sizes. - Partial page rendering is working. The Homebrewery will now only load the viewable pages, and any page with `<style>` tags on them. If you are working on a large brew you should notice *significant* performance improvements
- Source now opens to it's own route `/source/:sharedId` instead of just a window. Now easier to share, and won't be blocked by some browsers. - Edit page saving interface has been improved significantly. Auto-saves after 3 seconds on inactivity, now allows user to save at anytime. Will stop the tab from closing witha pop-up if there are unsaved changes.
- Print page now auto-opens print dialog. If you want to share your print page link, just remove the `?dialog=true` parameter and it won't open the dialog. - Navbar and overall style has been improved and spacing made more consistent
- Elements under the hood are way more organized and should behaviour much more reliably in many sizes.
- Source now opens to it's own route `/source/:sharedId` instead of just a window. Now easier to share, and won't be blocked by some browsers.
- Print page now auto-opens print dialog. If you want to share your print page link, just remove the `?dialog=true` parameter and it won't open the dialog.
\page
### Wednesday, 20/04/2016
- A lot of admin improvements. Pagninated brew table \page
- Added a searching and removing abandoned brew api endpoints (turns out about 40% of brews are shorter that a tweet!).
- Fixed the require cache being cleared. Pages should render a bit faster now. ### Wednesday, 20/04/2016
- Pulled in `kkragenbrink`s fix for nested lists, Thanks! - A lot of admin improvements. Pagninated brew table
- Added a searching and removing abandoned brew api endpoints (turns out about 40% of brews are shorter that a tweet!).
- Fixed the require cache being cleared. Pages should render a bit faster now.
### Wednesday, 06/04/2016 - v1.4 - Pulled in `kkragenbrink`s fix for nested lists, Thanks!
* Pages will now partially render. This should greatly speed up *very* large homebrews. The Homebreery will figure out which page you should be looking at and render that page, the page before, and the page after.
* Zooming should be fixed. I've changed the font size units to be cm, which match the units of the page. Zooming in and out now look much better.
### Wednesday, 06/04/2016 - v1.4
* Pages will now partially render. This should greatly speed up *very* large homebrews. The Homebreery will figure out which page you should be looking at and render that page, the page before, and the page after.
### Monday, 29/02/2016 - v1.3.1 * Zooming should be fixed. I've changed the font size units to be cm, which match the units of the page. Zooming in and out now look much better.
* Removng the changelog button from the Share page
* Added a A4 page size snippet (thanks guppy42!)
* Added support for `<sup>` and `<sub>` tags (thanks crashinworld14!) ### Monday, 29/02/2016 - v1.3.1
* Removng the changelog button from the Share page
### Saturday, 20/02/2016 * Added a A4 page size snippet (thanks guppy42!)
* Fixed h1 headers not going full width (thanks McToomin27) * Added support for `<sup>` and `<sub>` tags (thanks crashinworld14!)
* Added a github issue template
### Saturday, 20/02/2016
## v1.3.0 * Fixed h1 headers not going full width (thanks McToomin27)
* Added a github issue template
### Friday, 19/02/2016
* Improved the admin panel ## v1.3.0
* Added ability to clear away old empty brews
* Added delete button to the edit page ### Friday, 19/02/2016
* Added a dynamically updating changelog page! Nifty! * Improved the admin panel
* Added stlying for wide monster stat blocks and single column class tables * Added ability to clear away old empty brews
* Added snippets for wide monster stat blocks and single column class tables * Added delete button to the edit page
* Added a dynamically updating changelog page! Nifty!
### Tuesday, 16/02/2016 * Added stlying for wide monster stat blocks and single column class tables
* Paragraphs right after tables now indent (thanks LikeAJi6!) * Added snippets for wide monster stat blocks and single column class tables
* Added a `@page` css rule to auto turn off margins when printing
* Added a `page-break` property on each `.phb` page to properly page the pages up when exporting (thanks Jokefury!) ### Tuesday, 16/02/2016
* Improved first character rendering on Firefox * Paragraphs right after tables now indent (thanks LikeAJi6!)
* Improved table spacing a bit * Added a `@page` css rule to auto turn off margins when printing
* Changed padding at page bottom for better fit and clipping of elements * Added a `page-break` property on each `.phb` page to properly page the pages up when exporting (thanks Jokefury!)
* Improved spacing for bold text (thanks nickpunt!) * Improved first character rendering on Firefox
* Improved table spacing a bit
* Changed padding at page bottom for better fit and clipping of elements
## v1.2.0 * Improved spacing for bold text (thanks nickpunt!)
### Sunday, 17/01/2016
* Added a printer friendly snippet that injects some CSS to remove backbrounds and images ## v1.2.0
* Adjusted the styling specific to spell blocks to give it tighter spacing
* Added a changelog! How meta! ### Sunday, 17/01/2016
* Added a printer friendly snippet that injects some CSS to remove backbrounds and images
## v1.1.0 * Adjusted the styling specific to spell blocks to give it tighter spacing
* Added a changelog! How meta!
### Thursday, 14/01/2016
* Added view source to see the markdown that made the page ## v1.1.0
* Added print view
* Fixed API issues that were causing the server to crash ### Thursday, 14/01/2016
* Increased padding on table cells * Added view source to see the markdown that made the page
* Raw html now shows in view source * Added print view
* Fixed API issues that were causing the server to crash
* Increased padding on table cells
## v1.0.0 - Release * Raw html now shows in view source
### Wednesday, 3/01/2016
## v1.0.0 - Release
* Added `phb.standalone.css` plus a build system for creating it
* Added page numbers and footer text ### Wednesday, 3/01/2016
* Page accent now flips each page
* Added `phb.standalone.css` plus a build system for creating it
* Added page numbers and footer text
* Page accent now flips each page

View File

@@ -1,21 +1,21 @@
var React = require('react'); var React = require('react');
var _ = require('lodash'); var _ = require('lodash');
var Nav = require('naturalcrit/nav/nav.jsx'); var Nav = require('naturalcrit/nav/nav.jsx');
var Navbar = React.createClass({ var Navbar = React.createClass({
render : function(){ render : function(){
return <Nav.base> return <Nav.base>
<Nav.section> <Nav.section>
<Nav.logo /> <Nav.logo />
<Nav.item href='/homebrew' className='homebrewLogo'> <Nav.item href='/homebrew' className='homebrewLogo'>
<div>The Homebrewery</div> <div>The Homebrewery</div>
</Nav.item> </Nav.item>
<Nav.item>v2.0.2</Nav.item> <Nav.item>v2.0.3</Nav.item>
</Nav.section> </Nav.section>
{this.props.children} {this.props.children}
</Nav.base> </Nav.base>
} }
}); });
module.exports = Navbar; module.exports = Navbar;

View File

@@ -1,31 +1,31 @@
{ {
"name": "naturalcrit", "name": "naturalcrit",
"description": "D&D Tools for the discerning DM", "description": "D&D Tools for the discerning DM",
"version": "2.0.2", "version": "2.0.3",
"scripts": { "scripts": {
"postinstall": "gulp prod", "postinstall": "gulp prod",
"start": "node server.js" "start": "node server.js"
}, },
"author": "stolksdorf", "author": "stolksdorf",
"license": "BSD-2-Clause", "license": "BSD-2-Clause",
"dependencies": { "dependencies": {
"app-module-path": "^1.0.4", "app-module-path": "^1.0.4",
"basic-auth": "^1.0.3", "basic-auth": "^1.0.3",
"body-parser": "^1.14.2", "body-parser": "^1.14.2",
"classnames": "^2.2.0", "classnames": "^2.2.0",
"express": "^4.13.3", "express": "^4.13.3",
"gulp": "^3.9.0", "gulp": "^3.9.0",
"lodash": "^4.11.2", "lodash": "^4.11.2",
"marked": "^0.3.5", "marked": "^0.3.5",
"moment": "^2.11.0", "moment": "^2.11.0",
"mongoose": "^4.3.3", "mongoose": "^4.3.3",
"pico-flux": "^1.1.0", "pico-flux": "^1.1.0",
"pico-router": "^1.1.0", "pico-router": "^1.1.0",
"react": "^15.0.2", "react": "^15.0.2",
"react-dom": "^15.0.2", "react-dom": "^15.0.2",
"shortid": "^2.2.4", "shortid": "^2.2.4",
"striptags": "^2.1.1", "striptags": "^2.1.1",
"superagent": "^1.6.1", "superagent": "^1.6.1",
"vitreum": "^3.2.1" "vitreum": "^3.2.1"
} }
} }

View File

@@ -412,11 +412,11 @@ table {
column-count: 2; column-count: 2;
column-fill: auto; column-fill: auto;
column-gap: 1cm; column-gap: 1cm;
column-width: 8cm; column-width: 7.68cm;
-webkit-column-count: 2; -webkit-column-count: 2;
-moz-column-count: 2; -moz-column-count: 2;
-webkit-column-width: 8cm; -webkit-column-width: 7.68cm;
-moz-column-width: 8cm; -moz-column-width: 7.68cm;
-webkit-column-gap: 1cm; -webkit-column-gap: 1cm;
-moz-column-gap: 1cm; -moz-column-gap: 1cm;
} }