jekyll: move jekyll back to root, but simpler setup, exclude via _config.yml
app: bundle jekyll docs into app, add 'yarn run docs' to build ui: add back/forward arrows for app only, adjust responsiveness for app, add IS_APP flag injected via preload ui: add animated logo, friendly message on empty replay frame app: improve serve logic: - serve static files from static root - serve replay from http localhost instead to avoid proxying https for remote requests - serve local lookup from http prefix also - catch any fallthrough from replay as 404 - add timestamp to response channels to ensure uniqness
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
|
||||
import { CollectionLoader } from 'wabac/src/loaders';
|
||||
|
||||
const { ipcRenderer } = require('electron');
|
||||
const { ipcRenderer, contextBridge } = require('electron');
|
||||
|
||||
contextBridge.exposeInMainWorld('electron', {'IS_APP': true});
|
||||
|
||||
const dbs = {};
|
||||
|
||||
@@ -17,7 +19,7 @@ async function getDB(name) {
|
||||
return dbs[name].store;
|
||||
}
|
||||
|
||||
async function getResponse(event, request, coll, ts) {
|
||||
async function getResponse(event, request, coll, ts, channel) {
|
||||
const db = await getDB(coll);
|
||||
await db.initing;
|
||||
|
||||
@@ -25,8 +27,6 @@ async function getResponse(event, request, coll, ts) {
|
||||
|
||||
const result = await db.getResource(req, "", {request});
|
||||
|
||||
const channel = "req:" + request.url;
|
||||
|
||||
if (!result) {
|
||||
ipcRenderer.send(channel, 404);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user