Visualize attribution in the attribution panel
This commit is contained in:
parent
a16745d0d1
commit
12d99e0323
10 changed files with 122 additions and 28 deletions
|
@ -1,18 +1,9 @@
|
|||
import {Utils} from "../Utils";
|
||||
import {lstatSync, readdirSync, readFileSync, writeFileSync} from "fs";
|
||||
import SmallLicense from "../Models/smallLicense";
|
||||
|
||||
Utils.runningFromConsole = true;
|
||||
|
||||
import {existsSync, mkdirSync, readdirSync, readFileSync, writeFile, writeFileSync, lstatSync} from "fs";
|
||||
import {LicenseInfo} from "../Logic/Web/Wikimedia";
|
||||
import {icon, Icon} from "leaflet";
|
||||
|
||||
interface SmallLicense {
|
||||
path: string,
|
||||
authors: string[],
|
||||
license: string,
|
||||
sources: string[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Sweeps the entire 'assets/' (except assets/generated) directory for image files and any 'license_info.json'-file.
|
||||
* Checks that the license info is included for each of them and generates a compiles license_info.json for those
|
||||
|
@ -179,6 +170,11 @@ console.log(`There are ${missingLicenses.length} licenses missing.`)
|
|||
|
||||
// shuffle(missingLicenses)
|
||||
|
||||
process.on('SIGINT', function() {
|
||||
console.log("Aborting... Bye!");
|
||||
process.exit();
|
||||
});
|
||||
|
||||
let i = 1;
|
||||
for (const missingLicens of missingLicenses) {
|
||||
console.log(i + " / " + missingLicenses.length)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue