two files where we used it to straight up javascript.
Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>
# See: https://github.com/rails/sprockets-rails/issues/443
gem 'sprockets', '~> 3.0'
-# Note: keeping this out of the "group :assets" section "may" allow us
-# to use Coffescript for UJS responses. It also prevents a
-# warning/problem when running tests: "WARN: tilt autoloading
-# 'coffee_script' in a non thread-safe way; explicit require
-# 'coffee_script' suggested."
-gem 'coffee-rails'
-
# Gems used only for assets and not required
# in production environments by default.
group :assets do
childprocess (0.9.0)
ffi (~> 1.0, >= 1.0.11)
cliver (0.3.2)
- coffee-rails (4.2.2)
- coffee-script (>= 2.2.0)
- railties (>= 4.0.0)
- coffee-script (2.4.1)
- coffee-script-source
- execjs
- coffee-script-source (1.12.2)
concurrent-ruby (1.1.9)
crass (1.0.6)
deep_merge (1.2.1)
bootstrap-x-editable-rails
byebug
capybara (~> 2.5.0)
- coffee-rails
deep_merge
flamegraph
headless (~> 1.0.2)
--- /dev/null
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
+(function() {
+ jQuery(function() {
+ $("a[rel=popover]").popover();
+ $(".tooltip").tooltip();
+ return $("a[rel=tooltip]").tooltip();
+ });
+}).call(this);
+++ /dev/null
-### Copyright (C) The Arvados Authors. All rights reserved.
-
-SPDX-License-Identifier: AGPL-3.0 ###
-
-jQuery ->
- $("a[rel=popover]").popover()
- $(".tooltip").tooltip()
- $("a[rel=tooltip]").tooltip()
--- /dev/null
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
+(function() {
+ var cache_age_axis_label, cache_age_hover, cache_age_in_days, float_as_percentage;
+
+ cache_age_in_days = function(milliseconds_age) {
+ var ONE_DAY;
+ ONE_DAY = 1000 * 60 * 60 * 24;
+ return milliseconds_age / ONE_DAY;
+ };
+
+ cache_age_hover = function(milliseconds_age) {
+ return 'Cache age ' + cache_age_in_days(milliseconds_age).toFixed(1) + ' days.';
+ };
+
+ cache_age_axis_label = function(milliseconds_age) {
+ return cache_age_in_days(milliseconds_age).toFixed(0) + ' days';
+ };
+
+ float_as_percentage = function(proportion) {
+ return (proportion.toFixed(4) * 100) + '%';
+ };
+
+ $.renderHistogram = function(histogram_data) {
+ return Morris.Area({
+ element: 'cache-age-vs-disk-histogram',
+ pointSize: 0,
+ lineWidth: 0,
+ data: histogram_data,
+ xkey: 'age',
+ ykeys: ['persisted', 'cache'],
+ labels: ['Persisted Storage Disk Utilization', 'Cached Storage Disk Utilization'],
+ ymax: 1,
+ ymin: 0,
+ xLabelFormat: cache_age_axis_label,
+ yLabelFormat: float_as_percentage,
+ dateFormat: cache_age_hover
+ });
+ };
+
+}).call(this);
+++ /dev/null
-### Copyright (C) The Arvados Authors. All rights reserved.
-
-SPDX-License-Identifier: AGPL-3.0 ###
-
-cache_age_in_days = (milliseconds_age) ->
- ONE_DAY = 1000 * 60 * 60 * 24
- milliseconds_age / ONE_DAY
-
-cache_age_hover = (milliseconds_age) ->
- 'Cache age ' + cache_age_in_days(milliseconds_age).toFixed(1) + ' days.'
-
-cache_age_axis_label = (milliseconds_age) ->
- cache_age_in_days(milliseconds_age).toFixed(0) + ' days'
-
-float_as_percentage = (proportion) ->
- (proportion.toFixed(4) * 100) + '%'
-
-$.renderHistogram = (histogram_data) ->
- Morris.Area({
- element: 'cache-age-vs-disk-histogram',
- pointSize: 0,
- lineWidth: 0,
- data: histogram_data,
- xkey: 'age',
- ykeys: ['persisted', 'cache'],
- labels: ['Persisted Storage Disk Utilization', 'Cached Storage Disk Utilization'],
- ymax: 1,
- ymin: 0,
- xLabelFormat: cache_age_axis_label,
- yLabelFormat: float_as_percentage,
- dateFormat: cache_age_hover
- })
if [ "$PACKAGE_NAME" = "arvados-workbench" ]; then
mkdir -p /etc/arvados
cat <<'EOF' >/etc/arvados/config.yml
----
+---
Clusters:
xxxxx:
Services: