Skip to content

Commit

Permalink
Merge pull request #51 from Worklenz/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
chamikaJ authored Sep 30, 2024
2 parents 5cce1f2 + 12c04d0 commit a8e9ad6
Show file tree
Hide file tree
Showing 9 changed files with 73 additions and 66 deletions.
11 changes: 9 additions & 2 deletions worklenz-frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,20 @@
"glob": "**/*",
"input": "./node_modules/@ant-design/icons-angular/src/inline-svg/",
"output": "/assets/"
},
{
"glob": "**/*",
"input": "node_modules/tinymce",
"output": "/tinymce/"
}
],
"styles": [
"src/theme.less",
"src/styles.scss"
],
"scripts": [],
"scripts": [
"node_modules/tinymce/tinymce.min.js"
],
"serviceWorker": true,
"ngswConfigPath": "ngsw-config.json",
"allowedCommonJsDependencies": [
Expand Down Expand Up @@ -147,4 +154,4 @@
"@angular-eslint/schematics"
]
}
}
}
8 changes: 4 additions & 4 deletions worklenz-frontend/package-lock.json

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

2 changes: 1 addition & 1 deletion worklenz-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"ngx-doc-viewer": "^15.0.1",
"ngx-socket-io": "^4.5.1",
"rxjs": "~7.4.0",
"tinymce": "^6.7.3",
"tinymce": "^6.8.3",
"tslib": "^2.6.1",
"zone.js": "^0.13.1"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
class="description-editor"
[class.editing]="isEditing"
[init]="CONFIG"
[apiKey]="apiKey"
[(ngModel)]="service.model.task.description"
(onBlur)="onDescriptionInputBlur()"
#descriptionEditor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ export class TaskViewDescriptionComponent implements OnInit, OnDestroy {
@ViewChild("descriptionInput", {static: false}) descriptionInput!: ElementRef;
@ViewChild("descriptionEditor", {static: false}) descriptionEditor!: EditorComponent;

readonly apiKey = "4nquevykvy1i0q0v62ksxuu3nz1muy8i5fsqpj3wp9qm2mgp";
readonly CONFIG = {
base_url: '/tinymce',
suffix: '.min',
plugins: "lists link code wordcount",
toolbar: 'blocks bold italic underline strikethrough | checklist numlist bullist link | alignleft aligncenter alignright alignjustify',
menubar: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import {NzPopconfirmModule} from 'ng-zorro-antd/popconfirm';
import {NzCardModule} from "ng-zorro-antd/card";
import {NzTableModule} from "ng-zorro-antd/table";
import {NzProgressModule} from "ng-zorro-antd/progress";
import {EditorModule} from '@tinymce/tinymce-angular';
import {EditorModule, TINYMCE_SCRIPT_SRC} from '@tinymce/tinymce-angular';
import {TaskViewTimeLogComponent} from './task-view-time-log/task-view-time-log.component';
import {NzListModule} from "ng-zorro-antd/list";
import {NzEmptyModule} from "ng-zorro-antd/empty";
Expand Down Expand Up @@ -99,60 +99,61 @@ import {TaskCommentMentionPipe} from "@pipes/task-comment-mention.pipe";
TaskViewComponent
],
providers: [
SearchByNamePipe
SearchByNamePipe,
{ provide: TINYMCE_SCRIPT_SRC, useValue: 'tinymce/tinymce.min.js' }
],
imports: [
CommonModule,
NzDrawerModule,
NzSkeletonModule,
NzFormModule,
FormsModule,
NzInputModule,
NzSelectModule,
NzTabsModule,
NzTagModule,
NzCollapseModule,
NzDropDownModule,
AvatarsComponent,
NzAvatarModule,
NzTypographyModule,
NzCheckboxModule,
SearchByNamePipe,
NzToolTipModule,
NzDatePickerModule,
NzInputNumberModule,
NzIconModule,
NzBadgeModule,
NzDividerModule,
FromNowPipe,
ReactiveFormsModule,
TaskPriorityLabelComponent,
NzButtonModule,
NzCommentModule,
RouterLink,
NzSpaceModule,
NzMentionModule,
NzAffixModule,
NzNoAnimationModule,
NzPopconfirmModule,
NzCardModule,
NzTableModule,
NzProgressModule,
EditorModule,
NzListModule,
NzEmptyModule,
TaskTimerComponent,
FirstCharUpperPipe,
TaskListAddTaskInputComponent,
SafeStringPipe,
DateFormatterPipe,
NgxDocViewerModule,
NzModalModule,
NzSpinModule,
NzTimelineModule,
NzTimePickerModule,
TaskCommentMentionPipe
]
imports: [
CommonModule,
NzDrawerModule,
NzSkeletonModule,
NzFormModule,
FormsModule,
NzInputModule,
NzSelectModule,
NzTabsModule,
NzTagModule,
NzCollapseModule,
NzDropDownModule,
AvatarsComponent,
NzAvatarModule,
NzTypographyModule,
NzCheckboxModule,
SearchByNamePipe,
NzToolTipModule,
NzDatePickerModule,
NzInputNumberModule,
NzIconModule,
NzBadgeModule,
NzDividerModule,
FromNowPipe,
ReactiveFormsModule,
TaskPriorityLabelComponent,
NzButtonModule,
NzCommentModule,
RouterLink,
NzSpaceModule,
NzMentionModule,
NzAffixModule,
NzNoAnimationModule,
NzPopconfirmModule,
NzCardModule,
NzTableModule,
NzProgressModule,
EditorModule,
NzListModule,
NzEmptyModule,
TaskTimerComponent,
FirstCharUpperPipe,
TaskListAddTaskInputComponent,
SafeStringPipe,
DateFormatterPipe,
NgxDocViewerModule,
NzModalModule,
NzSpinModule,
NzTimelineModule,
NzTimePickerModule,
TaskCommentMentionPipe
]
})
export class TaskViewModule {
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {ProjectTemplateService} from "@services/project-template.service";
import {PtTaskPhasesApiService} from "@api/pt-task-phases-api.service";
import {ITaskPhase} from "@interfaces/api-models/task-phase";
import {PhaseColorCodes} from "@shared/constants";
import {load} from "@angular-devkit/build-angular/src/utils/server-rendering/esm-in-memory-file-loader";

@Component({
selector: 'worklenz-phase-settings-drawer',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
class="description-editor-list"
[class.editing]="isEditing"
[init]="CONFIG"
[apiKey]="apiKey"
[(ngModel)]="task.description"
(onBlur)="submit()"
#descriptionEditor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ export class TaskDescriptionComponent implements OnInit, OnDestroy {
show = false;
loading = false;

readonly apiKey = "4nquevykvy1i0q0v62ksxuu3nz1muy8i5fsqpj3wp9qm2mgp";
readonly CONFIG = {
base_url: '/tinymce',
suffix: '.min',
plugins: "lists link code wordcount",
toolbar: 'blocks bold italic underline strikethrough | checklist numlist bullist link | alignleft aligncenter alignright alignjustify',
menubar: false,
Expand Down

0 comments on commit a8e9ad6

Please sign in to comment.