This week
Bundles, continued
I've committed all the progress I've made over the past couple of weeks on bundles. See
commit 151. It's still incomplete, but most of the basic functionality is there. Feel free to
test it out for yourself.
Optimising dynamic line-number insertion
The dynamic line-number insertion was extraordinarily slow for long
snippets. Optimising it was pretty simple, though - I just had to
minimise the number of DOM manipulations and to change the
$.each() call to a standard for loop (see
commit 141).
I should really have done this from the beginning, but at the time I
thought that the initial method was neater and that performance wouldn't
be an issue, which turned out to be very naive.
LESS compilation
I added server-side LESS compilation as an option (
commit 143). To trigger it, set
compile_less = yes in agora.conf. Now, stylesheets load faster, still work with Javascript turned off, and aren't cached in
localStorage when you don't want them to be.
Contributions sidebar for user profiles
There is now a sidebar on user profile pages showing what snippets and bundles that user has created (
commit 152).
Fixing registration
There was a bug in registration before relating to an incorrect usage of the django-registration app. It should be fixed now (
commit 160).
Other cosmetic changes
Minor cosmetic changes include:
- Adding
word-wrap: break-word to diffs and snippets (so that extremely long words don't break out of the box - commits 158 and 161)
- Adding
overflow-x to the snippet history list in the sidebar, to ensure that it never gets too cramped (commit 145)
- Adding a top margin to the diff box to ensure that it is aligned with the sidebar (commit 146)
- Preventing the browser from trying to jump to # when you click the "Highlight code" link (commit 142)
Next week
0 comments:
Post a Comment