Skip to content

Commit 9e00e9c

Browse files
Merge branch 'release-5.18.4'
2 parents 78ada2b + c668d86 commit 9e00e9c

66 files changed

Lines changed: 844 additions & 573 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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.18.3",
3+
"version": "5.18.4",
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.18.3</version>
37+
<version>5.18.4</version>
3838
<url>http://wise5.org</url>
3939
<licenses>
4040
<license>

src/main/java/org/wise/portal/presentation/web/controllers/user/UserAPIController.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ protected HashMap<String, Object> getConfig(HttpServletRequest request) {
133133
config.put("isGoogleClassroomEnabled", isGoogleClassroomEnabled());
134134
config.put("logOutURL", contextPath + "/logout");
135135
config.put("recaptchaPublicKey", appProperties.get("recaptcha_public_key"));
136+
config.put("wiseHostname", appProperties.get("wise.hostname"));
136137
config.put("wise4Hostname", appProperties.get("wise4.hostname"));
137138
return config;
138139
}

src/main/resources/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.18.3
1+
5.18.4

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ import { MatCheckboxModule } from '@angular/material/checkbox';
4949
import { MatSelectModule } from '@angular/material/select';
5050
import { HelpIconComponent } from '../../../wise5/themes/default/themeComponents/helpIcon/help-icon.component';
5151
import { NodeStatusIcon } from '../../../wise5/themes/default/themeComponents/nodeStatusIcon/node-status-icon.component';
52+
import { MomentModule } from 'ngx-moment';
5253

5354
@Component({template: ``})
5455
export class EmptyComponent {}
@@ -75,6 +76,7 @@ export class EmptyComponent {}
7576
MatListModule,
7677
MatSelectModule,
7778
MatTooltipModule,
79+
MomentModule,
7880
ReactiveFormsModule,
7981
RouterModule.forChild([
8082
{path: '**', component: EmptyComponent}
@@ -127,6 +129,7 @@ export class EmptyComponent {}
127129
MatListModule,
128130
MatSelectModule,
129131
MatTooltipModule,
132+
MomentModule,
130133
NodeIconComponent,
131134
ReactiveFormsModule
132135
]

src/main/webapp/site/src/app/domain/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ export class Config {
66
recaptchaPublicKey?: string;
77
logOutURL: string;
88
currentTime: number;
9+
wiseHostname?: string;
910
wise4Hostname?: string;
1011
}

src/main/webapp/site/src/app/features/features.component.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,3 @@
115115
margin-left: -16%;
116116
}
117117
}
118-
119-
.mat-divider {
120-
margin: 16px 0;
121-
}

src/main/webapp/site/src/app/modules/library/copy-project-dialog/copy-project-dialog.component.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
import { Component, OnInit, Inject } from '@angular/core';
1+
import { Component, Inject } from '@angular/core';
22
import { LibraryProjectDetailsComponent } from "../library-project-details/library-project-details.component";
33
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA} from '@angular/material/dialog';
44
import { finalize } from 'rxjs/operators';
55
import { LibraryProject } from "../libraryProject";
66
import { LibraryService } from "../../../services/library.service";
77
import { MatSnackBar } from '@angular/material/snack-bar';
8+
import { Subscription } from 'rxjs';
89

910
@Component({
1011
selector: 'app-copy-project-dialog',
1112
templateUrl: './copy-project-dialog.component.html',
1213
styleUrls: ['./copy-project-dialog.component.scss']
1314
})
14-
export class CopyProjectDialogComponent implements OnInit {
15+
export class CopyProjectDialogComponent {
1516

1617
isCopying: boolean = false;
1718

@@ -20,15 +21,11 @@ export class CopyProjectDialogComponent implements OnInit {
2021
@Inject(MAT_DIALOG_DATA) public data: any,
2122
private libraryService: LibraryService,
2223
private snackBar: MatSnackBar) {
23-
2424
this.libraryService.newProjectSource$.subscribe(() => {
2525
this.dialog.closeAll();
2626
});
2727
}
2828

29-
ngOnInit() {
30-
}
31-
3229
copy() {
3330
this.isCopying = true;
3431
this.libraryService.copyProject(this.data.project.id)

src/main/webapp/site/src/app/modules/library/library-project-menu/library-project-menu.component.ts

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, Input, OnInit, Output, EventEmitter } from '@angular/core';
1+
import { Component, Input } from '@angular/core';
22
import { MatDialog } from '@angular/material/dialog';
33
import { Project } from '../../../domain/project';
44
import { TeacherService } from '../../../teacher/teacher.service';
@@ -13,7 +13,7 @@ import { EditRunWarningDialogComponent } from '../../../teacher/edit-run-warning
1313
templateUrl: './library-project-menu.component.html',
1414
styleUrls: ['./library-project-menu.component.scss']
1515
})
16-
export class LibraryProjectMenuComponent implements OnInit {
16+
export class LibraryProjectMenuComponent {
1717
@Input()
1818
project: Project;
1919

@@ -27,10 +27,10 @@ export class LibraryProjectMenuComponent implements OnInit {
2727
isChild: boolean = false;
2828

2929
constructor(
30-
public dialog: MatDialog,
31-
public teacherService: TeacherService,
32-
public userService: UserService,
33-
public configService: ConfigService
30+
private dialog: MatDialog,
31+
private teacherService: TeacherService,
32+
private userService: UserService,
33+
private configService: ConfigService
3434
) {}
3535

3636
ngOnInit() {
@@ -59,10 +59,7 @@ export class LibraryProjectMenuComponent implements OnInit {
5959
}
6060

6161
copyProject() {
62-
this.dialog.open(CopyProjectDialogComponent, {
63-
data: { project: this.project },
64-
panelClass: 'mat-dialog--sm'
65-
});
62+
this.teacherService.copyProject(this.project, this.dialog);
6663
}
6764

6865
editProject() {

0 commit comments

Comments
 (0)