refactor: http -> web
This commit is contained in:
parent
426a09811c
commit
3f74238760
|
@ -41,14 +41,14 @@
|
|||
port: 32352
|
||||
'@flecks/docker': {}
|
||||
'@flecks/governor': {}
|
||||
'@flecks/http': {}
|
||||
'@flecks/http/client':
|
||||
'@flecks/web': {}
|
||||
'@flecks/web/client':
|
||||
up:
|
||||
- '@flecks/socket'
|
||||
- '@humus/universe'
|
||||
- '@flecks/react'
|
||||
- '...'
|
||||
'@flecks/http/server':
|
||||
'@flecks/web/server':
|
||||
devPublic: 'humus.local.cha0s.io'
|
||||
port: 32350
|
||||
'request.route':
|
||||
|
@ -84,7 +84,7 @@
|
|||
- '@flecks/governor'
|
||||
- '...'
|
||||
- '@humus/universe'
|
||||
- '@flecks/http'
|
||||
- '@flecks/web'
|
||||
- '@flecks/repl'
|
||||
'@flecks/socket': {}
|
||||
'@flecks/socket/server':
|
||||
|
|
|
@ -40,7 +40,6 @@
|
|||
"@flecks/create-app": "^1.3.0",
|
||||
"@flecks/db": "^1.3.0",
|
||||
"@flecks/governor": "^1.3.0",
|
||||
"@flecks/http": "^1.3.0",
|
||||
"@flecks/react": "^1.3.0",
|
||||
"@flecks/redis": "^1.3.0",
|
||||
"@flecks/redux": "^1.3.0",
|
||||
|
@ -48,6 +47,7 @@
|
|||
"@flecks/server": "^1.3.0",
|
||||
"@flecks/socket": "^1.3.0",
|
||||
"@flecks/user": "^1.3.0",
|
||||
"@flecks/web": "^1.3.0",
|
||||
"@humus/combat": "^2.0.0",
|
||||
"@humus/core": "^2.0.0",
|
||||
"@humus/farm": "^2.0.0",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
'@flecks/core': {}
|
||||
'@flecks/fleck': {}
|
||||
'@flecks/http': {}
|
||||
'@flecks/react': {}
|
||||
'@flecks/web': {}
|
||||
|
|
|
@ -37,6 +37,6 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@flecks/fleck": "^1.3.0",
|
||||
"@flecks/http": "^1.3.0"
|
||||
"@flecks/web": "^1.3.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
'@flecks/core': {}
|
||||
'@flecks/fleck': {}
|
||||
'@flecks/http': {}
|
||||
'@flecks/react': {}
|
||||
'@flecks/web': {}
|
||||
|
|
|
@ -43,6 +43,6 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@flecks/fleck": "^1.3.0",
|
||||
"@flecks/http": "^1.3.0"
|
||||
"@flecks/web": "^1.3.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
'@flecks/core': {}
|
||||
'@flecks/fleck': {}
|
||||
'@flecks/http': {}
|
||||
'@flecks/react': {}
|
||||
'@flecks/web': {}
|
||||
|
|
|
@ -48,6 +48,6 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@flecks/fleck": "^1.3.0",
|
||||
"@flecks/http": "^1.3.0"
|
||||
"@flecks/web": "^1.3.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
'@flecks/core': {}
|
||||
'@flecks/fleck': {}
|
||||
'@flecks/http': {}
|
||||
'@flecks/react': {}
|
||||
'@flecks/web': {}
|
||||
|
|
|
@ -55,6 +55,6 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@flecks/fleck": "^1.3.0",
|
||||
"@flecks/http": "^1.3.0"
|
||||
"@flecks/web": "^1.3.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ export default {
|
|||
[Hooks]: {
|
||||
'@humus/app.components': () => Universe,
|
||||
'@humus/app.title': () => Title,
|
||||
'@flecks/http/client.up': (flecks) => {
|
||||
'@flecks/web/client.up': (flecks) => {
|
||||
window.flecks = flecks;
|
||||
const Synchronizer = Receiver(flecks);
|
||||
const synchronizer = new Synchronizer();
|
||||
|
|
|
@ -36,7 +36,7 @@ export default {
|
|||
throw new Error(`Couldn't run universe '${running}': ${error.stack}`);
|
||||
}
|
||||
},
|
||||
'@flecks/http/server.request.socket': (flecks) => (req, res, next) => {
|
||||
'@flecks/web/server.request.socket': (flecks) => (req, res, next) => {
|
||||
if (req.url.startsWith('/resource')) {
|
||||
req.url = req.url.slice('/resource'.length);
|
||||
flecks.get('$humus/universe.resource-server')(req, res, next);
|
||||
|
|
Loading…
Reference in New Issue
Block a user