Skip to content

Commit

Permalink
Development: Implement small client improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
krusche committed Oct 27, 2024
1 parent 795ca8e commit b90667c
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 42 deletions.
65 changes: 34 additions & 31 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,37 +20,40 @@
"build": {
"builder": "@angular-devkit/build-angular:application",
"options": {
"allowedCommonJsDependencies": [
"clone-deep",
"crypto-js",
"crypto",
"dagre",
"dayjs/locale/de",
"dompurify",
"export-to-csv",
"hoist-non-react-statics",
"interactjs",
"is-mobile",
"js-video-url-parser",
"jszip",
"localforage",
"mobile-drag-drop",
"papaparse",
"pepjs",
"prop-types",
"react",
"react-dom",
"react-dom/client",
"react-is",
"rfdc",
"shallowequal",
"markdown-it-class",
"smoothscroll-polyfill",
"sockjs-client",
"use-sync-external-store/shim",
"use-sync-external-store/shim/with-selector",
"webcola",
"webstomp-client"
"allowedCommonJsDependencies": [
"@vscode/markdown-it-katex",
"clone-deep",
"crypto-js",
"crypto",
"dagre",
"dayjs/locale/de",
"dompurify",
"emoji-js",
"export-to-csv",
"hoist-non-react-statics",
"interactjs",
"is-mobile",
"js-video-url-parser",
"jszip",
"localforage",
"markdown-it-highlightjs",
"mobile-drag-drop",
"papaparse",
"pepjs",
"prop-types",
"react",
"react-dom",
"react-dom/client",
"react-is",
"rfdc",
"shallowequal",
"markdown-it-class",
"smoothscroll-polyfill",
"sockjs-client",
"use-sync-external-store/shim",
"use-sync-external-store/shim/with-selector",
"webcola",
"webstomp-client"
],
"outputPath": {
"base": "build/resources/main/static/",
Expand Down
6 changes: 3 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ module.exports = {
coverageThreshold: {
global: {
// TODO: in the future, the following values should increase to at least 90%
statements: 87.53,
statements: 87.52,
branches: 73.62,
functions: 82.13,
lines: 87.58,
functions: 82.12,
lines: 87.57,
},
},
coverageReporters: ['clover', 'json', 'lcov', 'text-summary'],
Expand Down
7 changes: 4 additions & 3 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"@siemens/ngx-datatable": "22.4.1",
"@swimlane/ngx-charts": "20.5.0",
"@swimlane/ngx-graph": "8.4.0",
"@types/emoji-js": "^3.5.2",
"@vscode/codicons": "0.0.36",
"@vscode/markdown-it-katex": "1.1.0",
"bootstrap": "5.3.3",
Expand All @@ -50,7 +49,7 @@
"dayjs": "1.11.13",
"diff-match-patch-typescript": "1.1.0",
"dompurify": "3.1.7",
"emoji-js": "^3.8.0",
"emoji-js": "3.8.0",
"export-to-csv": "1.4.0",
"fast-json-patch": "3.1.1",
"franc-min": "6.2.0",
Expand Down Expand Up @@ -132,6 +131,7 @@
"@types/crypto-js": "4.2.2",
"@types/d3-shape": "3.1.6",
"@types/dompurify": "3.0.5",
"@types/emoji-js": "3.5.2",
"@types/jest": "29.5.14",
"@types/lodash-es": "4.17.12",
"@types/markdown-it": "14.1.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { MonacoTextEditorAdapter } from 'app/shared/monaco-editor/model/actions/
import { MonacoEditorService } from 'app/shared/monaco-editor/monaco-editor.service';
import { getOS } from 'app/shared/util/os-detector.util';

import EmojiConvertor from 'emoji-js';
import { EmojiConvertor } from 'emoji-js';

export const MAX_TAB_SIZE = 8;

Expand All @@ -36,7 +36,7 @@ export class MonacoEditorComponent implements OnInit, OnDestroy {
private readonly _editor: monaco.editor.IStandaloneCodeEditor;
private readonly textEditorAdapter: MonacoTextEditorAdapter;
private readonly monacoEditorContainerElement: HTMLElement;
private emojiConvertor: EmojiConvertor;
private readonly emojiConvertor = new EmojiConvertor();

/*
* Elements, models, and actions of the editor.
Expand Down Expand Up @@ -89,7 +89,6 @@ export class MonacoEditorComponent implements OnInit, OnDestroy {
this.textEditorAdapter = new MonacoTextEditorAdapter(this._editor);
this.renderer.appendChild(this.elementRef.nativeElement, this.monacoEditorContainerElement);

this.emojiConvertor = new EmojiConvertor();
this.emojiConvertor.replace_mode = 'unified';
this.emojiConvertor.allow_native = true;

Expand Down

0 comments on commit b90667c

Please sign in to comment.