Enabled back-end running of functions, moved indexing to server.
This commit is contained in:
+3
-1
@@ -7,12 +7,14 @@
|
||||
"license": "MIT",
|
||||
"browserslist": "> 0.5%, last 2 versions, not dead",
|
||||
"scripts": {
|
||||
"start": "parcel serve --no-cache",
|
||||
"start": "rm -rf .parcel-cache && parcel serve --no-cache",
|
||||
"start-no-hmr": "rm -rf .parcel-cache && parcel serve --no-cache --no-hmr",
|
||||
"build": "parcel build",
|
||||
"clean": "rm -rf dist"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@parcel/packager-raw-url": "2.3.2",
|
||||
"@parcel/transformer-inline-string": "2.3.2",
|
||||
"@parcel/transformer-sass": "2.3.2",
|
||||
"@parcel/transformer-webmanifest": "2.3.2",
|
||||
"@parcel/validator-typescript": "^2.3.2",
|
||||
|
||||
@@ -29,7 +29,8 @@ import {
|
||||
import React, { useEffect, useReducer } from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import { Plug, System } from "../../plugbox/src/runtime";
|
||||
import { WebworkerSandbox } from "../../plugbox/src/worker_sandbox";
|
||||
import { createSandbox } from "../../plugbox/src/webworker_sandbox";
|
||||
import { createSandbox as createIFrameSandbox } from "../../plugbox/src/iframe_sandbox";
|
||||
import { AppEvent, AppEventDispatcher, ClickEvent } from "./app_event";
|
||||
import { collabExtension, CollabDocument } from "./collab";
|
||||
import * as commands from "./commands";
|
||||
@@ -182,7 +183,7 @@ export class Editor implements AppEventDispatcher {
|
||||
let mainPlug = await system.load(
|
||||
"core",
|
||||
coreManifest,
|
||||
new WebworkerSandbox(system)
|
||||
createIFrameSandbox(system)
|
||||
);
|
||||
this.plugs.push(mainPlug);
|
||||
this.editorCommands = new Map<string, AppCommand>();
|
||||
|
||||
@@ -21,7 +21,8 @@ export class Indexer {
|
||||
name: pageName,
|
||||
text,
|
||||
};
|
||||
await appEventDispatcher.dispatchAppEvent("page:index", indexEvent);
|
||||
|
||||
// await appEventDispatcher.dispatchAppEvent("page:index", indexEvent);
|
||||
// await this.setPageIndexPageMeta(pageMeta.name, pageMeta);
|
||||
}
|
||||
|
||||
|
||||
@@ -790,6 +790,13 @@
|
||||
"@parcel/workers" "2.3.2"
|
||||
nullthrows "^1.1.1"
|
||||
|
||||
"@parcel/transformer-inline-string@2.3.2":
|
||||
version "2.3.2"
|
||||
resolved "https://registry.yarnpkg.com/@parcel/transformer-inline-string/-/transformer-inline-string-2.3.2.tgz#bec5d376d00b5c41abf11c8cf8e3d917036c0646"
|
||||
integrity sha512-nitgU+YHnJpJjdUEyRqXD3DjIAstcdHDwwKgloTfpt7EDe2VspVuWhA054kH75Kn/Tvn4s0G4VGCTpDw5KxzSw==
|
||||
dependencies:
|
||||
"@parcel/plugin" "2.3.2"
|
||||
|
||||
"@parcel/transformer-js@2.3.2":
|
||||
version "2.3.2"
|
||||
resolved "https://registry.yarnpkg.com/@parcel/transformer-js/-/transformer-js-2.3.2.tgz#24bcb488d5f82678343a5630fe4bbe822789ac33"
|
||||
|
||||
Reference in New Issue
Block a user