astrochimp 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +3 -0
  3. data/Rakefile +39 -0
  4. data/app/assets/images/astrochimp/bg-noise.png +0 -0
  5. data/app/assets/javascripts/astrochimp/application.js +9 -0
  6. data/app/assets/javascripts/astrochimp/dashboard.js +2 -0
  7. data/app/assets/stylesheets/astrochimp/application.css +7 -0
  8. data/app/assets/stylesheets/astrochimp/dashboard.css.sass +115 -0
  9. data/app/assets/stylesheets/astrochimp/reset.css.sass +151 -0
  10. data/app/controllers/astrochimp/application_controller.rb +4 -0
  11. data/app/controllers/astrochimp/dashboard_controller.rb +6 -0
  12. data/app/helpers/astrochimp/application_helper.rb +4 -0
  13. data/app/helpers/astrochimp/dashboard_helper.rb +4 -0
  14. data/app/views/astrochimp/dashboard/index.html.erb +23 -0
  15. data/app/views/layouts/astrochimp/application.html.erb +53 -0
  16. data/config/routes.rb +8 -0
  17. data/lib/astrochimp.rb +4 -0
  18. data/lib/astrochimp/engine.rb +5 -0
  19. data/lib/astrochimp/version.rb +3 -0
  20. data/lib/tasks/astrochimp_tasks.rake +4 -0
  21. data/test/astrochimp_test.rb +7 -0
  22. data/test/dummy/Rakefile +7 -0
  23. data/test/dummy/app/assets/javascripts/application.js +9 -0
  24. data/test/dummy/app/assets/stylesheets/application.css +7 -0
  25. data/test/dummy/app/controllers/application_controller.rb +3 -0
  26. data/test/dummy/app/helpers/application_helper.rb +2 -0
  27. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  28. data/test/dummy/config.ru +4 -0
  29. data/test/dummy/config/application.rb +42 -0
  30. data/test/dummy/config/boot.rb +10 -0
  31. data/test/dummy/config/database.yml +25 -0
  32. data/test/dummy/config/environment.rb +5 -0
  33. data/test/dummy/config/environments/development.rb +27 -0
  34. data/test/dummy/config/environments/production.rb +51 -0
  35. data/test/dummy/config/environments/test.rb +39 -0
  36. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  37. data/test/dummy/config/initializers/inflections.rb +10 -0
  38. data/test/dummy/config/initializers/mime_types.rb +5 -0
  39. data/test/dummy/config/initializers/secret_token.rb +7 -0
  40. data/test/dummy/config/initializers/session_store.rb +8 -0
  41. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  42. data/test/dummy/config/locales/en.yml +5 -0
  43. data/test/dummy/config/routes.rb +4 -0
  44. data/test/dummy/db/development.sqlite3 +0 -0
  45. data/test/dummy/log/development.log +785 -0
  46. data/test/dummy/log/test.log +0 -0
  47. data/test/dummy/public/404.html +26 -0
  48. data/test/dummy/public/422.html +26 -0
  49. data/test/dummy/public/500.html +26 -0
  50. data/test/dummy/public/favicon.ico +0 -0
  51. data/test/dummy/script/rails +6 -0
  52. data/test/dummy/tmp/cache/assets/CCC/B30/sprockets%2F9e0547875983624fecd47c38f443d5d5 +0 -0
  53. data/test/dummy/tmp/cache/assets/CDF/260/sprockets%2Fb437014d51952f4ed168dfa5eb506835 +0 -0
  54. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  55. data/test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +10 -0
  56. data/test/dummy/tmp/cache/assets/D69/F30/sprockets%2F09f88f56ab157162d1e807c2d3ebcb2a +0 -0
  57. data/test/dummy/tmp/cache/assets/D7A/130/sprockets%2Fba2928fecee85859a262dbf147f436a4 +0 -0
  58. data/test/dummy/tmp/cache/assets/D82/E10/sprockets%2F954cbb70b65145f917df4749ee4fcb7f +14 -0
  59. data/test/dummy/tmp/cache/assets/DA1/DC0/sprockets%2F342dfdb79e3d2fe720bd5da829049c6a +0 -0
  60. data/test/dummy/tmp/cache/assets/DBF/880/sprockets%2F1f847fc47d1bbdc315e0ae1ec196a02e +262 -0
  61. data/test/dummy/tmp/cache/assets/E31/100/sprockets%2Fbb6c7450fa3629bb1fe9efaf6a5ec76a +15 -0
  62. data/test/functional/astrochimp/dashboard_controller_test.rb +9 -0
  63. data/test/integration/navigation_test.rb +10 -0
  64. data/test/test_helper.rb +10 -0
  65. data/test/unit/helpers/astrochimp/dashboard_helper_test.rb +6 -0
  66. metadata +229 -0
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2011 YOURNAME
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,3 @@
1
+ = Astrochimp
2
+
3
+ This project rocks and uses MIT-LICENSE.
data/Rakefile ADDED
@@ -0,0 +1,39 @@
1
+ #!/usr/bin/env rake
2
+ begin
3
+ require 'bundler/setup'
4
+ rescue LoadError
5
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ end
7
+ begin
8
+ require 'rdoc/task'
9
+ rescue LoadError
10
+ require 'rdoc/rdoc'
11
+ require 'rake/rdoctask'
12
+ RDoc::Task = Rake::RDocTask
13
+ end
14
+
15
+ RDoc::Task.new(:rdoc) do |rdoc|
16
+ rdoc.rdoc_dir = 'rdoc'
17
+ rdoc.title = 'Astrochimp'
18
+ rdoc.options << '--line-numbers'
19
+ rdoc.rdoc_files.include('README.rdoc')
20
+ rdoc.rdoc_files.include('lib/**/*.rb')
21
+ end
22
+
23
+ APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
24
+ load 'rails/tasks/engine.rake'
25
+
26
+
27
+ Bundler::GemHelper.install_tasks
28
+
29
+ require 'rake/testtask'
30
+
31
+ Rake::TestTask.new(:test) do |t|
32
+ t.libs << 'lib'
33
+ t.libs << 'test'
34
+ t.pattern = 'test/**/*_test.rb'
35
+ t.verbose = false
36
+ end
37
+
38
+
39
+ task :default => :test
@@ -0,0 +1,9 @@
1
+ // This is a manifest file that'll be compiled into including all the files listed below.
2
+ // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
3
+ // be included in the compiled file accessible from http://example.com/assets/application.js
4
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
5
+ // the compiled file.
6
+ //
7
+ //= require jquery
8
+ //= require jquery_ujs
9
+ //= require_tree .
@@ -0,0 +1,2 @@
1
+ // Place all the behaviors and hooks related to the matching controller here.
2
+ // All this logic will automatically be available in application.js.
@@ -0,0 +1,7 @@
1
+ /*
2
+ * This is a manifest file that'll automatically include all the stylesheets available in this directory
3
+ * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4
+ * the top of the compiled file, but it's generally better to create a new file per style scope.
5
+ *= require_self
6
+ *= require_tree .
7
+ */
@@ -0,0 +1,115 @@
1
+ html, body
2
+ background: #e9e8e5 url(/assets/astrochimp/bg-noise.png)
3
+ height: 100%
4
+ min-height: 100%
5
+ font-family: "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif
6
+ font-size: 15px
7
+ font-weight: 300
8
+ line-height: 1.3em
9
+ color: #444444
10
+
11
+ a
12
+ text-decoration: none
13
+
14
+ h1, h2, h3, h4, h5
15
+ font-weight: normal
16
+ clear: both
17
+ line-height: 1.5em
18
+ font-weight: 300
19
+
20
+ h1
21
+ font-size: 26px
22
+
23
+ h2
24
+ font-size: 18px
25
+
26
+ h3
27
+ font-size: 16px
28
+
29
+ h4
30
+ font-size: 16px
31
+
32
+ h5
33
+ font-size: 16px
34
+
35
+
36
+ header
37
+ position: absolute
38
+ top: 0
39
+ bottom: 0
40
+ left: 0
41
+ width: 250px
42
+ background: #4b4946 url(/assets/astrochimp/bg-noise.png)
43
+ border-right: 5px solid #f1be13
44
+ box-shadow: 1px 0 #fff
45
+ color: #fff
46
+
47
+ a
48
+ color: #fff
49
+
50
+ .logo-astrochimp
51
+ margin: 50px auto 0
52
+ text-align: center
53
+
54
+ .nav-main
55
+ border-top: 1px solid #403e3b
56
+ box-shadow: 0 1px #595753 inset
57
+ margin: 50px 10px
58
+
59
+ a
60
+ display: block
61
+ padding: 10px 10px 10px 50px
62
+ border-bottom: 1px solid #403e3b
63
+ box-shadow: 0 1px #595753
64
+
65
+ .unsent-count
66
+ float: right
67
+ margin: 8px 10px
68
+ padding: 2px 10px
69
+ background: #ea805c
70
+ border-radius: 10px
71
+ -moz-border-radius: 10px
72
+
73
+ .nav-account
74
+ color: #888888
75
+ overflow: hidden
76
+ border-bottom: #c8c6c1
77
+ box-shadow: 0 1px #fff
78
+ -moz-box-shadow: 0 1px #fff
79
+
80
+ .link-account
81
+ float: left
82
+
83
+ ul
84
+ float: right
85
+
86
+ .content
87
+ padding: 10px 20px 20px 280px
88
+
89
+ h1, h2, h3, h4, h5
90
+ text-transform: uppercase
91
+
92
+ section
93
+ background: #fff
94
+ box-shadow: 0 2px 4px rgba(0,0,0,0.5)
95
+ overflow: hidden
96
+ margin-bottom: 50px
97
+
98
+ .flash
99
+ padding: 10px
100
+ background: #fff4cb
101
+ box-shadow: 0 1px 1px rgba(0,0,0,0.25), 0 1px #fff inset
102
+ border-radius: 5px
103
+ -moz-border-radius: 5px
104
+ margin-bottom: 20px
105
+ font-style: italic
106
+ font-size: 18px
107
+ color: #9b7437
108
+
109
+ .chart
110
+ padding: 20px
111
+ float: left
112
+
113
+ .legend
114
+ float: right
115
+ color: #999
@@ -0,0 +1,151 @@
1
+ // reset-revised.sass
2
+ // Generated 04/07/2008
3
+ // yong joseph bakos
4
+ // This is a sassified version of Eric Meyer's latest reset.css
5
+ // http://meyerweb.com/eric/thoughts/2008/01/15/resetting-again/
6
+ //
7
+ html
8
+ :margin 0
9
+ :padding 0
10
+ :border 0
11
+ :outline 0
12
+ :font-size 100%
13
+ :vertical-align baseline
14
+ :background transparent
15
+
16
+ body
17
+ :margin 0
18
+ :padding 0
19
+ :border 0
20
+ :outline 0
21
+ :font-size 100%
22
+ :vertical-align baseline
23
+ :background transparent
24
+ :line-height 1
25
+
26
+ div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p
27
+ :margin 0
28
+ :padding 0
29
+ :border 0
30
+ :outline 0
31
+ :font-size 100%
32
+ :vertical-align baseline
33
+ :background transparent
34
+
35
+ blockquote
36
+ :margin 0
37
+ :padding 0
38
+ :border 0
39
+ :outline 0
40
+ :font-size 100%
41
+ :vertical-align baseline
42
+ :background transparent
43
+ :quotes none
44
+
45
+ pre, a, abbr, acronym, address, big, cite, code
46
+ :margin 0
47
+ :padding 0
48
+ :border 0
49
+ :outline 0
50
+ :font-size 100%
51
+ :vertical-align baseline
52
+ :background transparent
53
+
54
+ del
55
+ :margin 0
56
+ :padding 0
57
+ :border 0
58
+ :outline 0
59
+ :font-size 100%
60
+ :vertical-align baseline
61
+ :background transparent
62
+ :text-decoration line-through
63
+
64
+ dfn, em, font, img
65
+ :margin 0
66
+ :padding 0
67
+ :border 0
68
+ :outline 0
69
+ :font-size 100%
70
+ :vertical-align baseline
71
+ :background transparent
72
+
73
+ ins
74
+ :margin 0
75
+ :padding 0
76
+ :border 0
77
+ :outline 0
78
+ :font-size 100%
79
+ :vertical-align baseline
80
+ :background transparent
81
+ :text-decoration none
82
+
83
+ kbd
84
+ :margin 0
85
+ :padding 0
86
+ :border 0
87
+ :outline 0
88
+ :font-size 100%
89
+ :vertical-align baseline
90
+ :background transparent
91
+
92
+ q
93
+ :margin 0
94
+ :padding 0
95
+ :border 0
96
+ :outline 0
97
+ :font-size 100%
98
+ :vertical-align baseline
99
+ :background transparent
100
+ :quotes none
101
+
102
+ s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd
103
+ :margin 0
104
+ :padding 0
105
+ :border 0
106
+ :outline 0
107
+ :font-size 100%
108
+ :vertical-align baseline
109
+ :background transparent
110
+
111
+ ol, ul
112
+ :margin 0
113
+ :padding 0
114
+ :border 0
115
+ :outline 0
116
+ :font-size 100%
117
+ :vertical-align baseline
118
+ :background transparent
119
+ :list-style none
120
+
121
+ li, fieldset, form, label, legend
122
+ :margin 0
123
+ :padding 0
124
+ :border 0
125
+ :outline 0
126
+ :font-size 100%
127
+ :vertical-align baseline
128
+ :background transparent
129
+
130
+ table
131
+ :margin 0
132
+ :padding 0
133
+ :border 0
134
+ :outline 0
135
+ :font-size 100%
136
+ :vertical-align baseline
137
+ :background transparent
138
+ :border-collapse collapse
139
+ :border-spacing 0
140
+
141
+ caption, tbody, tfoot, thead, tr, th, td
142
+ :margin 0
143
+ :padding 0
144
+ :border 0
145
+ :outline 0
146
+ :font-size 100%
147
+ :vertical-align baseline
148
+ :background transparent
149
+
150
+ *:focus
151
+ :outline 0
@@ -0,0 +1,4 @@
1
+ module Astrochimp
2
+ class ApplicationController < ActionController::Base
3
+ end
4
+ end
@@ -0,0 +1,6 @@
1
+ module Astrochimp
2
+ class DashboardController < ApplicationController
3
+ def index
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,4 @@
1
+ module Astrochimp
2
+ module ApplicationHelper
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module Astrochimp
2
+ module DashboardHelper
3
+ end
4
+ end
@@ -0,0 +1,23 @@
1
+ <div class="flash">This is an error message. Please fix whatever it is I am complaining about.</div>
2
+
3
+ <h2>Signups per day</h2>
4
+ <section>
5
+ <div class="chart">
6
+ Chart
7
+ </div>
8
+ <ul class="legend">
9
+ <li style="color:#ec7850;"><span class="legend-number">58</span> Signups today</li>
10
+ <li style="color:#83b7c5;"><span class="legend-number">210</span> Visitors today</li>
11
+ <li><span class="legend-number">27%</span> Signup conversion</li>
12
+ </ul>
13
+ </section>
14
+
15
+ <h2>Queue vs Sent</h2>
16
+ <section>
17
+ Meter
18
+ </section>
19
+
20
+ <h2>Visitor Map</h2>
21
+ <section>
22
+ Map
23
+ </section>
@@ -0,0 +1,53 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Astrochimp</title>
5
+ <%= stylesheet_link_tag "astrochimp/application" %>
6
+ <%= javascript_include_tag "astrochimp/application" %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <header>
12
+ <h1 class="logo-astrochimp">Astrochimp</h1>
13
+
14
+ <div class="onoff"></div>
15
+ <noscript>
16
+ <form>
17
+ <label>On</label>
18
+ <input type="radio">
19
+ <label>Off</label>
20
+ <input type="radio">
21
+ </form>
22
+ </noscript>
23
+
24
+ <nav>
25
+ <ul class="nav-main">
26
+ <li class="nav-main-dashboard">
27
+ <%= link_to "Dashboard", :controller => "dashboard", :action => "index" %>
28
+ </li>
29
+ <li class="nav-main-list">
30
+ <span class="unsent-count">22</span>
31
+ <%= link_to "Mailing List", :controller => "dashboard", :action => "index" %>
32
+ </li>
33
+ <li class="nav-main-settings">
34
+ <%= link_to "Settings", :controller => "dashboard", :action => "index" %>
35
+ </li>
36
+ </ul>
37
+ </nav>
38
+ </header>
39
+
40
+ <div class="content">
41
+ <nav class="nav-account">
42
+ <a class="link-site">brightb.it</a>
43
+ <a class="link-account">mailchimp@account.com</a>
44
+ <ul class="list-account">
45
+ <li><%= link_to "Settings", :controller => "dashboard", :action => "index" %></li>
46
+ <li><%= link_to "Go to Mailchimp", "http://mailchimp.com/login", :target => "_new" %></li>
47
+ </ul>
48
+ </nav>
49
+
50
+ <%= yield %>
51
+ </div>
52
+ </body>
53
+ </html>