Skip to content

Commit

Permalink
Fixed relative imports in shared
Browse files Browse the repository at this point in the history
  • Loading branch information
Joery-M committed Apr 10, 2024
1 parent 963169e commit 0dde2bc
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions packages/shared/src/Project/SimpleProject.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import SimpleTimeline from '@/Timeline/SimpleTimeline';
import SimpleTimeline from '../Timeline/SimpleTimeline';
import { v4 as uuidv4 } from 'uuid';
import { computed, ref, shallowReactive } from 'vue';
import { default as BaseProject, type ProjectType } from '../base/Project';
import Media from '../Media/Media';
import { v4 as uuidv4 } from 'uuid';
import BaseProject, { type ProjectType } from '../base/Project';

export default class SimpleProject extends BaseProject {
public id = uuidv4();
Expand Down
10 changes: 5 additions & 5 deletions packages/shared/src/Storage/IndexedDbStorage.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import BaseProject from '@/base/Project';
import type BaseTimeline from '@/base/Timeline';
import Media from '@/Media/Media';
import SimpleProject from '@/Project/SimpleProject';
import type SimpleTimeline from '@/Timeline/SimpleTimeline';
import type BaseProject from '../base/Project';
import type {
SaveResults,
StorageControllerType,
StoredMedia,
StoredProject
} from '../base/Storage';
import BaseStorageController from '../base/Storage';
import type BaseTimeline from '../base/Timeline';
import Media from '../Media/Media';
import SimpleProject from '../Project/SimpleProject';
import type SimpleTimeline from '../Timeline/SimpleTimeline';
import { SafelightIndexedDB } from './db';

export default class IndexedDbStorageController extends BaseStorageController {
Expand Down
6 changes: 3 additions & 3 deletions packages/shared/src/Storage/MediaManager.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Storage } from '@/base/Storage';
import { generateMediaThumbnail } from '@/helpers/Video/GenerateMediaThumbnail';
import { getVideoInfo } from '@/helpers/Video/GetVideoInfo';
import { createMD5 } from 'hash-wasm';
import { Observable } from 'rxjs';
import { v4 as uuidv4 } from 'uuid';
import { Storage } from '../base/Storage';
import { generateMediaThumbnail } from '../helpers/Video/GenerateMediaThumbnail';
import { getVideoInfo } from '../helpers/Video/GetVideoInfo';

const chunkSize = 64 * 1024 * 1024;

Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/Storage/db.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { StoredMedia, StoredProject } from '@/base/Storage';
import Dexie, { type Table } from 'dexie';
import type { StoredMedia, StoredProject } from '../base/Storage';

export class SafelightIndexedDB extends Dexie {
media!: Table<StoredMedia, string>;
Expand Down
13 changes: 9 additions & 4 deletions packages/shared/src/base/Storage.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import type { AudioTrackInfo, ImageInfo, TextTrackInfo, VideoTrackInfo } from '@/Media/Media';
import { type default as Media, type MediaType } from '@/Media/Media';
import type { MediaInfoType } from 'mediainfo.js';
import type {
default as Media,
MediaType,
AudioTrackInfo,
ImageInfo,
TextTrackInfo,
VideoTrackInfo
} from '../Media/Media';
import type IndexedDbStorageController from '../Storage/IndexedDbStorage';
import type BaseProject from './Project';
import type { ProjectType } from './Project';
import type { default as BaseProject, ProjectType } from './Project';
import type BaseTimeline from './Timeline';
import type { TimelineItemType } from './TimelineItem';

Expand Down
4 changes: 2 additions & 2 deletions packages/shared/src/base/TimelineItem.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type AudioTimelineItem from '@/TimelineItem/AudioTimelineItem';
import type VideoTimelineItem from '@/TimelineItem/VideoTimelineItem';
import type AudioTimelineItem from '../TimelineItem/AudioTimelineItem';
import type VideoTimelineItem from '../TimelineItem/VideoTimelineItem';
import { v4 as uuidv4 } from 'uuid';
import { ref } from 'vue';

Expand Down
5 changes: 0 additions & 5 deletions packages/shared/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
"verbatimModuleSyntax": true,
"lib": ["DOM", "ESNext"],

"baseUrl": ".",
"paths": {
"@/*": ["./src/*"],
"$/*": ["./public/*"]
},
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,

Expand Down

0 comments on commit 0dde2bc

Please sign in to comment.