Skip to content

Commit 32a033b

Browse files
committed
Merge branch 'development'
# Conflicts: # Visual Studio Template/Visual Studio Template/Visual Studio Template.csproj # Visual Studio Template/Visual Studio Template/bin/Debug/MultiplatformCordova_1_0_1.vsix # Visual Studio Template/Visual Studio Template/bin/Debug/extension.vsixmanifest # Visual Studio Template/Visual Studio Template/obj/Debug/Visual Studio Template.csproj.FileListAbsolute.txt # Visual Studio Template/Visual Studio Template/obj/Debug/Visual Studio Template.csproj.VsixDeployedFileListAbsolute.txt # Visual Studio Template/Visual Studio Template/obj/Debug/extension.vsixmanifest # Visual Studio Template/Visual Studio Template/source.extension.vsixmanifest
2 parents e1cf747 + 1876b55 commit 32a033b

File tree

21 files changed

+114
-154
lines changed

21 files changed

+114
-154
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
App/bld/
33
App/bin/
44
App/platforms/
5+
App/plugins/
56
App/node_modules/
67
App/bower_components/
78
App/typings/

App/app.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ module App {
88
'ionic',
99
Constants.Paths.Core,
1010
Constants.Paths.Tabs,
11-
Constants.Paths.Side.Module,
12-
Constants.Paths.Home.Module,
13-
Constants.Paths.Actions.Module,
14-
Constants.Paths.Buttons.Module
11+
Constants.Paths.Side.Base,
12+
Constants.Paths.Home.Base,
13+
Constants.Paths.Actions.Base,
14+
Constants.Paths.Buttons.Base
1515
])
1616
.config(statesConfiguration);
1717

App/constants/interfaces/IPaths.ts

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
11
module Constants {
22
'use strict';
33

4-
interface ISubPage {
5-
Path: string,
6-
Uri: string
7-
};
8-
9-
interface IPage {
10-
Module: string,
11-
Main: ISubPage,
12-
};
13-
14-
interface IHomePage extends IPage {
15-
Scroll: ISubPage
16-
}
17-
184
export interface IPaths {
195
Core: string,
206
Modules: string,
217
Tabs: string,
22-
Side: IPage,
23-
Home: IHomePage,
24-
Actions: IPage,
25-
Buttons: IPage
8+
Side?: {
9+
Base: string,
10+
Left?: string,
11+
Right?: string
12+
},
13+
Home: {
14+
Base: string,
15+
Scroll: string
16+
},
17+
Actions: {
18+
Base: string
19+
},
20+
Buttons: {
21+
Base: string
22+
}
2623
}
2724
}

App/constants/paths.ts

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,23 @@
11
module Constants {
22
'use strict';
33

4-
let base = 'tabs';
5-
64
export let Paths: IPaths = {
75
Core: 'core',
86
Modules: 'modules/',
9-
Tabs: base,
7+
Tabs: 'tabs',
108
Side: {
11-
Module: 'side',
12-
Main: {
13-
Path: base + '.left',
14-
Uri: 'left'
15-
}
9+
Base: 'side',
10+
Left: 'left'
1611
},
1712
Home: {
18-
Module: 'home',
19-
Main: {
20-
Path: base + '.home',
21-
Uri: 'home'
22-
},
23-
Scroll: {
24-
Path: base + '.scroll',
25-
Uri: 'scroll'
26-
}
13+
Base: 'home',
14+
Scroll: 'scroll'
2715
},
2816
Actions: {
29-
Module: 'actions',
30-
Main: {
31-
Path: base + '.actions',
32-
Uri: 'actions'
33-
},
17+
Base: 'actions'
3418
},
3519
Buttons: {
36-
Module: 'buttons',
37-
Main: {
38-
Path: base + '.buttons',
39-
Uri: 'buttons'
40-
}
20+
Base: 'buttons'
4121
}
4222
};
43-
}
23+
};

App/merges/android/modules/tabs/templates/wrapper.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<ion-nav-bar class="bar-calm"
2-
align-title="left"
3-
ng-controller="navigationController as nav">
2+
align-title="left">
43
<ion-nav-back-button class="button-icon icon icon-only ion-arrow-left-c"></ion-nav-back-button>
54

65
<ion-nav-buttons side="left">
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
11
module Actions {
22
'use strict';
33

4-
angular.module(Constants.Paths.Actions.Module, [])
4+
import Paths = Constants.Paths;
5+
let Page = Paths.Actions;
6+
7+
angular.module(Page.Base, [])
58
.config(statesConfiguration);
69

710
function statesConfiguration(
811
$stateProvider: ng.ui.IStateProvider
912
): void {
1013

1114
$stateProvider
12-
.state(Constants.Paths.Actions.Main.Path, {
13-
url: '/' + Constants.Paths.Actions.Main.Uri,
15+
.state(Paths.Tabs + '.' + Page.Base, {
16+
url: '/' + Page.Base,
1417
views: {
1518
'actions-tab': {
1619
controller: 'actionsController as vm',
17-
templateUrl: Constants.Paths.Modules + 'actions/views/' + Constants.Paths.Actions.Main.Uri + '.html'
20+
templateUrl: Paths.Modules + 'actions/views/actions.html'
1821
}
1922
}
20-
});
23+
}
24+
);
2125
}
2226
}

App/modules/actions/controllers/actionsController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222
}
2323

24-
angular.module(Constants.Paths.Actions.Main.Uri)
24+
angular.module(Constants.Paths.Actions.Base)
2525
.controller('actionsController', ActionsController);
2626
}
2727

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
module Buttons {
22
'use strict';
33

4-
angular.module(Constants.Paths.Buttons.Module, [])
4+
import Paths = Constants.Paths;
5+
let Page = Paths.Buttons;
6+
7+
angular.module(Page.Base, [])
58
.config(statesConfiguration);
69

710
function statesConfiguration(
811
$stateProvider: ng.ui.IStateProvider
912
): void {
13+
1014
$stateProvider
11-
.state(Constants.Paths.Buttons.Main.Path, {
12-
url: '/' + Constants.Paths.Buttons.Main.Uri,
15+
.state(Paths.Tabs + '.' + Page.Base, {
16+
url: '/' + Page.Base,
1317
views: {
1418
'buttons-tab': {
15-
templateUrl: Constants.Paths.Modules + 'buttons/views/' + Constants.Paths.Buttons.Main.Uri + '.html'
19+
templateUrl: Paths.Modules + 'buttons/views/buttons.html'
1620
}
1721
}
18-
});
22+
}
23+
);
1924
}
2025
}

App/modules/core/core-module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Core {
22
'use strict';
33

4-
angular.module('core', []);
4+
angular.module(Constants.Paths.Core, []);
55
}

App/modules/core/services/loadingService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
}
2121
}
2222

23-
angular.module('core')
23+
angular.module(Constants.Paths.Core)
2424
.service('loadingService', LoadingService);
2525
}

0 commit comments

Comments
 (0)