Dateien hinzugefügt

This commit is contained in:
Masin Wiedner 2024-02-06 15:26:42 +01:00
parent a0b6891e2d
commit 7e5775c60b
7 changed files with 518 additions and 0 deletions

11
commonist.desktop Normal file
View File

@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=Commonist
GenericName=Upload-Werkzeug
Comment=Uploader für Wikimedia Commons
Path=/opt/wikimedia/commonist
Exec=/opt/wikimedia/commonist/commonist
Icon=/opt/wikimedia/commonist.svg
Terminal=false
Categories=Network;

5
commonist.svg Normal file
View File

@ -0,0 +1,5 @@
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" height="128" width="128">
<rect fill-rule="evenodd" height="128" width="128" fill="#98070b"/>
<path stroke-linejoin="round" d="m91.1 99.95l5.166 5.3 10.66-9.785s-6.08-6.312-6.06-6.331c7.82-10.93 19.5-45.04-30.24-75.24-0.748-0.454-3.211-2.269-4.146-1.262-0.91 0.981 1.114 2.835 1.458 3.144 35.34 31.6 25.53 56.45 21.23 61.4-0.037 0.042-28.49-30.25-28.49-30.25l11.87-12.84h-20.84l-21.28 19.7 11.08 11.26 10.55-9.321s28.33 31.47 28.31 31.48c-10.82 9.181-26.44 8.381-39.04-8.706-0.008-0.011-5.455 2.902-5.455 2.902h-5.276l-0.352 4.221s-1.055 1.583-3.341 2.814-4.657 1.757-10.02 5.626c-2.888 2.083-5.259 6.713-2.638 10.55 2.462 3.61 11.25 0.53 14.59-4.748 3.342-5.276 5.98-8.617 7.738-8.617 1.759 0 13.45 16 32.71 16 8.617 0 16.71-3.52 21.81-7.3z" stroke="#fffcff" stroke-width="2.2" fill="#086598"/>
</svg>

After

Width:  |  Height:  |  Size: 864 B

4
de.djini.commonist Normal file
View File

@ -0,0 +1,4 @@
#! /usr/bin/env sh
CLASSPATH='/app/lib/minibpp-src.jar':'/app/lib/minibpp.jar':'/app/lib/bsh-2.0b2-fixed.jar':'/app/lib/scjson-codec_2.12-0.169.0.jar':'/app/lib/commons-logging-1.2.jar':'/app/lib/scala-library-2.12.8.jar':'/app/lib/commons-codec-1.10.jar':'/app/lib/macify-1.6.jar':'/app/lib/scutil-core_2.12-0.151.0.jar':'/app/lib/httpcore-4.4.10.jar':'/app/lib/scutil-base_2.12-0.151.0.jar':'/app/lib/httpclient-4.5.6.jar':'/app/lib/sanselan-0.97-incubator.jar':'/app/lib/scutil-swing_2.12-0.151.0.jar':'/app/lib/scjson-ast_2.12-0.169.0.jar':'/app/lib/httpmime-4.5.6.jar':'/app/lib/commonist-1.10.0.jar'
exec java '-Xmx192m' -cp "${CLASSPATH}" 'commonist.Commonist' "$@"

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=Commonist
GenericName=Upload client for mediawiki sites
Comment=The commonist is a simple upload client for mediawiki sites, primarily wikimedia commons. It accesses mediawiki using its API and is written in scala.
Exec=de.djini.commonist
Icon=de.djini.commonist
Terminal=false
Categories=Network;

View File

