Skip to content

Commit

Permalink
Fix scatterplot build. Not perfect, but it should probably work and w…
Browse files Browse the repository at this point in the history
…e should consolidate towards a replacement
  • Loading branch information
dannon committed Jun 5, 2024
1 parent 9e96eae commit aa62112
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 22 deletions.
11 changes: 0 additions & 11 deletions config/plugins/visualizations/scatterplot/.babelrc

This file was deleted.

5 changes: 1 addition & 4 deletions config/plugins/visualizations/scatterplot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"author": "Carl Eberhard",
"license": "0BSD",
"dependencies": {
"babel-plugin-auto-import": "^0.7.1",
"babel-preset-env": "^1.6.1",
"backbone": "^1.3.3",
"bootstrap": "^3.3.7",
"d3": "^3.5.17",
Expand All @@ -20,10 +18,9 @@
"underscore": "^1.8.3"
},
"devDependencies": {
"@babel/core": "^7.24.6",
"parcel": "2.11.0"
},
"scripts": {
"build": "parcel build src/scatterplot.js --dist-dir static/"
"build": "parcel build src/scatterplot.js --dist-dir static"
}
}
5 changes: 3 additions & 2 deletions config/plugins/visualizations/scatterplot/src/jqglobals.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import $ from "jquery";
window.jQuery = window.$ = window.jquery = $;
import jquery from "jquery";

export default (window.$ = window.jQuery = jquery);
File renamed without changes.
File renamed without changes.
11 changes: 6 additions & 5 deletions config/plugins/visualizations/scatterplot/src/scatterplot.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import "./jqglobals";
// This is a really annoying hack to get bootstrap/jqui jquery bindings available correctly.
/* global $ */
import * as Backbone from "backbone";
import * as d3 from "d3";
import * as _ from "underscore";
import "../../../../../client/src/ui/peek-column-selector";
import "../../../../../client/src/ui/pagination";
import "./peek-column-selector";
import "./pagination";
import "jquery-ui-bundle";
import "bootstrap";

import Backbone from "backbone";
import * as d3 from "d3";
import _ from "underscore";

//TODO: Finish unlinking this from the Galaxy codebase (package it, use that way?)

var Visualization = Backbone.Model.extend({
Expand Down

0 comments on commit aa62112

Please sign in to comment.