From 7e5775c60b4458792a42f877b55ed37898de546a Mon Sep 17 00:00:00 2001 From: Masin Al-Dujaili Date: Tue, 6 Feb 2024 15:26:42 +0100 Subject: [PATCH] =?UTF-8?q?Dateien=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commonist.desktop | 11 + commonist.svg | 5 + de.djini.commonist | 4 + de.djini.commonist.desktop | 10 + de.djini.commonist.metainfo.xml | 437 ++++++++++++++++++++++++++++++++ de.djini.commonist.svg | 5 + de.djini.commonist.yml | 46 ++++ 7 files changed, 518 insertions(+) create mode 100644 commonist.desktop create mode 100644 commonist.svg create mode 100644 de.djini.commonist create mode 100644 de.djini.commonist.desktop create mode 100644 de.djini.commonist.metainfo.xml create mode 100644 de.djini.commonist.svg create mode 100644 de.djini.commonist.yml diff --git a/commonist.desktop b/commonist.desktop new file mode 100644 index 0000000..148cd82 --- /dev/null +++ b/commonist.desktop @@ -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; diff --git a/commonist.svg b/commonist.svg new file mode 100644 index 0000000..f7a2c27 --- /dev/null +++ b/commonist.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/de.djini.commonist b/de.djini.commonist new file mode 100644 index 0000000..fdd4eeb --- /dev/null +++ b/de.djini.commonist @@ -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' "$@" diff --git a/de.djini.commonist.desktop b/de.djini.commonist.desktop new file mode 100644 index 0000000..78e5a97 --- /dev/null +++ b/de.djini.commonist.desktop @@ -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; diff --git a/de.djini.commonist.metainfo.xml b/de.djini.commonist.metainfo.xml new file mode 100644 index 0000000..c0f4a8c --- /dev/null +++ b/de.djini.commonist.metainfo.xml @@ -0,0 +1,437 @@ + + + de.djini.commonist + + Commonist + The commonist is a simple upload client for mediawiki sites, primarily wikimedia commons + + CC0-1.0 + GPL-2.0-or-later + + + pointing + keyboard + + + +

The commonist is a simple upload client for mediawiki sites, primarily wikimedia commons. It accesses mediawiki using its API and is written in scala.

+ +
+ + + +
    +
  • feature: support displaying TIFF thumbnails courtesy of don-vip
  • +
  • feature: included french translation courtesy of tbertels
  • +
+
+
+ + +
    +
  • change: move to another website
  • +
  • change: inline scmw
  • +
  • change: update scala, sbt and dependencies
  • +
+
+
+ + +
    +
  • change: update scala, sbt and dependencies
  • +
+
+
+ + +
    +
  • change: requires java 8
  • +
+
+
+ + +
    +
  • bugfix: last release broke gps coordinate parsing
  • +
+
+
+ + +
    +
  • feature: added a "heading" field for camera heading
  • +
  • change: update updated all libraries and sbt plugins
  • +
+
+
+ + +
    +
  • change: added an "others" field for templates (thx Pleclown)
  • +
  • change: requires java 7 now
  • +
  • change: update updated all libraries and sbt plugins
  • +
+
+
+ + +
    +
  • change: update updated all libraries and sbt plugins
  • +
+
+
+ + +
    +
  • change: updated licenses
  • +
  • update: scala 2.11.7, updated all libraries and sbt plugins
  • +
+
+
+ + +
    +
  • update: scala 2.11.5, updated all libraries and sbt plugins
  • +
+
+
+ + +
    +
  • update: scala 2.11.2, updated all libraries and sbt plugins
  • +
  • change: updated commons image template
  • +
  • change: dropped support for mediawiki.org
  • +
+
+
+ + +
    +
  • update: scala 2.11.1, sbt 0.13.5, updated all libraries and sbt plugins
  • +
+
+
+ + +
    +
  • bugfix: updated scmw, previous version did not close http responses
  • +
+
+
+ + +
    +
  • change: added FAL license
  • +
  • change: mediawiki was a stupid default for the wiki, using commons again.
  • +
  • change: updated libraries.
  • +
  • change: build with sbt 0.13.1
  • +
+
+
+ + +
    +
  • change: changed all wikis to use https
  • +
  • change: use scmw-0.33.0 to use new httpclient 4.3.1
  • +
+
+
+ + +
    +
  • change: issued a new snakeoil certificate
  • +
  • change: added permissions attribute to jar manifests
  • +
  • change: build with sbt 0.13.0
  • +
  • change: uses scala 2.10.3
  • +
+
+
+ + +
    +
  • feature: added zipfile for an osx app to the build
  • +
  • bugfix: display the commonist icon the dock on osx again
  • +
  • bugfix: on startup the selected directory was not visible in the directory tree
  • +
+
+
+ + +
    +
  • change: issued a new snakeoil certificate
  • +
  • change: library updates
  • +
  • change: build with sbt-0.12.2 now
  • +
  • change: uses scala-2.10.0
  • +
+
+
+ + +
    +
  • bugfix: 0.4.31 did not open the main window
  • +
  • change: build with sbt-0.12.1 now
  • +
  • change: library updates
  • +
+
+
+ + +
    +
  • change: uses scala-2.9.2
  • +
+
+
+ + +
    +
  • change: builds with xsbt-0.11.2 now
  • +
  • change: uses scala-2.9.1
  • +
  • change: code cleanups
  • +
+
+
+ + +
    +
  • change: scmw uses apache httpclient 4 now
  • +
+
+
+ + +
    +
  • bugfix: aborted when trying to ask the user to ignore non-existing problems
  • +
  • change: uses scala 2.9.0 now
  • +
  • change: requires java 1.6 now
  • +
  • feature: added startscript commonist.cmd for OS/2
  • +
+
+
+ + +
    +
  • change: one requester per upload to display mutliple warnings at once if necessary
  • +
  • unfeature: removed broken translations except en and de, these may be re-added some day
  • +
  • feature: displays upload warnings in the requester and the gallery
  • +
  • change: moved out API into an own project scmw
  • +
  • change: included source jars for libraries
  • +
+
+
+ + +
    +
  • bugfix: api.php changed the format of it's sessionkey which broke overwriting files
  • +
  • bugfix: commonist.bat was broken
  • +
+
+
+ + +
    +
  • bugfix: next/previous links in image_default.bpp did not contain a leading colon
  • +
  • bugfix: reading EXIF data sometimes failed with an IOException
  • +
  • feature: the settings directory is now configurable by setting the java VM's system property "commonist.settings"
  • +
+
+
+ + +
    +
  • bugfix: the exif date was formatted to a 12 hour clock instead of a 24 hour clock
  • +
+
+
+ + +
    +
  • change: date and time are read from EXIF data now, not only the date
  • +
  • change: upgraded to scala-2.8.1
  • +
+
+
+ + +
    +
  • bugfix: 0.4.21 broke JRE 1.5 compatibility
  • +
  • change: moved the permission field from image to general settings. attention: in custom image description templates, $(upload.permission) has to be replaced with $(common.permission)
  • +
+
+
+ + +
    +
  • change: added ml (malayalam) to the wiki list
  • +
  • change: added {{GFDL-1.2}} and {{PD-USGov-Military}} to the licenses
  • +
+
+
+ + +
    +
  • bugfix: GPS coordinates with 4 rational numbers instead of 3 could not be parsed
  • +
  • feature: image date is take from the EXIF tags DateTimeOriginal or DateTimeDigitized or DateTime instead of from DateTime alone
  • +
  • feature: the exif tag ImageDescription is now used to fill the description field
  • +
+
+
+ + +
    +
  • bugfix: a typo in messages_es.properties made the commonist unusable on spanish systems
  • +
+
+
+ + +
    +
  • feature: in addition to preconfigured licenses, a license template can now be entered manually
  • +
  • change: categories are now separated with a newline in the image template
  • +
  • change: started migration to sbt, split distribution into binary and sourcecode variant. zip files do not contain a top-level directory.
  • +
+
+
+ + +
    +
  • bugfix: 0.4.16 was dry-running and not uploading any files at all
  • +
+
+
+ + +
    +
  • feature: allow raw markup in the coordinates field of an image
  • +
+
+
+ + +
    +
  • feature: duplicate and duplicate-archive warnings can be ignored now, too
  • +
  • change: added {{int:filedesc}} and {{int:license}} to image description pages on wikimedia commons
  • +
+
+
+ + +
    +
  • bugfix: really updated to scala-2.8.0.RC3
  • +
+
+
+ + +
    +
  • change: updated to scala-2.8.0.RC3
  • +
  • change: added license {{PD-GDR stamps}}
  • +
+
+
+ + +
    +
  • feature: 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.
  • +
+
+
+ + +
    +
  • feature: the gallery text is stored in a file "gallery.txt" in the settings directory after upload
  • +
  • feature: the license combobox has a tooltip with the full text now
  • +
  • feature: added upload success indicator for files
  • +
  • change: ported to scala-2.8.0.RC2
  • +
+
+
+ + +
    +
  • bugfix: reading GPS coordinates from EXIF failed for non-terminating decimals
  • +
+
+
+ + +
    +
  • feature: GPS coordinates can now be edited in the GUI as a comma-separated pair of decimal values
  • +
  • change: upload.latitude and upload.longitude within templates are now null instead of "" if no coordinates are available
  • +
+
+
+ + +
    +
  • bugfix: loading licenses and templates from the settings directory did not work
  • +
  • feature: added {{PD-GermanGov}} to licenses.txt
  • +
+
+
+ + +
    +
  • feature: 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
  • +
  • bugfix: having a german umlaut in a template file lead to an OOME because of a bug in minibpp
  • +
+
+
+ + +
    +
  • change: filename mangling was much too restrictive
  • +
  • bugfix: made bin/commonist symlink-aware
  • +
+
+
+ + +
    +
  • bugfix: the JSON parser produced a stack overflow
  • +
  • change: removes leading and trailing blanks in input fields
  • +
  • feature: added the version number to the window title and the gallery edit summary
  • +
  • change: added a template variable upload.name for the file name without a namespace prefix
  • +
  • bugfix: overwriting an existing file didn't update the description
  • +
+
+
+ + +
    +
  • feature: added GPS data from EXIF, not editable in the GUI yet
  • +
  • change: improved filename preset mangling: all illegal chars are replaced with '-', multiple consecutive spaces are reduced to a single one
  • +
+
+
+ + +
    +
  • feature: 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
  • +
+
+
+ + +
    +
  • bugfix: wouldn't start with a corrupted thumbnails.txt
  • +
  • feature: permission has an own editor now
  • +
  • change: in the default template the batch section and the description section have been swapped
  • +
  • feature: added support for wikisource:ar
  • +
+
+
+ + +
    +
  • bugfix: used the wrong template for image description pages on commons
  • +
  • change: uploaded images are now automatically watched
  • +
  • change: displays an uploaded file's name instead of its full path in the progress bar
  • +
+
+
+ +
+ + de.djini.commonist.desktop + +
diff --git a/de.djini.commonist.svg b/de.djini.commonist.svg new file mode 100644 index 0000000..f7a2c27 --- /dev/null +++ b/de.djini.commonist.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/de.djini.commonist.yml b/de.djini.commonist.yml new file mode 100644 index 0000000..503ccfe --- /dev/null +++ b/de.djini.commonist.yml @@ -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