@ -0,0 +1,437 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>de.djini.commonist</id>
<name>Commonist</name>
<summary>The commonist is a simple upload client for mediawiki sites, primarily wikimedia commons</summary>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0-or-later</project_license>
<supports>
<control>pointing</control>
<control>keyboard</control>
</supports>
<description>
<p>The commonist is a simple upload client for mediawiki sites, primarily wikimedia commons. It accesses mediawiki using its API and is written in scala.</p>
</description>
<releases>
<release version="1.10.0" date="2019-01-02">
<description>
<ul>
<li><em>feature</em>: support displaying TIFF thumbnails courtesy of don-vip</li>
<li><em>feature</em>: included french translation courtesy of tbertels</li>
</ul>
</description>
</release>
<release version="1.9.0" date="2018-08-21">
<description>
<ul>
<li><em>change</em>: move to another website</li>
<li><em>change</em>: inline scmw</li>
<li><em>change</em>: update scala, sbt and dependencies</li>
</ul>
</description>
</release>
<release version="1.8.0" date="2017-12-22">
<description>
<ul>
<li><em>change</em>: update scala, sbt and dependencies</li>
</ul>
</description>
</release>
<release version="1.7.0" date="2017-02-21">
<description>
<ul>
<li><em>change</em>: requires java 8</li>
</ul>
</description>
</release>
<release version="1.6.1" date="2016-07-31">
<description>
<ul>
<li><em>bugfix</em>: last release broke gps coordinate parsing</li>
</ul>
</description>
</release>
<release version="1.6.0" date="2016-06-14">
<description>
<ul>
<li><em>feature</em>: added a "heading" field for camera heading</li>
<li><em>change</em>: update updated all libraries and sbt plugins</li>
</ul>
</description>
</release>
<release version="1.5.0" date="2015-02-06">
<description>
<ul>
<li><em>change</em>: added an "others" field for templates (thx Pleclown)</li>
<li><em>change</em>: requires java 7 now</li>
<li><em>change</em>: update updated all libraries and sbt plugins</li>
</ul>
</description>
</release>
<release version="1.4.0" date="2016-02-14">
<description>
<ul>
<li><em>change</em>: update updated all libraries and sbt plugins</li>
</ul>
</description>
</release>
<release version="1.3.0" date="2015-07-30">
<description>
<ul>
<li><em>change</em>: updated licenses</li>
<li><em>update</em>: scala 2.11.7, updated all libraries and sbt plugins</li>
</ul>
</description>
</release>
<release version="1.2.0" date="2015-02-01">
<description>
<ul>
<li><em>update</em>: scala 2.11.5, updated all libraries and sbt plugins</li>
</ul>
</description>
</release>
<release version="1.1.0" date="2014-08-17">
<description>
<ul>
<li><em>update</em>: scala 2.11.2, updated all libraries and sbt plugins</li>
<li><em>change</em>: updated commons image template</li>
<li><em>change</em>: dropped support for mediawiki.org</li>
</ul>
</description>
</release>
<release version="1.0.0" date="2014-07-13">
<description>
<ul>
<li><em>update</em>: scala 2.11.1, sbt 0.13.5, updated all libraries and sbt plugins</li>
</ul>
</description>
</release>
<release version="0.9.1" date="2014-01-22">
<description>
<ul>
<li><em>bugfix</em>: updated scmw, previous version did not close http responses</li>
</ul>
</description>
</release>
<release version="0.9.0" date="2014-01-18">
<description>
<ul>
<li><em>change</em>: added FAL license</li>
<li><em>change</em>: mediawiki was a stupid default for the wiki, using commons again.</li>
<li><em>change</em>: updated libraries.</li>
<li><em>change</em>: build with sbt 0.13.1</li>
</ul>
</description>
</release>
<release version="0.8.0" date="2013-11-24">
<description>
<ul>
<li><em>change</em>: changed all wikis to use https</li>
<li><em>change</em>: use scmw-0.33.0 to use new httpclient 4.3.1</li>
</ul>
</description>
</release>
<release version="0.7.0" date="2013-10-26">
<description>
<ul>
<li><em>change</em>: issued a new snakeoil certificate</li>
<li><em>change</em>: added permissions attribute to jar manifests</li>
<li><em>change</em>: build with sbt 0.13.0</li>
<li><em>change</em>: uses scala 2.10.3</li>
</ul>
</description>
</release>
<release version="0.6.0" date="2013-04-01">
<description>
<ul>
<li><em>feature</em>: added zipfile for an osx app to the build</li>
<li><em>bugfix</em>: display the commonist icon the dock on osx again</li>
<li><em>bugfix</em>: on startup the selected directory was not visible in the directory tree</li>
</ul>
</description>
</release>
<release version="0.5.0" date="2013-02-01">
<description>
<ul>
<li><em>change</em>: issued a new snakeoil certificate</li>
<li><em>change</em>: library updates</li>
<li><em>change</em>: build with sbt-0.12.2 now</li>
<li><em>change</em>: uses scala-2.10.0</li>
</ul>
</description>
</release>
<release version="0.4.32" date="2013-01-05">
<description>
<ul>
<li><em>bugfix</em>: 0.4.31 did not open the main window</li>
<li><em>change</em>: build with sbt-0.12.1 now</li>
<li><em>change</em>: library updates</li>
</ul>
</description>
</release>
<release version="0.4.31" date="2012-05-08">
<description>
<ul>
<li><em>change</em>: uses scala-2.9.2</li>
</ul>
</description>
</release>
<release version="0.4.30" date="2012-02-01">
<description>
<ul>
<li><em>change</em>: builds with xsbt-0.11.2 now</li>
<li><em>change</em>: uses scala-2.9.1</li>
<li><em>change</em>: code cleanups</li>
</ul>
</description>
</release>
<release version="0.4.29" date="2011-09-12">
<description>
<ul>
<li><em>change</em>: scmw uses apache httpclient 4 now</li>
</ul>
</description>
</release>
<release version="0.4.28" date="2011-05-22">
<description>
<ul>
<li><em>bugfix</em>: aborted when trying to ask the user to ignore non-existing problems</li>
<li><em>change</em>: uses scala 2.9.0 now</li>
<li><em>change</em>: requires java 1.6 now</li>
<li><em>feature</em>: added startscript commonist.cmd for OS/2</li>
</ul>
</description>
</release>
<release version="0.4.27" date="2011-02-19">
<description>
<ul>
<li><em>change</em>: one requester per upload to display mutliple warnings at once if necessary</li>
<li><em>unfeature</em>: removed broken translations except en and de, these may be re-added some day</li>
<li><em>feature</em>: displays upload warnings in the requester and the gallery</li>
<li><em>change</em>: moved out API into an own project scmw</li>
<li><em>change</em>: included source jars for libraries</li>
</ul>
</description>
</release>
<release version="0.4.26" date="2010-12-06">
<description>
<ul>
<li><em>bugfix</em>: api.php changed the format of it's sessionkey which broke overwriting files</li>
<li><em>bugfix</em>: commonist.bat was broken</li>
</ul>
</description>
</release>
<release version="0.4.25" date="2010-11-30">
<description>
<ul>
<li><em>bugfix</em>: next/previous links in image_default.bpp did not contain a leading colon</li>
<li><em>bugfix</em>: reading EXIF data sometimes failed with an IOException</li>
<li><em>feature</em>: the settings directory is now configurable by setting the java VM's system property "commonist.settings"</li>
</ul>
</description>
</release>
<release version="0.4.24" date="2010-11-28">
<description>
<ul>
<li><em>bugfix</em>: the exif date was formatted to a 12 hour clock instead of a 24 hour clock</li>
</ul>
</description>
</release>
<release version="0.4.23" date="2010-11-20">
<description>
<ul>
<li><em>change</em>: date and time are read from EXIF data now, not only the date</li>
<li><em>change</em>: upgraded to scala-2.8.1</li>
</ul>
</description>
</release>
<release version="0.4.22" date="2010-10-12">
<description>
<ul>
<li><em>bugfix</em>: 0.4.21 broke JRE 1.5 compatibility</li>
<li><em>change</em>: moved the permission field from image to general settings. attention: in custom image description templates, $(upload.permission) has to be replaced with $(common.permission)</li>
</ul>
</description>
</release>
<release version="0.4.21" date="2010-10-11">
<description>
<ul>
<li><em>change</em>: added ml (malayalam) to the wiki list</li>
<li><em>change</em>: added {{GFDL-1.2}} and {{PD-USGov-Military}} to the licenses</li>
</ul>
</description>
</release>
<release version="0.4.20" date="2010-09-17">
<description>
<ul>
<li><em>bugfix</em>: GPS coordinates with 4 rational numbers instead of 3 could not be parsed</li>
<li><em>feature</em>: image date is take from the EXIF tags DateTimeOriginal or DateTimeDigitized or DateTime instead of from DateTime alone</li>
<li><em>feature</em>: the exif tag ImageDescription is now used to fill the description field</li>
</ul>
</description>
</release>
<release version="0.4.19" date="2010-09-06">
<description>
<ul>
<li><em>bugfix</em>: a typo in messages_es.properties made the commonist unusable on spanish systems</li>
</ul>
</description>
</release>
<release version="0.4.18" date="2010-08-11">
<description>
<ul>
<li><em>feature</em>: in addition to preconfigured licenses, a license template can now be entered manually</li>
<li><em>change</em>: categories are now separated with a newline in the image template</li>
<li><em>change</em>: started migration to sbt, split distribution into binary and sourcecode variant. zip files do not contain a top-level directory.</li>
</ul>
</description>
</release>
<release version="0.4.17" date="2010-07-23">
<description>
<ul>
<li><em>bugfix</em>: 0.4.16 was dry-running and not uploading any files at all</li>
</ul>
</description>
</release>
<release version="0.4.16" date="2010-07-23">
<description>
<ul>
<li><em>feature</em>: allow raw markup in the coordinates field of an image</li>
</ul>
</description>
</release>
<release version="0.4.15" date="2010-06-03">
<description>
<ul>
<li><em>feature</em>: duplicate and duplicate-archive warnings can be ignored now, too</li>
<li><em>change</em>: added {{int:filedesc}} and {{int:license}} to image description pages on wikimedia commons</li>
</ul>
</description>
</release>
<release version="0.4.14" date="2010-05-29">
<description>
<ul>
<li><em>bugfix</em>: really updated to scala-2.8.0.RC3</li>
</ul>
</description>
</release>
<release version="0.4.13" date="2010-05-28">
<description>
<ul>
<li><em>change</em>: updated to scala-2.8.0.RC3</li>
<li><em>change</em>: added license {{PD-GDR stamps}}</li>
</ul>
</description>
</release>
<release version="0.4.12" date="2010-05-19">
<description>
<ul>
<li><em>feature</em>: TAB and shift-TAB can now be used to move the focus over multiline textareas, too. additionally all data for one image become visible when one of its text fields gains focus.</li>
</ul>
</description>
</release>
<release version="0.4.11" date="2010-05-14">
<description>
<ul>
<li><em>feature</em>: the gallery text is stored in a file "gallery.txt" in the settings directory after upload</li>
<li><em>feature</em>: the license combobox has a tooltip with the full text now</li>
<li><em>feature</em>: added upload success indicator for files</li>
<li><em>change</em>: ported to scala-2.8.0.RC2</li>
</ul>
</description>
</release>
<release version="0.4.10" date="2010-05-05">
<description>
<ul>
<li><em>bugfix</em>: reading GPS coordinates from EXIF failed for non-terminating decimals</li>
</ul>
</description>
</release>
<release version="0.4.9" date="2010-05-04">
<description>
<ul>
<li><em>feature</em>: GPS coordinates can now be edited in the GUI as a comma-separated pair of decimal values</li>
<li><em>change</em>: upload.latitude and upload.longitude within templates are now null instead of "" if no coordinates are available</li>
</ul>
</description>
</release>
<release version="0.4.8" date="2010-05-02">
<description>
<ul>
<li><em>bugfix</em>: loading licenses and templates from the settings directory did not work</li>
<li><em>feature</em>: added {{PD-GermanGov}} to licenses.txt</li>
</ul>
</description>
</release>
<release version="0.4.7" date="2010-04-28">
<description>
<ul>
<li><em>feature</em>: every site can have a different template now. image_commons.bpp is now image_wikimedia_commons.bpp gallery_commons.bpp is now gallery_wikimedia_commons.bpp to make them fit into the new naming scheme</li>
<li><em>bugfix</em>: having a german umlaut in a template file lead to an OOME because of a bug in minibpp</li>
</ul>
</description>
</release>
<release version="0.4.6" date="2010-04-27">
<description>
<ul>
<li><em>change</em>: filename mangling was much too restrictive</li>
<li><em>bugfix</em>: made bin/commonist symlink-aware</li>
</ul>
</description>
</release>
<release version="0.4.5" date="2010-04-25">
<description>
<ul>
<li><em>bugfix</em>: the JSON parser produced a stack overflow</li>
<li><em>change</em>: removes leading and trailing blanks in input fields</li>
<li><em>feature</em>: added the version number to the window title and the gallery edit summary</li>
<li><em>change</em>: added a template variable upload.name for the file name without a namespace prefix</li>
<li><em>bugfix</em>: overwriting an existing file didn't update the description</li>
</ul>
</description>
</release>
<release version="0.4.4" date="2010-04-24">
<description>
<ul>
<li><em>feature</em>: added GPS data from EXIF, not editable in the GUI yet</li>
<li><em>change</em>: improved filename preset mangling: all illegal chars are replaced with '-', multiple consecutive spaces are reduced to a single one</li>
</ul>
</description>
</release>
<release version="0.4.3" date="2010-04-22">
<description>
<ul>
<li><em>feature</em>: added a date field to individual files overriding the common date if not empty. the date field is preset from EXIF data if available. image templates have changed to include the new upload.date</li>
</ul>
</description>
</release>
<release version="0.4.2" date="2010-04-21">
<description>
<ul>
<li><em>bugfix</em>: wouldn't start with a corrupted thumbnails.txt</li>
<li><em>feature</em>: permission has an own editor now</li>
<li><em>change</em>: in the default template the batch section and the description section have been swapped</li>
<li><em>feature</em>: added support for wikisource:ar</li>
</ul>
</description>
</release>
<release version="0.4.1" date="2010-04-18">
<description>
<ul>
<li><em>bugfix</em>: used the wrong template for image description pages on commons</li>
<li><em>change</em>: uploaded images are now automatically watched</li>
<li><em>change</em>: displays an uploaded file's name instead of its full path in the progress bar</li>
</ul>
</description>
</release>
<release version="0.4.0" date="2010-04-17" />
</releases>
<launchable type="desktop-id">de.djini.commonist.desktop</launchable>
<content_rating type="oars-1.1" />
</component>

