Compare commits

...

1 Commits

Author SHA1 Message Date
HerrHase 078627d9cd adding
2 years ago

Binary file not shown.

Binary file not shown.

@ -1,6 +1,6 @@
import minimist from 'minimist'
import websocket from 'websocket'
import { v4 as uuidv4 } from 'uuid'
const minimist = require('minimist')
const WS = require('websocket').w3cwebsocket
const { v4: uuidv4 } = require('uuid')
/**
* connector creating client and routing to handlers
@ -31,7 +31,7 @@ class Connector {
this.NL_EXTID = argv['nl-extension-id']
// 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
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
@ -78,4 +78,4 @@ class AppsHandler {
}
}
export default AppsHandler
module.exports.AppsHandler = AppsHandler

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

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

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

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

@ -1,5 +1,5 @@
import PouchDB from 'pouchdb'
import PouchDBfind from 'pouchdb-find'
const PouchDB = require('pouchdb')
const PouchDBfind = require('pouchdb-find')
/**
* PouchdbHandler, for create
@ -44,8 +44,7 @@ class PouchdbHandler {
} catch (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
@ -8,7 +8,7 @@ import PouchdbHandler from './pouchdbHandler.js'
* @link https://gitea.node001.net/HerrHase/tellme-bot.git
*
*/
class TagsDatabase extends PouchdbHandler {
class TagsStore extends PouchdbHandler {
constructor() {
super()
@ -123,4 +123,4 @@ class TagsDatabase extends PouchdbHandler {
}
export default AppsDatabase
module.exports.TagsStore = TagsStore

@ -47,7 +47,8 @@
"extensions": [
{
"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",
"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": {
"@riotjs/observable": "^4.1.1",

Loading…
Cancel
Save