0.0.29
This commit is contained in:
parent
538ae95dc4
commit
b29b175b40
@ -65,5 +65,5 @@
|
|||||||
"prettier": "^2.5.1",
|
"prettier": "^2.5.1",
|
||||||
"typescript": "^4.6.2"
|
"typescript": "^4.6.2"
|
||||||
},
|
},
|
||||||
"version": "0.0.28"
|
"version": "0.0.29"
|
||||||
}
|
}
|
||||||
|
32
package-lock.json
generated
32
package-lock.json
generated
@ -28,7 +28,7 @@
|
|||||||
},
|
},
|
||||||
"mattermost-plugin/webapp": {
|
"mattermost-plugin/webapp": {
|
||||||
"name": "silverbullet-mattermost-plugin",
|
"name": "silverbullet-mattermost-plugin",
|
||||||
"version": "0.0.28",
|
"version": "0.0.29",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@codemirror/autocomplete": "^6.0.1",
|
"@codemirror/autocomplete": "^6.0.1",
|
||||||
@ -9778,7 +9778,7 @@
|
|||||||
},
|
},
|
||||||
"packages/common": {
|
"packages/common": {
|
||||||
"name": "@silverbulletmd/common",
|
"name": "@silverbulletmd/common",
|
||||||
"version": "0.0.28",
|
"version": "0.0.29",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@codemirror/autocomplete": "^6.0.1",
|
"@codemirror/autocomplete": "^6.0.1",
|
||||||
@ -9802,7 +9802,7 @@
|
|||||||
},
|
},
|
||||||
"packages/plugos": {
|
"packages/plugos": {
|
||||||
"name": "@plugos/plugos",
|
"name": "@plugos/plugos",
|
||||||
"version": "0.0.28",
|
"version": "0.0.29",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@jest/globals": "^27.5.1",
|
"@jest/globals": "^27.5.1",
|
||||||
@ -9858,12 +9858,12 @@
|
|||||||
},
|
},
|
||||||
"packages/plugos-silverbullet-syscall": {
|
"packages/plugos-silverbullet-syscall": {
|
||||||
"name": "@silverbulletmd/plugos-silverbullet-syscall",
|
"name": "@silverbulletmd/plugos-silverbullet-syscall",
|
||||||
"version": "0.0.28",
|
"version": "0.0.29",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"packages/plugos-syscall": {
|
"packages/plugos-syscall": {
|
||||||
"name": "@plugos/plugos-syscall",
|
"name": "@plugos/plugos-syscall",
|
||||||
"version": "0.0.28",
|
"version": "0.0.29",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"packages/plugos/node_modules/@lezer/common": {
|
"packages/plugos/node_modules/@lezer/common": {
|
||||||
@ -12303,13 +12303,13 @@
|
|||||||
},
|
},
|
||||||
"packages/plugs": {
|
"packages/plugs": {
|
||||||
"name": "@silverbulletmd/plugs",
|
"name": "@silverbulletmd/plugs",
|
||||||
"version": "0.0.28",
|
"version": "0.0.29",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@jest/globals": "^27.5.1",
|
"@jest/globals": "^27.5.1",
|
||||||
"@lezer/generator": "1.0.0",
|
"@lezer/generator": "1.0.0",
|
||||||
"@lezer/lr": "1.0.0",
|
"@lezer/lr": "1.0.0",
|
||||||
"@silverbulletmd/common": "^0.0.28",
|
"@silverbulletmd/common": "^0.0.29",
|
||||||
"@types/yaml": "^1.9.7",
|
"@types/yaml": "^1.9.7",
|
||||||
"handlebars": "^4.7.7",
|
"handlebars": "^4.7.7",
|
||||||
"markdown-it": "^12.3.2",
|
"markdown-it": "^12.3.2",
|
||||||
@ -12341,7 +12341,7 @@
|
|||||||
},
|
},
|
||||||
"packages/server": {
|
"packages/server": {
|
||||||
"name": "@silverbulletmd/server",
|
"name": "@silverbulletmd/server",
|
||||||
"version": "0.0.28",
|
"version": "0.0.29",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@codemirror/lang-javascript": "6.0.0",
|
"@codemirror/lang-javascript": "6.0.0",
|
||||||
@ -12349,9 +12349,9 @@
|
|||||||
"@codemirror/legacy-modes": "6.0.0",
|
"@codemirror/legacy-modes": "6.0.0",
|
||||||
"@jest/globals": "^27.5.1",
|
"@jest/globals": "^27.5.1",
|
||||||
"@lezer/markdown": "1.0.1",
|
"@lezer/markdown": "1.0.1",
|
||||||
"@silverbulletmd/common": "^0.0.28",
|
"@silverbulletmd/common": "^0.0.29",
|
||||||
"@silverbulletmd/plugs": "^0.0.28",
|
"@silverbulletmd/plugs": "^0.0.29",
|
||||||
"@silverbulletmd/web": "^0.0.28",
|
"@silverbulletmd/web": "^0.0.29",
|
||||||
"better-sqlite3": "^7.5.0",
|
"better-sqlite3": "^7.5.0",
|
||||||
"body-parser": "^1.19.2",
|
"body-parser": "^1.19.2",
|
||||||
"buffer": "^6.0.3",
|
"buffer": "^6.0.3",
|
||||||
@ -13645,7 +13645,7 @@
|
|||||||
},
|
},
|
||||||
"packages/web": {
|
"packages/web": {
|
||||||
"name": "@silverbulletmd/web",
|
"name": "@silverbulletmd/web",
|
||||||
"version": "0.0.28",
|
"version": "0.0.29",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@codemirror/autocomplete": "^6.0.1",
|
"@codemirror/autocomplete": "^6.0.1",
|
||||||
@ -18315,7 +18315,7 @@
|
|||||||
"@jest/globals": "^27.5.1",
|
"@jest/globals": "^27.5.1",
|
||||||
"@lezer/generator": "1.0.0",
|
"@lezer/generator": "1.0.0",
|
||||||
"@lezer/lr": "1.0.0",
|
"@lezer/lr": "1.0.0",
|
||||||
"@silverbulletmd/common": "^0.0.28",
|
"@silverbulletmd/common": "^0.0.29",
|
||||||
"@types/markdown-it": "^12.2.3",
|
"@types/markdown-it": "^12.2.3",
|
||||||
"@types/yaml": "^1.9.7",
|
"@types/yaml": "^1.9.7",
|
||||||
"handlebars": "^4.7.7",
|
"handlebars": "^4.7.7",
|
||||||
@ -18354,9 +18354,9 @@
|
|||||||
"@parcel/transformer-sass": "2.5.0",
|
"@parcel/transformer-sass": "2.5.0",
|
||||||
"@parcel/transformer-webmanifest": "2.5.0",
|
"@parcel/transformer-webmanifest": "2.5.0",
|
||||||
"@parcel/validator-typescript": "2.5.0",
|
"@parcel/validator-typescript": "2.5.0",
|
||||||
"@silverbulletmd/common": "^0.0.28",
|
"@silverbulletmd/common": "^0.0.29",
|
||||||
"@silverbulletmd/plugs": "^0.0.28",
|
"@silverbulletmd/plugs": "^0.0.29",
|
||||||
"@silverbulletmd/web": "^0.0.28",
|
"@silverbulletmd/web": "^0.0.29",
|
||||||
"@types/cors": "^2.8.12",
|
"@types/cors": "^2.8.12",
|
||||||
"@types/events": "^3.0.0",
|
"@types/events": "^3.0.0",
|
||||||
"@types/express": "^4.17.13",
|
"@types/express": "^4.17.13",
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"name": "Zef Hemel",
|
"name": "Zef Hemel",
|
||||||
"email": "zef@zef.me"
|
"email": "zef@zef.me"
|
||||||
},
|
},
|
||||||
"version": "0.0.28",
|
"version": "0.0.29",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@codemirror/autocomplete": "^6.0.1",
|
"@codemirror/autocomplete": "^6.0.1",
|
||||||
|
@ -4,6 +4,6 @@
|
|||||||
"name": "Zef Hemel",
|
"name": "Zef Hemel",
|
||||||
"email": "zef@zef.me"
|
"email": "zef@zef.me"
|
||||||
},
|
},
|
||||||
"version": "0.0.28",
|
"version": "0.0.29",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,6 @@
|
|||||||
"name": "Zef Hemel",
|
"name": "Zef Hemel",
|
||||||
"email": "zef@zef.me"
|
"email": "zef@zef.me"
|
||||||
},
|
},
|
||||||
"version": "0.0.28",
|
"version": "0.0.29",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"name": "Zef Hemel",
|
"name": "Zef Hemel",
|
||||||
"email": "zef@zef.me"
|
"email": "zef@zef.me"
|
||||||
},
|
},
|
||||||
"version": "0.0.28",
|
"version": "0.0.29",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bin": {
|
"bin": {
|
||||||
"plugos-bundle": "./dist/plugos/plugos-bundle.js",
|
"plugos-bundle": "./dist/plugos/plugos-bundle.js",
|
||||||
|
@ -21,6 +21,7 @@ export async function editorInit() {
|
|||||||
let spaceIndexed = await get("$spaceIndexed");
|
let spaceIndexed = await get("$spaceIndexed");
|
||||||
console.log("Space indexed", spaceIndexed);
|
console.log("Space indexed", spaceIndexed);
|
||||||
if (!spaceIndexed) {
|
if (!spaceIndexed) {
|
||||||
|
await set("$spaceIndexed", true);
|
||||||
await invokeFunction("client", "reindexSpaceCommand");
|
await invokeFunction("client", "reindexSpaceCommand");
|
||||||
// Resetting this, because part of the reindex will be to wipe this too
|
// Resetting this, because part of the reindex will be to wipe this too
|
||||||
await set("$silverBulletVersion", currentVersion);
|
await set("$silverBulletVersion", currentVersion);
|
||||||
|
@ -2,6 +2,7 @@ import {
|
|||||||
flashNotification,
|
flashNotification,
|
||||||
getText,
|
getText,
|
||||||
} from "@silverbulletmd/plugos-silverbullet-syscall/editor";
|
} from "@silverbulletmd/plugos-silverbullet-syscall/editor";
|
||||||
|
import { listPages } from "@silverbulletmd/plugos-silverbullet-syscall/space";
|
||||||
|
|
||||||
function countWords(str: string): number {
|
function countWords(str: string): number {
|
||||||
const matches = str.match(/[\w\d\'-]+/gi);
|
const matches = str.match(/[\w\d\'-]+/gi);
|
||||||
@ -15,7 +16,10 @@ function readingTime(wordCount: number): number {
|
|||||||
|
|
||||||
export async function statsCommand() {
|
export async function statsCommand() {
|
||||||
const text = await getText();
|
const text = await getText();
|
||||||
|
const allPages = await listPages();
|
||||||
const wordCount = countWords(text);
|
const wordCount = countWords(text);
|
||||||
const time = readingTime(wordCount);
|
const time = readingTime(wordCount);
|
||||||
await flashNotification(`${wordCount} words, ${time} minutes to read.`);
|
await flashNotification(
|
||||||
|
`${wordCount} words; ${time} minutes read; ${allPages.length} total pages in space.`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"name": "Zef Hemel",
|
"name": "Zef Hemel",
|
||||||
"email": "zef@zef.me"
|
"email": "zef@zef.me"
|
||||||
},
|
},
|
||||||
"version": "0.0.28",
|
"version": "0.0.29",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"generate": "lezer-generator query/query.grammar -o query/parse-query.js",
|
"generate": "lezer-generator query/query.grammar -o query/parse-query.js",
|
||||||
@ -34,7 +34,7 @@
|
|||||||
"@jest/globals": "^27.5.1",
|
"@jest/globals": "^27.5.1",
|
||||||
"@lezer/generator": "1.0.0",
|
"@lezer/generator": "1.0.0",
|
||||||
"@lezer/lr": "1.0.0",
|
"@lezer/lr": "1.0.0",
|
||||||
"@silverbulletmd/common": "^0.0.28",
|
"@silverbulletmd/common": "^0.0.29",
|
||||||
"@types/yaml": "^1.9.7",
|
"@types/yaml": "^1.9.7",
|
||||||
"handlebars": "^4.7.7",
|
"handlebars": "^4.7.7",
|
||||||
"markdown-it": "^12.3.2",
|
"markdown-it": "^12.3.2",
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"name": "Zef Hemel",
|
"name": "Zef Hemel",
|
||||||
"email": "zef@zef.me"
|
"email": "zef@zef.me"
|
||||||
},
|
},
|
||||||
"version": "0.0.28",
|
"version": "0.0.29",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bin": {
|
"bin": {
|
||||||
"silverbullet": "./dist/server/server.js"
|
"silverbullet": "./dist/server/server.js"
|
||||||
@ -39,9 +39,9 @@
|
|||||||
"@codemirror/legacy-modes": "6.0.0",
|
"@codemirror/legacy-modes": "6.0.0",
|
||||||
"@jest/globals": "^27.5.1",
|
"@jest/globals": "^27.5.1",
|
||||||
"@lezer/markdown": "1.0.1",
|
"@lezer/markdown": "1.0.1",
|
||||||
"@silverbulletmd/common": "^0.0.28",
|
"@silverbulletmd/common": "^0.0.29",
|
||||||
"@silverbulletmd/plugs": "^0.0.28",
|
"@silverbulletmd/plugs": "^0.0.29",
|
||||||
"@silverbulletmd/web": "^0.0.28",
|
"@silverbulletmd/web": "^0.0.29",
|
||||||
"better-sqlite3": "^7.5.0",
|
"better-sqlite3": "^7.5.0",
|
||||||
"body-parser": "^1.19.2",
|
"body-parser": "^1.19.2",
|
||||||
"buffer": "^6.0.3",
|
"buffer": "^6.0.3",
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"name": "Zef Hemel",
|
"name": "Zef Hemel",
|
||||||
"email": "zef@zef.me"
|
"email": "zef@zef.me"
|
||||||
},
|
},
|
||||||
"version": "0.0.28",
|
"version": "0.0.29",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"watch": "rm -rf .parcel-cache && parcel watch",
|
"watch": "rm -rf .parcel-cache && parcel watch",
|
||||||
|
@ -12,3 +12,4 @@ An attempt at documenting of the changes/new features introduced in each (pre) r
|
|||||||
4. The currently open page (at the bottom)
|
4. The currently open page (at the bottom)
|
||||||
* Filter boxes (used for the page switching and command palette among other things) now also support PgUp, PgDown, Home and End and have some visual glitches fixed as well.
|
* Filter boxes (used for the page switching and command palette among other things) now also support PgUp, PgDown, Home and End and have some visual glitches fixed as well.
|
||||||
* Reverted exposing an empty `window` object to sandboxes running in workers and node.js (introduced in 0.0.28)
|
* Reverted exposing an empty `window` object to sandboxes running in workers and node.js (introduced in 0.0.28)
|
||||||
|
* Renamed Markdown-preview related commands to something more consistent
|
Loading…
Reference in New Issue
Block a user