From c63c8f1698e8c059e286fb49ba0264e4336a6e33 Mon Sep 17 00:00:00 2001 From: Daniel Beauchamp Date: Tue, 24 Jul 2012 15:25:22 -0400 Subject: Initial version. 0.1.0 Release --- templates/project/dashboards/layout.erb | 21 +++++++++++++++++++++ templates/project/dashboards/main.erb | 1 + 2 files changed, 22 insertions(+) create mode 100644 templates/project/dashboards/layout.erb create mode 100644 templates/project/dashboards/main.erb (limited to 'templates/project/dashboards') 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 @@ + + + + + + + <%= yield_content(:title) %> + + + + + + + + +
+ <%= yield %> +
+ + + \ 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 @@ +
\ No newline at end of file -- cgit v1.2.3 From 69f36572ca81961395b85ac423c94892ef5e6df0 Mon Sep 17 00:00:00 2001 From: Daniel Beauchamp Date: Wed, 25 Jul 2012 01:27:52 -0400 Subject: Prefixing all widgets with "widget" --- templates/project/dashboards/main.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/project/dashboards') diff --git a/templates/project/dashboards/main.erb b/templates/project/dashboards/main.erb index b6797dd..3638940 100644 --- a/templates/project/dashboards/main.erb +++ b/templates/project/dashboards/main.erb @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file -- cgit v1.2.3 From cdd8ff258582f5eba7e3941a5a18007e7aabbbfa Mon Sep 17 00:00:00 2001 From: Daniel Beauchamp Date: Thu, 2 Aug 2012 13:38:19 -0400 Subject: Better generators, sample widgets, and more! --- templates/project/dashboards/layout.erb | 25 +++++++++++++++++++++---- templates/project/dashboards/main.erb | 13 ++++++++++++- 2 files changed, 33 insertions(+), 5 deletions(-) (limited to 'templates/project/dashboards') diff --git a/templates/project/dashboards/layout.erb b/templates/project/dashboards/layout.erb index 66bf1e0..cb1a455 100644 --- a/templates/project/dashboards/layout.erb +++ b/templates/project/dashboards/layout.erb @@ -1,21 +1,38 @@ - + + My Awesome Dashboard + + <%= yield_content(:title) %> - + + - + + + + -
+
<%= yield %>
+ + \ No newline at end of file diff --git a/templates/project/dashboards/main.erb b/templates/project/dashboards/main.erb index 3638940..71acaf2 100644 --- a/templates/project/dashboards/main.erb +++ b/templates/project/dashboards/main.erb @@ -1 +1,12 @@ -
\ No newline at end of file +<% content_for(:title) { "My super sweet dashboard" } %> +
    +
  • +
    +
  • +
  • +
    +
  • +
  • +
    +
  • +
