summaryrefslogtreecommitdiff
path: root/templates/project
diff options
context:
space:
mode:
authorDaniel Beauchamp <daniel.beauchamp@shopify.com>2012-07-24 15:25:22 -0400
committerDaniel Beauchamp <daniel.beauchamp@shopify.com>2012-07-24 15:30:32 -0400
commitc63c8f1698e8c059e286fb49ba0264e4336a6e33 (patch)
tree372fa45a424f4de805112995be3e0074ce9e0125 /templates/project
parent9f625f927aadf6d9574bd968d2cfc29dde5551c0 (diff)
Initial version. 0.1.0 Release
Diffstat (limited to 'templates/project')
-rw-r--r--templates/project/README.md1
-rw-r--r--templates/project/config.ru7
-rw-r--r--templates/project/dashboards/layout.erb21
-rw-r--r--templates/project/dashboards/main.erb1
-rw-r--r--templates/project/jobs/sample.rb12
-rw-r--r--templates/project/lib/.empty_directory1
-rw-r--r--templates/project/public/images/.empty_directory1
-rw-r--r--templates/project/public/javascripts/.empty_directory1
-rw-r--r--templates/project/public/stylesheets/.empty_directory1
-rw-r--r--templates/project/widgets/.empty_directory1
-rw-r--r--templates/project/widgets/sample/sample.coffee2
-rw-r--r--templates/project/widgets/sample/sample.html4
-rw-r--r--templates/project/widgets/sample/sample.scss0
13 files changed, 53 insertions, 0 deletions
diff --git a/templates/project/README.md b/templates/project/README.md
new file mode 100644
index 0000000..32f36ad
--- /dev/null
+++ b/templates/project/README.md
@@ -0,0 +1 @@
+Here lies instructions on how to set this thing up. \ No newline at end of file
diff --git a/templates/project/config.ru b/templates/project/config.ru
new file mode 100644
index 0000000..acc42a0
--- /dev/null
+++ b/templates/project/config.ru
@@ -0,0 +1,7 @@
+require 'allthethings'
+
+configure do
+ set :auth_token, 'YOUR_AUTH_TOKEN'
+end
+
+run Sinatra::Application \ No newline at end of file
diff --git a/templates/project/dashboards/layout.erb b/templates/project/dashboards/layout.erb
new file mode 100644
index 0000000..66bf1e0
--- /dev/null
+++ b/templates/project/dashboards/layout.erb
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8"/>
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+
+ <title><%= yield_content(:title) %></title>
+
+ <script type="text/javascript"><%= javascripts %></script>
+ <style><%= stylesheets %></style>
+
+ <meta name="viewport" content="width=device-width, initial-scale=1"/>
+</head>
+<body>
+
+ <div class="wrapper">
+ <%= yield %>
+ </div>
+
+</body>
+</html> \ No newline at end of file
diff --git a/templates/project/dashboards/main.erb b/templates/project/dashboards/main.erb
new file mode 100644
index 0000000..b6797dd
--- /dev/null
+++ b/templates/project/dashboards/main.erb
@@ -0,0 +1 @@
+<div data-id="sample" data-view="Sample"></div> \ No newline at end of file
diff --git a/templates/project/jobs/sample.rb b/templates/project/jobs/sample.rb
new file mode 100644
index 0000000..3d7bfcd
--- /dev/null
+++ b/templates/project/jobs/sample.rb
@@ -0,0 +1,12 @@
+SCHEDULER.every '5s' do
+ sayings = [
+ "That's one trouble with dual identities, Robin. Dual responsibilities.",
+ "You know your neosauruses well, Robin. Peanut butter sandwiches it is.",
+ "You're far from mod, Robin. And many hippies are older than you are.",
+ "We're still over land, Robin, and a seal is an aquatic, marine mammal.",
+ "True. You owe your life to dental hygiene.",
+ "This money goes to building better roads. We all must do our part."
+ ]
+
+ send_event('sample', { quote: sayings.sample })
+end \ No newline at end of file
diff --git a/templates/project/lib/.empty_directory b/templates/project/lib/.empty_directory
new file mode 100644
index 0000000..3da7f49
--- /dev/null
+++ b/templates/project/lib/.empty_directory
@@ -0,0 +1 @@
+.empty_directory \ No newline at end of file
diff --git a/templates/project/public/images/.empty_directory b/templates/project/public/images/.empty_directory
new file mode 100644
index 0000000..3da7f49
--- /dev/null
+++ b/templates/project/public/images/.empty_directory
@@ -0,0 +1 @@
+.empty_directory \ No newline at end of file
diff --git a/templates/project/public/javascripts/.empty_directory b/templates/project/public/javascripts/.empty_directory
new file mode 100644
index 0000000..3da7f49
--- /dev/null
+++ b/templates/project/public/javascripts/.empty_directory
@@ -0,0 +1 @@
+.empty_directory \ No newline at end of file
diff --git a/templates/project/public/stylesheets/.empty_directory b/templates/project/public/stylesheets/.empty_directory
new file mode 100644
index 0000000..3da7f49
--- /dev/null
+++ b/templates/project/public/stylesheets/.empty_directory
@@ -0,0 +1 @@
+.empty_directory \ No newline at end of file
diff --git a/templates/project/widgets/.empty_directory b/templates/project/widgets/.empty_directory
new file mode 100644
index 0000000..3da7f49
--- /dev/null
+++ b/templates/project/widgets/.empty_directory
@@ -0,0 +1 @@
+.empty_directory \ No newline at end of file
diff --git a/templates/project/widgets/sample/sample.coffee b/templates/project/widgets/sample/sample.coffee
new file mode 100644
index 0000000..cb25885
--- /dev/null
+++ b/templates/project/widgets/sample/sample.coffee
@@ -0,0 +1,2 @@
+class AllTheThings.Sample extends AllTheThings.Widget
+ source: 'sample' \ No newline at end of file
diff --git a/templates/project/widgets/sample/sample.html b/templates/project/widgets/sample/sample.html
new file mode 100644
index 0000000..eea0f1c
--- /dev/null
+++ b/templates/project/widgets/sample/sample.html
@@ -0,0 +1,4 @@
+<p>w00t! w00t! You've setup your first dashboard!</p>
+<p>To celebrate, enjoy some of these fun Batman quotes!</p>
+<span data-bind="quote"></span>
+
diff --git a/templates/project/widgets/sample/sample.scss b/templates/project/widgets/sample/sample.scss
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/templates/project/widgets/sample/sample.scss