Skip to content

Commit

Permalink
chore(utils): change deps from utils to mock-server
Browse files Browse the repository at this point in the history
  • Loading branch information
barsukov committed Nov 6, 2024
1 parent 2988e67 commit 69a29dc
Show file tree
Hide file tree
Showing 13 changed files with 319 additions and 24 deletions.
1 change: 1 addition & 0 deletions apps/doop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"@cloudoperators/juno-ui-components": "*",
"@cloudoperators/juno-url-state-provider-v1": "^1.3.2",
"@cloudoperators/juno-utils": "*",
"@cloudoperators/juno-mock-server": "*",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
Expand Down
2 changes: 1 addition & 1 deletion apps/doop/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import StoreProvider from "./components/StoreProvider"
import AsyncWorker from "./components/AsyncWorker"
import { AppShell } from "@cloudoperators/juno-ui-components"
import { QueryClientProvider, QueryClient } from "@tanstack/react-query"
import { fetchProxyInitDB } from "@cloudoperators/juno-utils"
import { fetchProxyInitDB } from "@cloudoperators/juno-mock-server"
import db from "./db.json"
import { useGlobalsActions } from "./components/StoreProvider"

Expand Down
2 changes: 1 addition & 1 deletion apps/doop/src/components/AppContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { fetchData } from "../lib/apiClient"
import { parseError } from "../lib/helpers"
import Highlighter from "./Highlighter"
import Violations from "./violations/violations"
import { fetchProxy } from "@cloudoperators/juno-utils"
import { fetchProxy } from "@cloudoperators/juno-mock-server"
import { useGlobalsMock, useGlobalsEndpoint } from "./StoreProvider"

const AppContent = ({ showDebugSeverities }) => {
Expand Down
3 changes: 3 additions & 0 deletions apps/doop/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
"@cloudoperators/juno-ui-components#build",
"@cloudoperators/juno-messages-provider#build",
"@cloudoperators/juno-utils#build",
"@cloudoperators/juno-mock-server#build",
"@cloudoperators/juno-communicator#build"
]
},
"build": {
"dependsOn": [
"@cloudoperators/juno-ui-components#build",
"@cloudoperators/juno-utils#build",
"@cloudoperators/juno-mock-server#build",
"@cloudoperators/juno-messages-provider#build",
"@cloudoperators/juno-communicator#build"
]
Expand All @@ -21,6 +23,7 @@
"dependsOn": [
"@cloudoperators/juno-ui-components#build",
"@cloudoperators/juno-utils#build",
"@cloudoperators/juno-mock-server#build",
"@cloudoperators/juno-messages-provider#build",
"@cloudoperators/juno-communicator#build"
]
Expand Down
1 change: 1 addition & 0 deletions apps/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"@cloudoperators/juno-ui-components": "*",
"@cloudoperators/juno-url-state-provider": "*",
"@cloudoperators/juno-utils": "*",
"@cloudoperators/juno-mock-server": "*",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/example/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import StoreProvider, { useGlobalsActions, useAuthActions } from "./components/S
import { MessagesProvider } from "@cloudoperators/juno-messages-provider"

// mock API
import { fetchProxyInitDB } from "@cloudoperators/juno-utils"
import { fetchProxyInitDB } from "@cloudoperators/juno-mock-server"
import db from "./db.json"

const App = (props = {}) => {
Expand Down
9 changes: 6 additions & 3 deletions apps/example/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"@cloudoperators/juno-oauth#build",
"@cloudoperators/juno-communicator#build",
"@cloudoperators/juno-url-state-provider#build",
"@cloudoperators/juno-utils#build"
"@cloudoperators/juno-utils#build",
"@cloudoperators/juno-mock-server#build"
]
},
"build": {
Expand All @@ -18,7 +19,8 @@
"@cloudoperators/juno-oauth#build",
"@cloudoperators/juno-communicator#build",
"@cloudoperators/juno-url-state-provider#build",
"@cloudoperators/juno-utils#build"
"@cloudoperators/juno-utils#build",
"@cloudoperators/juno-mock-server#build"
]
},
"build:static": {
Expand All @@ -28,7 +30,8 @@
"@cloudoperators/juno-oauth#build",
"@cloudoperators/juno-communicator#build",
"@cloudoperators/juno-url-state-provider#build",
"@cloudoperators/juno-utils#build"
"@cloudoperators/juno-utils#build",
"@cloudoperators/juno-mock-server#build"
]
}
}
Expand Down
2 changes: 2 additions & 0 deletions apps/greenhouse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
"@cloudoperators/juno-messages-provider": "*",
"@cloudoperators/juno-oauth": "*",
"@cloudoperators/juno-ui-components": "*",
"@cloudoperators/juno-mock-server": "*",
"@cloudoperators/juno-utils": "*",
"@cloudoperators/juno-url-state-provider-v1": "^1.3.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import TeamList from "./components/team/TeamList"
import Filter from "./components/filter/Filter"
import { useTeamMemberships, useIsMock, useEndpoint, useStoreActions } from "./components/StoreProvider"
import { Messages, useActions } from "@cloudoperators/juno-messages-provider"
import { fetchProxy } from "@cloudoperators/juno-utils"
import { fetchProxy } from "@cloudoperators/juno-mock-server"
import { parseError } from "./lib/helpers"