5
de.djini.commonist.svg Normal file
View File

@ -0,0 +1,5 @@
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" height="128" width="128">
<rect fill-rule="evenodd" height="128" width="128" fill="#98070b"/>
<path stroke-linejoin="round" d="m91.1 99.95l5.166 5.3 10.66-9.785s-6.08-6.312-6.06-6.331c7.82-10.93 19.5-45.04-30.24-75.24-0.748-0.454-3.211-2.269-4.146-1.262-0.91 0.981 1.114 2.835 1.458 3.144 35.34 31.6 25.53 56.45 21.23 61.4-0.037 0.042-28.49-30.25-28.49-30.25l11.87-12.84h-20.84l-21.28 19.7 11.08 11.26 10.55-9.321s28.33 31.47 28.31 31.48c-10.82 9.181-26.44 8.381-39.04-8.706-0.008-0.011-5.455 2.902-5.455 2.902h-5.276l-0.352 4.221s-1.055 1.583-3.341 2.814-4.657 1.757-10.02 5.626c-2.888 2.083-5.259 6.713-2.638 10.55 2.462 3.61 11.25 0.53 14.59-4.748 3.342-5.276 5.98-8.617 7.738-8.617 1.759 0 13.45 16 32.71 16 8.617 0 16.71-3.52 21.81-7.3z" stroke="#fffcff" stroke-width="2.2" fill="#086598"/>
</svg>

