Skip to content

Commit

Permalink
still getting error circullar dependency between domain-shared and do…
Browse files Browse the repository at this point in the history
…main-frontend
  • Loading branch information
muzanella11 committed Sep 23, 2024
1 parent 4fe9571 commit 28658fc
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 112 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Install all dependencies and serve locally.

```sh
npm install
npm serve
npm run serve
```

## Deploy to Firebase
Expand Down
2 changes: 2 additions & 0 deletions apps/cms/.env.local.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
GOOGLE_GENAI_API_KEY=

NEXT_PUBLIC_FIREBASE_API_KEY=
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=
NEXT_PUBLIC_FIREBASE_DATABASE_URL=
Expand Down
2 changes: 1 addition & 1 deletion apps/cms/src/components/Form/Dropzone.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";
import {AcceptFileType} from "@tanam/domain-frontend";
import {getAcceptDescription, isFileAccepted} from "@tanam/domain-shared";
import React, {useEffect, useRef, useState} from "react";
import {getAcceptDescription, isFileAccepted} from "../../utils/fileUpload";
import "./styles/dropzone.scss";

export interface DropzoneProps {
Expand Down
2 changes: 1 addition & 1 deletion apps/cms/src/hooks/useFirebaseStorage.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {UserNotification} from "@tanam/domain-frontend";
import {base64ToBlob} from "@tanam/domain-shared";
import {getDownloadURL, ref, uploadBytes} from "firebase/storage";
import {useState} from "react";
import {storage} from "../plugins/firebase";
import {base64ToBlob} from "../utils/fileUpload";

interface FirebaseStorageHook {
isLoading: boolean;
Expand Down
2 changes: 1 addition & 1 deletion libs/domain-frontend/src/models/TanamUser.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {TanamRole, TanamUserBase} from "@tanam/domain-shared";
import {TanamUserBase} from "@tanam/domain-shared";
import {DocumentSnapshot, FieldValue, serverTimestamp, Timestamp} from "firebase/firestore";

export class TanamUser extends TanamUserBase<Timestamp, FieldValue> {
Expand Down
2 changes: 1 addition & 1 deletion libs/domain-shared/src/definitions/AcceptFileType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export enum AcceptFileType {
Excel = "application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
PowerPoint = "application/vnd.ms-powerpoint, application/vnd.openxmlformats-officedocument.presentationml.presentation",
Text = "text/plain",
Audio = "audio/*",
Video = "video/*",
Zip = "application/zip, application/x-rar-compressed, application/x-7z-compressed",
Csv = "text/csv",
Expand All @@ -25,6 +24,7 @@ export enum AcceptFileType {
Flac = "audio/flac",
Aac = "audio/aac",
Wma = "audio/x-ms-wma",
Audio = `${AcceptFileType.AllAudios}`,
Audios = `${AcceptFileType.Mp3}, ${AcceptFileType.Wav}, ${AcceptFileType.Ogg}`,
AllFiles = "*/*",
}
106 changes: 0 additions & 106 deletions libs/domain-shared/src/utils/documentTypeGenerator.ts

This file was deleted.

1 change: 0 additions & 1 deletion libs/domain-shared/src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from "./date";
export * from "./documentTypeGenerator";
export * from "./fileUpload";

0 comments on commit 28658fc

Please sign in to comment.