Commit graph

669 commits

Author SHA1 Message Date
Michael Dale
aefc40d749 here it is ... the upload-api, script-server, js2 (javascript phase2) branch merge 1st attempt.
Here is a short overview of changes and associated default configuration variables (most everything is off by default) also see ~soon to be updated~: http://www.mediawiki.org/wiki/Media_Projects_Overview

= Upload Improvements =
==Upload API ==
* Based on the early work of Bryan Tong and others it adds the upload option to the api.
* We rewrite Special:Upload page to include use the new refactoring
* Added in token checks in both the SpecialUpload.php page so avoids DOS / xss copy-by-url JavaScript based cross site POST file submissions

== Copy by URL==
$wgAllowCopyUploads = false;
* http class rewrite includes a new http background download see: includes/HttpFunctions.php

* spins off a php process that calls: maintenance/http_session_download.php
* pushes updates to the session and gives the user a progress bar on http copy uploads from other server progress (using js2 upload interface) (if not using the js2 upload interface it does the request in-place but the download is limited to the php ini timeout time)

== Firefogg ==
* Firefogg enables resumable upload by chunks
* progress indicators and conditional invokation (js2 system)
* and of-course client side transcoding.

= Script Server =
$wgEnableScriptLoader = false;
* off by default if $wgEnableScriptLoader is turned on script files are grouped, gziped, cached etc.
for more info see: http://www.mediawiki.org/wiki/Extension:ScriptLoader

