Skip to content

Commit 05f7c3f

Browse files
Merge branch 'develop' into issue-2824-extract-advanced-component-authoring-to-angular-component
2 parents 4945cdc + 60a7473 commit 05f7c3f

11 files changed

Lines changed: 61 additions & 72 deletions

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wise",
3-
"version": "5.19.0",
3+
"version": "5.20.0",
44
"description": "Web-based Inquiry Science Environment",
55
"main": "app.js",
66
"browserslist": [

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<artifactId>wise</artifactId>
3535
<packaging>war</packaging>
3636
<name>Web-based Inquiry Science Environment</name>
37-
<version>5.19.0</version>
37+
<version>5.20.0</version>
3838
<url>http://wise5.org</url>
3939
<licenses>
4040
<license>

src/main/resources/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.19.0
1+
5.20.0

src/main/webapp/site/src/app/teacher-hybrid-angular.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import { NodeAdvancedGeneralAuthoringComponent } from '../../../wise5/authoringT
3030
import { WiseAuthoringTinymceEditorComponent } from '../../../wise5/directives/wise-tinymce-editor/wise-authoring-tinymce-editor.component';
3131
import { EditComponentRubricComponent } from './authoring-tool/edit-component-rubric/edit-component-rubric.component';
3232
import { EditComponentJsonComponent } from './authoring-tool/edit-component-json/edit-component-json.component';
33+
import { RubricAuthoringComponent } from '../../../wise5/authoringTool/rubric/rubric-authoring.component';
3334

3435
@NgModule({
3536
declarations: [
@@ -45,6 +46,7 @@ import { EditComponentJsonComponent } from './authoring-tool/edit-component-json
4546
MilestoneReportDataComponent,
4647
NodeAdvancedGeneralAuthoringComponent,
4748
NodeAdvancedJsonAuthoringComponent,
49+
RubricAuthoringComponent,
4850
StatusIconComponent,
4951
WorkgroupInfoComponent,
5052
WorkgroupNodeScoreComponent,

src/main/webapp/site/src/messages.xlf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5782,6 +5782,10 @@
57825782
<context context-type="sourcefile">../../wise5/authoringTool/advanced/advanced-project-authoring.component.html</context>
57835783
<context context-type="linenumber">4</context>
57845784
</context-group>
5785+
<context-group purpose="location">
5786+
<context context-type="sourcefile">../../wise5/authoringTool/rubric/rubric-authoring.component.html</context>
5787+
<context context-type="linenumber">2</context>
5788+
</context-group>
57855789
</trans-unit>
57865790
<trans-unit datatype="html" id="077fb7924ecebe2ae768d860909315c29ee61fbe">
57875791
<source>Show JSON</source>
@@ -6020,6 +6024,13 @@
60206024
<context context-type="linenumber">2</context>
60216025
</context-group>
60226026
</trans-unit>
6027+
<trans-unit datatype="html" id="92328333ea9c72926ca7c631e9e1c0f081cbf565">
6028+
<source>Edit Unit Rubric</source>
6029+
<context-group purpose="location">
6030+
<context context-type="sourcefile">../../wise5/authoringTool/rubric/rubric-authoring.component.html</context>
6031+
<context context-type="linenumber">6</context>
6032+
</context-group>
6033+
</trans-unit>
60236034
<trans-unit datatype="html" id="f9c52903219e583ddefb23cd102d2057504ac980">
60246035
<source>(Team <x equiv-text="{{workgroupId}}" id="INTERPOLATION"/>)</source>
60256036
<context-group purpose="location">
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<button mat-button class='topButton mat-raised-button mat-primary' (click)='goBack()'
2+
matTooltip="Back to Unit Plan" i18n-matTooltip matToolTipPosition="above">
3+
<mat-icon>arrow_back</mat-icon>
4+
</button>
5+
<br/>
6+
<h5 i18n>Edit Unit Rubric</h5>
7+
<wise-authoring-tinymce-editor [(model)]='rubric' (modelChange)='rubricChanged()'>
8+
</wise-authoring-tinymce-editor>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import { ConfigService } from '../../services/configService';
2+
import { UtilService } from '../../services/utilService';
3+
import { TeacherProjectService } from '../../services/teacherProjectService';
4+
import { UpgradeModule } from '@angular/upgrade/static';
5+
import { Component } from '@angular/core';
6+
7+
@Component({
8+
templateUrl: 'rubric-authoring.component.html',
9+
})
10+
export class RubricAuthoringComponent {
11+
12+
rubric: string = '';
13+
14+
constructor(private upgrade: UpgradeModule, private ConfigService: ConfigService,
15+
private ProjectService: TeacherProjectService, private UtilService: UtilService) {
16+
}
17+
18+
ngOnInit(): void {
19+
this.rubric = this.ProjectService.replaceAssetPaths(this.ProjectService.getProjectRubric());
20+
}
21+
22+
rubricChanged(): void {
23+
const html = this.UtilService.insertWISELinks(
24+
this.ConfigService.removeAbsoluteAssetPaths(this.rubric));
25+
this.ProjectService.setProjectRubric(html);
26+
this.ProjectService.saveProject();
27+
}
28+
29+
goBack(): void {
30+
this.upgrade.$injector.get('$state').go('root.at.project');
31+
}
32+
}

src/main/webapp/wise5/authoringTool/rubric/rubricAuthoring.html

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/main/webapp/wise5/authoringTool/rubric/rubricAuthoringController.ts

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)