Skip to content

Commit 92362d8

Browse files
authored
Merge pull request #2319 from intersective/golive/2.4.y.z
Golive/2.4.2.2
2 parents dbf22a3 + 9b4a841 commit 92362d8

21 files changed

Lines changed: 14167 additions & 33898 deletions

package-lock.json

Lines changed: 13435 additions & 33469 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,12 @@
6161
"moment": "^2.29.4",
6262
"ng-circle-progress": "^1.6.0",
6363
"ng-intercom": "^8.0.2",
64-
"ngx-quill": "^16.0.0",
64+
"ngx-quill": "^16.2.1",
6565
"plyr": "^3.6.12",
6666
"pusher-js": "^4.4.0",
6767
"quill": "^1.3.7",
6868
"quill-delta": "^5.0.0",
69+
"quill-magic-url": "^4.2.0",
6970
"rxjs": "~6.6.0",
7071
"rxjs-compat": "^6.6.7",
7172
"ts-md5": "^1.2.11",

projects/v3/src/app/app.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ export class AppComponent implements OnInit, OnDestroy {
192192

193193
// redirect to the last visited url/assessment if available
194194
redirectToLastVisitedUrl(): Promise<boolean> {
195+
if (this.noneCachedUrl.some((url) => window.location?.href?.includes(url))) {
196+
return this.navigate(window.location.href);
197+
}
198+
195199
const lastVisitedUrl = this.storage.lastVisited("url") as string;
196200
if (lastVisitedUrl) {
197201
const lastVisitedAssessmentUrl = this.storage.lastVisited("assessmentUrl");

projects/v3/src/app/pages/chat/chat-room/chat-room.component.html

Lines changed: 15 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@
6161

6262
<ng-container *ngIf="message.message || !message.fileObject;">
6363
<!-- Quill read only view/ use to render html content -->
64-
<quill-view id="message-content" [content]="message.message" tabindex="0"></quill-view>
64+
<quill-view id="message-content"
65+
[content]="message.message"
66+
[strict]="true"
67+
tabindex="0"
68+
></quill-view>
6569
</ng-container>
6670

6771
<ng-container *ngIf="message.fileObject">
@@ -152,34 +156,17 @@
152156
<ion-grid class="white-bg">
153157
<ion-row nowrap class="ion-no-padding">
154158
<ion-col [size]="12" class="ion-align-self-center ion-no-padding">
155-
<!-- quill editor -->
156159
<quill-editor aria-label="chat message input"
157-
customToolbarPosition="top"
158-
[classes]="isMobile ? 'editor-class' : 'editor-class desktop'"
159-
[required]="true"
160-
class="message-text-editor"
161-
[placeholder]="'Enter your message'"
162-
[(ngModel)]="typingMessage"
163-
(ngModelChange)="typing()"
164-
(onEditorCreated)="utils.formatQuillClipboard($event)"
165-
i18n-placeholder>
166-
<div quill-editor-toolbar>
167-
<span class="ql-formats">
168-
<button class="ql-bold" [title]="'Bold'"></button>
169-
<button class="ql-italic" [title]="'Italic'"></button>
170-
<button class="ql-underline" [title]="'Underline'"></button>
171-
<button class="ql-strike" [title]="'Strike'"></button>
172-
</span>
173-
<span class="ql-formats">
174-
<button class="ql-list" value="ordered"></button>
175-
<button class="ql-list" value="bullet"></button>
176-
</span>
177-
<span class="ql-formats">
178-
<button class="ql-link"></button>
179-
</span>
180-
</div>
181-
</quill-editor>
182-
<!-- quill editor -->
160+
customToolbarPosition="top"
161+
[modules]="editorModules"
162+
[classes]="isMobile ? 'editor-class' : 'editor-class desktop'"
163+
[required]="true"
164+
class="message-text-editor"
165+
placeholder="Enter your message"
166+
[(ngModel)]="typingMessage"
167+
(ngModelChange)="typing()"
168+
i18n-placeholder
169+
></quill-editor>
183170
</ion-col>
184171
</ion-row>
185172
<!-- Attachment Preview section -->

projects/v3/src/app/pages/chat/chat-room/chat-room.component.scss

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
$message-body-size: 60%;
23

34
.not-started-empty-status {
@@ -334,8 +335,8 @@ $message-body-size: 60%;
334335
min-height: 48px;
335336

336337
.message-text-editor {
337-
.ql-toolbar, .ql-container.ql-snow {
338-
border: none;
338+
.ql-toolbar.ql-snow, .ql-container.ql-snow {
339+
border: none !important;
339340
}
340341
}
341342

@@ -519,3 +520,15 @@ ion-button.ion-focused {
519520
ion-fab.scroll-to-bottom {
520521
opacity: 0.7;
521522
}
523+
524+
525+
.ql-editor {
526+
a {
527+
text-decoration: underline;
528+
word-break: break-all;
529+
}
530+
531+
a:hover {
532+
color: var(--ion-color-primary);
533+
}
534+
}

0 commit comments

Comments
 (0)