diff --git a/README.md b/README.md index 6fb9a26..066a35c 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ community Recipes: - [Tempest Weather Station](/lib/tempest_weather_station) - [Todoist](/lib/todoist) - [Weather (generic)](/lib/weather) +- [Withings](/lib/withings) - [Youtube Analytics](/lib/youtube_analytics) native plugin structure: diff --git a/lib/withings/views/_chart_js.html.erb b/lib/withings/views/_chart_js.html.erb new file mode 100644 index 0000000..6fb1c34 --- /dev/null +++ b/lib/withings/views/_chart_js.html.erb @@ -0,0 +1,17 @@ +<% libs = local_assigns[:libs] || [:highcharts, :chartkick] %> + +<% if libs.include?(:highcharts) %> + +<% end %> + +<% if libs.include?(:highcharts_more) %> + +<% end %> + +<% if libs.include?(:highcharts_pattern_fill) %> + +<% end %> + +<% if libs.include?(:chartkick) %> + +<% end %> diff --git a/lib/withings/views/full.html.erb b/lib/withings/views/full.html.erb new file mode 100644 index 0000000..846fef2 --- /dev/null +++ b/lib/withings/views/full.html.erb @@ -0,0 +1,53 @@ +<%= render 'plugins/chart_js' %> + +