Rebranded plugbox to PlugOS (plugos)

This commit is contained in:
Zef Hemel
2022-03-27 11:31:12 +02:00
parent 621e55dbcf
commit cb809d2d03
45 changed files with 42 additions and 51 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import { SocketServer } from "./api_server";
import * as path from "path";
import * as fs from "fs";
import { SilverBulletHooks } from "../common/manifest";
import { System } from "../plugbox/system";
import { System } from "../plugos/system";
describe("Server test", () => {
let io: Server,
+1 -1
View File
@@ -6,7 +6,7 @@ import { PageApi } from "./page_api";
import { SilverBulletHooks } from "../common/manifest";
import pageIndexSyscalls from "./syscalls/page_index";
import { safeRun } from "./util";
import { System } from "../plugbox/system";
import { System } from "../plugos/system";
export class ClientConnection {
openPages = new Set<string>();
+2 -2
View File
@@ -1,8 +1,8 @@
import { Express } from "express";
import { SilverBulletHooks } from "../common/manifest";
import { EndpointFeature } from "../plugbox/feature/endpoint";
import { EndpointFeature } from "../plugos/feature/endpoint";
import { readFile } from "fs/promises";
import { System } from "../plugbox/system";
import { System } from "../plugos/system";
export class ExpressServer {
app: Express;
+2 -2
View File
@@ -10,8 +10,8 @@ import path from "path";
import { stat } from "fs/promises";
import { Cursor, cursorEffect } from "../webapp/cursorEffect";
import { SilverBulletHooks } from "../common/manifest";
import { System } from "../plugbox/system";
import { EventFeature } from "../plugbox/feature/event";
import { System } from "../plugos/system";
import { EventFeature } from "../plugos/feature/event";
export class PageApi implements ApiProvider {
openPages: Map<string, Page>;
+5 -5
View File
@@ -8,10 +8,10 @@ import yargs from "yargs";
import {hideBin} from "yargs/helpers";
import {SilverBulletHooks} from "../common/manifest";
import {ExpressServer} from "./express_server";
import {DiskPlugLoader} from "../plugbox/plug_loader";
import {NodeCronFeature} from "../plugbox/feature/node_cron";
import shellSyscalls from "../plugbox/syscall/shell.node";
import {System} from "../plugbox/system";
import {DiskPlugLoader} from "../plugos/plug_loader";
import {NodeCronFeature} from "../plugos/feature/node_cron";
import shellSyscalls from "../plugos/syscall/shell.node";
import {System} from "../plugos/system";
let args = yargs(hideBin(process.argv))
.option("port", {
@@ -21,7 +21,7 @@ let args = yargs(hideBin(process.argv))
.parse();
if (!args._.length) {
console.error("Usage: silverbullet <path-to-pages>");
console.error("Usage: silverbullet <path-to-pages>");
process.exit(1);
}
+1 -1
View File
@@ -1,5 +1,5 @@
import { Knex } from "knex";
import { SysCallMapping } from "../../plugbox/system";
import { SysCallMapping } from "../../plugos/system";
type IndexItem = {
page: string;