aboutsummaryrefslogtreecommitdiff
path: root/mediawiki.lrdevplugin/MediaWikiUtils.lua
Commit message (Collapse)AuthorAge
* Add custom keyword when exporting.Robin Krahl2015-06-28
| | | | | | | | | After a successful export, a configurable keyword is added to the picture. - add ‘export keyword’ setting to MediaWikiUtils and MediaWikiPluginInfoProvider - write keyword in MediaWikiExportServiceProvider.processRenderedPhotos Fix #34.
* Check for new versions after start.Robin Krahl2015-06-27
| | | | | | | | | | | | | | | | | | | After LrMediaWiki is loaded, GitHub is checked for new versions if the user enabled that setting. To parse the response of the GitHub API, a third-party library is used for JSON parsing (JSON.lua). As the GitHub API query for the latest release only returns non-pre-release versions, all releases are queried and the first one is considered the latest. - create MediaWikiInit that queries the new version and shows a message (if necessary) - add MediaWikiInit to Info so that it is run after LrMediaWiki is loaded - add ‘Check version’ setting to the configuration - refactor MediaWikiApi and create performHttpRequest as a generic HTTP request method - add MediaWikiApi.getCurrentPluginVersion to query the GitHub API Fix #44.
* Add configuration for snapshot creation.Robin Krahl2015-06-27
| | | | | | | | | | | | | | | | The creation of snapshots after the export now depends on a new setting. The snapshots now are created after the successful export instead of before any export. - move the preferences handling to MediaWikiUtils - add the ‘Snapshot creation’ setting to MediaWikiPluginInfoProvider and MediaWikiUtils - move the snapshot creation in MediaWikiExportServiceProvider.processRenderedPhotos after the successful upload - check the ‘Snapshot creation’ setting before creating the snapshot in MediaWikiExportServiceProvider.processRenderedPhotos - update the internationalization
* Add a configuration section to the plugin information dialog.Robin Krahl2015-06-27
| | | | | | | | | | | | Customize the plugin information dialog and add a configuration section. In this section, the user may enable or disable logging. - create MediaWikiPluginInfoProvider to customize the plugin information dialog - add MediaWikiPluginInfoProvider to Info to activate it - enable or disable logging in MediaWikiUtils according to the configuration - update the localization See #31.
* Add logging support and fix refactoring errors.Robin Krahl2015-06-27
| | | | | | | | | | | | | | The user now may enable logging in MediaWikiUtils. If logging is enabled, a log file is written to the user’s "My Documents" that contains all API requests. Furthermore, bugs introduced by the refactoring in commit 8862341672dc288596d6ef66f92751bba6dfef25 have been fixed. - set up logging in MediaWikiUtils - write to the log in MediaWikiApi.performRequest - fix error in MediaWikiExportServiceProvider.processRenderedPhotos - fix error in MediaWikiApi.parseXmlDom Fix #43.
* Use improved string formattingRobin Krahl2014-11-01
| | | | | | | | | | | Use string formatting by name instead of formatting by position when creating the file description. - adds the method `formatString` to `MediaWikiUtils` - modifies `MediaWikiInterface` to use `MediaWikiUtils.formatString` See issue [#29: Move file description template into a file and improve the string formatting](https://github.com/ireas/LrMediaWiki/issues/29).
* Fix #13: Add LrMediaWiki version to upload comments.Robin Krahl2014-09-02
|
* Fix #5: Ask for comment for reuploads and #6: Allow new filenames for ↵Robin Krahl2014-08-25
duplicates.