Screenshot, minor tweaks

pull/3/head
Zef Hemel 2022-06-28 14:34:25 +02:00
parent e3adb2284d
commit f491b43fcc
4 changed files with 8 additions and 6 deletions

BIN
images/silverbullet1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1010 KiB

View File

@ -3,7 +3,7 @@
"private": true, "private": true,
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"watch": "rm -rf .parcel-cache && parcel watch --no-hmr packages/{web,server,plugos,plugs} desktop", "watch": "rm -rf .parcel-cache && parcel watch --no-hmr packages/{web,server,plugos,plugs}",
"clean": "rm -rf .parcel-cache packages/*/dist", "clean": "rm -rf .parcel-cache packages/*/dist",
"nuke": "rm -rf node_modules && npm run clean", "nuke": "rm -rf node_modules && npm run clean",
"build": "parcel build packages/{web,server,plugos}", "build": "parcel build packages/{web,server,plugos}",

View File

@ -236,7 +236,7 @@ export class ExpressServer {
allPlugs = this.space.listPlugs(); allPlugs = this.space.listPlugs();
} }
await this.system.unloadAll(); await this.system.unloadAll();
console.log("Reloading plugs"); console.log("Loading plugs");
for (let pageInfo of allPlugs) { for (let pageInfo of allPlugs) {
let { text } = await this.space.readPage(pageInfo.name); let { text } = await this.space.readPage(pageInfo.name);
await this.system.load(JSON.parse(text), createSandbox); await this.system.load(JSON.parse(text), createSandbox);
@ -261,7 +261,6 @@ export class ExpressServer {
await ensureTable(this.db); await ensureTable(this.db);
await ensureFTSTable(this.db, "fts"); await ensureFTSTable(this.db, "fts");
await this.ensureIndexPage(); await this.ensureIndexPage();
console.log("Setting up router");
let auth = new Authenticator(this.db); let auth = new Authenticator(this.db);
@ -430,7 +429,10 @@ export class ExpressServer {
this.server = http.createServer(this.app); this.server = http.createServer(this.app);
this.server.listen(this.port, () => { this.server.listen(this.port, () => {
console.log(`Server listening on port ${this.port}`); console.log(
`Silver Bullet is now running: http://localhost:${this.port}`
);
console.log("--------------");
}); });
} }

View File

@ -29,11 +29,11 @@ const port = args.port;
const webappDistDir = realpathSync( const webappDistDir = realpathSync(
`${nodeModulesDir}/node_modules/@silverbulletmd/web/dist` `${nodeModulesDir}/node_modules/@silverbulletmd/web/dist`
); );
console.log("Webapp dist dir", webappDistDir); // console.log("Webapp dist dir", webappDistDir);
const plugDistDir = realpathSync( const plugDistDir = realpathSync(
`${nodeModulesDir}/node_modules/@silverbulletmd/plugs/dist` `${nodeModulesDir}/node_modules/@silverbulletmd/plugs/dist`
); );
console.log("Builtin plug dist dir", plugDistDir); // console.log("Builtin plug dist dir", plugDistDir);
const expressServer = new ExpressServer({ const expressServer = new ExpressServer({
port: port, port: port,