Permalink
Browse files

Initial commit

Generated application using yeoman flask generator
https://github.com/romainberger/yeoman-flask
  • Loading branch information...
jvdzwaan committed Mar 27, 2015
0 parents commit 307fd70dac3158c3bf59bee3b2586b9e1411f9a1
Showing with 8,240 additions and 0 deletions.
  1. +1 −0 .gitattributes
  2. +4 −0 .gitignore
  3. +194 −0 Gruntfile.js
  4. +7 −0 freeze.py
  5. +15 −0 recipyGui/__init__.py
  6. +66 −0 recipyGui/static/css/_compass_twitter_bootstrap.scss
  7. +66 −0 recipyGui/static/css/_compass_twitter_bootstrap_awesome.scss
  8. +48 −0 recipyGui/static/css/_compass_twitter_bootstrap_responsive.scss
  9. +34 −0 recipyGui/static/css/compass_twitter_bootstrap/_accordion.scss
  10. +61 −0 recipyGui/static/css/compass_twitter_bootstrap/_alerts.scss
  11. +24 −0 recipyGui/static/css/compass_twitter_bootstrap/_breadcrumbs.scss
  12. +240 −0 recipyGui/static/css/compass_twitter_bootstrap/_button-groups.scss
  13. +210 −0 recipyGui/static/css/compass_twitter_bootstrap/_buttons.scss
  14. +131 −0 recipyGui/static/css/compass_twitter_bootstrap/_carousel.scss
  15. +31 −0 recipyGui/static/css/compass_twitter_bootstrap/_close.scss
  16. +58 −0 recipyGui/static/css/compass_twitter_bootstrap/_code.scss
  17. +23 −0 recipyGui/static/css/compass_twitter_bootstrap/_component-animations.scss
  18. +210 −0 recipyGui/static/css/compass_twitter_bootstrap/_dropdowns.scss
  19. +267 −0 recipyGui/static/css/compass_twitter_bootstrap/_font-awesome.scss
  20. +635 −0 recipyGui/static/css/compass_twitter_bootstrap/_forms.scss
  21. +21 −0 recipyGui/static/css/compass_twitter_bootstrap/_grid.scss
  22. +24 −0 recipyGui/static/css/compass_twitter_bootstrap/_hero-unit.scss
  23. +69 −0 recipyGui/static/css/compass_twitter_bootstrap/_labels-badges.scss
  24. +16 −0 recipyGui/static/css/compass_twitter_bootstrap/_layouts.scss
  25. +656 −0 recipyGui/static/css/compass_twitter_bootstrap/_mixins.scss
  26. +97 −0 recipyGui/static/css/compass_twitter_bootstrap/_modals.scss
  27. +466 −0 recipyGui/static/css/compass_twitter_bootstrap/_navbar.scss
  28. +384 −0 recipyGui/static/css/compass_twitter_bootstrap/_navs.scss
  29. +37 −0 recipyGui/static/css/compass_twitter_bootstrap/_pager.scss
  30. +64 −0 recipyGui/static/css/compass_twitter_bootstrap/_pagination.scss
  31. +117 −0 recipyGui/static/css/compass_twitter_bootstrap/_popovers.scss
  32. +122 −0 recipyGui/static/css/compass_twitter_bootstrap/_progress-bars.scss
  33. +132 −0 recipyGui/static/css/compass_twitter_bootstrap/_reset.scss
  34. +28 −0 recipyGui/static/css/compass_twitter_bootstrap/_responsive-1200px-min.scss
  35. +167 −0 recipyGui/static/css/compass_twitter_bootstrap/_responsive-767px-max.scss
  36. +19 −0 recipyGui/static/css/compass_twitter_bootstrap/_responsive-768px-979px.scss
  37. +166 −0 recipyGui/static/css/compass_twitter_bootstrap/_responsive-navbar.scss
  38. +43 −0 recipyGui/static/css/compass_twitter_bootstrap/_responsive-utilities.scss
  39. +48 −0 recipyGui/static/css/compass_twitter_bootstrap/_responsive.scss
  40. +51 −0 recipyGui/static/css/compass_twitter_bootstrap/_scaffolding.scss
  41. +187 −0 recipyGui/static/css/compass_twitter_bootstrap/_sprites.scss
  42. +202 −0 recipyGui/static/css/compass_twitter_bootstrap/_tables.scss
  43. +52 −0 recipyGui/static/css/compass_twitter_bootstrap/_thumbnails.scss
  44. +70 −0 recipyGui/static/css/compass_twitter_bootstrap/_tooltip.scss
  45. +206 −0 recipyGui/static/css/compass_twitter_bootstrap/_type.scss
  46. +45 −0 recipyGui/static/css/compass_twitter_bootstrap/_utilities.scss
  47. +276 −0 recipyGui/static/css/compass_twitter_bootstrap/_variables.scss
  48. +29 −0 recipyGui/static/css/compass_twitter_bootstrap/_wells.scss
  49. +1 −0 recipyGui/static/css/main.scss
  50. BIN recipyGui/static/img/glyphicons-halflings-white.png
  51. BIN recipyGui/static/img/glyphicons-halflings.png
  52. +104 −0 recipyGui/static/js/vendors/bootstrap/bootstrap-affix.js
  53. +90 −0 recipyGui/static/js/vendors/bootstrap/bootstrap-alert.js
  54. +96 −0 recipyGui/static/js/vendors/bootstrap/bootstrap-button.js
  55. +176 −0 recipyGui/static/js/vendors/bootstrap/bootstrap-carousel.js
  56. +158 −0 recipyGui/static/js/vendors/bootstrap/bootstrap-collapse.js
  57. +150 −0 recipyGui/static/js/vendors/bootstrap/bootstrap-dropdown.js
  58. +239 −0 recipyGui/static/js/vendors/bootstrap/bootstrap-modal.js
  59. +103 −0 recipyGui/static/js/vendors/bootstrap/bootstrap-popover.js
  60. +151 −0 recipyGui/static/js/vendors/bootstrap/bootstrap-scrollspy.js
  61. +135 −0 recipyGui/static/js/vendors/bootstrap/bootstrap-tab.js
  62. +275 −0 recipyGui/static/js/vendors/bootstrap/bootstrap-tooltip.js
  63. +60 −0 recipyGui/static/js/vendors/bootstrap/bootstrap-transition.js
  64. +300 −0 recipyGui/static/js/vendors/bootstrap/bootstrap-typeahead.js
  65. +2 −0 recipyGui/static/js/vendors/jquery-1.8.3.min.js
  66. +52 −0 recipyGui/templates/base.html
  67. +18 −0 recipyGui/templates/index.html
  68. +6 −0 recipyGui/views.py
  69. +1 −0 requirements.txt
  70. +4 −0 server.py
