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 * app.css : Main CSS of the application
* *
* Copyright 2013-2014 Mossroy and contributors * Copyright 2013-2023 Mossroy, Jaifroid and contributors
* License GPL v3: * License GPL v3:
* *
* This file is part of Kiwix. * 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: Jaifroid - Adapted for UWP for Windows 10 and Windows Mobile 10, Electron, NWJS and PWA:
Geoffrey Kantaris egk10@cam.ac.uk 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: License GPL v3:
This file is part of Kiwix. This file is part of Kiwix.
@ -627,7 +627,7 @@
</ul> </ul>
<h3>Licence information</h3> <h3>Licence information</h3>
<p> <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 />Jaifroid for adaptation and development of the app on the Universal Windows, Electron, NWJS and PWA Platforms
<br /> <br />
<br />This application is licensed under the GPL v3 licence: <br />This application is licensed under the GPL v3 licence:

View File

@ -2,7 +2,7 @@
* app.js : The main Kiwix User Interface implementation * app.js : The main Kiwix User Interface implementation
* This file handles the interaction between the Kiwix JS back end and the user * 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: * License GPL v3:
* *
* This file is part of Kiwix. * This file is part of Kiwix.

View File

@ -2,7 +2,7 @@
* init.js : Configuration for the app * init.js : Configuration for the app
* This file sets the app's main parameters and variables * 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: * License GPL v3:
* *
* This file is part of Kiwix. * This file is part of Kiwix.

View File

@ -1,28 +1,7 @@
/** /**
* images.js : Functions for the processing of images * 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.
*
* 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
* License GPL v3: * License GPL v3:
* *
* This file is part of Kiwix. * This file is part of Kiwix.

View File

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

View File

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

View File

@ -3,7 +3,7 @@
* Original code from http://stackoverflow.com/users/553542/kadm , taken from * Original code from http://stackoverflow.com/users/553542/kadm , taken from
* http://stackoverflow.com/questions/1240408/reading-bytes-from-a-javascript-string * 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: * License GPL v3:
* *
* This file is part of Kiwix. * This file is part of Kiwix.

View File

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