Skip to content

Commit

Permalink
Merge pull request #36 from AmielCyber/update
Browse files Browse the repository at this point in the history
Integrate my own npm module ☺️
  • Loading branch information
AmielCyber authored Aug 9, 2023
2 parents 9067c61 + 774b23a commit 053d71d
Show file tree
Hide file tree
Showing 18 changed files with 23 additions and 92 deletions.

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

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

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

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ReactRoastDotnet.API/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>React Roast.NET</title>
<script type="module" crossorigin src="/assets/index-abbaf79c.js"></script>
<script type="module" crossorigin src="/assets/index-e97df17e.js"></script>
<link rel="stylesheet" href="/assets/index-41493e7a.css">
</head>
<body>
Expand Down
6 changes: 6 additions & 0 deletions ReactRoastDotnet.Client/package-lock.json

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

1 change: 1 addition & 0 deletions ReactRoastDotnet.Client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
},
"dependencies": {
"@headlessui/react": "^1.7.15",
"problem-details-mapper": "^1.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.45.2",
Expand Down
2 changes: 1 addition & 1 deletion ReactRoastDotnet.Client/src/api/getRequest.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import toast from "react-hot-toast";
// My imports.
import getProblemDetails from "../problem-details/getProblemDetails.ts";
import getProblemDetails from "problem-details-mapper";
import problemToast from "../toast/problemToast.tsx";

const baseURL = import.meta.env.VITE_API_URL as string;
Expand Down
2 changes: 1 addition & 1 deletion ReactRoastDotnet.Client/src/models/Result.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// My import.
import ProblemDetails from "../problem-details/ProblemDetails.ts";
import type {ProblemDetails} from "problem-details-mapper";

type Result<T, P = ProblemDetails> =
| { ok: true; value: T }
Expand Down
10 changes: 0 additions & 10 deletions ReactRoastDotnet.Client/src/problem-details/ProblemDetails.ts

This file was deleted.

66 changes: 0 additions & 66 deletions ReactRoastDotnet.Client/src/problem-details/getProblemDetails.ts

This file was deleted.

2 changes: 1 addition & 1 deletion ReactRoastDotnet.Client/src/store/userActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type AuthUser from "../models/AuthUser";
import type LoginRequest from "../models/LoginRequest.ts";
import type Result from "../models/Result.ts";
import type UserSignUpRequest from "../models/UserSignUpRequest.ts";
import getProblemDetails from "../problem-details/getProblemDetails.ts";
import getProblemDetails from "problem-details-mapper";

const BASE_URL = import.meta.env.VITE_API_URL as string;
const ACCOUNT_LOGIN_URL = BASE_URL + "account/login";
Expand Down
2 changes: 1 addition & 1 deletion ReactRoastDotnet.Client/src/store/userStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {create} from "zustand";
// My imports.
import type AuthUser from "../models/AuthUser";
import type LoginRequest from "../models/LoginRequest.ts";
import type ProblemDetails from "../problem-details/ProblemDetails.ts";
import type {ProblemDetails} from "problem-details-mapper";
import {signIn} from "./userActions.ts";
import problemToast from "../toast/problemToast.tsx";

Expand Down
2 changes: 1 addition & 1 deletion ReactRoastDotnet.Client/src/toast/ProblemDetailsToast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type {ReactNode} from "react";
import type {Toast} from "react-hot-toast";
import toast from "react-hot-toast";
// My imports.
import type ProblemDetails from "../problem-details/ProblemDetails.ts";
import type {ProblemDetails} from "problem-details-mapper";
import XMarkIcon from "../icons/XMarkIcon.tsx";

type Props = {
Expand Down
2 changes: 1 addition & 1 deletion ReactRoastDotnet.Client/src/toast/problemToast.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import toast, {ErrorIcon} from "react-hot-toast";
// My Imports.
import type ProblemDetails from "../problem-details/ProblemDetails.ts";
import type {ProblemDetails} from "problem-details-mapper";
import ProblemDetailsToast from "./ProblemDetailsToast.tsx";

function problemToast(problemDetails: ProblemDetails) {
Expand Down

0 comments on commit 053d71d

Please sign in to comment.