Skip to content

Commit

Permalink
fix: all import without .js
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Dec 11, 2022
1 parent e10a362 commit fa739ab
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion core/fetch/src/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type {
CacheStrategy,
AlwatrDocumentObject,
AlwatrServiceResponse,
} from './type';
} from './type.js';

export {
FetchOptions,
Expand Down
2 changes: 1 addition & 1 deletion services/flight-crawler/src/lib/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import {AlwatrStorageClient} from '@alwatr/storage-client';

import {config} from '../config.js';

import type {Job} from './type';
import type {Job} from './type.js';

export const storage = new AlwatrStorageClient<Job>(config.storage);
4 changes: 2 additions & 2 deletions services/telegram-notifier/src/lib/storage.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {AlwatrStorageEngine} from '@alwatr/storage-engine';

import {config} from '../config';
import {MemberList} from './type';
import {config} from '../config.js';
import {MemberList} from './type.js';

export const storage = new AlwatrStorageEngine<MemberList>(config.storage);
2 changes: 1 addition & 1 deletion uniquely/flight-finder-api/src/lib/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import {AlwatrStorageClient} from '@alwatr/storage-client';

import {config} from '../config.js';

import type {Job} from './type';
import type {Job} from './type.js';

export const storage = new AlwatrStorageClient<Job>(config.storage);
10 changes: 5 additions & 5 deletions uniquely/flight-finder-pwa/src/alwatr-pwa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import {router} from '@alwatr/router';
import {css, html} from 'lit';
import {customElement} from 'lit/decorators.js';

import ionNormalize from './style/ionic.normalize';
import ionTheming from './style/ionic.theming';
import ionNormalize from './style/ionic.normalize.js';
import ionTheming from './style/ionic.theming.js';

import './component/page-flight-finder';
import './component/ionic-components';
import './director';
import './component/page-flight-finder.js';
import './component/ionic-components.js';
import './director.js';

import type {RoutesConfig} from '@alwatr/router';
import type {TemplateResult} from 'lit';
Expand Down
6 changes: 3 additions & 3 deletions uniquely/flight-finder-pwa/src/component/job-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import {customElement, property} from 'lit/decorators.js';

import '@alwatr/icon';

import ionNormalize from '../style/ionic.normalize';
import ionTheming from '../style/ionic.theming';
import ionNormalize from '../style/ionic.normalize.js';
import ionTheming from '../style/ionic.theming.js';

import './ionic-components';

import type {Job, JobDetail, JobResult} from '../type';
import type {Job, JobDetail, JobResult} from '../type.js';
import type {TemplateResult} from 'lit';

declare global {
Expand Down
10 changes: 5 additions & 5 deletions uniquely/flight-finder-pwa/src/component/page-flight-finder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import {css, html} from 'lit';
import {customElement, state} from 'lit/decorators.js';
import {map} from 'lit/directives/map.js';

import {cityList} from '../city-list';
import ionNormalize from '../style/ionic.normalize';
import ionTheming from '../style/ionic.theming';
import {i18nDayPartList} from './job-item';
import {cityList} from '../city-list.js';
import ionNormalize from '../style/ionic.normalize.js';
import ionTheming from '../style/ionic.theming.js';
import {i18nDayPartList} from './job-item.js';

import type {dayParts, Job, NewJobDetail} from '../type';
import type {dayParts, Job, NewJobDetail} from '../type.js';
import type {InputCustomEvent, SelectCustomEvent} from '@ionic/core';
import type {TemplateResult} from 'lit';

Expand Down
4 changes: 2 additions & 2 deletions uniquely/flight-finder-pwa/src/director/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './job-add';
import './job-delete';
import './job-list';
import './toast';
import './job-list.js';
import './toast.js';
6 changes: 3 additions & 3 deletions uniquely/flight-finder-pwa/src/director/job-add.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {fetch} from '@alwatr/fetch';
import {SignalInterface} from '@alwatr/signal';

import {jobListSignal} from './job-list';
import {showToastSignal} from './toast';
import {jobListSignal} from './job-list.js';
import {showToastSignal} from './toast.js';

import type {Job} from '../type';
import type {Job} from '../type.js';
import type {AlwatrServiceResponse} from '@alwatr/fetch';

export const jobAddSignal = new SignalInterface('job-add');
Expand Down
4 changes: 2 additions & 2 deletions uniquely/flight-finder-pwa/src/director/job-delete.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {fetch} from '@alwatr/fetch';
import {SignalInterface} from '@alwatr/signal';

import {jobListSignal} from './job-list';
import {showToastSignal} from './toast';
import {jobListSignal} from './job-list.js';
import {showToastSignal} from './toast.js';

import type {AlwatrServiceResponse} from '@alwatr/fetch';

Expand Down
4 changes: 2 additions & 2 deletions uniquely/flight-finder-pwa/src/director/job-list.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {fetch} from '@alwatr/fetch';
import {SignalInterface} from '@alwatr/signal';

import {showToastSignal} from './toast';
import {showToastSignal} from './toast.js';

import type {Job} from '../type';
import type {Job} from '../type.js';
import type {AlwatrServiceResponse} from '@alwatr/fetch';

export const jobListSignal = new SignalInterface('job-list');
Expand Down

0 comments on commit fa739ab

Please sign in to comment.