107 Commits

Author SHA1 Message Date
Zixaphir
c45807c9b9 Small backlink reflow 2014-03-20 09:42:48 -07:00
Zixaphir
08241a213f Reflow Navigate.node, allow navigation from backlinks and their hashes 2014-03-11 12:48:23 -07:00
Zixaphir
37fd02450c Oops 2014-03-10 12:19:54 -07:00
Zixaphir
6b712a5c0d Fix quote highlighting. 2014-03-10 12:17:43 -07:00
Zixaphir
c6954ee1bb Forgot a couple. 2014-03-10 08:57:19 -07:00
Zixaphir
0e68fe013f Separate Quote Markers into options again.
Still better than it was in terms of code, tho
2014-03-10 08:55:14 -07:00
Zixaphir
7bc8447d3f Fix Quote Hash Navigation on Backlinks (again) 2014-03-06 21:20:26 -07:00
Zixaphir
d251177641 Fix navigating between threads via quote hashes 2014-03-03 00:32:27 -07:00
Zixaphir
e451410ef1 Small reflow to QuoteBacklink I.
I don't like concatenating for temporary data.
2014-03-02 19:45:54 -07:00
Zixaphir
000ca6f9ce Remove QuoteMarkers.cache
If posts couldn't die...
2014-03-02 19:25:34 -07:00
Zixaphir
473b8e879e Implement a shitty cache for QuoteMarkers 2014-03-02 19:03:50 -07:00
Zixaphir
a4ead91d65 Remove some accidental cruft left from incorrectly merging
Fix some QR bugs, remove references to the 'catalog' g.VIEW
And actually put in QuoteMarkers
2014-03-02 18:59:35 -07:00
Zixaphir
db5cccc70f Merge branch 'mayhem' into v3 (Bugtesting time... yey... ;__;)
Conflicts:
	css/burichan.css
	css/futaba.css
	css/photon.css
	css/tomorrow.css
	css/yotsuba-b.css
	css/yotsuba.css
	html/General/Settings-section-Main.html
	html/General/Settings.html
	src/Filtering/PostHiding.coffee
	src/General/Build.coffee
	src/General/Get.coffee
	src/General/Header.coffee
	src/General/Index.coffee
	src/General/Settings.coffee
	src/Miscellaneous/AnnouncementHiding.coffee
	src/Monitoring/ThreadUpdater.coffee
2014-02-28 19:59:04 -07:00
Mayhem
59f2ca6a51 rm as many id attributes in posts as possible.
Add root.dataset.fullID, simplify Get.postFromRoot().
Also figured Menu.toggle() could be simplified since stub of threads do not exist anymore.
2014-02-27 19:02:32 +01:00
Zixaphir
9d95bbea35 Merge branch 'mayhem' into v3 -- Still broken, do not merge (yet)
Conflicts:
	CHANGELOG.md
	Gruntfile.coffee
	css/burichan.css
	css/futaba.css
	css/photon.css
	css/style.css
	css/tomorrow.css
	css/yotsuba-b.css
	css/yotsuba.css
	html/General/Index-navlinks.html
	html/General/Settings-section-Rice.html
	html/General/Settings.html
	html/Posting/QR.html
	json/archives.json
	package.json
	src/Filtering/PostHiding.coffee
	src/Filtering/Recursive.coffee
	src/Filtering/ThreadHiding.coffee
	src/General/Build.coffee
	src/General/Config.coffee
	src/General/Get.coffee
	src/General/Header.coffee
	src/General/Index.coffee
	src/General/Main.coffee
	src/General/Settings.coffee
	src/General/UI.coffee
	src/General/lib/$.coffee
	src/General/lib/databoard.class
	src/General/lib/post.class
	src/General/lib/thread.class
	src/Images/ImageExpand.coffee
	src/Images/RevealSpoilers.coffee
	src/Linkification/Linkify.coffee
	src/Menu/Menu.coffee
	src/Miscellaneous/ExpandThread.coffee
	src/Miscellaneous/IDColor.coffee
	src/Miscellaneous/Keybinds.coffee
	src/Monitoring/ThreadUpdater.coffee
	src/Monitoring/Unread.coffee
	src/Posting/QR.captcha.coffee
	src/Posting/QR.coffee
	src/Posting/QR.cooldown.coffee
	src/Quotelinks/QuoteBacklink.coffee
	src/Quotelinks/QuoteCT.coffee
	src/Quotelinks/QuoteOP.coffee
	src/Quotelinks/QuoteStrikeThrough.coffee
	src/Quotelinks/QuoteYou.coffee
	src/Quotelinks/Quotify.coffee
