-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CRISTAL-471: Blocknote integration POC #712
base: main
Are you sure you want to change the base?
Conversation
@@ -62,6 +62,9 @@ export class DefaultWikiConfig implements WikiConfig { | |||
public designSystem: string; | |||
// @ts-expect-error offline is temporarily undefined during class |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// @ts-expect-error offline is temporarily undefined during class | |
// @ts-expect-error editor is temporarily undefined during class |
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be removed and merged with the root .gitignore
{ | ||
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json", | ||
"organizeImports": { | ||
"enabled": false | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"quoteStyle": "single", | ||
"semicolons": "asNeeded" | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be replaced by eslint/prettifier
@@ -0,0 +1,48 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use prettier-package-json
to uniformize package.json files, see https://cristal.xwiki.org/xwiki/bin/view/Developers/CodeStyle/#Hpackage.json
You can run fd package.json -x pnpx prettier-package-json --write
at the root of the project to batch format all the package.json files.
@@ -0,0 +1,321 @@ | |||
/* eslint-disable vue/multi-word-component-names */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing license header.
@@ -0,0 +1,28 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file must extend the root tsconfig.json
, possibly with overriding for things specific to this package
"react": "19.0.0", | ||
"react-dom": "19.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: double check that importing React in web
is really required.
Moreover, if that's indeed the case, it's probably also required in the electron renderer package.
@@ -41,6 +44,7 @@ | |||
"baseRestURL": "/rest/cristal/page?media=json", | |||
"homePage": "Main.WebHome", | |||
"designSystem": "dsfr", | |||
"editor": "tiptap", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another option is to allow for the editor key to be missing. When undefined, the default editor (tiptap currently) is loaded.
Jira URL
https://jira.xwiki.org/browse/CRISTAL-471
Changes
Description
TODOS
Clarifications
Current content (will evolve):
config.json
) now has aneditor
field to choose betweentiptap
andblocknote
Screenshots & Video
Coming soon.
Executed Tests
Coming soon.
Expected merging strategy