Merge pull request #10 from taigaio/saas-layer-examples

Saas layer examples.
stable
David Barragán Merino 2014-09-04 16:21:16 +02:00
commit 645fb588f1
4 changed files with 46 additions and 2 deletions

View File

@ -0,0 +1,31 @@
###
# Copyright (C) 2014 Andrey Antukh <niwi@niwi.be>
# Copyright (C) 2014 Jesús Espino Garcia <jespinog@gmail.com>
# Copyright (C) 2014 David Barragán Merino <bameda@dbarragan.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# File: plugins/humanshtml/humanshtml.coffee
###
# Simple plugin example that extends the urlmappings
# and add additional template.
taiga = @.taiga
module = angular.module("taigaPlugins")
configure = ($routeProvider) ->
$routeProvider.when("/humans.html", {"templateUrl": "/plugins/humanshtml/templates/humans.html"})
module.config(["$routeProvider", configure])

View File

@ -0,0 +1,10 @@
<h2>Team</h2>
<ul>
<li>Andrey Antukh «niwi@niwi.be»</li>
<li>Jesus Espino Garcia «jespinog@gmail.com»</li>
<li>David Barragán Merino «bameda@dbarragan.com»</li>
<li>Xavi Julian «xavier.julian@kaleidos.net»</li>
<li>Alejandro Alonso «alejandro.alonso@kaleidos.net»</li>
</ul>

View File

@ -19,4 +19,4 @@
# File: pluggins/main.coffee
###
module = angular.module("taigaPlugins", [])
module = angular.module("taigaPlugins", ["ngRoute"])

View File

@ -170,7 +170,6 @@ gulp.task "jslibs", ->
.pipe(concat("libs.js"))
.pipe(gulp.dest("dist/js/"))
gulp.task "locales", ->
gulp.src("app/locales/en/app.json")
.pipe(wrap("angular.module('taigaLocales').constant('localesEnglish', <%= contents %>);"))
@ -195,6 +194,9 @@ gulp.task "copy", ->
gulp.src("#{paths.app}/images/**/*")
.pipe(gulp.dest("#{paths.dist}/images/"))
gulp.src("#{paths.app}/plugins/**/templates/*")
.pipe(gulp.dest("#{paths.dist}/plugins/"))
gulp.task "connect", ->
connect.server({
@ -213,6 +215,7 @@ gulp.task "express", ->
app.use("/images", express.static("#{__dirname}/dist/images"))
app.use("/partials", express.static("#{__dirname}/dist/partials"))
app.use("/fonts", express.static("#{__dirname}/dist/fonts"))
app.use("/plugins", express.static("#{__dirname}/dist/plugins"))
app.all "/*", (req, res, next) ->
# Just send the index.html for other files to support HTML5Mode