Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue#27 Add navigation bar to the app. #32

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
language: node_js
node_js:
- 0.8

before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- npm install --quiet -g karma
- ./scripts/web-server.js > /dev/null &
- sleep 1 # give server time to start

script:
- karma start config/karma.conf.js --no-auto-watch --single-run --reporters=dots --browsers=Firefox
- karma start config/karma-e2e.conf.js --reporters=dots --browsers=Firefox
- "node"
- "6"
- "6.1"
- "5.11"
- "4"
- "0.12"
- "0.6"
- "iojs"
4 changes: 0 additions & 4 deletions app/css/calendar.css

This file was deleted.

6 changes: 3 additions & 3 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
<script src="lib/components/angular-bootstrap/ui-bootstrap.min.js "></script>
<script src="lib/components/angular-bootstrap/ui-bootstrap-tpls.min.js "></script>
<script src="lib/angular/localStorageModule.js"></script>
<link href="lib/components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"></link>
<script src="js/app.js"></script>
<script src="js/steam.js"></script>
<script src="js/main.js"></script>
<script src="js/register.js"></script>
<link href="lib/components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"></link>
</head>

<body>
<div class="container">
<header ng-include="'partials/nav.html'"></header>
<header ng-include="'partials/nav.html'"></header>
<div class="container">
<div ui-view></div>
<footer ng-include="'partials/footer.html'"></footer>
<div>
Expand Down
11 changes: 0 additions & 11 deletions app/js/seed-app.js

This file was deleted.

11 changes: 0 additions & 11 deletions app/js/seed-controllers.js

This file was deleted.

11 changes: 0 additions & 11 deletions app/js/seed-directives.js

This file was deleted.

10 changes: 0 additions & 10 deletions app/js/seed-filters.js

This file was deleted.

9 changes: 0 additions & 9 deletions app/js/seed-services.js

This file was deleted.

1 change: 1 addition & 0 deletions app/partials/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>sTeam-REST API</p>
16 changes: 9 additions & 7 deletions app/partials/nav.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
steam-rest examples nav

<ul class="nav nav-pills nav-stacked" ng-controller="NavCtrl">
<li ng-repeat="item in mainMenu" ng-class="{ active: isSelected(item.url) }">
<a href="#/{{item.url}}" ng-click="selectTab(item.url)">{{item.name}}</a>
</li>
</ul>
<nav class="navbar navbar-inverse" role="navigation">
<div class="navbar-header">
<a class="navbar-brand"><b>sTeam-REST API</b></a>
</div>
<ul class="nav navbar-nav">
<li><a ui-sref="home">Home</a></li>
<li><a ui-sref="about">About</a></li>
</ul>
</nav>
1 change: 0 additions & 1 deletion app/partials/seed-partial1.html

This file was deleted.

5 changes: 0 additions & 5 deletions app/partials/seed-partial2.html

This file was deleted.

28 changes: 0 additions & 28 deletions app/seed-index.html

This file was deleted.

7 changes: 5 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "CommunityCalendar",
"name": "bower",
"version": "0.1",
"private": true,
"ignore": [
Expand All @@ -11,6 +11,9 @@
],
"dependencies": {
"angular": "",
"angular-route": "~1.4.8"
"angular-route": "~1.4.8",
"angular-ui-router": "",
"angular-bootstrap": "",
"bootstrap": ""
}
}
22 changes: 0 additions & 22 deletions config/karma-e2e.conf.js

This file was deleted.

22 changes: 0 additions & 22 deletions config/karma.conf.js

This file was deleted.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "TechGrind",
"name": "sTeam-REST",
"version": "0.1.1",
"private": true,
"dependencies": {
Expand All @@ -11,7 +11,9 @@
"body-parser": "",
"serve-static": "",
"errorhandler": "",
"bower": ""
"bower": "",
"jasmine-node": "",
"frisby": ""
},
"production_dirs": {
"coffee_src": "src/",
Expand All @@ -21,6 +23,7 @@
"devDependencies": {
},
"scripts": {
"postinstall": "bower install"
"postinstall": "bower install",
"test": "jasmine-node --verbose test"
}
}
7 changes: 5 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
about this project
[![Build Status](https://travis-ci.org/societyserver/steam-rest.svg?branch=master)](https://travis-ci.org/societyserver/steam-rest)


About this project
==================

this project contains a set of examples and tests for the RESTful API for the
Expand All @@ -10,7 +13,7 @@ deployment can be done as static javascript files, and does not need any kind of
the back-end is a RESTful API written for the sTeam server as used by techgrind.asia


development instructions
Development instructions
========================

step 1: install node.js
Expand Down
11 changes: 0 additions & 11 deletions scripts/e2e-test.bat

This file was deleted.

9 changes: 0 additions & 9 deletions scripts/e2e-test.sh

This file was deleted.

9 changes: 0 additions & 9 deletions scripts/test.sh

This file was deleted.

2 changes: 1 addition & 1 deletion src/js/app.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ app.config ['$urlRouterProvider', '$stateProvider', ($urlRouterProvider, $stateP
$stateProvider.state 'home',
url: '/home'
templateUrl: 'partials/home.html'
controller: 'HomeCtrl'
controller: 'NavCtrl'

$stateProvider.state 'register',
url: '/register'
Expand Down
9 changes: 0 additions & 9 deletions src/js/calendar.coffee

This file was deleted.

1 change: 1 addition & 0 deletions test/e2e/runner.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<title>End2end Test Runner</title>
<meta charset="utf-8">
<script src="../lib/angular/angular-scenario.js" ng-autotest></script>
<script src="../lib/angular/angular-mocks.js" ng-autotest></script>
<script src="scenarios.js"></script>
</head>
<body>
Expand Down
11 changes: 0 additions & 11 deletions test/e2e/seed-runner.html

This file was deleted.

45 changes: 0 additions & 45 deletions test/e2e/seed-scenarios.js

This file was deleted.

Loading