\ No newline at end of file -- cgit v1.2.3 From 780fe49f715c2fced88e958b02541bf8e7dca934 Mon Sep 17 00:00:00 2001 From: Daniel Beauchamp Date: Wed, 8 Aug 2012 18:02:56 -0400 Subject: Rename project to 'Dashing', and do some other cleanups --- templates/project/dashboards/layout.erb | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'templates/project/dashboards') diff --git a/templates/project/dashboards/layout.erb b/templates/project/dashboards/layout.erb index cb1a455..1d1aeb3 100644 --- a/templates/project/dashboards/layout.erb +++ b/templates/project/dashboards/layout.erb @@ -2,7 +2,6 @@ - My Awesome Dashboard @@ -17,6 +16,19 @@ + + @@ -24,15 +36,5 @@ <%= yield %>
- - \ No newline at end of file -- cgit v1.2.3 From 41d8c33a6b87c948a7fe4ae5e53483d42fead422 Mon Sep 17 00:00:00 2001 From: Daniel Beauchamp Date: Thu, 9 Aug 2012 13:54:46 -0400 Subject: Re-layout with masonry whenever a widget is ready. --- templates/project/dashboards/layout.erb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'templates/project/dashboards') diff --git a/templates/project/dashboards/layout.erb b/templates/project/dashboards/layout.erb index 1d1aeb3..97cb96d 100644 --- a/templates/project/dashboards/layout.erb +++ b/templates/project/dashboards/layout.erb @@ -22,12 +22,13 @@ $('#container ul').masonry({ itemSelector: '.widget-container' }); } - Dashing.on('ready', function() { - setTimeout(relayout, 0); + Dashing.Widget.on('ready', function(){ + setTimeout(function(){ + relayout(); + }, 0); }); $(window).resize(relayout); - -- cgit v1.2.3 From 16f51fd9dc454b26d9866b080caa17ffe2f8ce27 Mon Sep 17 00:00:00 2001 From: Daniel Beauchamp Date: Mon, 13 Aug 2012 23:36:38 -0400 Subject: Updated to use sprockets! Ah, much cleaner. --- templates/project/dashboards/layout.erb | 43 +++++++++++++-------------------- 1 file changed, 17 insertions(+), 26 deletions(-) (limited to 'templates/project/dashboards') diff --git a/templates/project/dashboards/layout.erb b/templates/project/dashboards/layout.erb index 97cb96d..23d3c9a 100644 --- a/templates/project/dashboards/layout.erb +++ b/templates/project/dashboards/layout.erb @@ -8,34 +8,25 @@ <%= yield_content(:title) %> - - - + + + - - - + - - - -
- <%= yield %> -
- - + +
+ <%= yield %> +
+ + <% if development? %> +
+

Paste the following at the top of <%= params[:dashboard] %>.erb

+ +
+ Save this layout + <% end %> + \ No newline at end of file -- cgit v1.2.3 From 54c6a04b722663b518bf99b4d98a1c2e86ee5103 Mon Sep 17 00:00:00 2001 From: Daniel Beauchamp Date: Tue, 14 Aug 2012 05:23:57 -0400 Subject: Updated the sample project. --- templates/project/dashboards/main.erb | 12 ------------ templates/project/dashboards/sample.erb | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 12 deletions(-) delete mode 100644 templates/project/dashboards/main.erb create mode 100644 templates/project/dashboards/sample.erb (limited to 'templates/project/dashboards') diff --git a/templates/project/dashboards/main.erb b/templates/project/dashboards/main.erb deleted file mode 100644 index 71acaf2..0000000 --- a/templates/project/dashboards/main.erb +++ /dev/null @@ -1,12 +0,0 @@ -<% content_for(:title) { "My super sweet dashboard" } %> -
    -
  • -
    -
  • -
  • -
    -
  • -
  • -
    -
  • -
\ No newline at end of file diff --git a/templates/project/dashboards/sample.erb b/templates/project/dashboards/sample.erb new file mode 100644 index 0000000..453a969 --- /dev/null +++ b/templates/project/dashboards/sample.erb @@ -0,0 +1,25 @@ +<% content_for(:title) { "My super sweet dashboard" } %> +
+
    +
  • +
    +
  • + +
  • +
    +
  • + +
  • +
    +
  • + +
  • +
    +
  • + +
  • +
    +
  • +
+
Try this: curl -d '{ "auth_token": "YOUR_AUTH_TOKEN", "text": "Hey, Look what I can do!" }' \http://localhost:3000/widgets/welcome
+
\ No newline at end of file -- cgit v1.2.3 From a4a4564f760bb1bcd541366186cd46488d5a569b Mon Sep 17 00:00:00 2001 From: Daniel Beauchamp Date: Tue, 30 Oct 2012 05:16:35 -0400 Subject: Added new widgets, and made them more flexible. Ready for 0.1.3! --- templates/project/dashboards/sample.erb | 6 ++-- templates/project/dashboards/sampletv.erb | 56 +++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 3 deletions(-) create mode 100644 templates/project/dashboards/sampletv.erb (limited to 'templates/project/dashboards') diff --git a/templates/project/dashboards/sample.erb b/templates/project/dashboards/sample.erb index 453a969..ab5cb00 100644 --- a/templates/project/dashboards/sample.erb +++ b/templates/project/dashboards/sample.erb @@ -10,15 +10,15 @@
  • -
    +
  • -
    +
  • -
    +
  • Try this: curl -d '{ "auth_token": "YOUR_AUTH_TOKEN", "text": "Hey, Look what I can do!" }' \http://localhost:3000/widgets/welcome
    diff --git a/templates/project/dashboards/sampletv.erb b/templates/project/dashboards/sampletv.erb new file mode 100644 index 0000000..b52eed7 --- /dev/null +++ b/templates/project/dashboards/sampletv.erb @@ -0,0 +1,56 @@ + + + +<% content_for(:title) { "1080p dashboard" } %> + +
    +
      +
    • +
      + +
    • + +
    • +
      +
    • + +
    • +
      +
    • + +
    • +
      +
    • + +
    • +
      +
    • + +
    • +
      +
    • + +
    • +
      + +
    • + +
    • +
      +
    • + +
    • +
      + +
    • + +
    +
    Try this: curl -d '{ "auth_token": "YOUR_AUTH_TOKEN", "text": "Hey, Look what I can do!" }' \http://localhost:3000/widgets/welcome
    +
    \ No newline at end of file -- cgit v1.2.3 From 76cf77a89a17dd12299a6f4b63c967163ceae39a Mon Sep 17 00:00:00 2001 From: Daniel Beauchamp Date: Tue, 30 Oct 2012 11:45:12 -0400 Subject: Make the default port 3030 --- templates/project/dashboards/sample.erb | 2 +- templates/project/dashboards/sampletv.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/project/dashboards') diff --git a/templates/project/dashboards/sample.erb b/templates/project/dashboards/sample.erb index ab5cb00..7435b56 100644 --- a/templates/project/dashboards/sample.erb +++ b/templates/project/dashboards/sample.erb @@ -21,5 +21,5 @@
    -
    Try this: curl -d '{ "auth_token": "YOUR_AUTH_TOKEN", "text": "Hey, Look what I can do!" }' \http://localhost:3000/widgets/welcome
    +
    Try this: curl -d '{ "auth_token": "YOUR_AUTH_TOKEN", "text": "Hey, Look what I can do!" }' \http://<%=request.host%>:<%=request.port%>/widgets/welcome
    \ No newline at end of file diff --git a/templates/project/dashboards/sampletv.erb b/templates/project/dashboards/sampletv.erb index b52eed7..7ac9112 100644 --- a/templates/project/dashboards/sampletv.erb +++ b/templates/project/dashboards/sampletv.erb @@ -52,5 +52,5 @@ $(function() { -
    Try this: curl -d '{ "auth_token": "YOUR_AUTH_TOKEN", "text": "Hey, Look what I can do!" }' \http://localhost:3000/widgets/welcome
    +
    Try this: curl -d '{ "auth_token": "YOUR_AUTH_TOKEN", "text": "Hey, Look what I can do!" }' \http://<%=request.host%>:<%=request.port%>/widgets/welcome
    \ No newline at end of file -- cgit v1.2.3 From caaf6a8bd78cb980f282e88452b6901de3a99b2f Mon Sep 17 00:00:00 2001 From: Peter Suschlik Date: Thu, 18 Apr 2013 14:04:18 +0200 Subject: Use protocol agnostic google font url. HTTPS users are happy now :) --- templates/project/dashboards/layout.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/project/dashboards') diff --git a/templates/project/dashboards/layout.erb b/templates/project/dashboards/layout.erb index 23d3c9a..eae9785 100644 --- a/templates/project/dashboards/layout.erb +++ b/templates/project/dashboards/layout.erb @@ -12,7 +12,7 @@ - + -- cgit v1.2.3 From 32edb874f2fa2aefe363ec9d92d5f529cec489d8 Mon Sep 17 00:00:00 2001 From: David Underwood Date: Tue, 25 Jun 2013 11:40:35 -0400 Subject: render titles correctly --- templates/project/dashboards/sample.erb | 2 +- templates/project/dashboards/sampletv.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/project/dashboards') diff --git a/templates/project/dashboards/sample.erb b/templates/project/dashboards/sample.erb index 7435b56..d41d538 100644 --- a/templates/project/dashboards/sample.erb +++ b/templates/project/dashboards/sample.erb @@ -1,4 +1,4 @@ -<% content_for(:title) { "My super sweet dashboard" } %> +<% content_for :title do %>My super sweet dashboard<% end %>
    • diff --git a/templates/project/dashboards/sampletv.erb b/templates/project/dashboards/sampletv.erb index 7ac9112..b88e636 100644 --- a/templates/project/dashboards/sampletv.erb +++ b/templates/project/dashboards/sampletv.erb @@ -8,7 +8,7 @@ $(function() { -<% content_for(:title) { "1080p dashboard" } %> +<% content_for :title do %>1080p dashboard<% end %>
        -- cgit v1.2.3 From 833d995ececc2b26ae791535774f383a1daa9da8 Mon Sep 17 00:00:00 2001 From: pushmatrix Date: Mon, 2 Sep 2013 13:04:25 +0200 Subject: Remove silly label --- templates/project/dashboards/sampletv.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/project/dashboards') diff --git a/templates/project/dashboards/sampletv.erb b/templates/project/dashboards/sampletv.erb index b88e636..cf4b39c 100644 --- a/templates/project/dashboards/sampletv.erb +++ b/templates/project/dashboards/sampletv.erb @@ -43,7 +43,7 @@ $(function() {
      • -
        +
      • -- cgit v1.2.3 From 6f097d8293eb69106c2c35f42ad18b8fdcf95d14 Mon Sep 17 00:00:00 2001 From: mr-deamon Date: Wed, 12 Mar 2014 08:42:05 +0100 Subject: Making meter-widget adjustable --- templates/project/dashboards/sample.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/project/dashboards') diff --git a/templates/project/dashboards/sample.erb b/templates/project/dashboards/sample.erb index d41d538..8269b7e 100644 --- a/templates/project/dashboards/sample.erb +++ b/templates/project/dashboards/sample.erb @@ -6,7 +6,7 @@
      • -
        +
      • @@ -22,4 +22,4 @@
      Try this: curl -d '{ "auth_token": "YOUR_AUTH_TOKEN", "text": "Hey, Look what I can do!" }' \http://<%=request.host%>:<%=request.port%>/widgets/welcome
      -
      \ No newline at end of file +
    -- cgit v1.2.3 From 76a645b75b0f8173a5e5c7c1e16ea9633ca11e40 Mon Sep 17 00:00:00 2001 From: mr-deamon Date: Wed, 12 Mar 2014 10:13:15 +0100 Subject: Adding Suffix and Prefix to Meter-Widget --- templates/project/dashboards/sample.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/project/dashboards') diff --git a/templates/project/dashboards/sample.erb b/templates/project/dashboards/sample.erb index 8269b7e..08c3b51 100644 --- a/templates/project/dashboards/sample.erb +++ b/templates/project/dashboards/sample.erb @@ -6,7 +6,7 @@
  • -
    +
  • -- cgit v1.2.3 From 1b1e390974f08a6dfd1bdae39a29175a2c480e08 Mon Sep 17 00:00:00 2001 From: Jonathan Batchelor Date: Mon, 22 Feb 2016 17:04:19 +0000 Subject: Updated to use FontAwesome 4.5.0 --- templates/project/dashboards/sampletv.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'templates/project/dashboards') diff --git a/templates/project/dashboards/sampletv.erb b/templates/project/dashboards/sampletv.erb index cf4b39c..6f3cb60 100644 --- a/templates/project/dashboards/sampletv.erb +++ b/templates/project/dashboards/sampletv.erb @@ -14,7 +14,7 @@ $(function() {
    • - +
    • @@ -39,7 +39,7 @@ $(function() {
    • - +
    • @@ -48,9 +48,9 @@ $(function() {
    • - +
    Try this: curl -d '{ "auth_token": "YOUR_AUTH_TOKEN", "text": "Hey, Look what I can do!" }' \http://<%=request.host%>:<%=request.port%>/widgets/welcome
    - \ No newline at end of file + -- cgit v1.2.3