-
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.
r56 will soon require Webpack|Brunch or other build tools
- progressing on client side development, it becomes opinionated on the point to decide whether to continue with pug as main template and employ a build tool to render html files on load to integrate AngularJS better and SCSS to css. - or revert the layout and other core views files to html with ejs - The back-end code is pending migration to Angular2-Universal or Angular2-MeteorJS for better, agile, isomorphic, universal dev, ES6 import instead of require('module').. - If MongoDB is used in the dev and prod,MEANJS stack or Angular2-MeteorJS framework can be used right away without having to go through hoops of engineering this NodeMySQL app - But as relational databases still prevail, NodeJS and MeteorJS dev requires some efforts wiring Sequelize and back-end RESTful coding to engineer the app
- Loading branch information
1 parent
518b28f
commit d14da99
Showing
20 changed files
with
314 additions
and
68 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
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,57 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>UI-Router</title> | ||
<link href="/lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> | ||
<!--<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.1/css/bootstrap.min.css" rel="stylesheet">--> | ||
</head> | ||
<body> | ||
<div ng-app="manukeApp"> | ||
<!--<div ng-controller="coreCtrl">--> | ||
<body class="container"> | ||
<p><i>Best viewed in pop-out mode to see location changes. Click blue button on the right.</i></p> | ||
|
||
<nav class="navbar navbar-dark" style="background-color:#44c764"> | ||
<button class="navbar-toggler hidden-sm-up" type="button" data-toggle="collapse" data-target="#responsiveCollapse"> | ||
☰ | ||
</button> | ||
<div class="collapse navbar-toggleable-xs" id="responsiveCollapse"> | ||
<a class="navbar-brand" href="#">angular1-ui-router /angular1-ui.html </a> | ||
<ul class="nav navbar-nav"> | ||
<li class="nav-item active"><a class="nav-link" ui-sref="state1">State 1</a></li> | ||
<li class="nav-item active"><a class="nav-link" ui-sref="state2">State 2</a></li> | ||
</ul> | ||
</div> | ||
</nav> | ||
|
||
<div class="row"> | ||
<div class="span12"> | ||
<div class="well" ui-view></div> | ||
</div> | ||
</div> | ||
<!--</div>--> | ||
</div> | ||
<div class="script"> | ||
<script src="/lib/jquery/dist/jquery.min.js"></script> | ||
<script src="/lib/angular/angular.min.js"></script> | ||
<script src="/lib/moment/min/moment.min.js"></script> | ||
<script src="/lib/tether/dist/js/tether.min.js"></script> | ||
<script src="/lib/bootstrap/dist/js/bootstrap.min.js"></script> | ||
<script src="/lib/angular-animate/angular-animate.min.js"></script> | ||
<script src="/lib/angular-cookies/angular-cookies.min.js"></script> | ||
<script src="/lib/angular-resource/angular-resource.min.js"></script> | ||
<script src="/lib/angular-ui-router/release/angular-ui-router.min.js"></script> | ||
<script src="/lib/angular-route/angular-route.min.js"></script> | ||
<script src="/lib/angular-sanitize/angular-sanitize.min.js"></script> | ||
<script src="/lib/angular-touch/angular-touch.min.js"></script> | ||
<script src="/lib/lodash/dist/lodash.min.js"></script> | ||
<script src="/lib/angular-bootstrap/ui-bootstrap-tpls.js"></script> | ||
<!-- endbower--> | ||
<!-- endbuild--> | ||
<!-- build:js({.tmp,app}) js/app.js--> | ||
<script src="/app/angular1.ui_router.js"></script> | ||
<!--<script src="/app/core.client.controllers.js"></script>--> | ||
</div> | ||
</body> | ||
</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,3 @@ | ||
<h1>State 1</h1> | ||
<hr> | ||
<div ui-view></div> |
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,3 @@ | ||
h3 List of State 1 Items | ||
ul | ||
li(ng-repeat='item in items') {{item}} |
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,4 @@ | ||
h1 State 1 | ||
hr | ||
a(ui-sref='state1.list') Show List | ||
div(ui-view) |
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,3 @@ | ||
<h1>State 2</h1> | ||
<hr> | ||
<div ui-view></div> |
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,3 @@ | ||
h3 List of State 2 Items | ||
ul | ||
li(ng-repeat='item in items') {{item}} |
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,4 @@ | ||
h1 State 2 | ||
hr | ||
a(ui-sref='state2.list') Show List | ||
div(ui-view) |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
div | ||
h3='Listing from ECMS main table' | ||
- if (mains.length) { | ||
table.table | ||
tr | ||
th id | ||
th asset_number | ||
th file | ||
th last_cal | ||
th next_cal | ||
th schedule | ||
each main in mains | ||
tr | ||
td= main.id | ||
td= main.asset_number | ||
td= main.file | ||
td #{main.last_cal.toDateString()} | ||
- if (main.next_cal) { | ||
td #{main.next_cal.toDateString()} | ||
- } | ||
td= main.schedule | ||
- } |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<div class="menu"> | ||
<ul class="nav nav-pills"> | ||
<li class="nav-item"><a ui-sref-active='active' ui‐sref="/" class="nav-link">Home</a></li> | ||
<li class="nav-item"><a ui-sref-active='active' ui‐sref="/article" class="nav-link">Article</a></li> | ||
<li class="nav-item"><a ui-sref-active='active' ui‐sref="/chat" class="nav-link">Chat</a></li> | ||
<li class="nav-item"><a ui-sref-active='active' ui‐sref="/xt_syncs/assembly" class="nav-link">XT_Syncs</a></li> | ||
<li class="nav-item dropdown"><a ui-sref-active='active' ui‐sref="#" data-toggle="dropdown" role="button" class="nav-link dropdown-toggle">Calibrates</a> | ||
<div class="dropdown-menu"><a ui-sref-active='active' ui‐sref="/calibrates/equipment" class="dropdown-item">List</a><a ui‐sref="#" class="dropdown-item">Create</a> | ||
<div class="dropdown-divider"></div><a ui‐sref="/calibrates/table_main" class="dropdown-item">View Main table</a><a ui‐sref="/calibrates/table_equipment" class="dropdown-item">View Equipment table</a><a ui‐sref="/calibrates/table_location" class="dropdown-item">View Location table</a> | ||
</div> | ||
</li> | ||
<li class="nav-item"><a ui-sref-active='active' ui‐sref="/query_approvals/pending_queries" class="nav-link">Pending_Queries</a></li> | ||
<li class="nav-item"><a ui-sref-active='active' ui‐sref="/todos/tasks" class="nav-link">Tasks</a></li> | ||
<li class="nav-item"><a ui-sref-active='active' ui‐sref="/services/api/work_order/191915a" class="nav-link">Services</a></li> | ||
<li class="nav-item"><a ui-sref-active='active' ui‐sref="/login" class="nav-link">Log in</a></li> | ||
<li class="nav-item"><a ui-sref-active='active' ui‐sref="/auth/twitter" class="nav-link">Sign in with Twitter</a></li> | ||
</ul> | ||
</div> |
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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
var myapp = angular.module('manukeApp', ["ui.router"]) | ||
myapp.config(function($stateProvider, $urlRouterProvider){ | ||
|
||
// For any unmatched url, send to /state1 | ||
$urlRouterProvider.otherwise("/state1") | ||
|
||
$stateProvider | ||
.state('state1', { | ||
url: "/state1", | ||
templateUrl: "includes/state1.html" | ||
}) | ||
.state('state1.list', { | ||
url: "/list", | ||
templateUrl: "includes/state1.list.html", | ||
controller: function($scope){ | ||
$scope.items = ["A", "List", "Of", "Items"]; | ||
} | ||
}) | ||
|
||
.state('state2', { | ||
url: "/state2", | ||
templateUrl: "includes/state2.html" | ||
}) | ||
.state('state2.list', { | ||
url: "/list", | ||
templateUrl: "includes/state2.list.html", | ||
controller: function($scope){ | ||
$scope.things = ["A", "Set", "Of", "Things"]; | ||
} | ||
}) | ||
}) |
Oops, something went wrong.
d14da99
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
latest changes in pug pugjs/pug#2305
d14da99
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http://anoopmd.github.io/brunch-example-compile-sass/
If you want to use git version of plugin, add to your package.json "javascript-brunch": "git+ssh://[email protected]:brunch/javascript-brunch.git"
This article explains some fundamentals of BrunchJS
http://www.js-attitude.fr/2015/03/04/brunch-mon-builder-prefere/
brunch/brunch#878 (comment)