Permalink
Browse files

feature: StageDive support

  • Loading branch information...
MikeMitterer committed Jul 10, 2015
1 parent 9919521 commit d383a7d52b382f2689a197601f3e140d0eb0ef6d
Showing with 1,710 additions and 0 deletions.
  1. +2 −0 .stagedive/config.yaml
  2. +103 −0 docker/data/.bashrc
  3. 0 docker/data/.dockerignore
  4. +29 −0 docker/data/Dockerfile
  5. +103 −0 docker/server/.bashrc
  6. +28 −0 docker/server/Dockerfile
  7. +15 −0 lib/_templates/android/manifest.yaml
  8. +22 −0 lib/_templates/android/pubspec.yaml
  9. +6 −0 lib/_templates/android/web/README.md
  10. BIN lib/_templates/android/web/fonts/and_black.eot
  11. BIN lib/_templates/android/web/fonts/and_black.ttf
  12. BIN lib/_templates/android/web/fonts/and_black.woff
  13. BIN lib/_templates/android/web/images/android-logo-white.png
  14. BIN lib/_templates/android/web/images/android-logo.png
  15. BIN lib/_templates/android/web/images/andy.png
  16. BIN lib/_templates/android/web/images/auto-on.jpg
  17. BIN lib/_templates/android/web/images/devices.jpg
  18. BIN lib/_templates/android/web/images/more-from-1.png
  19. BIN lib/_templates/android/web/images/more-from-2.png
  20. BIN lib/_templates/android/web/images/more-from-3.png
  21. BIN lib/_templates/android/web/images/more-from-4.png
  22. BIN lib/_templates/android/web/images/nexus6-on.jpg
  23. BIN lib/_templates/android/web/images/nexus9-on.jpg
  24. BIN lib/_templates/android/web/images/slide01.jpg
  25. BIN lib/_templates/android/web/images/tv-on.jpg
  26. BIN lib/_templates/android/web/images/wear-black-on.png
  27. BIN lib/_templates/android/web/images/wear-silver-on.png
  28. BIN lib/_templates/android/web/images/wear.png
  29. +333 −0 lib/_templates/android/web/index.html
  30. +27 −0 lib/_templates/android/web/main.dart
  31. +537 −0 lib/_templates/android/web/styles.css
  32. +25 −0 lib/_templates/sample/.sitegen/html/_content/index.html
  33. +2 −0 lib/_templates/sample/.sitegen/site.yaml
  34. +33 −0 lib/_templates/sample/pubspec.yaml
  35. +31 −0 lib/_templates/sample/web/demo.css
  36. +25 −0 lib/_templates/sample/web/demo.scss
  37. +103 −0 lib/_templates/sample/web/index.html
  38. +103 −0 lib/_templates/sample/web/main.dart
  39. +94 −0 lib/_templates/sample/web/styles.css
  40. +89 −0 lib/src/template/components/MaterialModel.dart
View
@@ -0,0 +1,2 @@
templatefolder:
- lib/_templates
View
@@ -0,0 +1,103 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
No changes.
View
@@ -0,0 +1,29 @@
#------------------------------------------------------------------------------
#
# Build this file: docker build -t mikemitterer/mdl-data .
#
# Create .tgz:
# cd ../../build/example/ && tar czvf ../../docker/server/example.tgz * && cd -
#
# Run Volumne:
# docker create --name mdl-data mikemitterer/mdl-data /bin/true
#
# Test with bash:
# docker run -it mikemitterer/mdl-data bash
#------------------------------------------------------------------------------
FROM gliderlabs/alpine
MAINTAINER Mike Mitterer <office@mikemitterer.at>
RUN apk-install bash
RUN apk-install mc
RUN mkdir /data
VOLUME /data
COPY .bashrc /root/
ADD example.tgz /data/
CMD ["true"]
View
@@ -0,0 +1,103 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
View
@@ -0,0 +1,28 @@
#------------------------------------------------------------------------------
#
# Build this file: docker build -t mikemitterer/mdl-server .
#
# Run the server:
# docker run --name mdl-server -d mikemitterer/mdl-server
# docker run --name mdl-server -d -p 80:80 mikemitterer/mdl-server
#
# docker run --volumes-from mdl-data --name mdl-server -d -p 80:80 mikemitterer/mdl-server
#
# Test with bash:
# docker run -ti mikemitterer/mdl-server bash
# docker run --volumes-from mdl-data --name mdl-server -ti mikemitterer/mdl-server bash
#------------------------------------------------------------------------------
FROM nginx
MAINTAINER Mike Mitterer <office@mikemitterer.at>
RUN mv /usr/share/nginx/html /usr/share/nginx/html.off
RUN ln -s /data /usr/share/nginx/html
COPY .bashrc /root/
@@ -0,0 +1,15 @@
# templatename is not optional!
templatename: MDL Android Template
prompts:
package:
type: lowercasee
question: "Enter the package-name:"
email:
type: input
question: "Your email address:"
name:
type: input
question: "Your name:"
@@ -0,0 +1,22 @@
name: <%= package %>
version: 0.0.1
description: Material Design Lite 'Android Dot Com' Template
author: <<%= name %>> <<%= email %>>
#homepage: https://www.example.com
environment:
sdk: '>=1.0.0 <2.0.0'
dependencies:
browser: any
mdl: '>=1.0.0 <2.0.0'
logging: any
logging_handlers: any
console_log_handler: any
di: any
transformers:
- di
@@ -0,0 +1,6 @@
# android.com sample
##Why this sample
The goal of this sample is to illustrate implementing a real-world-looking site with **Material Design Lite**.
We therefore decided to do a cover of the front page of the android.com website, which while not a 1:1 match illustrates MDL usage well.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.

0 comments on commit d383a7d

Please sign in to comment.