initial commit

This commit is contained in:
Angel Alvarez 2014-09-19 15:59:47 +02:00
commit befd9cc1bc
8 changed files with 157 additions and 0 deletions

3
.bowerrc Normal file
View File

@ -0,0 +1,3 @@
{
"directory": "app/bower_components"
}

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
bower_components
*.swp
*.~

13
.jshintrc Normal file
View File

@ -0,0 +1,13 @@
{
"globalstrict": true,
"globals": {
"angular": false,
"describe": false,
"it": false,
"expect": false,
"beforeEach": false,
"afterEach": false,
"module": false,
"inject": false
}
}

30
app/app.css Normal file
View File

@ -0,0 +1,30 @@
/* app css stylesheet */
.menu {
list-style: none;
border-bottom: 0.1em solid black;
margin-bottom: 2em;
padding: 0 0 0.5em;
}
.menu:before {
content: "[";
}
.menu:after {
content: "]";
}
.menu > li {
display: inline;
}
.menu > li:before {
content: "|";
padding-right: 0.3em;
}
.menu > li:nth-child(1):before {
content: "";
padding: 0;
}

16
app/app.js Normal file
View File

@ -0,0 +1,16 @@
'use strict';
// Declare app level module which depends on views, and components
angular.module('myApp', [
'ngRoute',
'myApp.gantt.dhxgantt',
'openlabs.angular-tryton',
'myApp.login',
'myApp.gantt.gantt_view'
]).
config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider ) {
$routeProvider.otherwise({redirectTo: '/login'});
}]);

60
app/index.html Normal file
View File

@ -0,0 +1,60 @@
<!DOCTYPE html>
<!--[if lt IE 7]> <html lang="en" ng-app="myApp" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html lang="en" ng-app="myApp" class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html lang="en" ng-app="myApp" class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en" ng-app="myApp" class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Angular-Tryton Project Plan App</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="app.css"/>
<link rel="stylesheet" href="bower_components/gantt/codebase/skins/dhtmlxgantt_meadow.css">
<script src="bower_components/html5-boilerplate/js/vendor/modernizr-2.6.2.min.js"></script>
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">Project Plan App</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="#gantt_view">Gantt Chart</a></li>
</ul>
</div>
</div>
</nav>
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<div class="container-fluid">
<div class="row">
<div class="span12" ng-controller="LoginCtrl">
<div class="span12"ng-view></div>
</div>
</div>
<!-- In production use:
<script src="//ajax.googleapis.com/ajax/libs/angularjs/x.x.x/angular.min.js"></script>
-->
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-route/angular-route.js"></script>
<script src="bower_components/ngstorage/ngStorage.min.js"></script>
<script src="bower_components/gantt/codebase/dhtmlxgantt.js"></script>
<script src="bower_components/angular-tryton/src/tryton.js"></script>
<script src="app.js"></script>
<script src="bower_components/angular-tryton-login/login.js"></script>
<script src="bower_components/angular-tryton-gantt/gantt.js"></script>
<script src="bower_components/angular-tryton-gantt/dhxgantt.js"></script>
<script src="bower_components/angular-tryton-gantt/dhxgantt-directive.js"></script>
</body>
</html>

21
bower.json Normal file
View File

@ -0,0 +1,21 @@
{
"name": "nantic-tryton-angular-project_plan",
"description": "A Tryton and Angular Project Plan",
"version": "0.0.0",
"homepage": "https://github.com/angelnan/angular-tryton-project_plan.git",
"license": "GPL",
"private": true,
"dependencies": {
"angular": "1.2.x",
"angular-route": "1.2.x",
"angular-loader": "1.2.x",
"angular-mocks": "~1.2.x",
"angular-bootstrap": "~0.11.0",
"html5-boilerplate": "~4.3.0",
"ngstorage": "~0.3.0",
"gantt": "~3.0.x",
"angular-tryton": "https://github.com/openlabs/angular-tryton.git",
"angular-tryton-login": "https://github.com/NaN-tic/angular-tryton-login.git",
"angular-tryton-gantt": "https://github.com/NaN-tic/angular-tryton-gantt.git"
}
}

11
package.json Normal file
View File

@ -0,0 +1,11 @@
{
"name": "nantic-angular-tryton-project_plan",
"private": true,
"version": "0.0.0",
"description": "A Tryton and Angular Project Plan",
"repository": "",
"license": "GPL",
"scripts": {
"postinstall": "bower install"
}
}