256 Commits

Author SHA1 Message Date
theopolisme
062b4f037a Consistency is key 2014-05-13 17:57:34 -05:00
theopolisme
73baabc621 Stop trailing slashes from blowing up the script 2014-05-13 17:50:40 -05:00
theopolisme
187aa12e73 whitespace :P 2014-05-07 21:43:44 -05:00
theopolisme
eb25b45276 Update comment regex for old format 2014-05-07 21:37:07 -05:00
theopolisme
baf4f90834 Simulate cleanUp first so that we don't warn about HTML comments that the script will remove anyway in the future 2014-05-07 21:33:56 -05:00
theopolisme
f1f2868db6 Add "Teahouse invite" functionality for declines 2014-05-07 21:18:15 -05:00
theopolisme
8128df3246 If the "Review" link is clicked again, just reload the main view 2014-05-07 21:02:16 -05:00
theopolisme
999a520c51 Stupid typos are stupid 2014-05-06 05:52:49 -05:00
theopolisme
70e56c463f Add whitelist checker patch for old AFCH script
I put it in in /misc, since…well…where else was there to put it?
2014-05-05 16:26:17 -05:00
theopolisme
a3454dc971 G13: Non-AFC space drafts must have an {{AFC submission}} template to be eligible 2014-05-04 19:51:27 -05:00
theopolisme
f4aff2730e Don't show a "references after reflist" error if references are embedded in the reflist 2014-05-04 19:50:32 -05:00
theopolisme
5afdf19c31 CSD: Use built in editPage status element with custom statusText
Let’s not reinvent the wheel here. Plus, adds (diff) link and all that
good stuff.
2014-04-30 17:41:51 -05:00
theopolisme
be4abe0d08 Expand embedded tags (like <nowiki>) 2014-04-28 17:36:30 -05:00
theopolisme
d6daaa1200 Show log page in status message 2014-04-28 16:32:32 -05:00
theopolisme
e2143cb60b stupid typos are stupid 2014-04-28 16:31:41 -05:00
theopolisme
cfccff6ee4 Avoid duplicate entries for WikiProjects 2014-04-21 16:22:18 -05:00
theopolisme
37c04681a9 Update comment text -.- 2014-04-21 16:19:27 -05:00
theopolisme
5ed3b8fc80 Warn when the submission contains HTML comments longer than 30 characters 2014-04-20 12:07:17 -05:00
theopolisme
7431c20276 Standardize names (previously they magically changed from view to show) 2014-04-20 12:06:50 -05:00
theopolisme
02c3c9a722 Show build errors in upload.py 2014-04-20 11:35:56 -05:00
theopolisme
c6b1c34375 Fix toggle target 2014-04-20 11:08:28 -05:00
theopolisme
2fa1efe109 listaref is apparently valid 2014-04-20 11:08:00 -05:00
theopolisme
849b24deea Resolve deferred before returning when no deletions present 2014-04-16 12:14:41 -07:00
theopolisme
b8be6e4cdc ho hum 2014-04-13 17:12:49 -07:00
theopolisme
6a3a158e45 "v0.7" 2014-04-13 17:11:04 -07:00
theopolisme
3d214df6c3 Derp 2014-04-13 17:06:19 -07:00
theopolisme
a2fe834055 Add release.py which automates release+commit+tag process 2014-04-13 17:02:08 -07:00
theopolisme
f33c06d13e editPage: handle nochange, diffLink -> $diffLink 2014-04-12 13:15:40 -05:00
theopolisme
823b19ef2d Wait for other JS to load before marking old links
So we don’t miss scripts loaded after afch-rewrite.
2014-04-12 11:01:54 -05:00
theopolisme
5ca33cd4f9 Make diff link smaller, generalize classes 2014-04-12 10:45:59 -05:00
theopolisme
9b8e76cb59 Include a diff link in the "Saved $1" message after successful edits
Also update AFCH.status.Element.update() to handle jQuery input.
2014-04-10 18:43:56 -05:00
theopolisme
41852b4036 Only remove spaces and tabs before <ref> tags, not newlines
Prevents awkward situations. See diff at
https://en.wikipedia.org/w/index.php?title=Château_Haldimand&diff=prev&o
ldid=603494895
2014-04-09 16:12:10 -05:00
theopolisme
c9c71de016 Try "1" for accesskey 2014-04-09 05:58:29 -05:00
theopolisme
eca7227ca1 Cosmetic: sort dependencies for readability 2014-04-09 05:53:37 -05:00
theopolisme
3752c3cde0 Change to "k" accesskey 2014-04-09 05:52:53 -05:00
theopolisme
ad5f7a97c9 "Recently used" decline reasons! (yay, mw.user.options <3)
Add AFCH.userData as a wrapper around mw.user.options. The main benefit
of using this wrapper is when the page is reloaded using ajax — we use
an intermediate cache which stores values until mw.user.options updates
(on reload). Additionally, handles the API requests to set values
(which is nice ;) ).

As far as the “recently used” menu goes, it shows the three most
recently selected decline reasons as well as the “custom” reason (which
is always displayed).
2014-04-08 18:36:08 -05:00
theopolisme
c61e040b23 Multiples instances support: for feedback link, jquery object, not selector 2014-04-08 18:30:57 -05:00
theopolisme
2c1a1e7bf2 Move "Review" link to p-cactions, and also warn users about using the old script
Append “ (old)” to old review links, and (once afch-rewrite is > v1.0)
show a warning once per session about using an “unsupported version”.
2014-04-08 18:30:17 -05:00
theopolisme
ea18f73a6f Switch to LESS, build-based, more modular styling system
Run `grunt build` to build AFCH, or just use scripts/upload.py — this
will create all the necessary files in the /build directory, including
minified css based on the…

LESS files! That’s right, variables, nested selectors, and more. Expect
cleaner, tidier code…already switched much of it over.

Additionally, using LESS, our CSS selectors are much more specific,
pretty much 100% ensuring we’ll avoid future class/selector conflicts.

We now ALSO use a combination of classes and $afch.find() to ensure
that multiple AFCH instances can run at one time on a page.

Big commit, yay :)
2014-04-06 14:51:26 -05:00
theopolisme
2face48074 Include copyvio urls in the decline template as well 2014-04-05 21:22:39 -05:00
theopolisme
293d8791a0 Better unbalanced <ref> handling
Just use a (very) simple regex plus a filter rather than a ridiculously
complicated regex.
2014-04-05 10:09:00 -05:00
theopolisme
89a932c009 Use postWithToken() method which automatically gets a new token if the current one is invalid
Should help alleviate (in fact, completely remove) badtoken errors as
discussed in #8.
2014-04-05 09:03:36 -05:00
theopolisme
382fd8db01 CSS: be more restrictive with classes, re #7 2014-04-05 08:49:56 -05:00
theopolisme
cc39fafc5e Offer to patrol page when accepting 2014-03-29 22:38:05 -05:00
theopolisme
59d238d394 Remove sandbox templates 2014-03-29 21:46:42 -05:00
theopolisme
549ff7e81a Offer a "rationale" field when postponing G13 deletion (becomes a comment on the submission) 2014-03-29 09:12:19 -05:00
theopolisme
e585f4f475 Another copyvio url? No problem! 2014-03-28 20:11:11 -05:00
theopolisme
fce3ad7fa6 Ignore placeholder text 2014-03-28 18:16:30 -05:00
theopolisme
aab2a6b0d5 Don't add multiple CSD templates for copyvios 2014-03-28 07:55:37 -05:00
theopolisme
602ff748f4 This is not an HTML comment...whoops! 2014-03-28 05:57:12 -05:00