Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Minor changes to the preexisting code that Grace discovered during her internship #92

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions edsc_extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { ReadonlyJSONObject } from '@lumino/coreutils';

/** other external imports **/
import { INotification } from "jupyterlab_toastify";
import * as $ from "jquery";

/** internal imports **/
import '../style/index.css';
Expand Down Expand Up @@ -128,7 +127,7 @@ function activate(app: JupyterFrontEnd,

xhr.onload = function() {
if (xhr.status == 200) {
let response: any = $.parseJSON(xhr.response);
let response: any = JSON.parse(xhr.response);
response_text = response.query_string;
if (response_text == "") {
response_text = "No results found.";
Expand Down Expand Up @@ -168,7 +167,7 @@ function activate(app: JupyterFrontEnd,

xhr.onload = function() {
if (xhr.status == 200) {
let response: any = $.parseJSON(xhr.response);
let response: any = JSON.parse(xhr.response);
let response_text: any = response.granule_urls;
if (response_text == "") {
response_text = "No results found.";
Expand Down
6 changes: 5 additions & 1 deletion ipycmc/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ cmc_assets = /maap-common-mapping-client\/dist/;
const rules = [
{ test: /\.ts$/, loader: "ts-loader" },
{ test: /\.js$/, loader: "source-map-loader" },
{ test: /\.css$/, use: ["style-loader", "css-loader"] }
{ test: /\.css$/, use: ["style-loader", "css-loader"] },
{ test: /\.ttf$/, use: ["file-loader"] },
{ test: /\.woff$/, use: ["file-loader"] },
{ test: /\.eot$/, use: ["file-loader"] },
{ test: /\.svg$/, use: ["file-loader"] }
];

// Packages that shouldn't be bundled but loaded at runtime
Expand Down