Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Rewrite StewardScript & ajax sysop #8

Open
Pathoschild opened this Issue June 12, 2012 · 11 comments

2 participants

Jesse Plamondon-Willard Kangaroopower
Jesse Plamondon-Willard
Owner

As requested by Nemo and by Kangaroopower, rewrite Ajax Sysop and StewardScript, merge them into an extensible script, and add them to the git repository. This was partially done a while back but never finished.

Kangaroopower

Yay, I'm here :P DO you need any help with this? I ask because I've become a lot better at javascript since the last time we talked and I pretty sure I could help you out with a good chunk of the work

Jesse Plamondon-Willard
Owner

Hi Kangaroopower. You're more than welcome to contribute, and there's no conflict since I haven't started this yet. You can fork the code and make a pull request when you're ready. :)

Kangaroopower

Cool. What do you want to see in it?

Jesse Plamondon-Willard
Owner

The rewrite should be just about done; what's left is mostly refactoring and tying up loose ends. Two big points are eliminating the overlap with pathoschild.util (which was developed later), and modularising the various parts into separate scripts (as was done with TemplateScript).

The goals of the rewrite are:

  • compatibility with all standard MediaWiki skins (especially Vector);
  • rewrite using jQuery and the new MediaWiki JavaScript features;
  • combine Ajax Sysop and StewardScript using a modular design that lets us add features for more groups later;
  • and add a few requested features.
Kangaroopower

I can do parts two and three but not one and four seeing as I can't really test it... :P. What class do you want it to now be named under. still under pathoschild or something else.

Jesse Plamondon-Willard
Owner

You can test compatibility with different skins by appending &useskin=monobook to the URL when viewing a wiki page. All four of the goals are already done (see the current rewrite code), so it's mostly a matter of refactoring. The namespace should ideally stay the same.

Kangaroopower

Cool. There's one feature that I think would be cool to add and which I can write pretty quickly- the ability to delete a page and then protect it with one click. That would fit in pretty well with the ajax sysop interface on action=delete IMO

Jesse Plamondon-Willard
Owner

Sounds good.

Kangaroopower

do you have a library for using the api? I can do ajax easily, but I like doing less work if i can help it

Jesse Plamondon-Willard
Owner

Nope; it's all done with straight jQuery.

Kangaroopower

Ok cool, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.