mirror of
https://github.com/Terreii/andromeda-viewer.git
synced 2026-08-14 09:01:59 +00:00
chore(hoodie): remove hoodie
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
# Hoodie
|
||||
|
||||
In this directory are the [hoodie plugins](http://docs.hood.ie/en/latest/guides/plugins.html) located.
|
||||
|
||||
On start `server.js` will get loaded. `client.js` would be the same, but for the client.
|
||||
|
||||
## Server
|
||||
|
||||
The server is a [`Hapi` server](https://hapijs.com/). The `server.js` will get loaded as a *hapi-plugin*. It will then load following modules:
|
||||
|
||||
File | Description
|
||||
-----|-----
|
||||
`login.js` | Handles the login process.
|
||||
`brige.js` | Is the UDP-bridge between client and sim. The client connects with a Web-Socket to it.
|
||||
`httpProxy.js` | A proxy for all HTTP-requests from the client to a grid.
|
||||
@@ -1,22 +0,0 @@
|
||||
'use strict'
|
||||
|
||||
const bridge = require('./bridge')
|
||||
const gridSession = require('./gridSession')
|
||||
const proxy = require('./httpProxy')
|
||||
const login = require('./login')
|
||||
|
||||
exports.register = function (server, options, next) {
|
||||
try {
|
||||
gridSession(server)
|
||||
login(server)
|
||||
bridge(server)
|
||||
proxy(server)
|
||||
next()
|
||||
} catch (err) {
|
||||
next(err)
|
||||
}
|
||||
}
|
||||
|
||||
exports.register.attributes = {
|
||||
pkg: require('../package.json')
|
||||
}
|
||||
Generated
+622
-3868
File diff suppressed because it is too large
Load Diff
+3
-9
@@ -57,10 +57,10 @@
|
||||
"@reduxjs/toolkit": "^1.4.0",
|
||||
"@sheerun/mutationobserver-shim": "^0.3.3",
|
||||
"@tailwindcss/custom-forms": "^0.2.1",
|
||||
"@testing-library/react": "^11.0.2",
|
||||
"@testing-library/react": "^11.0.4",
|
||||
"@testing-library/react-hooks": "^3.4.1",
|
||||
"@types/jest": "^24.9.1",
|
||||
"@types/node": "^14.6.4",
|
||||
"@types/node": "^14.11.1",
|
||||
"@types/react": "^16.9.49",
|
||||
"@types/react-dom": "^16.9.8",
|
||||
"@types/react-redux": "^7.1.9",
|
||||
@@ -99,7 +99,7 @@
|
||||
"requestidlecallback": "^0.3.0",
|
||||
"reselect": "^4.0.0",
|
||||
"standard": "^14.3.4",
|
||||
"tailwindcss": "^1.8.4",
|
||||
"tailwindcss": "^1.8.10",
|
||||
"textlint": "^11.7.6",
|
||||
"textlint-rule-alex": "^3.0.0",
|
||||
"textlint-rule-common-misspellings": "^1.0.1",
|
||||
@@ -113,7 +113,6 @@
|
||||
"basic-auth": "^2.0.1",
|
||||
"express": "^4.17.1",
|
||||
"express-validator": "^6.6.1",
|
||||
"hoodie": "^28.2.10",
|
||||
"http-proxy": "^1.18.1",
|
||||
"milliseconds": "^1.0.3",
|
||||
"nano": "^8.2.2",
|
||||
@@ -129,10 +128,5 @@
|
||||
"jest",
|
||||
"es6"
|
||||
]
|
||||
},
|
||||
"hoodie": {
|
||||
"plugins": [
|
||||
"hoodie-plugin-store-crypto"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
# Server
|
||||
|
||||
In this directory is the [express](https://expressjs.com/)-server located located.
|
||||
|
||||
On start `index.js` sets up the server.
|
||||
|
||||
The server connects to a [CouchDB](https://couchdb.apache.org/) or
|
||||
[PouchDB-Server](https://github.com/pouchdb/pouchdb-server) instance.
|
||||
And uses it for account and session management.
|
||||
|
||||
Server needs the [env-variable](https://en.wikipedia.org/wiki/Environment_variable)
|
||||
`COUCH_URL` set to the *URL of your CouchDB*.
|
||||
It defaults to __http://localhost:5984__ (standard CouchDB and PouchDB-Server port).
|
||||
|
||||
## Files
|
||||
|
||||
File | Description
|
||||
-----|-----
|
||||
[`index.js`](./index.js) | Is the entry file for the server. It configures and starts the server.
|
||||
[`db.js`](./db.js) | Setup and common functions for the databases.
|
||||
[`account.js`](./account.js) | API for accounts. Creating, updating, deleting, login, password reset.
|
||||
[`login.js`](./login.js) | Handles the grid-login process.
|
||||
[`gridSession.js`](./gridSession.js) | Utility function to store and validate active grid sessions.
|
||||
[`bridge.js`](./bridge.js) | Is the UDP-bridge between client and sim. The client connects with a Web-Socket to it.
|
||||
[`httpProxy.js`](./httpProxy.js) | A proxy for all HTTP-requests from the client to a grid.
|
||||
Reference in New Issue
Block a user