Skip to content

Commit

Permalink
Fix imports extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
shefalijoshi committed Jan 11, 2024
1 parent e65d087 commit 7b59b7e
Show file tree
Hide file tree
Showing 16 changed files with 33 additions and 33 deletions.
4 changes: 2 additions & 2 deletions src/actions/exportToCSV/ExportToCSVAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import { OBJECT_TYPES } from "../../const";
import {idToQualifiedName} from "../../utils";
import { OBJECT_TYPES } from "../../const.js";
import {idToQualifiedName} from "../../utils.js";
import {saveAs} from 'saveAs';

const SUPPORTED_TYPES = [OBJECT_TYPES.TELEMETRY_OBJECT_TYPE, OBJECT_TYPES.AGGREGATE_TELEMETRY_TYPE];
Expand Down
2 changes: 1 addition & 1 deletion src/actions/exportToCSV/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import ExportToCSVAction from './ExportToCSVAction';
import ExportToCSVAction from './ExportToCSVAction.js';

export default function (url, instance) {
return function (openmct) {
Expand Down
14 changes: 7 additions & 7 deletions src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ import YamcsHistoricalTelemetryProvider from './providers/historical-telemetry-p
import RealtimeProvider from './providers/realtime-provider.js';
import YamcsObjectProvider from './providers/object-provider.js';
import YamcsStalenessProvider from './providers/staleness-provider.js';
import LimitProvider from './providers/limit-provider';
import EventLimitProvider from './providers/event-limit-provider';
import UserProvider from './providers/user/user-provider';
import LimitProvider from './providers/limit-provider.js';
import EventLimitProvider from './providers/event-limit-provider.js';
import UserProvider from './providers/user/user-provider.js';

import { faultModelConvertor } from './providers/fault-mgmt-providers/utils';
import YamcsFaultProvider from './providers/fault-mgmt-providers/yamcs-fault-provider';
import { faultModelConvertor } from './providers/fault-mgmt-providers/utils.js';
import YamcsFaultProvider from './providers/fault-mgmt-providers/yamcs-fault-provider.js';

import { OBJECT_TYPES } from './const';
import { OBJECT_TYPES } from './const.js';
import OperatorStatusTelemetry from './providers/user/operator-status-telemetry.js';
import LatestTelemetryProvider from './providers/latest-telemetry-provider.js';
import PollQuestionParameter from './providers/user/poll-question-parameter.js';
import PollQuestionTelemetry from './providers/user/poll-question-telemetry.js';
import ExportToCSVActionPlugin from "./actions/exportToCSV/plugin";
import ExportToCSVActionPlugin from "./actions/exportToCSV/plugin.js";

export default function installYamcsPlugin(configuration) {
return function install(openmct) {
Expand Down
4 changes: 2 additions & 2 deletions src/providers/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
* at runtime from the About dialog for additional information.
*****************************************************************************/

import { OBJECT_TYPES, METADATA_TIME_KEY } from "../const";
import { flattenObjectArray } from "../utils";
import { OBJECT_TYPES, METADATA_TIME_KEY } from "../const.js";
import { flattenObjectArray } from "../utils.js";

export function createCommandsObject(openmct, parentKey, namespace) {
const location = openmct.objects.makeKeyString({
Expand Down
2 changes: 1 addition & 1 deletion src/providers/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import { OBJECT_TYPES, METADATA_TIME_KEY, SEVERITY_LEVELS } from "../const";
import { OBJECT_TYPES, METADATA_TIME_KEY, SEVERITY_LEVELS } from "../const.js";

export function createEventsObject(openmct, parentKey, namespace) {
const location = openmct.objects.makeKeyString({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FAULT_MANAGEMENT_ALARMS, FAULT_MANAGEMENT_DEFAULT_SHELVE_DURATION } from './fault-mgmt-constants';
import { FAULT_MANAGEMENT_ALARMS, FAULT_MANAGEMENT_DEFAULT_SHELVE_DURATION } from './fault-mgmt-constants.js';

export default class FaultActionProvider {
constructor(url, instance, processor = 'realtime') {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FAULT_MANAGEMENT_ALARMS, FAULT_MANAGEMENT_TYPE } from './fault-mgmt-constants';
import { FAULT_MANAGEMENT_ALARMS, FAULT_MANAGEMENT_TYPE } from './fault-mgmt-constants.js';

export default class HistoricalFaultProvider {
constructor(faultModelConverter, url, instance, processor = 'realtime') {
Expand Down
4 changes: 2 additions & 2 deletions src/providers/fault-mgmt-providers/realtime-fault-provider.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FAULT_MANAGEMENT_TYPE } from './fault-mgmt-constants';
import { DATA_TYPES, NAMESPACE, OBJECT_TYPES } from '../../const';
import { FAULT_MANAGEMENT_TYPE } from './fault-mgmt-constants.js';
import { DATA_TYPES, NAMESPACE, OBJECT_TYPES } from '../../const.js';

export default class RealtimeFaultProvider {
constructor(faultModelConverter, instance, realtimeTelemetryProvider) {
Expand Down
6 changes: 3 additions & 3 deletions src/providers/fault-mgmt-providers/yamcs-fault-provider.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import HistoricalFaultProvider from './historical-fault-provider';
import RealtimeFaultProvider from './realtime-fault-provider';
import FaultActionProvider from './fault-action-provider';
import HistoricalFaultProvider from './historical-fault-provider.js';
import RealtimeFaultProvider from './realtime-fault-provider.js';
import FaultActionProvider from './fault-action-provider.js';

export default class YamcsFaultProvider {
constructor({ faultModelConvertor, historicalEndpoint, yamcsInstance, yamcsProcessor, realtimeTelemetryProvider } = {}) {
Expand Down
6 changes: 3 additions & 3 deletions src/providers/historical-telemetry-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import { AGGREGATE_TYPE, OBJECT_TYPES, METADATA_TIME_KEY } from '../const';
import { AGGREGATE_TYPE, OBJECT_TYPES, METADATA_TIME_KEY } from '../const.js';
import {
idToQualifiedName,
getValue,
Expand All @@ -29,8 +29,8 @@ import {
qualifiedNameFromParameterId,
qualifiedNameToId
} from '../utils.js';
import { commandToTelemetryDatum } from './commands';
import { eventToTelemetryDatum } from './events';
import { commandToTelemetryDatum } from './commands.js';
import { eventToTelemetryDatum } from './events.js';

export default class YamcsHistoricalTelemetryProvider {
constructor(openmct, url, instance, latestTelemetryProvider) {
Expand Down
2 changes: 1 addition & 1 deletion src/providers/messages.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {OBJECT_TYPES, DATA_TYPES, MDB_TYPE} from '../const';
import {OBJECT_TYPES, DATA_TYPES, MDB_TYPE} from '../const.js';

const typeMap = {
[OBJECT_TYPES.COMMANDS_OBJECT_TYPE]: DATA_TYPES.DATA_TYPE_COMMANDS,
Expand Down
2 changes: 1 addition & 1 deletion src/providers/object-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
getLimitOverrides
} from '../utils.js';

import { OBJECT_TYPES, NAMESPACE } from '../const';
import { OBJECT_TYPES, NAMESPACE } from '../const.js';
import OperatorStatusParameter from './user/operator-status-parameter.js';
import { createCommandsObject } from './commands.js';
import { createEventsObject } from './events.js';
Expand Down
8 changes: 4 additions & 4 deletions src/providers/realtime-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* at runtime from the About dialog for additional information.
*****************************************************************************/

import * as MESSAGES from './messages';
import * as MESSAGES from './messages.js';
import {
OBJECT_TYPES,
DATA_TYPES,
Expand All @@ -29,7 +29,7 @@ import {
STALENESS_STATUS_MAP,
MDB_OBJECT,
MDB_CHANGES_PARAMTER_TYPE
} from '../const';
} from '../const.js';
import {
buildStalenessResponseObject,
idToQualifiedName,
Expand All @@ -38,8 +38,8 @@ import {
addLimitInformation,
getLimitFromAlarmRange
} from '../utils.js';
import { commandToTelemetryDatum } from './commands';
import { eventToTelemetryDatum, eventShouldBeFiltered } from './events';
import { commandToTelemetryDatum } from './commands.js';
import { eventToTelemetryDatum, eventShouldBeFiltered } from './events.js';

const FALLBACK_AND_WAIT_MS = [1000, 5000, 5000, 10000, 10000, 30000];
export default class RealtimeProvider {
Expand Down
4 changes: 2 additions & 2 deletions src/providers/staleness-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
* at runtime from the About dialog for additional information.
*****************************************************************************/

import { OBJECT_TYPES, STALENESS_STATUS_MAP } from '../const';
import { buildStalenessResponseObject } from '../utils';
import { OBJECT_TYPES, STALENESS_STATUS_MAP } from '../const.js';
import { buildStalenessResponseObject } from '../utils.js';

export default class YamcsStalenessProvider {
constructor(openmct, realtimeTelemetryProvider, latestTelemetryProvider) {
Expand Down
2 changes: 1 addition & 1 deletion src/providers/user/user-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* at runtime from the About dialog for additional information.
*****************************************************************************/

import createYamcsUser from './createYamcsUser';
import createYamcsUser from './createYamcsUser.js';
import { EventEmitter } from 'eventemitter3';

export default class UserProvider extends EventEmitter {
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
import { AGGREGATE_TYPE, UNSUPPORTED_TYPE } from './const';
import { AGGREGATE_TYPE, UNSUPPORTED_TYPE } from './const.js';
import limitConfig from "./limits-config.json";

function idToQualifiedName(id) {
Expand Down

0 comments on commit 7b59b7e

Please sign in to comment.