After

Width:  |  Height:  |  Size: 864 B

46
de.djini.commonist.yml Normal file
View File

@ -0,0 +1,46 @@
app-id: de.djini.commonist
default-branch: stable
runtime: org.freedesktop.Platform
runtime-version: '22.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.openjdk8
command: de.djini.commonist
finish-args:
- --share=network
- --filesystem=xdg-download
- --filesystem=xdg-pictures
- --filesystem=xdg-documents
- --filesystem=xdg-config/commonist:create
- --filesystem=xdg-cache/commonist:create
- --filesystem=xdg-data/commonist:create
- --socket=wayland
- --socket=x11
- --share=ipc
modules:
- name: openjdk
buildsystem: simple
build-commands:
- /usr/lib/sdk/openjdk8/install.sh
- name: Commonist
buildsystem: simple
sources:
- type: archive
url: https://djini.de/commonist/commonist-1.10.0.zip
sha256: 011020293bf35ba01e1d58778b0a4ba840436f3b87a0e42062a9fd2c854cd43c
- type: file
path: de.djini.commonist.svg
- type: file
path: de.djini.commonist
- type: file
path: de.djini.commonist.metainfo.xml
- type: file
path: de.djini.commonist.desktop
build-commands:
- install -Dm755 de.djini.commonist ${FLATPAK_DEST}/bin/de.djini.commonist
- install -d lib/ ${FLATPAK_DEST}/lib/
- find lib -type f -exec install -Dm644 {} ${FLATPAK_DEST}/lib/ \;
- install -Dm644 de.djini.commonist.svg /app/share/icons/hicolor/scalable/apps/de.djini.commonist.svg
- install -Dm644 de.djini.commonist.desktop /app/share/applications/de.djini.commonist.desktop
- install -Dm644 de.djini.commonist.metainfo.xml /app/share/metainfo/de.djini.commonist.metainfo.xml
- ln -s /app/jre/bin/java /app/bin/java