const AppContent = () => {
Expand Down
16 changes: 12 additions & 4 deletions apps/greenhouse/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"@cloudoperators/juno-communicator#build",
"@cloudoperators/juno-app-supernova#build",
"@cloudoperators/juno-app-heureka#build",
"@cloudoperators/juno-app-doop#build"
"@cloudoperators/juno-app-doop#build",
"@cloudoperators/juno-utils#build",
"@cloudoperators/juno-mock-server#build"
]
},
"build": {
Expand All @@ -20,7 +22,9 @@
"@cloudoperators/juno-communicator#build",
"@cloudoperators/juno-app-supernova#build",
"@cloudoperators/juno-app-heureka#build",
"@cloudoperators/juno-app-doop#build"
"@cloudoperators/juno-app-doop#build",
"@cloudoperators/juno-utils#build",
"@cloudoperators/juno-mock-server#build"
]
},
"build:static": {
Expand All @@ -31,7 +35,9 @@
"@cloudoperators/juno-communicator#build",
"@cloudoperators/juno-app-supernova#build",
"@cloudoperators/juno-app-heureka#build",
"@cloudoperators/juno-app-doop#build"
"@cloudoperators/juno-app-doop#build",
"@cloudoperators/juno-utils#build",
"@cloudoperators/juno-mock-server#build"
]
},
"test": {
Expand All @@ -42,7 +48,9 @@
"@cloudoperators/juno-communicator#build",
"@cloudoperators/juno-app-supernova#build",
"@cloudoperators/juno-app-heureka#build",
"@cloudoperators/juno-app-doop#build"
"@cloudoperators/juno-app-doop#build",
"@cloudoperators/juno-utils#build",
"@cloudoperators/juno-mock-server#build"
]
}
}
Expand Down
1 change: 1 addition & 0 deletions apps/supernova/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"@cloudoperators/juno-ui-components": "*",
"@cloudoperators/juno-url-state-provider-v1": "^1.3.2",
"@cloudoperators/juno-utils": "*",
"@cloudoperators/juno-mock-server": "*",
"react-error-boundary": "^4.0.13",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
3 changes: 3 additions & 0 deletions apps/supernova/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
"@cloudoperators/juno-ui-components#build",
"@cloudoperators/juno-messages-provider#build",
"@cloudoperators/juno-utils#build",
"@cloudoperators/juno-mock-server#build",
"@cloudoperators/juno-communicator#build"
]
},
"build": {
"dependsOn": [
"@cloudoperators/juno-ui-components#build",
"@cloudoperators/juno-utils#build",
"@cloudoperators/juno-mock-server#build",
"@cloudoperators/juno-messages-provider#build",
"@cloudoperators/juno-communicator#build"
]
Expand All @@ -21,6 +23,7 @@
"dependsOn": [
"@cloudoperators/juno-ui-components#build",
"@cloudoperators/juno-utils#build",
"@cloudoperators/juno-mock-server#build",
"@cloudoperators/juno-messages-provider#build",
"@cloudoperators/juno-communicator#build"
]
Expand Down
Loading

0 comments on commit 69a29dc

Please sign in to comment.