forked from MaibornWolff/codecharta
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change UI option to max TM files MaibornWolff#904
- Loading branch information
Showing
23 changed files
with
123 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...ization/app/codeCharta/state/store/appSettings/maxTreeMapFiles/maxTreeMapFiles.reducer.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
...ion/app/codeCharta/state/store/appSettings/treeMapStartDepth/treeMapStartDepth.actions.ts
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
...pp/codeCharta/state/store/appSettings/treeMapStartDepth/treeMapStartDepth.reducer.spec.ts
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...ion/app/codeCharta/state/store/appSettings/treeMapStartDepth/treeMapStartDepth.reducer.ts
This file was deleted.
Oops, something went wrong.
60 changes: 0 additions & 60 deletions
60
...pp/codeCharta/state/store/appSettings/treeMapStartDepth/treeMapStartDepth.service.spec.ts
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
...ion/app/codeCharta/state/store/appSettings/treeMapStartDepth/treeMapStartDepth.service.ts
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...on/app/codeCharta/state/store/appSettings/treeMapStartDepth/treeMapStartDepth.splitter.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
visualization/app/codeCharta/ui/maxTreeMapFiles/maxTreeMapFiles.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<md-slider-container class="md-block"> | ||
<span>Maximum TreeMap Files</span> | ||
<md-slider | ||
flex | ||
step="1" | ||
min="1" | ||
max="1000" | ||
ng-model="$ctrl._viewModel.maxTreeMapFiles" | ||
id="maxTreeMapFiles-slider" | ||
ng-change="$ctrl.onChangeMaxTreeMapFilesSlider()" | ||
class="md-primary" | ||
> | ||
</md-slider> | ||
<md-input-container> | ||
<input | ||
flex | ||
step="1" | ||
min="1" | ||
max="1000" | ||
type="number" | ||
ng-model="$ctrl._viewModel.maxTreeMapFiles" | ||
ng-change="$ctrl.onChangeMaxTreeMapFilesSlider()" | ||
/> | ||
</md-input-container> | ||
</md-slider-container> |
2 changes: 2 additions & 0 deletions
2
visualization/app/codeCharta/ui/maxTreeMapFiles/maxTreeMapFiles.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
max-tree-map-files-component { | ||
} |
24 changes: 24 additions & 0 deletions
24
visualization/app/codeCharta/ui/maxTreeMapFiles/maxTreeMapFiles.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import "./maxTreeMapFiles.module" | ||
import { MaxTreeMapFilesController } from "./maxTreeMapFiles.component" | ||
import { instantiateModule } from "../../../../mocks/ng.mockhelper" | ||
|
||
describe("MaxTreeMapFilesController", () => { | ||
let maxTreeMapFilesController: MaxTreeMapFilesController | ||
|
||
beforeEach(() => { | ||
restartSystem() | ||
rebuildController() | ||
}) | ||
|
||
function restartSystem() { | ||
instantiateModule("app.codeCharta.ui.maxTreeMapFiles") | ||
} | ||
|
||
function rebuildController() { | ||
maxTreeMapFilesController = new MaxTreeMapFilesController() | ||
} | ||
|
||
describe("someMethodName", () => { | ||
it("should do something", () => {}) | ||
}) | ||
}) |
34 changes: 34 additions & 0 deletions
34
visualization/app/codeCharta/ui/maxTreeMapFiles/maxTreeMapFiles.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import "./maxTreeMapFiles.component.scss" | ||
import { MaxTreeMapFilesSubscriber, MaxTreeMapFilesService } from "../../state/store/appSettings/maxTreeMapFiles/maxTreeMapFiles.service" | ||
import { IRootScopeService } from "angular" | ||
import { StoreService } from "../../state/store.service" | ||
import { setMaxTreeMapFiles } from "../../state/store/appSettings/maxTreeMapFiles/maxTreeMapFiles.actions" | ||
|
||
export class MaxTreeMapFilesController implements MaxTreeMapFilesSubscriber { | ||
private _viewModel: { | ||
maxTreeMapFiles: number | ||
} = { | ||
maxTreeMapFiles: null | ||
} | ||
|
||
constructor(private $rootScope: IRootScopeService, private storeService: StoreService) { | ||
MaxTreeMapFilesService.subscribe(this.$rootScope, this) | ||
const maxTreeMapFiles = this.storeService.getState().appSettings.maxTreeMapFiles | ||
this.onMaxTreeMapFilesChanged(maxTreeMapFiles) | ||
this._viewModel.maxTreeMapFiles = maxTreeMapFiles | ||
} | ||
|
||
public onMaxTreeMapFilesChanged(maxTreeMapFiles: number) { | ||
this._viewModel.maxTreeMapFiles = maxTreeMapFiles | ||
} | ||
|
||
public onChangeMaxTreeMapFilesSlider() { | ||
this.storeService.dispatch(setMaxTreeMapFiles(this._viewModel.maxTreeMapFiles)) | ||
} | ||
} | ||
|
||
export const maxTreeMapFilesComponent = { | ||
selector: "maxTreeMapFilesComponent", | ||
template: require("./maxTreeMapFiles.component.html"), | ||
controller: MaxTreeMapFilesController | ||
} |
7 changes: 7 additions & 0 deletions
7
visualization/app/codeCharta/ui/maxTreeMapFiles/maxTreeMapFiles.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import "../../state/state.module" | ||
import angular from "angular" | ||
import { maxTreeMapFilesComponent } from "./maxTreeMapFiles.component" | ||
|
||
angular | ||
.module("app.codeCharta.ui.maxTreeMapFiles", ["app.codeCharta.state"]) | ||
.component(maxTreeMapFilesComponent.selector, maxTreeMapFilesComponent) |
12 changes: 0 additions & 12 deletions
12
visualization/app/codeCharta/ui/treeMapStartDepth/treeMapStartDepth.component.html
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
visualization/app/codeCharta/ui/treeMapStartDepth/treeMapStartDepth.component.scss
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
visualization/app/codeCharta/ui/treeMapStartDepth/treeMapStartDepth.component.spec.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.