* Includes some early skin js include fixes (skin/script system still lots of love)
* Includes a "javascript class autoloader" this is packaged into mwEmbed so that the mwEmbed library can work in stand alone mode (while retaining localization and script serving) (one such application is the make page for firefogg.org : http://www.firefogg.org/make/index.html  )
* The file that contains the autojavascript loading classes is: js2/php/jsAutoloadLocalClasses.php
* One can use this auto class loading dependency system with extensions and add-ons but I need to better document that.

= js2 system  / mwEmbed=
$wgEnableJS2system = false

* includes initial rewrite towards more jquery based javascript code
* especially for the Special:Upload page.
* Also the edit page include support for the "add-media-wizard"
* includes dependency loader for javascript that optionally takes advantage of the script-loader
* remote embedding of javascript interfaces (like embedding video, or commons media searching)

* $wgDebugJavaScript = false; .. .this variable lets you always get "always fresh javascript". When used with the script-loader it does not minify the script-loader output.

= mwEmbed =
* Will commit a separate patch to oggHandler that conditionally outputs  <video tag> to use the new javascript video player.
** mv_embed player includes: play-head, volume control, remote embedding, oggz-chop support across plugins.
* add-media-wizard adds easy inserts of media to pages (with import)

== jQuery==
* we include a base install of jQuery, jQuery ui and some plugins.
* all the javascript classes are in the scriptloader so its easy to load any set of jquery ui components that you may need using the script-server. You get a callback so you can then execute js with dependencies loaded.

== other stuff ==
there is a bit more code in js2 that pertains to sequence editing, timed text display and basic image editing. We include a base import of pixastic-lib & pixastic-editor... will work with the pixastic developer to try and ensure upstream compatibility on our usage of the library for in-browser photo and sequence manipulation.
2009-07-14 23:52:14 +00:00
ThomasV
aeb9e5f6ea adding web request parameter for consistency 2009-07-08 18:19:07 +00:00
ThomasV
5cd1fc3725 new hook, that allows extensions/ProofreadPage to read form data server-side rather than using javascript 2009-07-07 15:55:56 +00:00
Niklas Laxström
42ef3a283d Check for wfEmptyMsg too, since message cache checks messages set to - in files, trying to get from namespace, and returns non-existing message instead 2009-07-02 12:32:28 +00:00
Raimond Spekking
4d3ae03958 Follow-up r52601: typo 2009-06-30 16:07:29 +00:00
Raimond Spekking
59943a1139 Do not parse 'editpage-tos-summary' ('wikimedia-editpage-tos-summary' on WMF sites) for 'content'.
It's then a mix of user language and content language, especially on multi language wikis like Commons.
Example: http://commons.wikimedia.org/w/index.php?title=Test123&action=edit&uselang=de
2009-06-30 11:42:51 +00:00
Roan Kattouw
e664c88c12 Move EditPage::showEditForm:initial hook down one statement so it has access to the parsed preview. 2009-06-25 11:01:14 +00:00
Brion Vibber
644cccdf39 Prepping for site default overrides of copyright/TOS statements for Wikimedia
sites with updated CC-BY-SA license... Messages now available in 
WikimediaMessages extension for localization:
* wikimedia-copyright - page footer
* wikimedia-copyrightwarning - edit page, above summary/save button
* wikimedia-editpage-tos-summary - edit page, below summary/save button & above edittools

Initial English defaults are taken from
http://meta.wikimedia.org/wiki/Licensing_update/Implementation

Ariel's search for other copyright-related messages looks fairly clean,
so we should be good here for now as $wgRightsText/$wgRightsUrl are
already updated.

Messages are overridden using new hooks, which can also be used to switch the
messages based on title or namespace -- this may be desirable for sites such
as mediawiki.org which keep some namespaces PD etc.

Use of the overridden messages by WikimediaMessages is switched in when
$wgRightsUrl is set to 'http://creativecommons.org/licenses/by-sa/3.0/'
2009-06-24 16:49:28 +00:00
Andrew Garrett
bff2477d74 Add quoting functionality to LQT reply view 2009-06-18 17:41:33 +00:00
Aryeh Gregor
67fc59018f Show right logs when viewing/creating deleted page
Patch by Church of Emacs (bug 16950) with whitespace fixes.  r51041
tried to remove just rev_deleted log entries from displaying (bug
18747), but removed all entries other than page deletion instead
(including restoration and move logs).  It also only removed rev_deleted
log entries for recreating, not just viewing.
2009-06-16 10:26:59 +00:00
Roan Kattouw
176159512d Fix up r51559: Linker::link() expects Title objects, not strings 2009-06-15 13:50:05 +00:00
Siebrand Mazeland
6f9d6cbcf9 Fix double escaping issues. Related to r51559 and friends. 2009-06-15 12:32:59 +00:00
Siebrand Mazeland
88d789e939 * replace some use of deprecated makeKnownLinkObj() by link() in core
* use array type parameter instead of string to escapeLocalUrl(), getFullURL() and getFullUrl() for readability
2009-06-06 22:42:48 +00:00
Trevor Parscal
46738f7156 Added EditPageBeforeEditToolbar hook to provide a way to override the toolbar - making way for the new one the Wikipedia Usability Initiative is working on. 2009-05-29 21:40:19 +00:00
Aaron Schulz
d6bf15d117 (bug 18747) Show only page deletion log extracts, not revisiondelete ones 2009-05-27 02:19:58 +00:00
Niklas Laxström
d3b61fea7c Escaping fixes 2009-05-22 09:35:48 +00:00
Siebrand Mazeland
a2264335fb (bug 18438) Tweak HTML for preview bar for consistency and accessibility (patch contributed by Happy-melon with tweaks by siebrand) 2009-05-17 17:55:15 +00:00
Chad Horohoe
fdbb1752ab Kill a bunch of unused $wgUser 2009-04-28 03:03:48 +00:00
Aryeh Gregor
a1f8c5acb1 (bug 16950) Show move log when recreating a page
Showing the move log as well as delete log helps with pages that were
moved with no redirect, or moved and then the redirect deleted with a
confusing message.  Previously, such pages would appear to have never
existed to a user trying to create them.

Patch by church of emacs, with trivial modifications by me.
2009-04-24 17:20:48 +00:00
Raimond Spekking
5113543127 Add a class if 'missingsummary' is triggered to allow styling of the summary line 2009-03-25 10:11:33 +00:00
Brion Vibber
571cff06c5 Revert r47619 "Add an ID if 'missingsummary' is triggered to allow styling of the summary line"
Invalid HTML -- an element may have only one id value, they're not like classes.
2009-03-25 09:24:05 +00:00
Raimond Spekking
6eed108d4a Wrap message into a div and add a class 2009-03-24 14:38:13 +00:00
Domas Mituzas
2bbafda834 remove per-page editnotice functionality, message files and message cache are supposed to be global data. 2009-03-10 18:57:06 +00:00
Aaron Schulz
8fc99485e6 Made getLastDelete() handle log_deleted 2009-03-09 09:21:48 +00:00
Raimond Spekking
a0525e9aba Fix for r48026: \n needs "" 2009-03-05 07:04:26 +00:00
Andrew Garrett
6860f0814d When redlink=1 is specified, and the page exists, redirect to the "view" page. 2009-03-05 01:57:18 +00:00
Raimond Spekking
036ed3f64f Add a linebreak so that more complex customized messages like http://de.wikipedia.org/w/index.php?title=MediaWiki:Deletedwhileediting&oldid=53909919 works again 2009-03-04 17:12:27 +00:00
Aaron Schulz
09d5ac4c09 (bug 17677) $wgSpamRegex should be seperated into summary- and page text-regex 2009-02-27 20:50:25 +00:00
Aaron Schulz
6f1ded506c * (bug 17649) Added isDeletedQuick() and replaced some slow checks 2009-02-24 16:17:23 +00:00
Niklas Laxström
25a0b5503f * Fix broken since added in r24969 preload check which forced forced preview being always true
* Move interface warning to intro so that it can be suppressed
2009-02-22 13:58:42 +00:00
Raimond Spekking
aa0f3bbaeb Move <div>...</div> from message text to program code for consinstency with all other messages. 2009-02-22 11:32:33 +00:00
Raimond Spekking
c2a7904841 Add an ID if 'missingsummary' is triggered to allow styling of the summary line 2009-02-21 16:04:25 +00:00
Andrew Garrett
e66de2fe2a Fix regression in r47202, which stopped wpAutoSummary from being written to the output. 2009-02-18 19:03:08 +00:00
Alexandre Emsenhuber
ab138f8448 Tweak for r47202: readd a space between the "summary" message and the input just after it 2009-02-18 11:24:37 +00:00
Andrew Garrett
ae2d9de2fb element->tags 2009-02-18 05:19:55 +00:00
Andrew Garrett
f7acc4993d Fix accidental regression of 'summary' message to text-only. 2009-02-18 05:17:09 +00:00
Andrew Garrett
060c831cbd Fix double-escaping in r47202. 2009-02-17 23:33:57 +00:00
Raimond Spekking
f328e94426 * Wrap warning message 'editinginterface' into a div with class 'mw-editinginterface' 2009-02-15 09:26:08 +00:00
Raimond Spekking
7503af444b * Replace hardcoded '...' as indication of a truncation with the 'ellipsis' message
Per Brion's suggestion in http://lists.wikimedia.org/pipermail/wikitech-l/2008-December/040796.html
2009-02-13 19:13:48 +00:00
Andrew Garrett
3833566d15 Trying to make the EditPage code a bit more readable by breaking lines and converting some of the more egregious offenders into using the Xml:: functions. I tested editing and so on, but do tell me if there's some automated test that I'm supposed to run it
through.
2009-02-12 23:42:33 +00:00
Siebrand Mazeland
be805f47bc Replace hard coded pipe separators with locale based 2009-02-09 21:47:00 +00:00
X!
40a9c8f6ce When creating a new section, one can specify the 'nosummary' parameter to disallow creation of a section title 2009-02-03 13:56:31 +00:00
Ryan Schmidt
8851240209 * (bug 11644) update recursive redirect checking code per CodeReview discussion on r45973 2009-01-29 00:29:52 +00:00
Alex Z
b6247d470d add mIsPreview and mIsSectionPreview to parserOptions, set in EditPage. patch by Brad Jorsch on bug 16854 (changes to Cite in next commit) 2009-01-26 18:02:13 +00:00
Roan Kattouw
6449867508 * API: (bug 15949) Add undo functionality to action=edit
* Move undo text generation from EditPage::getContent() to Article::getUndoText()
* Add some more examples for action=edit
* ApiEditPage.php: don't mix !is_null() and isset(), be consistent
2009-01-26 13:51:03 +00:00
Aaron Schulz
3e66895013 code style tweaks 2009-01-24 05:37:43 +00:00
Raimond Spekking
70559aca5b * Wrap 'cascadeprotectedwarning'/'titleprotectedwarning' messages into a div with own classes 2009-01-22 12:57:09 +00:00
Ryan Schmidt
918161a2db Redirect-related bugfixes/features:
* (bug 11644) Add $wgMaxRedirects variable to control how many redirects are recursed through until the "destination" page is reached.
** update redirect page UI to show each step down to the destination page
** rdfrom text still links to original page visited
** pages still show up in DoubleRedirects
** setting to 1 (default) is current behavior of only going 1 step down. Setting to 0 disables automatic redirects.
** arrow image needs to be smoothed, couldn't figure out how to do it myself while keeping the image in indexed mode
* (bug 10569) Redirects to Special:Mypage and Special:Mytalk are no longer allowed to prevent redirect loops
** can be re-enabled by changing the $wgInvalidRedirectTargets array
2009-01-21 20:42:32 +00:00
Aaron Schulz
e0f5bb4179 (bug 8065) Fix summary forcing for new pages 2009-01-17 17:47:58 +00:00
Aaron Schulz
34828fd7f6 Improve revertedEdits autopromote check to include undoing of edits 2009-01-17 00:53:23 +00:00