cartilage 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.markdown +57 -0
- data/Rakefile +84 -0
- data/app/assets/images/cartilage/patterns/background.dark.png +0 -0
- data/app/assets/images/cartilage/patterns/background.dark.psd +0 -0
- data/app/assets/images/cartilage/patterns/background.light.png +0 -0
- data/app/assets/images/cartilage/patterns/background.light.psd +0 -0
- data/app/assets/images/cartilage/patterns/background.medium.png +0 -0
- data/app/assets/images/cartilage/patterns/background.medium.psd +0 -0
- data/app/assets/images/cartilage/patterns/background.png +0 -0
- data/app/assets/images/cartilage/patterns/background.psd +0 -0
- data/app/assets/javascripts/cartilage/application.js.coffee +45 -0
- data/app/assets/javascripts/cartilage/collections/segments.js.coffee +4 -0
- data/app/assets/javascripts/cartilage/core.js.coffee +8 -0
- data/app/assets/javascripts/cartilage/models/model.js.coffee +2 -0
- data/app/assets/javascripts/cartilage/models/segment.js.coffee +2 -0
- data/app/assets/javascripts/cartilage/views/bar_segment_view.js.coffee +58 -0
- data/app/assets/javascripts/cartilage/views/bar_view.js.coffee +85 -0
- data/app/assets/javascripts/cartilage/views/content_view.js.coffee +16 -0
- data/app/assets/javascripts/cartilage/views/image_view.js.coffee +76 -0
- data/app/assets/javascripts/cartilage/views/list_view.js.coffee +515 -0
- data/app/assets/javascripts/cartilage/views/list_view_item.js.coffee +85 -0
- data/app/assets/javascripts/cartilage/views/loading_indicator_view.js.coffee +147 -0
- data/app/assets/javascripts/cartilage/views/matrix_view.js.coffee +253 -0
- data/app/assets/javascripts/cartilage/views/matrix_view_item.js.coffee +5 -0
- data/app/assets/javascripts/cartilage/views/modal_view.js.coffee +26 -0
- data/app/assets/javascripts/cartilage/views/popover_view.js.coffee +212 -0
- data/app/assets/javascripts/cartilage/views/source_list_view.js.coffee +69 -0
- data/app/assets/javascripts/cartilage/views/source_list_view_item.js.coffee +5 -0
- data/app/assets/javascripts/cartilage/views/split_view.js.coffee +175 -0
- data/app/assets/javascripts/cartilage/views/usage_bar_view.js.coffee +5 -0
- data/app/assets/javascripts/cartilage/views/view.js.coffee +232 -0
- data/app/assets/javascripts/cartilage.js.coffee +18 -0
- data/app/assets/javascripts/extensions/console.js.coffee +9 -0
- data/app/assets/javascripts/extensions/constructor_name.js.coffee +10 -0
- data/app/assets/javascripts/extensions/properties.js.coffee +45 -0
- data/app/assets/javascripts/extensions/underscore.js.coffee +71 -0
- data/app/assets/stylesheets/cartilage/core.css.scss +432 -0
- data/app/assets/stylesheets/cartilage/mixins.css.scss +19 -0
- data/app/assets/stylesheets/cartilage/responsive.css.scss +192 -0
- data/app/assets/stylesheets/cartilage/variables.css.scss +113 -0
- data/app/assets/stylesheets/cartilage/views/list_view.css.scss +41 -0
- data/app/assets/stylesheets/cartilage/views/list_view_item.css.scss +47 -0
- data/app/assets/stylesheets/cartilage/views/loading_indicator_view.css.scss +50 -0
- data/app/assets/stylesheets/cartilage/views/matrix_view.css.scss +87 -0
- data/app/assets/stylesheets/cartilage/views/popover_view.css.scss +124 -0
- data/app/assets/stylesheets/cartilage/views/segmented_view.css.scss +98 -0
- data/app/assets/stylesheets/cartilage/views/source_list_view.css.scss +65 -0
- data/app/assets/stylesheets/cartilage/views/split_view.css.scss +80 -0
- data/app/assets/stylesheets/cartilage/views/usage_bar_view.css.scss +101 -0
- data/app/assets/stylesheets/cartilage/views/view.css.scss +13 -0
- data/app/assets/stylesheets/cartilage.css.scss +5 -0
- data/lib/cartilage/engine.rb +14 -0
- data/lib/cartilage/version.rb +3 -0
- data/lib/cartilage.rb +5 -0
- data/lib/tasks/cartilage_tasks.rake +4 -0
- data/test/cartilage_test.rb +7 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +9 -0
- data/test/dummy/app/assets/stylesheets/application.css +7 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +45 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +30 -0
- data/test/dummy/config/environments/production.rb +60 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +10 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/readme +6 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +26 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/framework/cartilage/application_test.js.coffee +14 -0
- data/test/framework/cartilage/views/bar_segment_view_test.js.coffee +5 -0
- data/test/framework/cartilage/views/bar_view_test.js.coffee +30 -0
- data/test/framework/cartilage/views/image_view_test.js.coffee +27 -0
- data/test/framework/cartilage/views/list_view_item_test.js.coffee +17 -0
- data/test/framework/cartilage/views/list_view_test.js.coffee +190 -0
- data/test/framework/cartilage/views/loading_indicator_view_test.js.coffee +5 -0
- data/test/framework/cartilage/views/matrix_view_item_test.js.coffee +5 -0
- data/test/framework/cartilage/views/matrix_view_test.js.coffee +5 -0
- data/test/framework/cartilage/views/popover_view_test.js.coffee +5 -0
- data/test/framework/cartilage/views/source_list_view_item_test.js.coffee +5 -0
- data/test/framework/cartilage/views/source_list_view_test.js.coffee +5 -0
- data/test/framework/cartilage/views/split_view_test.js.coffee +5 -0
- data/test/framework/cartilage/views/usage_bar_view_test.js.coffee +5 -0
- data/test/framework/cartilage/views/view_test.js.coffee +85 -0
- data/test/framework/extensions/properties_test.js.coffee +82 -0
- data/test/framework/extensions/underscore_test.js.coffee +73 -0
- data/test/framework/index.html +72 -0
- data/test/framework/vendor/backbone.js +1431 -0
- data/test/framework/vendor/coffee-script.js +8 -0
- data/test/framework/vendor/jquery.js +9440 -0
- data/test/framework/vendor/phantomjs-runner.js +196 -0
- data/test/framework/vendor/qunit.css +235 -0
- data/test/framework/vendor/qunit.js +1977 -0
- data/test/framework/vendor/run-qunit.js +81 -0
- data/test/framework/vendor/sinon-1.5.0.js +4142 -0
- data/test/framework/vendor/sinon-qunit-1.0.0.js +62 -0
- data/test/framework/vendor/underscore.js +1059 -0
- data/test/test_helper.rb +10 -0
- metadata +373 -0
@@ -0,0 +1,72 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="utf8" />
|
6
|
+
<title>Cartilage Test Suite</title>
|
7
|
+
|
8
|
+
<link rel="stylesheet" href="vendor/qunit.css" type="text/css" media="screen">
|
9
|
+
|
10
|
+
<!-- Dependencies -->
|
11
|
+
<script src="vendor/jquery.js"></script>
|
12
|
+
<script src="vendor/qunit.js"></script>
|
13
|
+
<script src="vendor/underscore.js"></script>
|
14
|
+
<script src="vendor/backbone.js"></script>
|
15
|
+
<script src="vendor/coffee-script.js"></script>
|
16
|
+
|
17
|
+
<!-- Cartilage -->
|
18
|
+
<script src="cartilage.js"></script>
|
19
|
+
|
20
|
+
<!-- Cartilage references JST from sprockets but that's not available
|
21
|
+
in this particular context. For now, we'll just copy it over
|
22
|
+
manually in order to ensure no errors are thrown. -->
|
23
|
+
|
24
|
+
<script>
|
25
|
+
(function() {
|
26
|
+
this.JST || (this.JST = {});
|
27
|
+
}).call(this);
|
28
|
+
</script>
|
29
|
+
|
30
|
+
<!-- Tests -->
|
31
|
+
<script type="text/coffeescript">
|
32
|
+
|
33
|
+
QUnit.config.testTimeout = 5000
|
34
|
+
QUnit.config.autostart = false
|
35
|
+
|
36
|
+
# Extensions
|
37
|
+
CoffeeScript.load "extensions/properties_test.js.coffee"
|
38
|
+
CoffeeScript.load "extensions/underscore_test.js.coffee"
|
39
|
+
|
40
|
+
# Application
|
41
|
+
# CoffeeScript.load "cartilage/application_test.js.coffee"
|
42
|
+
|
43
|
+
# Views
|
44
|
+
CoffeeScript.load "cartilage/views/view_test.js.coffee"
|
45
|
+
CoffeeScript.load "cartilage/views/image_view_test.js.coffee"
|
46
|
+
#CoffeeScript.load "cartilage/views/loading_indicator_view_test.js.coffee"
|
47
|
+
#CoffeeScript.load "cartilage/views/popover_view_test.js.coffee"
|
48
|
+
#CoffeeScript.load "cartilage/views/split_view_test.js.coffee"
|
49
|
+
CoffeeScript.load "cartilage/views/bar_view_test.js.coffee"
|
50
|
+
#CoffeeScript.load "cartilage/views/bar_segment_view_test.js.coffee"
|
51
|
+
#CoffeeScript.load "cartilage/views/usage_bar_view_test.js.coffee"
|
52
|
+
CoffeeScript.load "cartilage/views/list_view_test.js.coffee"
|
53
|
+
CoffeeScript.load "cartilage/views/list_view_item_test.js.coffee"
|
54
|
+
#CoffeeScript.load "cartilage/views/matrix_view_test.js.coffee"
|
55
|
+
#CoffeeScript.load "cartilage/views/matrix_view_item_test.js.coffee"
|
56
|
+
#CoffeeScript.load "cartilage/views/source_list_view_test.js.coffee"
|
57
|
+
#CoffeeScript.load "cartilage/views/source_list_view_item_test.js.coffee"
|
58
|
+
|
59
|
+
QUnit.start()
|
60
|
+
</script>
|
61
|
+
</head>
|
62
|
+
<body>
|
63
|
+
|
64
|
+
<div id="qunit"></div>
|
65
|
+
<div id="qunit-fixture">
|
66
|
+
<div id="testElement">
|
67
|
+
<h1>Test</h1>
|
68
|
+
</div>
|
69
|
+
</div>
|
70
|
+
|
71
|
+
</body>
|
72
|
+
</html>
|