Skip to content

Commit

Permalink
Zowe Suite v1.17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zowe-robot authored Nov 7, 2020
2 parents e9ca743 + b0bbb90 commit edf326b
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 13 deletions.
2 changes: 1 addition & 1 deletion bootstrap/src/uri/dsm-uri.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class DsmUri implements ZLUX.UriBroker {
_sourceEncodingOrOptions?: string|ZLUX.UnixFileUriOptions, _targetEncoding?: string,
_newName?: string, _forceOverwrite?: boolean, _sessionID?: number,
_lastChunk?: boolean, _responseType?: string, _mode?: string, _recursive?: boolean,
_user?: string, _group?: string): string {
_user?: string, _group?: string, _type?: ZLUX.TagType, _codeset?: number): string {
return "";
}
omvsSegmentUri(): string {
Expand Down
7 changes: 5 additions & 2 deletions bootstrap/src/uri/mvd-uri.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class MvdUri implements ZLUX.UriBroker {
sourceEncodingOrOptions?: string|ZLUX.UnixFileUriOptions, targetEncoding?: string,
newName?: string, forceOverwrite?: boolean, sessionID?: number,
lastChunk?: boolean, responseType?: string, mode?: string, recursive?: boolean,
user?: string, group?: string): string {
user?: string, group?: string, type?: ZLUX.TagType, codeset?: number): string {
let options;
if (typeof sourceEncodingOrOptions == 'object') {
options = sourceEncodingOrOptions;
Expand All @@ -38,7 +38,10 @@ export class MvdUri implements ZLUX.UriBroker {
mode,
recursive,
user,
group };
group,
type,
codeset,
};
}
if (!options.responseType) {
options.responseType = 'raw';
Expand Down
2 changes: 1 addition & 1 deletion bootstrap/web/iframe-adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ var ZoweZLUX = {
return translateFunction('ZoweZLUX.uriBroker.VSAMdatasetContentsUri', Array.prototype.slice.call(arguments))
},
unixFileUri(route, absPath, sourceEncodingOrOptions, targetEncoding, newName, forceOverwrite, sessionID,
lastChunk, responseType, mode, recursive, user, group){
lastChunk, responseType, mode, recursive, user, group, type, codeset){
return translateFunction('ZoweZLUX.uriBroker.unixFileUri', Array.prototype.slice.call(arguments))
},
omvsSegmentUri(){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ export class LaunchbarMenuComponent implements MVDHosting.LoginActionInterface{
ngOnInit(): void {
this.appKeyboard.keyUpEvent
.subscribe((event:KeyboardEvent) => {
if (event.which === KeyCode.KEY_M) {
// TODO: Disable bottom app bar once mvd-window-manager single app mode is functional. Variable subject to change.
if (event.which === KeyCode.KEY_M && !(window as any)['GIZA_SIMPLE_CONTAINER_REQUESTED']) {
this.activeToggle();
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@
Copyright Contributors to the Zowe Project.
-->

<div class="launchbar-container launchbar-large" id="container"
[style.height]="barSize"
(mouseup)="onMouseUpContainer($event)" [class.active]="isActive">
<div class="launchbar-container launchbar-large"
id="container"
[style.height]="barSize"
(mouseup)="onMouseUpContainer($event)"
[class.active]="isActive"
*ngIf="displayAppBar">
<rs-com-launchbar-menu [menuItems]="allItems" [theme]="_theme" (itemClicked)="menuItemClicked($event)" (refreshClicked)="getNewItems()"></rs-com-launchbar-menu>

<div class="applist row"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export class LaunchbarComponent implements MVDHosting.LogoutActionInterface {

//Always 6+icon size, due to need for space for padding and such
public barSize: string;
public displayAppBar: boolean;
public applistMargin: string;
public applistPadding: string;
public _theme: DesktopTheme;
Expand Down Expand Up @@ -74,6 +75,13 @@ export class LaunchbarComponent implements MVDHosting.LogoutActionInterface {
this.applistMargin = `0px 179px 0px 46px`;
break;
}

// TODO: Disable bottom app bar once mvd-window-manager single app mode is functional. Variable subject to change.
if ((window as any)['GIZA_SIMPLE_CONTAINER_REQUESTED']) {
this.displayAppBar = false;
} else {
this.displayAppBar = true;
}
}

public allItems: LaunchbarItem[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ export class WindowManagerService implements MVDWindowManagement.WindowManagerSe
this.appKeyboard.keyUpEvent
.subscribe((event:KeyboardEvent) => {
if (event.which === KeyCode.DOWN_ARROW) {
if(this.focusedWindow !== null) {
// TODO: Disable minimize hotkey once mvd-window-manager single app mode is functional. Variable subject to change.
if(this.focusedWindow !== null && !(window as any)['GIZA_SIMPLE_CONTAINER_REQUESTED']) {
this.minimizeToggle(this.focusedWindow.windowId);
}
}
Expand Down Expand Up @@ -269,12 +270,17 @@ export class WindowManagerService implements MVDWindowManagement.WindowManagerSe
}

private refreshMaximizedWindowSize(desktopWindow: DesktopWindow): void {
//this is the window viewport size, so you must subtract the header and launchbar from the height.
//This is the window viewport size, so you must subtract the header and launchbar from the height, if not in standalone mode.
let height;
if ((window as any)['GIZA_SIMPLE_CONTAINER_REQUESTED']) {
height = window.innerHeight;
} else {
height = window.innerHeight - WindowManagerService.MAXIMIZE_WINDOW_HEIGHT_OFFSET;
}
desktopWindow.windowState.position = { top: 0,
left: 0,
width: window.innerWidth,
height: window.innerHeight
- WindowManagerService.MAXIMIZE_WINDOW_HEIGHT_OFFSET};
height: height};
}

private generateWindowId(): MVDWindowManagement.WindowId {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@
[style.background-size]="buttonSize"
[style.left]="minimizeLeft"
[ngStyle]="hasFocus() ? {'filter': buttonFilter} : {}"
(click)="minimizeToggle()"></div>
(click)="minimizeToggle()"
*ngIf="displayMinimize"></div>
<div class="maximize-button"
[style.top]="buttonTop"
[class.active]="hasFocus()"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export class WindowComponent {
public maximizeLeft: string;
public closeLeft: string;
private readonly logger: ZLUX.ComponentLogger = BaseLogger;
public displayMinimize: boolean;

@Input() set theme(newTheme: DesktopTheme) {
this.logger.debug('Window theme set=',newTheme);
Expand All @@ -58,6 +59,13 @@ export class WindowComponent {
this.buttonTop = '6px';
this.textSize = '12px';
this.textPad = '3px';
this.displayMinimize = true;

// TODO: Disable minimize button once mvd-window-manager single app mode is functional. Variable subject to change.
if ((window as any)['GIZA_SIMPLE_CONTAINER_REQUESTED']) {
this.displayMinimize = false;
this.maximizeLeft = this.minimizeLeft;
}
break;
case 3:
this.borderSize = '3px';
Expand All @@ -68,6 +76,13 @@ export class WindowComponent {
this.buttonTop = '16px';
this.textSize = '18px';
this.textPad = '12px';
this.displayMinimize = true;

// TODO: Disable minimize button once mvd-window-manager single app mode is functional. Variable subject to change.
if ((window as any)['GIZA_SIMPLE_CONTAINER_REQUESTED']) {
this.displayMinimize = false;
this.maximizeLeft = this.minimizeLeft;
}
break;
default: //Default size is medium - 2
this.borderSize = '2px';
Expand All @@ -78,6 +93,13 @@ export class WindowComponent {
this.buttonTop = '9px';
this.textSize = '14px';
this.textPad = '5px';
this.displayMinimize = true;

// TODO: Disable minimize button once mvd-window-manager single app mode is functional. Variable subject to change.
if ((window as any)['GIZA_SIMPLE_CONTAINER_REQUESTED']) {
this.displayMinimize = false;
this.maximizeLeft = this.minimizeLeft;
}
}
switch (newTheme.color.windowTextActive) {
case Colors.COOLGREY_90:
Expand Down

0 comments on commit edf326b

Please sign in to comment.