2014-02-23 14:04:45 -07:00
Mayhem
61510ca272 Add {Post,Thread}::{hide,show}(). Merge reply hiding and thread hiding. 2014-02-22 00:17:47 +01:00
Mayhem
8e423493ac Fix quote markers on backlinks in clones. 2014-02-15 22:43:03 +01:00
Mayhem
d8049013f5 Fix incorrect OP/cross-thread markers on some backlinks. 2014-02-15 22:35:15 +01:00
Mayhem
7df0fd1414 Simplify QuoteMarkers.parseQuotelink arguments. 2014-02-15 22:24:10 +01:00
Mayhem
004c3f74ed Re-think the Quote Backlink implementation.
Before this rewrite, containers and backlinks were created even if the relevant
post did not exist in the page. If the post would never end up existing, it
resulted in a waste of resources. QuoteBacklink's cache also prevented these
containers and backlinks from being garbage collected.
We now only store a map of fullIDs. This feature should be faster since less
elements gets allocated, although the difference is probably negligible.
2014-02-15 21:49:04 +01:00
Mayhem
f6f1126130 Quote markers. 2014-02-08 18:05:33 +01:00
Mayhem
1aa467b051 Remove all inline catalog-related code. 2014-01-29 16:25:52 +01:00
Zixaphir
8ddf2b4e5f Start working on tightening our control of the Navigation context
Currently breaks posting.

TODO:
* Fix style switching from NSFW to SFW (SFW to NSFW works)
  - It is worth noting this used to work.
* Fix post form not updating its currently selected thread.
* Fix navigation between threads in different boards (same boards
  works? Maybe?)
* Handle race conditions due to pop states.
  - I'm having a lot of trouble wrapping my mind around this one.
    Mostly due to the fact that I have no idea where to begin with
    it. But this isn't a big issue unless you pop state multiple
    times within seconds.

    I just need some exceptions when we try to disconnect features
    that haven't even finished connecting due to threads not being
    available yet.

Most of the early issues, like double-backlinks, incorrect
thumbnails, etc, have been fixed, I think. Or at least I'm no
longer running into them all the time.
2014-01-18 02:34:18 -07:00
Zixaphir
7eb2d0aa34 Mostly fix everything broken. Mostly. 2014-01-16 16:44:18 -07:00
Zixaphir
dc5daeba06 I really don't like iterating through objects. 2014-01-14 20:17:44 -07:00
Zixaphir
6c1eef61c0 Fix "Mark Quotes of You"
God, that option name is dumb
2014-01-13 19:09:41 -07:00
Zixaphir
d41448a403 Work around a small issue
causing the space after a quotelink to disappear after inlining a
post and uninlining it.

Seriously.
2014-01-13 00:23:40 -07:00
Zixaphir
7b0b3d23e3 Does it matter? Probably not. 2014-01-13 00:20:27 -07:00
Zixaphir
971b7d971e Better QuoteInline process 2014-01-13 00:09:43 -07:00
Zixaphir
495567682b Fix duplicate backlinks 2014-01-11 19:34:07 -07:00
Zixaphir
2b1a49b02e That didn't work as expected. 2014-01-11 16:14:16 -07:00
Zixaphir
dcb734afff Small fix to backlinks code 2014-01-11 14:54:41 -07:00
Zixaphir
a20e85d30f Features can *and should* handle under what context they disconnect 2014-01-11 12:03:50 -07:00
Zixaphir
bc9f094a77 Turns out I never finished my Thread Title magic...
because @MayhemYDG had already done it and done it better. So I
thought mine was working when it was just his... and then
realized when I didn't disconnect it and the index was getting a
title from a thread that it wasn't working and his was.

So let's just use his code.
2014-01-10 18:07:14 -07:00
Zixaphir
79cf8713a4 Add some stuff, hopefully should reduce errors 2014-01-09 23:10:32 -07:00
Zixaphir
c47b14f0bf Now I need to figure out how to get the Feature.ready code to run 2014-01-09 20:15:48 -07:00
Zixaphir
0d29b42a02 This kills the script
No, seriously, this commit breaks everything if you open a reply.
It's k, though, that's why this branch exists: so I can break it
all without harming end users and stable development.

Holy carp, though, the amount of errors thrown!
2014-01-09 18:51:49 -07:00
Zixaphir
41e3fa05ad Start working on getting index navigation from a thread working 2014-01-08 09:30:23 -07:00
Zixaphir
51c41f563c Shave off a couple lines 2014-01-07 10:28:37 -07:00
Zixaphir
898cfda2fd That translates to leaner JS 2014-01-07 10:23:48 -07:00
Zixaphir
420a5ad432 Why bother assigning variables to do nothing with them? 2014-01-07 10:20:13 -07:00
Zixaphir
80dd30def0 Optimizations to QuoteThreading (again) 2014-01-07 10:17:46 -07:00
Zixaphir
a7ce01cb61 Fix toggle 2014-01-06 09:37:23 -07:00
Zixaphir
3a776fb5e1 Missed one. 2014-01-06 09:17:54 -07:00
Zixaphir
8b6ea725e4 post.cb.call(post) > post.cb()
heh, comprehension fail. this was this anyways.
2014-01-06 09:15:20 -07:00
Zixaphir
77d97277c9 Minor optimizations 2014-01-06 09:04:45 -07:00
Zixaphir
b9f2702daf Consolidate and cleanup 2014-01-06 08:55:26 -07:00
Zixaphir
1c5c542ca1 And that should fix everything. Woo. 2014-01-06 08:45:17 -07:00
Zixaphir
5a080e7f60 D: 2014-01-05 17:47:40 -07:00
Zixaphir
4f8e304ee8 So terrible~ 2014-01-05 13:57:26 -07:00