release-neutralino
HerrHase 2 years ago
parent 335d8efd28
commit 078627d9cd

Binary file not shown.

Binary file not shown.

@ -1,6 +1,6 @@
import minimist from 'minimist' const minimist = require('minimist')
import websocket from 'websocket' const WS = require('websocket').w3cwebsocket
import { v4 as uuidv4 } from 'uuid' const { v4: uuidv4 } = require('uuid')
/** /**
* connector creating client and routing to handlers * connector creating client and routing to handlers
@ -31,7 +31,7 @@ class Connector {
this.NL_EXTID = argv['nl-extension-id'] this.NL_EXTID = argv['nl-extension-id']
// create socket connection for receive and send events // create socket connection for receive and send events
this.client = new websocket.w3cwebsocket(`ws://localhost:${this.NL_PORT}?extensionId=${this.NL_EXTID}`) this.client = new WS(`ws://localhost:${this.NL_PORT}?extensionId=${this.NL_EXTID}`)
// add events for on message to // add events for on message to
this.client.onmessage = (event) => { this.client.onmessage = (event) => {
@ -78,4 +78,4 @@ class Connector {
} }
} }
export default Connector module.exports.Connector = Connector

@ -1,4 +1,4 @@
import AppsStore from './../stores/apps.js' const AppsStore = require('./../stores/apps.js').AppsStore
/** /**
* handler for apps * handler for apps
@ -78,4 +78,4 @@ class AppsHandler {
} }
} }
export default AppsHandler module.exports.AppsHandler = AppsHandler

@ -1,10 +1,8 @@
import Connector from './connector.js' const Connector = require('./connector/connector.js').Connector
import AppsStore from './stores/apps.js' const AppsHandler = require('./handlers/apps.js').AppsHandler
import AppsHandler from './handlers/apps.js'
// create handlers // create handlers
const appsHandler = new AppsHandler const appsHandler = new AppsHandler()
// create connector and add handlers for events // create connector and add handlers for events
const connector = new Connector({ const connector = new Connector({

@ -1,5 +1,4 @@
{ {
"name": "extension-pouchdb",
"version": "1.0.0", "version": "1.0.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,

@ -3,7 +3,6 @@
"version": "1.0.0", "version": "1.0.0",
"main": "index.js", "main": "index.js",
"license": "MIT", "license": "MIT",
"type": "module",
"dependencies": { "dependencies": {
"minimist": "^1.2.6", "minimist": "^1.2.6",
"pouchdb": "^7.3.0", "pouchdb": "^7.3.0",

@ -1,4 +1,4 @@
import PouchdbHandler from './pouchdbHandler.js' const PouchdbHandler = require('./pouchdbHandler.js').PouchdbHandler
/** /**
* apps * apps
@ -122,4 +122,4 @@ class AppsStore extends PouchdbHandler {
} }
export default AppsStore module.exports.AppsStore = AppsStore

@ -1,5 +1,5 @@
import PouchDB from 'pouchdb' const PouchDB = require('pouchdb')
import PouchDBfind from 'pouchdb-find' const PouchDBfind = require('pouchdb-find')
/** /**
* PouchdbHandler, for create * PouchdbHandler, for create
@ -44,8 +44,7 @@ class PouchdbHandler {
} catch (error) { } catch (error) {
console.log(error) console.log(error)
} }
} }
} }
export default PouchdbHandler module.exports.PouchdbHandler = PouchdbHandler

@ -1,4 +1,4 @@
import PouchdbHandler from './pouchdbHandler.js' const PouchdbHandler = require('./pouchdbHandler.js').PouchdbHandler
/** /**
* apps * apps
@ -8,7 +8,7 @@ import PouchdbHandler from './pouchdbHandler.js'
* @link https://gitea.node001.net/HerrHase/tellme-bot.git * @link https://gitea.node001.net/HerrHase/tellme-bot.git
* *
*/ */
class TagsDatabase extends PouchdbHandler { class TagsStore extends PouchdbHandler {
constructor() { constructor() {
super() super()
@ -123,4 +123,4 @@ class TagsDatabase extends PouchdbHandler {
} }
export default AppsDatabase module.exports.TagsStore = TagsStore

@ -47,7 +47,8 @@
"extensions": [ "extensions": [
{ {
"id": "js.neutralino.pouchdb", "id": "js.neutralino.pouchdb",
"command": "node ${NL_PATH}/extensions/pouchdb/index.js" "commandLinux": "${NL_PATH}/extensions/bin/pouchdb-linux-x64",
"commandWindows": "${NL_PATH}/extensions/bin/index.exe"
} }
] ]
} }

10329
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -1,8 +1,12 @@
{ {
"name": "shiny-dashboard", "name": "potato-launcher",
"private": true,
"version": "0.1.0", "version": "0.1.0",
"scripts": { "scripts": {
"build": "npx mix" "dev": "npx mix --production && neu run --disable-auto-reload",
"build": "npx mix --production && rm -r dist && neu build",
"build-extensions-linux": "nexe ./extensions/pouchdb/index.js --build --output=./../bin/pouchdb-linux-x64 -r ./ --cwd=./extensions/pouchdb --python=$(which python3) --target=linux-x64 --verbose --enableNodeCli",
"build-extensions-win64": "nexe ./extensions/pouchdb/index.js --build --output=./../bin/pouchdb-win-x64 -r ./ --cwd=./extensions/pouchdb --python=$(which python3) --target=windows-x64 --verbose --enableNodeCli"
}, },
"dependencies": { "dependencies": {
"@riotjs/observable": "^4.1.1", "@riotjs/observable": "^4.1.1",

Loading…
Cancel
Save