Update licence headers

This commit is contained in:
Jaifroid 2023-09-01 08:56:51 +01:00
parent b557260b3f
commit eda4d18a99
9 changed files with 25 additions and 67 deletions

View File

@ -1,7 +1,7 @@
/*!
* app.css : Main CSS of the application
*
* Copyright 2013-2014 Mossroy and contributors
* Copyright 2013-2023 Mossroy, Jaifroid and contributors
* License GPL v3:
*
* This file is part of Kiwix.

View File

@ -18,7 +18,7 @@
Jaifroid - Adapted for UWP for Windows 10 and Windows Mobile 10, Electron, NWJS and PWA:
Geoffrey Kantaris egk10@cam.ac.uk
Copyright 2013-2018 Mossroy, Peter-x, Jaifroid, sharun-s and contributors
Copyright 2013-2023 Jaifroid, Mossroy, Peter-x and contributors
License GPL v3:
This file is part of Kiwix.
@ -627,7 +627,7 @@
</ul>
<h3>Licence information</h3>
<p>
Copyright 2013-2019 Mossroy, Peter-x, Jaifroid, sharun-s and other contributors
Copyright 2013-2023 Jaifroid, Mossroy, Peter-x and other contributors
<br />Jaifroid for adaptation and development of the app on the Universal Windows, Electron, NWJS and PWA Platforms
<br />
<br />This application is licensed under the GPL v3 licence:

View File

@ -2,7 +2,7 @@
* app.js : The main Kiwix User Interface implementation
* This file handles the interaction between the Kiwix JS back end and the user
*
* Copyright 2013-2023 Mossroy, Jaifroid and contributors
* Copyright 2013-2023 Jaifroid, Mossroy and contributors
* License GPL v3:
*
* This file is part of Kiwix.

View File

@ -2,7 +2,7 @@
* init.js : Configuration for the app
* This file sets the app's main parameters and variables
*
* Copyright 2013-2023 Mossroy, Jaifroid and contributors
* Copyright 2013-2023 Jaifroid, Mossroy and contributors
* License GPL v3:
*
* This file is part of Kiwix.

View File

@ -1,28 +1,7 @@
/**
* images.js : Functions for the processing of images
*
* Copyright 2013-2019 Mossroy and contributors
* License GPL v3:
*
* This file is part of Kiwix.
*
* Kiwix is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Kiwix is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Kiwix (file LICENSE-GPLv3.txt). If not, see <http://www.gnu.org/licenses/>
*/
/**
* images.js : Functions for the processing of images
*
* Copyright 2013-2019 Mossroy and contributors
* Copyright 2013-2023 Jaifroid and contributors
* License GPL v3:
*
* This file is part of Kiwix.

View File

@ -1,7 +1,7 @@
/**
* uiUtil.js : Utility functions for the User Interface
*
* Copyright 2013-2020 Mossroy and contributors
* Copyright 2013-2023 Mossroy, Jaifroid and contributors
* License GPL v3:
*
* This file is part of Kiwix.

View File

@ -1,29 +1,7 @@
/**
* updater.js : Functions for checking and initiating app updates
*
* Copyright 2013-2022 Jaifroid, Mossroy and contributors
* License GPL v3:
*
* This file is part of Kiwix.
*
* Kiwix is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Kiwix is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Kiwix (file LICENSE-GPLv3.txt). If not, see <http://www.gnu.org/licenses/>
*/
/**
* updater.js : Functions for checking and initiating app updates
*
* Copyright 2013-2022 Jaifroid, Mossroy and contributors
* Copyright 2013-2023 Jaifroid and contributors
* License GPL v3:
*
* This file is part of Kiwix.
@ -44,6 +22,8 @@
'use strict';
/* global params */
import uiUtil from './uiUtil.js';
/**
@ -55,9 +35,9 @@ params.updateServer = {
};
// A RegExp prototype string to match the current app's releases
const baseApp = (params.packagedFile && /wikivoyage/.test(params.packagedFile)) ? 'wikivoyage' :
(params.packagedFile && /wikmed|mdwiki/.test(params.packagedFile)) ? 'wikimed' :
'windows|electron|kiwixwebapp_'; // Default value
const baseApp = (params.packagedFile && /wikivoyage/.test(params.packagedFile)) ? 'wikivoyage'
: (params.packagedFile && /wikmed|mdwiki/.test(params.packagedFile)) ? 'wikimed'
: 'windows|electron|kiwixwebapp_'; // Default value
// A RegExp to match download URLs of releases
const regexpMatchGitHubReleases = RegExp('"browser_download_url[":\\s]+"(https:.*download\\/([^\\/]+).*(?:' + baseApp + ')[^"]+)"', 'ig');
@ -68,7 +48,7 @@ const regexpMatchGitHubReleases = RegExp('"browser_download_url[":\\s]+"(https:.
* @param {Function} callback The function to call with the data
* @returns {String} A JSON string containing hierarchical release data
*/
function getReleasesObject(callback) {
function getReleasesObject (callback) {
uiUtil.XHR(params.updateServer.url + params.updateServer.releases, 'text',
function (response, mimetype, status) {
if (status === 200) {
@ -86,7 +66,7 @@ function getReleasesObject(callback) {
* @param {Function} callback A function to call back with the results
* @returns {Object} Calls back with update tag, update URL, and array of releases
*/
function getLatestUpdates(callback) {
function getLatestUpdates (callback) {
var updatedReleases = [];
var currentRelease = params.appVersion.replace(/^v?([\d.]+)/, '$1');
var currentReleaseChannel = params.appVersion.replace(/^[v\d.]+/, '');
@ -126,7 +106,6 @@ function getLatestUpdates(callback) {
});
}
export default {
getLatestUpdates: getLatestUpdates
};

View File

@ -3,7 +3,7 @@
* Original code from http://stackoverflow.com/users/553542/kadm , taken from
* http://stackoverflow.com/questions/1240408/reading-bytes-from-a-javascript-string
*
* Copyright 2013-2014 Mossroy and contributors
* Copyright 2013-2023 Mossroy and contributors
* License GPL v3:
*
* This file is part of Kiwix.

View File

@ -1,7 +1,7 @@
/**
* util.js : Utility functions
*
* Copyright 2013-2014 Mossroy and contributors
* Copyright 2013-2023 Mossroy, Jaifroid and contributors
* License GPL v3:
*
* This file is part of Kiwix.