@@ -0,0 +1 @@
* text=auto
@@ -0,0 +1,4 @@
.DS_Store
*~
*.pyc
.sass-cache
@@ -0,0 +1,194 @@
module.exports = function( grunt ) {
'use strict';
//
// Grunt configuration:
//
// https://github.com/cowboy/grunt/blob/master/docs/getting_started.md
//
grunt.initConfig({
// Project configuration
// ---------------------
// specify an alternate install location for Bower
bower: {
dir: 'recipyGui/components'
},
// Coffee to JS compilation
coffee: {
compile: {
files: {
'temp/js/*.js': 'recipyGui/static/js/*.coffee'
},
options: {
basePath: 'recipyGui/static/js'
}
}
},
// compile .scss/.sass to .css using Compass
compass: {
dist: {
// http://compass-style.org/help/tutorials/configuration-reference/#configuration-properties
options: {
css_dir: 'recipyGui/static/css',
sass_dir: 'recipyGui/static/css',
images_dir: 'recipyGui/static/img',
javascripts_dir: 'recipyGui/static/js',
force: true
}
}
},
// generate application cache manifest
manifest:{
dest: ''
},
// headless testing through PhantomJS
mocha: {
all: ['test/**/*.html']
},
// default watch configuration
watch: {
coffee: {
files: 'recipyGui/static/js/*.coffee',
tasks: 'coffee reload'
},
compass: {
files: [
'recipyGui/static/css/*.{scss,sass}'
],
tasks: 'compass reload'
},
reload: {
files: [
'recipyGui/templates/*.html',
'recipyGui/static/css/**/*.css',
'recipyGui/static/js/**/*.js',
'recipyGui/static/img/**/*'
],
tasks: 'reload'
}
},
// default lint configuration, change this to match your setup:
// https://github.com/cowboy/grunt/blob/master/docs/task_lint.md#lint-built-in-task
lint: {
files: [
'Gruntfile.js',
'recipyGui/static/js/**/*.js',
'spec/**/*.js'
]
},
// specifying JSHint options and globals
// https://github.com/cowboy/grunt/blob/master/docs/task_lint.md#specifying-jshint-options-and-globals
jshint: {
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
boss: true,
eqnull: true,
browser: true
},
globals: {
jQuery: true
}
},
// Build configuration
// -------------------
// the staging directory used during the process
staging: 'temp',
// final build output
output: 'dist',
mkdirs: {
staging: 'recipyGui/'
},
// Below, all paths are relative to the staging directory, which is a copy
// of the recipyGui/ directory. Any .gitignore, .ignore and .buildignore file
// that might appear in the recipyGui/ tree are used to ignore these values
// during the copy process.
// concat css/**/*.css files, inline @import, output a single minified css
css: {
'css/main.css': ['css/**/*.css']
},
// renames JS/CSS to prepend a hash of their contents for easier
// versioning
rev: {
js: 'js/**/*.js',
css: 'css/**/*.css',
img: 'img/**'
},
// usemin handler should point to the file containing
// the usemin blocks to be parsed
'usemin-handler': {
html: 'index.html'
},
// update references in HTML/CSS to revved files
usemin: {
html: ['**/*.html'],
css: ['**/*.css']
},
// HTML minification
html: {
files: ['**/*.html']
},
// Optimizes JPGs and PNGs (with jpegtran & optipng)
img: {
dist: '<config:rev.img>'
},
// rjs configuration. You don't necessarily need to specify the typical
// `path` configuration, the rjs task will parse these values from your
// main module, using http://requirejs.org/docs/optimization.html#mainConfigFile
//
// name / out / mainConfig file should be used. You can let it blank if
// you're using usemin-handler to parse rjs config from markup (default
// setup)
rjs: {
mainFile: '../recipyGui/templates/base.html',
// no minification, is done by the min task
optimize: 'none',
baseUrl: '../recipyGui/static/js',
wrap: true,
name: 'main',
out: '../recipy gui/static/js/script.js'
},
// While Yeoman handles concat/min when using
// usemin blocks, you can still use them manually
concat: {
dist: ''
},
min: {
dist: ''
}
});
// Alias the `test` task to run the `mocha` task instead
grunt.registerTask('test', 'server:phantom mocha');
// Load the build task
grunt.loadNpmTasks('yeoman-flask');
};
@@ -0,0 +1,7 @@
from flask_frozen import Freezer
from recipyGui import recipyGui
freezer = Freezer(recipyGui)
if __name__ == '__main__':
freezer.freeze()
@@ -0,0 +1,15 @@
from flask import Flask, url_for
import os
recipyGui = Flask(__name__)
# Determines the destination of the build. Only usefull if you're using Frozen-Flask
recipyGui.config['FREEZER_DESTINATION'] = os.path.dirname(os.path.abspath(__file__))+'/../build'
# Function to easily find your assets
# In your template use <link rel=stylesheet href="{{ static('filename') }}">
recipyGui.jinja_env.globals['static'] = (
lambda filename: url_for('static', filename = filename)
)
from recipyGui import views
@@ -0,0 +1,66 @@
/*!
* Bootstrap v2.1.0
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/
@import "compass";
@import "compass_twitter_bootstrap/mixins";
// CSS Reset
@import "compass_twitter_bootstrap/reset";
// Core variables and mixins
@import "compass_twitter_bootstrap/variables"; // Modify this for custom colors, font-sizes, etc
// Grid system and page structure
@import "compass_twitter_bootstrap/scaffolding";
@import "compass_twitter_bootstrap/grid";
@import "compass_twitter_bootstrap/layouts";
// Base CSS
@import "compass_twitter_bootstrap/type";
@import "compass_twitter_bootstrap/code";
@import "compass_twitter_bootstrap/forms";
@import "compass_twitter_bootstrap/tables";
// Components: common
@import "compass_twitter_bootstrap/sprites";
@import "compass_twitter_bootstrap/dropdowns";
@import "compass_twitter_bootstrap/wells";
@import "compass_twitter_bootstrap/component-animations";
@import "compass_twitter_bootstrap/close";
// Components: Buttons & Alerts
@import "compass_twitter_bootstrap/buttons";
@import "compass_twitter_bootstrap/button-groups";
@import "compass_twitter_bootstrap/alerts"; // Note: alerts share common CSS with buttons and thus have styles in buttons.less
// Components: Nav
@import "compass_twitter_bootstrap/navs";
@import "compass_twitter_bootstrap/navbar";
@import "compass_twitter_bootstrap/breadcrumbs";
@import "compass_twitter_bootstrap/pagination";
@import "compass_twitter_bootstrap/pager";
// Components: Popovers
@import "compass_twitter_bootstrap/modals";
@import "compass_twitter_bootstrap/tooltip";
@import "compass_twitter_bootstrap/popovers";
// Components: Misc
@import "compass_twitter_bootstrap/thumbnails";
@import "compass_twitter_bootstrap/labels-badges";
@import "compass_twitter_bootstrap/progress-bars";
@import "compass_twitter_bootstrap/accordion";
@import "compass_twitter_bootstrap/carousel";
@import "compass_twitter_bootstrap/hero-unit";
// Utility classes
@import "compass_twitter_bootstrap/utilities"; // Has to be last to override when necessary
@@ -0,0 +1,66 @@
/*
* Bootstrap v2.1.0
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/
@import "compass";
@import "compass_twitter_bootstrap/mixins";
// CSS Reset
@import "compass_twitter_bootstrap/reset";
// Core variables and mixins
@import "compass_twitter_bootstrap/variables"; // Modify this for custom colors, font-sizes, etc
// Grid system and page structure
@import "compass_twitter_bootstrap/scaffolding";
@import "compass_twitter_bootstrap/grid";
@import "compass_twitter_bootstrap/layouts";
// Base CSS
@import "compass_twitter_bootstrap/type";
@import "compass_twitter_bootstrap/code";
@import "compass_twitter_bootstrap/forms";
@import "compass_twitter_bootstrap/tables";
// Components: common
@import "compass_twitter_bootstrap/font-awesome";
@import "compass_twitter_bootstrap/dropdowns";
@import "compass_twitter_bootstrap/wells";
@import "compass_twitter_bootstrap/component-animations";
@import "compass_twitter_bootstrap/close";
// Components: Buttons & Alerts
@import "compass_twitter_bootstrap/buttons";
@import "compass_twitter_bootstrap/button-groups";
@import "compass_twitter_bootstrap/alerts"; // Note: alerts share common CSS with buttons and thus have styles in buttons.less
// Components: Nav
@import "compass_twitter_bootstrap/navs";
@import "compass_twitter_bootstrap/navbar";
@import "compass_twitter_bootstrap/breadcrumbs";
@import "compass_twitter_bootstrap/pagination";
@import "compass_twitter_bootstrap/pager";
// Components: Popovers
@import "compass_twitter_bootstrap/modals";
@import "compass_twitter_bootstrap/tooltip";
@import "compass_twitter_bootstrap/popovers";
// Components: Misc
@import "compass_twitter_bootstrap/thumbnails";
@import "compass_twitter_bootstrap/labels-badges";
@import "compass_twitter_bootstrap/progress-bars";
@import "compass_twitter_bootstrap/accordion";
@import "compass_twitter_bootstrap/carousel";
@import "compass_twitter_bootstrap/hero-unit";
// Utility classes
@import "compass_twitter_bootstrap/utilities"; // Has to be last to override when necessary
Oops, something went wrong.

0 comments on commit 307fd70

Please sign in to comment.