This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* writes a dataArray to an Excel workbook | |
* this must happen in child process | |
* otherwise a blank page results | |
* get dataArray listening to process.send | |
*/ | |
const Excel = require('exceljs') | |
// path is passed as only argument of the process |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* gets save path | |
* pass dataArray using process.send | |
* kill child process at end? | |
*/ | |
import electron, { remote } from 'electron' | |
import pathModule from 'path' | |
import childProcess from 'child_process' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Kapla", | |
"productName": "Kapla", | |
"version": "1.0.0", | |
"description": "Instrument, mit dem der Rechtsdienst des AWEL Geschäfte erfasst und Fristen kontrolliert", | |
"main": "main.js", | |
"scripts": { | |
"test": "cross-env NODE_ENV=test mocha --compilers js:babel-core/register --recursive --require ./test/setup.js test/**/*.spec.js", | |
"test-watch": "npm test -- --watch", | |
"test-e2e": "cross-env NODE_ENV=test mocha --compilers js:babel-core/register --require ./test/setup.js --require co-mocha ./test/e2e.js", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
domain: null, | |
_events: {}, | |
_eventsCount: 0, | |
_maxListeners: undefined, | |
res: | |
IncomingMessage { | |
_readableState: | |
ReadableState { | |
objectMode: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Name": "CH Delarze (2008): Lebensräume", | |
"Gruppe": "Lebensräume", | |
"Eigenschaften": { | |
"Taxonomie": "CH Delarze (2008): Lebensräume", | |
"Einheit-Nr FNS": "44", | |
"Label": "2.2.3", | |
"Einheit": "Kalk-Kleinseggenried", | |
"Lateinisch": "Caricion davallianae", | |
"Französisch": "Parvocariçaie neutro-basophile", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Name": "CSCF (2009)", | |
"Beschreibung": "Index der Info Fauna. Eigenschaften von 21542 Tierarten", | |
"Datenstand": "2009", | |
"Link": "http://www.cscf.ch/", | |
"Gruppe": "Fauna", | |
"Eigenschaften": { | |
"Taxonomie ID": 21207, | |
"Klasse": "Insecta", | |
"Ordnung": "Coleoptera", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE OR REPLACE VIEW v_exportevab_beob AS | |
SELECT CONCAT('{', apflora.tpopkontr.ZeitGuid, '}') AS fkZeitpunkt, CONCAT('{', apflora.tpopkontr.TPopKontrGuid, '}') AS idBeobachtung, IF(apflora.adresse.EvabIdPerson Is Not Null, apflora.adresse.EvabIdPerson, '{A1146AE4-4E03-4032-8AA8-BC46BA02F468}') AS fkAutor, apflora.ap.ApArtId AS fkArt, 18 AS fkArtgruppe, 1 AS fkAA1, tpopHerkunft.ZdsfHerkunft AS fkAAINTRODUIT, tpopHerkunft.ZdsfVorhanden AS fkAAPRESENCE, apflora.tpopkontr.TPopKontrGefaehrdung AS MENACES, LEFT(apflora.tpopkontr.TPopKontrVitalitaet, 200) AS VITALITE_PLANTE, LEFT(apflora.tpop.TPopBeschr, 244) AS STATION, LEFT(CONCAT('Anzahlen: ', GROUP_CONCAT(apflora.tpopkontrzaehl.Anzahl SEPARATOR ', '), ', Zaehleinheiten: ', GROUP_CONCAT(apflora.tpopkontrzaehl_einheit_werte.ZaehleinheitTxt SEPARATOR ', '), ', Methoden: ', GROUP_CONCAT(apflora.tpopkontrzaehl_methode_werte.BeurteilTxt SEPARATOR ', ')), 160) AS ABONDANCE | |
FROM (((((((apflora.ap INNER JOIN apflora.pop ON apflora.ap.ApArtId = apflora.pop.ApArtId) INNE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_id": "", | |
"Gruppe": "Lebensräume", | |
"Typ": "Objekt", | |
"Taxonomie": { | |
"Name": "", | |
"Eigenschaften": { | |
"Taxonomie": "", | |
"Label": "", | |
"Einheit": "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Ein Datensatz ist ein JSON-Objekt | |
// Es enthält auf der obersten Ebene die Felder: | |
// "_id", "_rev", "Gruppe", "Typ", "Taxonomie", "Datensammlungen" und "Beziehungssammlungen" | |
// _id: Die von CouchDb vergebene GUID verwenden oder eine eigene, die diesen Kriterien entspricht: | |
// http://de.wikipedia.org/wiki/Globally_Unique_Identifier | |
// Sie muss folgendermassen zusammengesetzt sein: | |
// - 32 Zeichen in 5 Gruppen, | |
// - diese jeweils 8, 4, 4, 4 und 12 Zeichen lang, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_id": "", | |
"Gruppe": "Macromycetes", | |
"Typ": "Objekt", | |
"Taxonomie": { | |
"Name": "Swissfunghi (2011)", | |
"Beschreibung": "WSL, Swissfunghi, Beatrice Senn (Datenzentrum Moose Schweiz)", | |
"Datenstand": "2011.06", | |
"Link": "http://www.wsl.ch/dienstleistungen/inventare/pilze_flechten/swissfungi/index_DE", | |
"Eigenschaften": { |