Skip to content

Commit

Permalink
init md web UI base
Browse files Browse the repository at this point in the history
  • Loading branch information
shanzi committed Apr 12, 2015
1 parent 0f01dc0 commit e5053d3
Show file tree
Hide file tree
Showing 13 changed files with 149 additions and 0 deletions.
3 changes: 3 additions & 0 deletions www/md_base/.gitignore
@@ -0,0 +1,3 @@
static
libs
node_modules
5 changes: 5 additions & 0 deletions www/md_base/.yo-rc.json
@@ -0,0 +1,5 @@
{
"generator-guanlecoja": {
"coffee": true
}
}
4 changes: 4 additions & 0 deletions www/md_base/README.md
@@ -0,0 +1,4 @@
md_base
==============

This is a cool app using guanlecoja
Empty file.
47 changes: 47 additions & 0 deletions www/md_base/guanlecoja/config.coffee
@@ -0,0 +1,47 @@
### ###############################################################################################
#
# This module contains all configuration for the build process
#
### ###############################################################################################
ANGULAR_TAG = "~1.3.15"
ANGULAR_MATERIAL_TAG = "~0.8.3"
module.exports =

### ###########################################################################################
# Directories
### ###########################################################################################
dir:
# The build folder is where the app resides once it's completely built
build: 'buildbot_www/static'



### ###########################################################################################
# This is a collection of file patterns
### ###########################################################################################

### ###########################################################################################
# This is a collection of file patterns
### ###########################################################################################
bower:
# JavaScript libraries (order matters)
deps:
moment:
version: "~2.6.0"
files: 'moment.js'
angular:
version: ANGULAR_TAG
files: 'angular.js'
"angular-animate":
version: ANGULAR_TAG
files: 'angular-animate.js'
"angular-aria":
version: ANGULAR_TAG
files: 'angular-aria.js'
"angular-material":
version: ANGULAR_MATERIAL_TAG
files: 'angular-material.js'
testdeps:
"angular-mocks":
version: "~1.3.15"
files: "angular-mocks.js"
1 change: 1 addition & 0 deletions www/md_base/gulpfile.js
@@ -0,0 +1 @@
require("guanlecoja")(require("gulp"))
9 changes: 9 additions & 0 deletions www/md_base/package.json
@@ -0,0 +1,9 @@
{
"version" : "0.1.0",
"devDependencies" : {
"guanlecoja" : "latest"
},
"name" : "md-base",
"dependencies" : {},
"description" : "md_base"
}
48 changes: 48 additions & 0 deletions www/md_base/setup.py
@@ -0,0 +1,48 @@
#!/usr/bin/env python
#
# This file is part of Buildbot. Buildbot is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, version 2.
#
# 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 General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 51
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

try:
from buildbot_pkg import setup_www_plugin
import mock
import buildbot
except ImportError:
import sys
print >> sys.stderr, "Please install buildbot, buildbot_pkg, and mock modules in order to install that package, or use the pre-build .whl modules available on pypi"
sys.exit(1)

setup_www_plugin(
name='buildbot-www',
description='Buildbot UI',
author=u'Pierre Tardy',
author_email=u'tardyp@gmail.com',
setup_requires=['buildbot', 'buildbot_pkg', 'mock'],
url='http://buildbot.net/',
license='GNU GPL',
packages=['buildbot_www'],
package_data={
'': [
'VERSION',
'static/*',
'static/img/*',
'static/fonts/*',
]
},
entry_points="""
[buildbot.www]
base = buildbot_www:ep
"""
)
5 changes: 5 additions & 0 deletions www/md_base/src/app/app.module.coffee
@@ -0,0 +1,5 @@
angular.module 'app', [
]

angular.module('app').config [
]
5 changes: 5 additions & 0 deletions www/md_base/src/app/app.spec.coffee
@@ -0,0 +1,5 @@
describe 'app', ->
beforeEach module 'app'

it 'should load app without error', ->
null
3 changes: 3 additions & 0 deletions www/md_base/src/app/index.jade
@@ -0,0 +1,3 @@
extends layout
block content
ui-view
14 changes: 14 additions & 0 deletions www/md_base/src/app/layout.jade
@@ -0,0 +1,14 @@
doctype html
html.no-js(xmlns:ng='http://angularjs.org', xmlns:app='ignored')
head
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible', content='IE=edge,chrome=1')
title md_base
meta(name='viewport', content='initial-scale=1, minimum-scale=1, user-scalable=no, maximum-scale=1, width=device-width')
link(rel='stylesheet', href='styles.css')

body(ng-cloak, ng-app="app")
block content
block footer

script(src="scripts.js?_#{(new Date()).getTime()}")
5 changes: 5 additions & 0 deletions www/md_base/src/styles/styles.less
@@ -0,0 +1,5 @@
// Import bootstrap and font awesome stylesheets
/* base css for angular, dont display anything until angular is running */
[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
display: none !important;
}

0 comments on commit e5053d3

Please sign in to comment.