Skip to content

Commit

Permalink
Add formula editing support
Browse files Browse the repository at this point in the history
  • Loading branch information
hwgilbert16 committed Feb 7, 2024
1 parent 52bc771 commit 2b4894c
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 5 deletions.
7 changes: 6 additions & 1 deletion apps/api/src/app/cards/cards.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ import { UsersModule } from "../users/users.module";
import { AuthModule } from "../auth/auth.module";

@Module({
imports: [DatabaseModule, UsersModule, forwardRef(() => SetsModule), AuthModule],
imports: [
DatabaseModule,
UsersModule,
forwardRef(() => SetsModule),
AuthModule
],
controllers: [CardsController],
providers: [CardsService],
exports: [CardsService]
Expand Down
3 changes: 2 additions & 1 deletion apps/front/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
],
"scripts": [
"node_modules/bootstrap/dist/js/bootstrap.bundle.min.js",
"node_modules/quill/dist/quill.min.js"
"node_modules/quill/dist/quill.min.js",
"node_modules/katex/dist/katex.min.js"
],
"ngxEnv": {
"prefix": "SCHOLARSOME_"
Expand Down
3 changes: 2 additions & 1 deletion apps/front/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Quill.register("modules/imageResize", ImageResize);
QuillConfigModule.forRoot({
modules: {
imageResize: true,
formula: true,
keyboard: {
bindings: {
tab: {
Expand All @@ -96,7 +97,7 @@ Quill.register("modules/imageResize", ImageResize);
},
toolbar: [
["bold", "italic", "underline", "strike"],
["code-block"],
["code-block", "formula"],
[{ list: "ordered" }, { list: "bullet" }],
[{ header: 1 }, { header: 2 }],
[{ color: [] }, { background: [] }],
Expand Down
1 change: 1 addition & 0 deletions apps/front/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ $enable-negative-margins: true;

@import '~quill/dist/quill.core.css';
@import '~quill/dist/quill.snow.css';
@import '~katex/dist/katex.min.css';

body {
background-color: #f8fafb;
Expand Down
43 changes: 41 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"ioredis": "^5.3.1",
"joi": "^17.9.2",
"jwt-decode": "^3.1.2",
"katex": "^0.16.9",
"multer": "^1.4.5-lts.1",
"nest-winston": "^1.9.4",
"ng-recaptcha": "^10.0.0",
Expand Down

0 comments on commit 2b4894c

Please sign in to comment.