Commit Graph

145 Commits

Author SHA1 Message Date
Andrew Brown
3b84989321 Show modals again, function method changed apparently 2016-11-06 16:48:42 +01:00
Andrew Brown
a49ddb2717 Show markdown list formatting in content fields -- fixes #154 2016-11-06 01:47:47 +01:00
Robert Richter
7dcf798f8a
Optimize javascript load times
Our application JS is bloated with minified libraries, while our actual
application Javascript barely amounts to more than two hundred lines.
I propose removing these libraries from our sass file, and instead
load them as separate resources in `<link>` and `<script>` tags.

This has several advantages:

 - By using common CDNs, users are likely to have many of these libraries
   cached already.
 - Even if the files aren't cached, the CDN is likely to deliver them
   faster.
 - We can use the HTML5 'async' attribute to load these libraries
   asynchronously, so users aren't held up while they download.
 - Our fully compiled application JS is much, much smaller, which
   reduces the load on our host.

Also, on the topic of load times, I realized that in #152 that one of the
images was a PNG, not a JPG. I had tried optimizing the image, but I didn't
realize that it wasn't a JPG like the others. Here, I converted it to a JPG,
and it is significantly smaller, and it is visually unchanged.

I'm having some difficulty testing on my local machine, so I would appreciate
some additional manual testing before merging this.
2016-11-02 23:41:00 -05:00
Robert Richter
c92304cc7f
Shrink images to the size they are actually used
Also adjust pixel dimensions very slightly so that all
images are the exact same dimensions. We're talkin'
one- or two-pixel changes, but the misalignment is
noticeable if you look closely.

Finally, the pixel density of the images are adjusted
as well. The change is not noticeable, but results in
much smaller file sizes.

These changes result in a visual improvement. Not only
does it fix the aforementioned aspect ratio mismatches,
it improves the quality of the scaled-down images.
I guess the browser did a poor job scaling the images
down, because more detail is visible in the scaled-down
versions.
2016-11-01 20:34:40 -05:00
Andrew Brown
d107512438 Merge branch 'custom-attributes' into content-expansion
Conflicts:
	app/models/content_types/character.rb
	app/models/user.rb
	app/views/content/_form.html.erb
	app/views/content/form/_text_input.html.erb
	app/views/content/index.html.erb
	app/views/content/list/_list.html.erb
	app/views/content/show.html.erb
	app/views/items/edit.html.erb
	app/views/items/new.html.erb
	app/views/locations/edit.html.erb
	app/views/locations/new.html.erb
	app/views/universes/edit.html.erb
	app/views/universes/new.html.erb
	config/locales/en.yml
	config/routes.rb
	db/schema.rb
2016-11-01 21:02:12 +01:00
Andrew Brown
698a92068f Merge branch 'markdown' into content-expansion
Conflicts:
	app/assets/stylesheets/forms.css
	app/assets/stylesheets/landing.scss
	app/views/content/show.html.erb
2016-11-01 12:22:22 +01:00
Andrew Brown
f052073373 PR feedback 2016-11-01 12:13:15 +01:00
Matthew Werner
72c66a60cb Attribute Field Dropdowns 2016-10-31 16:32:41 -07:00
Andrew Brown
2f1cf8a9bf Mobile UI polish 2016-10-31 23:40:08 +01:00
Andrew Brown
c89baed9f8 Update landing page with new content types 2016-10-31 20:12:54 +01:00
Andrew Brown
2005d71d18 Update card headers for magics/languages/religions 2016-10-30 00:35:44 +02:00
Matthew Werner
0c84046330 clean up unnecessary changes 2016-10-25 16:48:07 -07:00
Matthew Werner
9299699f4b better category and field creation 2016-10-25 16:37:35 -07:00
Andrew Brown
657be159c7 Minor dashboard/sidebar styling 2016-10-24 15:10:31 +02:00
Andrew Brown
774d1043f6 Fix sidebar on logged-out pages 2016-10-21 23:38:47 +02:00
Andrew Brown
f2895837f8 Round out race planning 2016-10-21 23:02:26 +02:00
Andrew Brown
69f6a7cbf0 Graphical headers on content index pages 2016-10-19 00:20:46 +02:00
Andrew Brown
848f796a5c Merge branch 'master' into content-expansion
Conflicts:
	app/assets/stylesheets/navbar.css
2016-10-16 23:15:48 +02:00
Andrew Brown
c5c9298e1c Merge branch 'master' into issue-121 2016-10-16 21:19:39 +02:00
Andrew Brown
a2b85d33f4 Merge branch 'master' into mobile-style-tweaks 2016-10-16 20:12:45 +02:00
Mitchel Pigsley
f4e9b733aa Add new line to end of landing.scss 2016-10-15 21:16:35 -05:00
Mitchel Pigsley
4f77f612e2 Add new lines to forms.css and realation_input 2016-10-15 21:13:41 -05:00
Mitchel Pigsley
0951f846bb Consolidate hero image styles and apply them on index and about pages 2016-10-15 15:27:24 -05:00
Mitchel Pigsley
d0cb953047 Reposition Caret 2016-10-15 13:44:59 -05:00
Mitchel Pigsley
80fa7c4d94 Wrap relation input correctly by sizing to normal input height 2016-10-15 10:10:29 -05:00
Andrew Brown
75c1f66d8f Merge branch 'sidenav' into content-expansion 2016-10-14 23:26:05 +02:00
Andrew Brown
18422a2527 Sidebar/navbar styling 2016-10-14 22:08:39 +02:00
Andrew Carreiro
4e5e5ff3d8 issue-121: added newlines 2016-10-14 00:46:03 -04:00
Andrew Carreiro
e74b41f422 Adding a few keyboard commands as well as a simple dialog to give help 2016-10-14 00:46:03 -04:00
Mitchel Pigsley
ec6d6988d2 Add slight bottom margin to hoverable elements 2016-10-12 15:17:57 -05:00
Mitchel Pigsley
92d9ed8eac Size select elents the same as other inputs on mobile 2016-10-12 14:57:18 -05:00
Mitchel Pigsley
9f568aa776 On mobile make the selected universe filter match height of nav 2016-10-12 14:53:19 -05:00
Andrew Brown
d0fc9ca6b1 sidenav + navbar rework with new content types 2016-10-12 03:29:05 +02:00
Andrew Brown
6d3c36a888 Render notebook fields with markdown on content#show pages 2016-10-12 00:28:04 +02:00
Mitchel Pigsley
a39fe0e9b6 Apply styling to select wrappers to match text input spacing 2016-10-11 08:52:08 -05:00
Andrew Brown
790b12c15b Add xml exporting 2016-10-10 13:07:19 +02:00
Andrew Brown
8ab97e7ea6 author page polish 2016-10-01 17:35:59 +02:00
Andrew Brown
96be59d85b dashboard, footer, and misc polish 2016-09-29 21:35:43 +02:00
Andrew Brown
dd6c8789bf Content show page polish / autocomplete hooks 2016-09-29 19:57:42 +02:00
Andrew Brown
6cfa555da0 Author profile page polish 2016-09-29 16:57:53 +02:00
Andrew Brown
cf33c18c7c Content index page polishes 2016-09-29 16:28:18 +02:00
Andrew Brown
b4c2dc1cb3 Dashboard polish 2016-09-29 14:58:42 +02:00
Andrew Brown
96393e75ef Add the rest of the graphs 2016-09-29 00:29:10 +02:00
Andrew Brown
061f0aef37 Add admin stat pages for users, characters, locations, items, and universes 2016-09-28 23:39:32 +02:00
Andrew Brown
3e0fbd9eb2 Merge branch 'master' into issue-10
Conflicts:
	app/assets/javascripts/content.js.coffee
2016-09-23 23:14:50 +02:00
Robert Richter
5e5534a829
Merge branch 'master' into issue-10 2016-09-22 16:48:20 -05:00
Robert Richter
e305714192
Compensate for tab anchor scrolling page 2016-09-22 13:29:14 -05:00
Robert Richter
bb9edc1377
Merge branch 'master' into issue-15 2016-09-22 13:15:56 -05:00
Andrew Brown
1823695816 Normalize card intro assets to the same size 2016-09-22 05:12:31 +02:00
Andrew Brown
2b18b1b789 Way better landing page, still wip 2016-09-21 04:23:00 +02:00