Skip to content

Commit

Permalink
Merge pull request #17 from bitovi/feature/exercise-routing
Browse files Browse the repository at this point in the history
Feature/exercise routing
  • Loading branch information
DavidNic11 authored Jul 25, 2024
2 parents ac46b97 + b1a6b52 commit 786f9f2
Show file tree
Hide file tree
Showing 30 changed files with 342 additions and 157 deletions.
5 changes: 0 additions & 5 deletions .env.example

This file was deleted.

102 changes: 54 additions & 48 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
"packages/*"
],
"dependencies": {
"@mantine/code-highlight": "^7.11.2",
"react-canvas-confetti": "^2.0.7",
"webpack": "^5.92.1"
}
}
2 changes: 1 addition & 1 deletion packages/catalog/rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default defineConfig({
singleton: true,
},
"@mantine/emotion": {
requiredVersion: false,
requiredVersion: "^7.10.2",
singleton: true,
},
"react-router-dom": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const categories = [
["/shop/men%27s%20clothing", "Men's Clothing"],
["/shop/women%27s%20clothing", "Women's Clothing"],
["/shop/electronics", "Electronics"],
["/shop/jewelery", "Jewelery"],
["/shop/jewelry", "Jewelry"],
];

const Link: FC<{ to: string; text: string }> = ({ to, text }) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/marketing/rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default defineConfig({
singleton: true,
},
"@mantine/emotion": {
requiredVersion: false,
requiredVersion: "^7.10.2",
singleton: true,
},
"react-router-dom": {
Expand Down
2 changes: 1 addition & 1 deletion packages/order/rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default defineConfig({
singleton: true,
},
"@mantine/emotion": {
requiredVersion: false,
requiredVersion: "^7.10.2",
singleton: true,
},
"@mantine/notifications": {
Expand Down
2 changes: 1 addition & 1 deletion packages/profile/rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default defineConfig({
singleton: true,
},
"@mantine/emotion": {
requiredVersion: false,
requiredVersion: "^7.10.2",
singleton: true,
},
"react-router-dom": {
Expand Down
6 changes: 5 additions & 1 deletion packages/shell/rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ export default defineConfig({
singleton: true,
},
"@mantine/emotion": {
requiredVersion: false,
requiredVersion: "^7.10.2",
singleton: true,
},
"@mantine/code-highlight": {
requiredVersion: "^7.11.2",
singleton: true,
},
"@mantine/notifications": {
Expand Down
2 changes: 1 addition & 1 deletion packages/shell/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { emotionTransform, MantineEmotionProvider } from "@mantine/emotion";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";

import { BrowserRouter, Route, Routes } from "react-router-dom";
import * as Sentry from "@sentry/react";
import { Notifications } from "@mantine/notifications";
import * as Sentry from "@sentry/react";

import Layout from "./components/Layout";
import LayoutNoLogin from "./components/LayoutNoLogin";
Expand Down
1 change: 1 addition & 0 deletions packages/shell/src/bootstrap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import App from "./App";

import "@mantine/core/styles.css";
import "@mantine/notifications/styles.css";
import "@mantine/code-highlight/styles.css";
import "./reset.css";

import "./sentry";
Expand Down
6 changes: 5 additions & 1 deletion packages/workshop/rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ export default defineConfig({
singleton: true,
},
"@mantine/emotion": {
requiredVersion: false,
requiredVersion: "^7.10.2",
singleton: true,
},
"@mantine/code-highlight": {
requiredVersion: "^7.11.2",
singleton: true,
},
"react-router-dom": {
Expand Down
3 changes: 2 additions & 1 deletion packages/workshop/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ import { MantineEmotionProvider, emotionTransform } from "@mantine/emotion";
import { BrowserRouter, Route, Routes } from "react-router-dom";

import Welcome from "./scenes/Welcome/Welcome";
import Workshop from "./scenes/Exercises";

import "@mantine/core/styles.css";
import Workshop from "./scenes/Exercises";
import "@mantine/code-highlight/styles.css";

const App = () => {
return (
Expand Down
7 changes: 6 additions & 1 deletion packages/workshop/src/scenes/Exercises/Exercises.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ import ConfiguringModuleFederation from "./components/ConfiguringModuleFederatio
import SharingCommonModules from "./components/SharingCommonModules";
import FaultTolerance from "./components/FaultTolerance";
import AddingMoreMicroFrontends from "./components/AddingMoreMicroFrontends";

import SettingUpRoutes from "./components/SettingUpRoutes";
import CheckoutFlow from "./components/CheckoutFlow";
import AddingItemsToCart from "./components/AddingItemsToCart";
import FilteringByPrice from "./components/FilteringByPrice";
import ShopCategories from "./components/ShopCategories";
import SearchingTheCatalog from "./components/SearchingTheCatalog";
import Conclusion from "./components/Conclusion";

const Workshop: WorkshopScene = () => {
return (
Expand All @@ -28,6 +30,9 @@ const Workshop: WorkshopScene = () => {
<Route path="exercise-6" element={<CheckoutFlow />} />
<Route path="exercise-7" element={<AddingItemsToCart />} />
<Route path="exercise-8" element={<FilteringByPrice />} />
<Route path="exercise-9" element={<ShopCategories />} />
<Route path="exercise-10" element={<SearchingTheCatalog />} />
<Route path="complete" element={<Conclusion />} />
</Route>
</Routes>
);
Expand Down
Loading

0 comments on commit 786f9f2

Please sign in to comment.