Skip to content

Commit 4e42077

Browse files
committed
Merge pull request #611 from ScottLogic/dev
Release 10.0.0-rc.0
2 parents 5a8bc4f + d730a64 commit 4e42077

43 files changed

Lines changed: 623 additions & 153 deletions

Some content is hidden

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

gruntfile.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ module.exports = function(grunt) {
178178
parent: {
179179
src: ['src/parentApp.js', 'src/parent-controller.js', 'src/store-service.js',
180180
'src/window-service.js', 'src/sidebars/favourites/geometry-service.js',
181-
'src/config-service.js'],
181+
'src/config-service.js', 'src/version-value.js'],
182182
dest: 'public/app-parent.js'
183183
}
184184
},
@@ -203,14 +203,13 @@ module.exports = function(grunt) {
203203
},
204204
bump: {
205205
options: {
206-
files: ['package.json', 'src/main/version/version-controller.js'],
206+
files: ['package.json', 'src/version-value.js'],
207207
commit: true,
208-
commitMessage: 'Release v%VERSION%',
209-
commitFiles: ['package.json', 'src/main/version/version-controller.js'],
210-
createTag: true,
211-
tagName: 'v%VERSION%',
212-
tagMessage: 'Version %VERSION%',
213-
push: false
208+
commitMessage: 'Release %VERSION%',
209+
commitFiles: ['package.json', 'src/version-value.js'],
210+
createTag: false,
211+
push: false,
212+
prereleaseName: 'rc'
214213
}
215214
},
216215

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bitflux-openfin",
3-
"version": "9.2.0",
3+
"version": "10.0.0-rc.0",
44
"scripts": {
55
"test": "grunt ci",
66
"postinstall": "cd node_modules/BitFlux && npm i"

src/assets/png/closed_tabs.png

-111 Bytes
Loading
-114 Bytes
Loading

src/assets/png/drag_handle.png

-24 Bytes
Loading

src/assets/styles/custom-scroll.less

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
.side-scroll {
2-
top: 52px;
3-
bottom: 0;
1+
.compact .side-scroll {
42
position: fixed;
3+
}
4+
5+
.side-scroll {
56
padding-bottom: 30px;
67
padding-bottom: 0px;
78

@@ -12,7 +13,9 @@
1213
}
1314

1415
&#favourite-scroll {
15-
bottom: 40px;
16+
top: @toolbar-height;
17+
bottom: @bottom-tab-height;
18+
position: absolute;
1619
}
1720
}
1821

src/assets/styles/mixins.less

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@
1212
top: (7px + @additional-offset);
1313
}
1414

15+
.transition(@duration: 0.2s, @delay: 0.1s) {
16+
transition: all @duration linear @delay;
17+
}
18+
19+
.drag {
20+
-webkit-app-region: drag;
21+
}
22+
23+
.no-drag {
24+
-webkit-app-region: no-drag;
25+
}
26+
1527
// 400 is 'normal'
1628
.font(@size, @weight: 400, @line-height: 1.5) {
1729
font-size: @size;
@@ -41,8 +53,12 @@
4153
right: @right;
4254
}
4355

56+
.box-shadow(@shadow-position, @colour) {
57+
box-shadow: @shadow-position 2px 0px @colour;
58+
}
59+
4460
.closed-window(@shadow-position, @top: auto, @bottom: auto, @left: auto, @right: auto) {
45-
box-shadow: @shadow-position 2px 0px @dark-background;
61+
.box-shadow(@shadow-position, @dark-background);
4662
background: @light-background;
4763
position: fixed;
4864
width: 180px;

src/assets/styles/style.less

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
// Compact styles
2020
@import "../../main/main-compact.less";
2121
@import "../../toolbar/toolbar-compact.less";
22+
@import "../../sidebars/favourites/favourite-compact.less";
2223
@import "../../sidebars/sidebar-compact.less";
2324
@import "../../sidebars/search/search-compact.less";
2425
@import "../../closedWindows/closedWindowList/closedWindowList-compact.less";
@@ -45,6 +46,18 @@ body {
4546
right: -2px;
4647
}
4748

49+
.disable-transitions {
50+
* {
51+
transition: none !important;
52+
}
53+
}
54+
55+
.disable-pointer {
56+
* {
57+
pointer-events: none;
58+
}
59+
}
60+
4861
#showcase-title {
4962
color: @chart-teal;
5063
position: absolute;

src/assets/styles/variables.less

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
@search-background: @light-background;
1414
@favourites-background: @middle-background;
1515

16-
// Transition
17-
@transition: all 0.2s linear 0.1s;
18-
1916
// Dimensions
2017
@sidebar-width: 280px;
2118
@expanded-width: 230px;

src/closedWindows/closedWindowList/closedWindowList-controller.js

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,66 @@
22
'use strict';
33

44
class ClosedWindowListCtrl {
5-
constructor() {
5+
constructor($scope, $timeout) {
6+
this.$scope = $scope;
7+
this.$timeout = $timeout;
68
this.closedWindows = [];
79
this.closedTabsShow = false;
10+
this.overriddenIcon = '';
11+
12+
this._watch();
13+
}
14+
15+
override() {
16+
return this.overriddenIcon;
817
}
918

1019
refreshClosedWindows() {
1120
this.closedWindows = window.storeService.getPreviousClosedWindows();
21+
this.updateSeen();
22+
}
23+
24+
updateSeen() {
25+
var seen = window.windowService.getClosedWindowSeen();
26+
this.overriddenIcon = seen ? '' : (this.$scope.icon + '_active');
27+
28+
if (!seen && this.closedTabsShow && document.hasFocus()) {
29+
window.windowService.seenClosedWindows();
30+
}
1231
}
1332

1433
click() {
34+
this.overriddenIcon = '';
1535
this.refreshClosedWindows();
1636
this.closedTabsShow = this.closedWindows.length > 0;
37+
38+
if (window.windowService) {
39+
window.windowService.seenClosedWindows();
40+
}
41+
}
42+
43+
_watch() {
44+
var listener = () => this.$timeout(() => this.refreshClosedWindows());
45+
var addListener = () => {
46+
window.windowService.addClosedWindowListener(listener);
47+
this.refreshClosedWindows();
48+
};
49+
50+
// Can't guarantee that windowService exists, so if it doesn't, watch.
51+
if (window.windowService) {
52+
addListener();
53+
} else {
54+
this.$scope.$watch(() => window.windowService, () => {
55+
addListener();
56+
});
57+
}
58+
59+
this.$scope.$on('$destroy', () => {
60+
window.windowService.removeClosedWindowListener(listener);
61+
});
1762
}
1863
}
19-
ClosedWindowListCtrl.$inject = [];
64+
ClosedWindowListCtrl.$inject = ['$scope', '$timeout'];
2065

2166
angular.module('stockflux.closedWindows')
2267
.controller('ClosedWindowListCtrl', ClosedWindowListCtrl);

0 commit comments

Comments
 (0)