-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
781 additions
and
1,150 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<widget id="com.focusedsamurai.mim" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> | ||
<widget id="id.meisyal.mim" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> | ||
<name>MIM</name> | ||
<description> | ||
An Ionic mobile inventory manager application. | ||
An inventory manager mobile application built with Ionic framework. | ||
</description> | ||
<author email="[email protected]" href="http://meisyal.web.id/"> | ||
MIM Project Team | ||
|
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
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 |
---|---|---|
@@ -1,121 +1,17 @@ | ||
// Ionic Starter App | ||
var MIM = angular.module('starter', ['ionic', | ||
'starter.controllers', | ||
'starter.routers']); | ||
|
||
// angular.module is a global place for creating, registering and retrieving Angular modules | ||
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html) | ||
// the 2nd parameter is an array of 'requires' | ||
var MIM = angular.module('starter', ['ionic', 'starter.controllers']); | ||
|
||
MIM.run(function($ionicPlatform) { | ||
$ionicPlatform.ready(function() { | ||
MIM.run(function ($ionicPlatform) { | ||
$ionicPlatform.ready(function () { | ||
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard | ||
// for form inputs) | ||
if (window.cordova && window.cordova.plugins.Keyboard) { | ||
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); | ||
} | ||
|
||
if (window.StatusBar) { | ||
StatusBar.styleDefault(); | ||
} | ||
}); | ||
}); | ||
|
||
MIM.config(function($stateProvider, $urlRouterProvider) { | ||
$stateProvider | ||
.state('app', { | ||
url: '/app', | ||
abstract: true, | ||
templateUrl: 'templates/menu.html', | ||
controller: 'AppController' | ||
}) | ||
.state('app.config', { | ||
url: '/config', | ||
views: { | ||
'menuContent': { | ||
templateUrl: 'templates/config.html', | ||
controller: 'ConfigController' | ||
} | ||
} | ||
}) | ||
.state('app.sales', { | ||
url: '/sales', | ||
views: { | ||
'menuContent': { | ||
templateUrl: 'templates/sales.html', | ||
controller: 'SalesController' | ||
} | ||
} | ||
}) | ||
.state('app.salesorder', { | ||
cache: false, | ||
url: '/sales-order', | ||
views: { | ||
'menuContent': { | ||
templateUrl: 'templates/sales_order.html', | ||
controller: 'SalesOrderController' | ||
} | ||
} | ||
}) | ||
.state('app.orderdetail', { | ||
url: '/order-detail/:orderId', | ||
views: { | ||
'menuContent': { | ||
templateUrl: 'templates/order_detail.html', | ||
controller: 'OrderDetailController' | ||
} | ||
} | ||
}) | ||
.state('app.addinventory', { | ||
url: '/add-inventory', | ||
views: { | ||
'menuContent': { | ||
templateUrl: 'templates/add_inventory.html', | ||
controller: 'AddInventoryController' | ||
} | ||
} | ||
}) | ||
.state('app.inventoryitems', { | ||
url: '/inventory-items', | ||
views: { | ||
'menuContent': { | ||
templateUrl: 'templates/inventory_items.html', | ||
controller: 'InventoryItemsController' | ||
} | ||
} | ||
}) | ||
.state('app.itemdetail', { | ||
url: '/item-detail/:itemId', | ||
views: { | ||
'menuContent': { | ||
templateUrl: 'templates/item_detail.html', | ||
controller: 'ItemDetailController' | ||
} | ||
} | ||
}) | ||
.state('app.customer', { | ||
url: '/customer', | ||
views: { | ||
'menuContent': { | ||
templateUrl: 'templates/customers.html', | ||
controller: 'CustomerController' | ||
} | ||
} | ||
}) | ||
.state('app.customerdetail', { | ||
url: '/customer-detail/:customerId', | ||
views: { | ||
'menuContent': { | ||
templateUrl: 'templates/customer_detail.html', | ||
controller: 'CustomerDetailController' | ||
} | ||
} | ||
}) | ||
.state('app.statistics', { | ||
url: '/statistics', | ||
views: { | ||
'menuContent': { | ||
templateUrl: 'templates/statistics.html', | ||
controller: 'StatisticsController' | ||
} | ||
} | ||
}); | ||
$urlRouterProvider.otherwise('/app/config'); | ||
}); |
Oops, something went wrong.