Skip to content

Commit

Permalink
vertical slicing!
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Viegas committed Sep 13, 2013
1 parent 1c97195 commit dce231f
Show file tree
Hide file tree
Showing 184 changed files with 323 additions and 327 deletions.
2 changes: 1 addition & 1 deletion .bowerrc
@@ -1,3 +1,3 @@
{
"directory": "lib"
"directory": "app/bower_components"
}
1 change: 1 addition & 0 deletions .gitignore
@@ -1,6 +1,7 @@
.idea
lib-cov
lib
app/bower_components
*.seed
*.log
*.csv
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
8 changes: 4 additions & 4 deletions index.html → app/index.html
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="icon" type="image/png" href="../prototype-app/image/favicon.ico" />
<link rel="icon" type="image/png" href="./images/favicon.ico" />
<title>{{ 'label.product.title' | translate }}</title>
<style>[data-ng-cloak] { display: none !important; }</style>
</head>
Expand Down Expand Up @@ -39,7 +39,7 @@
<table width="%100">
<tr>
<td width="30%">
<img src="../prototype-app/image/MifosX_logo.png" alt="MifosX" width="150">
<img src="./images/MifosX_logo.png" alt="MifosX" width="150">
</td>
<td width="70%">
<h1>{{ 'label.product.name' | translate }}</h1>
Expand Down Expand Up @@ -103,7 +103,7 @@ <h1>{{ 'label.product.name' | translate }}</h1>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="../">Mifos <strong>X</strong></a>
<a class="brand" href="../../">Mifos <strong>X</strong></a>
<div class="nav-collapse collapse" id="main-menu">
<ul class="nav" id="main-menu-left">
<li><a href="#"><i class="icon-home icon-white"></i>{{ 'link.home' | translate }}</a></li>
Expand Down Expand Up @@ -223,7 +223,7 @@ <h1>{{ 'label.product.name' | translate }}</h1>
</div>
<!-- Le javascript
================================================== -->
<script type='text/javascript' data-main="js/loader.js" src='lib/requirejs/require.js'></script>
<script type='text/javascript' data-main="scripts/loader.js" src='bower_components/requirejs/require.js'></script>
<!-- Placed at the end of the document so the pages load faster -->
</body>
</html>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
69 changes: 69 additions & 0 deletions app/scripts/loader.js
@@ -0,0 +1,69 @@
(function() {
require.config({
paths: {
'jquery': '../bower_components/jquery/jquery',
'jquery-ui': '../bower_components/jquery-ui/ui/jquery-ui',
'data-tables': '../bower_components/datatables/media/js/jquery.dataTables',
'blockUI': '../bower_components/blockui/jquery.blockUI',
'angular': '../bower_components/angular/angular',
'angular-resource': '../bower_components/angular-resource/angular-resource',
'angular-translate': '../bower_components/angular-translate/angular-translate',
'angular-translate-loader-static-files': '../bower_components/angular-translate-loader-static-files/angular-translate-loader-static-files',
'angular-mocks': '../bower_components/angular-mocks/angular-mocks',
'angularui': '../bower_components/angular-bootstrap/ui-bootstrap',
'angularuitpls': '../bower_components/angular-bootstrap/ui-bootstrap-tpls',
'underscore': '../bower_components/underscore/underscore',
'webstorage': '../bower_components/angular-webstorage/angular-webstorage',
'require-css': '../bower_components/require-css/css',
'require-less': '../bower_components/require-less/less',
'styles': '../styles',
'test': '../../test/functional'
},
shim: {
'angular': { exports: 'angular' },
'angular-resource': { deps: ['angular'] },
'angular-translate': { deps: ['angular'] },
'angular-translate-loader-static-files': {deps: ['angular' , 'angular-translate'] },
'angularui': { deps: ['angular'] },
'angularuitpls': { deps: ['angular' ,'angularui' ] },
'angular-mocks': { deps: ['angular'] },
'webstorage': { deps: ['angular'] },
'jquery-ui': { deps: ['jquery'] },
'mifosX': {
deps: [
'angular',
'angular-resource',
'angular-translate',
'angular-translate-loader-static-files',
'angularui',
'angularuitpls',
'webstorage',
'data-tables',
'blockUI',
'jquery-ui'
],
exports: 'mifosX'
}
},
packages: [
{
name: 'css',
location: '../bower_components/require-css',
main: 'css'
},
{
name: 'less',
location: '../bower_components/require-less',
main: 'less'
}
]
});

require(['mifosXComponents', 'mifosXStyles'], function() {
require(['test/testInitializer'], function(testMode) {
if (!testMode) {
angular.bootstrap(document, ["MifosX_Application"]);
}
});
});
}());
File renamed without changes.
74 changes: 74 additions & 0 deletions app/scripts/mifosXComponents.js
@@ -0,0 +1,74 @@
define(['underscore', 'mifosX'], function() {
var components = {
models: [
'LoggedInUser',
'roleMap'
],
controllers: [
'main/MainController',
'main/LoginFormController',
'main/TaskController',
'main/SearchController',
'loanAccount/ViewClientLoanDetailsController',
'client/ClientController',
'client/EditClientController',
'client/ViewClientController',
'client/CreateClientController',
'product/LoanProductController',
'product/ChargeController',
'product/ViewChargeController',
'product/SavingProductController',
'product/ViewSavingProductController',
'product/ViewLoanProductController',
'user/UserController',
'user/UserFormController',
'user/UserSettingController',
'user/UserListController',
'user/ViewUserController',
'organization/RoleController',
'organization/OfficesController',
'organization/ViewOfficeController',
'organization/CreateOfficeController',
'organization/CurrencyConfigController',
'organization/CreateUserController',
'organization/EditUserController',
'organization/ViewEmployeeController',
'organization/EditEmployeeController',
'organization/EmployeeController',
'organization/CreateEmployeeController',
'organization/ManageFundsController',
'accounting/AccFreqPostingController',
'accounting/AccCoaController',
'accounting/AccCreateGLAccountContoller',
'accounting/AccViewGLAccountContoller',
'accounting/AccEditGLAccountController',
'accounting/ViewTransactionController',
'accounting/JournalEntryController',
'accounting/SearchTransactionController',
'accounting/AccountingClosureController'
],
filters: [
'StatusLookup'
],
services: [
'ResourceFactoryProvider',
'HttpServiceProvider',
'AuthenticationService',
'SessionManager',
'Paginator'
],
directives: [
'DataTablesDirective',
'OverlayDirective',
'DialogDirective'
]
};

require(_.reduce(_.keys(components), function(list, group) {
return list.concat(_.map(components[group], function(name) { return group + "/" + name; }));
}, [
'routes',
'initialTasks',
'webstorage-configuration'
]));
});
5 changes: 0 additions & 5 deletions js/mifosXStyles.js → app/scripts/mifosXStyles.js
Expand Up @@ -5,11 +5,6 @@ define(['underscore'], function() {
'bootswatch',
'font-awesome.min',
'app'
// 'skeleton/base',
// 'skeleton/skeleton',
// 'skeleton/layout',
// 'data-tables/css/jquery.dataTables',
// 'jquery-ui/redmond/jquery-ui-1.10.3.custom'
],
less: [
'mifosX'
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
148 changes: 148 additions & 0 deletions app/scripts/routes.js
@@ -0,0 +1,148 @@
(function(mifosX) {
var defineRoutes = function($routeProvider, $locationProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/start.html'
})
.when('/login', {
templateUrl: 'views/login.html'
})
.when('/home', {
templateUrl: 'views/home.html'
})
.when('/admin/roles', {
templateUrl: 'views/administration/roles.html'
})
.when('/admin/users', {
templateUrl: 'views/administration/users.html'
})
.when('/clients', {
templateUrl: 'views/clients/clients.html'
})
.when('/createclient', {
templateUrl: 'views/clients/createclient.html'
})
.when('/editclient/:id', {
templateUrl : 'views/clients/editclient.html'
})
.when('/viewclient/:id', {
templateUrl: 'views/clients/viewclient.html'
})
.when('/viewloanaccount/:id', {
templateUrl: 'views/clients/viewclientloanaccountdetails.html'
})
.when('/organization', {
templateUrl: 'views/administration/organization.html'
})
.when('/system', {
templateUrl: 'views/administration/system.html'
})
.when('/loanproducts', {
templateUrl: 'views/products/loanproducts.html'
})
.when('/charges', {
templateUrl: 'views/products/charges.html'
})
.when('/viewcharge/:id', {
templateUrl: 'views/products/viewcharge.html'
})
.when('/savingproducts', {
templateUrl: 'views/products/savingproducts.html'
})
.when('/viewsavingproduct/:id', {
templateUrl: 'views/products/viewsavingproduct.html'
})
.when('/offices', {
templateUrl: 'views/organization/offices.html'
})
.when('/createoffice', {
templateUrl: 'views/organization/createoffice.html'
})
.when('/viewoffice/:id', {
templateUrl: 'views/organization/viewoffice.html'
})
.when('/tasks', {
templateUrl: 'views/tasks.html'
})
.when('/viewcurrconfig', {
templateUrl: 'views/organization/currencyconfig.html'
})
.when('/search/:query', {
templateUrl: 'views/search/glresults.html'
})
.when('/viewloanproduct/:id', {
templateUrl: 'views/products/viewloanproduct.html'
})
.when('/usersetting', {
templateUrl: 'views/administration/usersettings.html'
})
.when('/userslist/', {
templateUrl: 'views/administration/userslist.html'
})
.when('/createuser/', {
templateUrl: 'views/administration/createuser.html'
})
.when('/viewuser/:id', {
templateUrl: 'views/administration/viewuser.html'
})
.when('/edituser/:id', {
templateUrl: 'views/administration/edituser.html'
})
.when('/employees', {
templateUrl: 'views/organization/employees.html'
})
.when('/viewemployee/:id', {
templateUrl: 'views/organization/viewemployee.html'
})
.when('/editemployee/:id', {
templateUrl: 'views/organization/editemployee.html'
})
.when('/createemployee/', {
templateUrl: 'views/organization/createemployee.html'
})
.when('/managefunds/', {
templateUrl: 'views/organization/managefunds.html'
})
.when('/nav/offices', {
templateUrl: 'views/navigation/offices.html'
})
.when('/accounting', {
templateUrl: 'views/accounting/accounting.html'
})
.when('/accounting_coa', {
templateUrl: 'views/accounting/accounting_coa.html'
})
.when('/createglaccount', {
templateUrl: 'views/accounting/createglaccounting.html'
})
.when('/viewglaccount/:id', {
templateUrl: 'views/accounting/viewglaccounting.html'
})
.when('/editglaccount/:id', {
templateUrl: 'views/accounting/editglaccounting.html'
})
.when('/freqposting', {
templateUrl: 'views/accounting/freqposting.html'
})
.when('/viewtransactions/:transactionId', {
templateUrl: 'views/accounting/view_transactions.html'
})
.when('/journalentry', {
templateUrl: 'views/accounting/journalentry_posting.html'
})
.when('/searchtransaction', {
templateUrl: 'views/accounting/search_transaction.html'
})
.when('/accounts_closure', {
templateUrl: 'views/accounting/accounts_closure.html'
})
.when('/closedaccountingDetails/:officeId', {
templateUrl: 'views/accounting/view_close_accounting.html'
});

$locationProvider.html5Mode(false);
};
mifosX.ng.application.config(defineRoutes).run(function($log) {
$log.info("Routes definition completed");
});
}(mifosX || {}));
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
@@ -1,4 +1,4 @@
@font-face{font-family:'FontAwesome';src:url('../font/fontawesome-webfont.eot?v=3.2.1');src:url('../font/fontawesome-webfont.eot?#iefix&v=3.2.1') format('embedded-opentype'),url('../font/fontawesome-webfont.woff?v=3.2.1') format('woff'),url('../font/fontawesome-webfont.ttf?v=3.2.1') format('truetype'),url('../font/fontawesome-webfont.svg#fontawesomeregular?v=3.2.1') format('svg');font-weight:normal;font-style:normal;}[class^="icon-"],[class*=" icon-"]{font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;}
@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=3.2.1');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=3.2.1') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff?v=3.2.1') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=3.2.1') format('truetype'),url('../fonts/fontawesome-webfont.svg#fontawesomeregular?v=3.2.1') format('svg');font-weight:normal;font-style:normal;}[class^="icon-"],[class*=" icon-"]{font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;}
[class^="icon-"]:before,[class*=" icon-"]:before{text-decoration:inherit;display:inline-block;speak:none;}
.icon-large:before{vertical-align:-10%;font-size:1.3333333333333333em;}
a [class^="icon-"],a [class*=" icon-"]{display:inline;}
Expand Down
6 changes: 3 additions & 3 deletions stylesheets/mifosX.less → app/styles/mifosX.less
Expand Up @@ -41,6 +41,6 @@ form {
}
}

@import url('mifosX_classes.less');
@import url('mifosX_users.less');
@import url('mifosX_dataTables.less');
@import url('mifosX_classes');
@import url('mifosX_users');
@import url('mifosX_dataTables');
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit dce231f

Please sign in to comment.