Skip to content

Commit

Permalink
Migrated to Vite JS
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostdog87 committed Jan 30, 2024
1 parent 86981c9 commit fd2364a
Show file tree
Hide file tree
Showing 56 changed files with 8,367 additions and 9,303 deletions.
2 changes: 1 addition & 1 deletion API/DTOs/RegisterDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class RegisterDto
public string Email { get; set; }

[Required]
[RegularExpression("(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{4,8}$", ErrorMessage = "Password must be complex")]
[RegularExpression("(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{6,}$", ErrorMessage = "Password must be complex")]
public string Password { get; set; }

[Required]
Expand Down
2 changes: 1 addition & 1 deletion API/Extensions/ApplicationServiceExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static IServiceCollection AddApplicationServices(this IServiceCollection
policy.AllowAnyMethod()
.AllowAnyHeader()
.AllowCredentials()
.WithOrigins("http://localhost:3000");
.WithOrigins("http://localhost:3001");
});
});
services.AddMediatR(typeof(List.Handler));
Expand Down
Binary file added API/wwwroot/assets/brand-icons-Bd0jwnh9.woff
Binary file not shown.
Binary file added API/wwwroot/assets/brand-icons-Fy_bMVKQ.woff2
Binary file not shown.
Binary file added API/wwwroot/assets/brand-icons-LKidj4O2.eot
Binary file not shown.
Binary file added API/wwwroot/assets/brand-icons-Lm4VqMZc.ttf
Binary file not shown.
1,008 changes: 1,008 additions & 0 deletions API/wwwroot/assets/brand-icons-rvwtIWeM.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added API/wwwroot/assets/flags-zi6jlO2O.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added API/wwwroot/assets/icons-7ukzh50T.woff2
Binary file not shown.
Binary file added API/wwwroot/assets/icons-9vWUBx8H.ttf
Binary file not shown.
1,518 changes: 1,518 additions & 0 deletions API/wwwroot/assets/icons-EcIcnV99.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added API/wwwroot/assets/icons-TgrQBER4.woff
Binary file not shown.
Binary file added API/wwwroot/assets/icons-h8ytVQ_V.eot
Binary file not shown.
116 changes: 116 additions & 0 deletions API/wwwroot/assets/index-56f_34KT.js

Large diffs are not rendered by default.

354 changes: 354 additions & 0 deletions API/wwwroot/assets/index-M5zcGtsA.css

Large diffs are not rendered by default.

Binary file added API/wwwroot/assets/outline-icons-C1_GnSeJ.eot
Binary file not shown.
Binary file added API/wwwroot/assets/outline-icons-GkPPJ5bU.woff
Binary file not shown.
366 changes: 366 additions & 0 deletions API/wwwroot/assets/outline-icons-X3S6_Law.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added API/wwwroot/assets/outline-icons-w_I5tLsu.ttf
Binary file not shown.
Binary file not shown.
20 changes: 19 additions & 1 deletion API/wwwroot/index.html
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.f42f7ca1.js"></script><link href="/static/css/main.922f19e2.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using vite"
/>
<title>React App</title>
<script type="module" crossorigin src="/assets/index-56f_34KT.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-M5zcGtsA.css">
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>
</html>
Expand Down
34 changes: 0 additions & 34 deletions azure-pipelines.yml

This file was deleted.

4 changes: 2 additions & 2 deletions client-app/.env.development
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
REACT_APP_API_URL=http://localhost:5000/api
REACT_APP_CHAT_URL=http://localhost:5000/chat
VITE_API_URL=http://localhost:5000/api
VITE_CHAT_URL=http://localhost:5000/chat
4 changes: 2 additions & 2 deletions client-app/.env.production
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
REACT_APP_API_URL=/api
REACT_APP_CHAT_URL=/chat
VITE_API_URL=/api
VITE_CHAT_URL=/chat
18 changes: 18 additions & 0 deletions client-app/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'off',
{ allowConstantExport: true },
],
},
}
18 changes: 18 additions & 0 deletions client-app/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using vite"
/>
<title>React App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type='module' src='/src/index.tsx'></script>
</body>
</html>
Loading

0 comments on commit fd2364a

Please sign in to comment.