├── 001FullStack ├── RestrurantAPI │ ├── .vs │ │ ├── ProjectEvaluation │ │ │ ├── restrurantapi.metadata.v7.bin │ │ │ └── restrurantapi.projects.v7.bin │ │ └── RestrurantAPI │ │ │ ├── DesignTimeBuild │ │ │ └── .dtbcache.v2 │ │ │ ├── FileContentIndex │ │ │ ├── 12fb132e-51a2-4733-b1cc-8bec345e316e.vsidx │ │ │ ├── a4f1ae88-8ec1-4157-bf3e-656f511f5f00.vsidx │ │ │ ├── b36bc999-fd56-48c3-837f-8d5307730790.vsidx │ │ │ ├── b3b6bd0b-35d1-4329-84b2-91b57f1d3e0d.vsidx │ │ │ └── b89b8397-4295-426c-b4dc-2ce52c5d98bd.vsidx │ │ │ ├── config │ │ │ └── applicationhost.config │ │ │ └── v17 │ │ │ ├── .futdcache.v2 │ │ │ └── .suo │ ├── RestrurantAPI.sln │ └── RestrurantAPI │ │ ├── Controllers │ │ ├── CustomerController.cs │ │ ├── FoodItemController.cs │ │ ├── OrderController.cs │ │ └── WeatherForecastController.cs │ │ ├── Migrations │ │ ├── 20231006164644_initial.Designer.cs │ │ ├── 20231006164644_initial.cs │ │ ├── 20231008144924_added.Designer.cs │ │ ├── 20231008144924_added.cs │ │ ├── 20231010152124_fooditms.Designer.cs │ │ ├── 20231010152124_fooditms.cs │ │ └── RestaurantDbContextModelSnapshot.cs │ │ ├── Models │ │ ├── Customer.cs │ │ ├── FoodItem.cs │ │ ├── OrderDetail.cs │ │ ├── OrderMaster.cs │ │ └── RestaurantDbContext.cs │ │ ├── Program.cs │ │ ├── Properties │ │ └── launchSettings.json │ │ ├── RestrurantAPI.csproj │ │ ├── RestrurantAPI.csproj.user │ │ ├── WeatherForecast.cs │ │ ├── appsettings.Development.json │ │ ├── appsettings.json │ │ ├── bin │ │ └── Debug │ │ │ └── net6.0 │ │ │ ├── Azure.Core.dll │ │ │ ├── Azure.Identity.dll │ │ │ ├── Humanizer.dll │ │ │ ├── Microsoft.Bcl.AsyncInterfaces.dll │ │ │ ├── Microsoft.Data.SqlClient.dll │ │ │ ├── Microsoft.EntityFrameworkCore.Abstractions.dll │ │ │ ├── Microsoft.EntityFrameworkCore.Design.dll │ │ │ ├── Microsoft.EntityFrameworkCore.Relational.dll │ │ │ ├── Microsoft.EntityFrameworkCore.SqlServer.dll │ │ │ ├── Microsoft.EntityFrameworkCore.dll │ │ │ ├── Microsoft.Extensions.Caching.Abstractions.dll │ │ │ ├── Microsoft.Extensions.Caching.Memory.dll │ │ │ ├── Microsoft.Extensions.Configuration.Abstractions.dll │ │ │ ├── Microsoft.Extensions.DependencyInjection.Abstractions.dll │ │ │ ├── Microsoft.Extensions.DependencyInjection.dll │ │ │ ├── Microsoft.Extensions.DependencyModel.dll │ │ │ ├── Microsoft.Extensions.Logging.Abstractions.dll │ │ │ ├── Microsoft.Extensions.Logging.dll │ │ │ ├── Microsoft.Extensions.Options.dll │ │ │ ├── Microsoft.Extensions.Primitives.dll │ │ │ ├── Microsoft.Identity.Client.Extensions.Msal.dll │ │ │ ├── Microsoft.Identity.Client.dll │ │ │ ├── Microsoft.IdentityModel.Abstractions.dll │ │ │ ├── Microsoft.IdentityModel.JsonWebTokens.dll │ │ │ ├── Microsoft.IdentityModel.Logging.dll │ │ │ ├── Microsoft.IdentityModel.Protocols.OpenIdConnect.dll │ │ │ ├── Microsoft.IdentityModel.Protocols.dll │ │ │ ├── Microsoft.IdentityModel.Tokens.dll │ │ │ ├── Microsoft.OpenApi.dll │ │ │ ├── Microsoft.SqlServer.Server.dll │ │ │ ├── Microsoft.Win32.SystemEvents.dll │ │ │ ├── Mono.TextTemplating.dll │ │ │ ├── RestrurantAPI.deps.json │ │ │ ├── RestrurantAPI.dll │ │ │ ├── RestrurantAPI.exe │ │ │ ├── RestrurantAPI.pdb │ │ │ ├── RestrurantAPI.runtimeconfig.json │ │ │ ├── Swashbuckle.AspNetCore.Swagger.dll │ │ │ ├── Swashbuckle.AspNetCore.SwaggerGen.dll │ │ │ ├── Swashbuckle.AspNetCore.SwaggerUI.dll │ │ │ ├── System.CodeDom.dll │ │ │ ├── System.Configuration.ConfigurationManager.dll │ │ │ ├── System.Drawing.Common.dll │ │ │ ├── System.IdentityModel.Tokens.Jwt.dll │ │ │ ├── System.Memory.Data.dll │ │ │ ├── System.Runtime.Caching.dll │ │ │ ├── System.Security.Cryptography.ProtectedData.dll │ │ │ ├── System.Security.Permissions.dll │ │ │ ├── System.Text.Encodings.Web.dll │ │ │ ├── System.Text.Json.dll │ │ │ ├── System.Windows.Extensions.dll │ │ │ ├── appsettings.Development.json │ │ │ ├── appsettings.json │ │ │ └── runtimes │ │ │ ├── browser │ │ │ └── lib │ │ │ │ └── net6.0 │ │ │ │ └── System.Text.Encodings.Web.dll │ │ │ ├── unix │ │ │ └── lib │ │ │ │ └── net6.0 │ │ │ │ ├── Microsoft.Data.SqlClient.dll │ │ │ │ └── System.Drawing.Common.dll │ │ │ ├── win-arm │ │ │ └── native │ │ │ │ └── Microsoft.Data.SqlClient.SNI.dll │ │ │ ├── win-arm64 │ │ │ └── native │ │ │ │ └── Microsoft.Data.SqlClient.SNI.dll │ │ │ ├── win-x64 │ │ │ └── native │ │ │ │ └── Microsoft.Data.SqlClient.SNI.dll │ │ │ ├── win-x86 │ │ │ └── native │ │ │ │ └── Microsoft.Data.SqlClient.SNI.dll │ │ │ └── win │ │ │ └── lib │ │ │ └── net6.0 │ │ │ ├── Microsoft.Data.SqlClient.dll │ │ │ ├── Microsoft.Win32.SystemEvents.dll │ │ │ ├── System.Drawing.Common.dll │ │ │ ├── System.Runtime.Caching.dll │ │ │ ├── System.Security.Cryptography.ProtectedData.dll │ │ │ └── System.Windows.Extensions.dll │ │ └── obj │ │ ├── Debug │ │ └── net6.0 │ │ │ ├── .NETCoreApp,Version=v6.0.AssemblyAttributes.cs │ │ │ ├── RestrurantAPI.AssemblyInfo.cs │ │ │ ├── RestrurantAPI.AssemblyInfoInputs.cache │ │ │ ├── RestrurantAPI.GeneratedMSBuildEditorConfig.editorconfig │ │ │ ├── RestrurantAPI.GlobalUsings.g.cs │ │ │ ├── RestrurantAPI.MvcApplicationPartsAssemblyInfo.cache │ │ │ ├── RestrurantAPI.MvcApplicationPartsAssemblyInfo.cs │ │ │ ├── RestrurantAPI.assets.cache │ │ │ ├── RestrurantAPI.csproj.AssemblyReference.cache │ │ │ ├── RestrurantAPI.csproj.BuildWithSkipAnalyzers │ │ │ ├── RestrurantAPI.csproj.CopyComplete │ │ │ ├── RestrurantAPI.csproj.CoreCompileInputs.cache │ │ │ ├── RestrurantAPI.csproj.FileListAbsolute.txt │ │ │ ├── RestrurantAPI.dll │ │ │ ├── RestrurantAPI.genruntimeconfig.cache │ │ │ ├── RestrurantAPI.pdb │ │ │ ├── apphost.exe │ │ │ ├── ref │ │ │ └── RestrurantAPI.dll │ │ │ ├── refint │ │ │ └── RestrurantAPI.dll │ │ │ ├── staticwebassets.build.json │ │ │ └── staticwebassets │ │ │ ├── msbuild.build.RestrurantAPI.props │ │ │ ├── msbuild.buildMultiTargeting.RestrurantAPI.props │ │ │ └── msbuild.buildTransitive.RestrurantAPI.props │ │ ├── RestrurantAPI.csproj.nuget.dgspec.json │ │ ├── RestrurantAPI.csproj.nuget.g.props │ │ ├── RestrurantAPI.csproj.nuget.g.targets │ │ ├── project.assets.json │ │ └── project.nuget.cache └── restrurant-ui │ ├── .eslintrc.cjs │ ├── .gitignore │ ├── README.md │ ├── index.html │ ├── package-lock.json │ ├── package.json │ ├── postcss.config.js │ ├── public │ ├── Capture.png │ ├── CaptureChef.PNG │ ├── CaptureChefBack.png │ └── CaptureLogo.png │ ├── src │ ├── App.css │ ├── App.jsx │ ├── Layout.jsx │ ├── Order │ │ ├── OrderForm.js │ │ ├── OrderList.js │ │ ├── OrderedFoodItems.js │ │ ├── SearchFoodItems.js │ │ └── index.js │ ├── admin │ │ └── user │ │ │ └── ManageCustomer.jsx │ ├── assets │ │ └── react.svg │ ├── components │ │ ├── Customer │ │ │ ├── AddCustomer.jsx │ │ │ └── EditCustomer.jsx │ │ ├── FoodItem │ │ │ ├── AddFoodItem.jsx │ │ │ └── EditFoodItem.jsx │ │ ├── Index │ │ │ ├── CustomerIndex.jsx │ │ │ ├── FoodItemIndex.jsx │ │ │ └── LandingIndex.jsx │ │ ├── Layout │ │ │ ├── Footer.jsx │ │ │ ├── Header.jsx │ │ │ └── Sidebar.jsx │ │ ├── Order │ │ │ ├── OrderForm.js │ │ │ ├── OrderList.js │ │ │ ├── OrderedFoodItems.js │ │ │ ├── SearchFoodItems.js │ │ │ └── index.js │ │ ├── OrderManagement │ │ │ ├── CreateOrder.jsx │ │ │ ├── OrderList.jsx │ │ │ └── OrderedFoodItems.jsx │ │ └── User │ │ │ └── User.jsx │ ├── hooks │ │ └── useForm.js │ ├── index.css │ ├── layouts │ │ ├── Form.js │ │ ├── Notification.js │ │ ├── Popup.js │ │ └── Table.js │ └── main.jsx │ ├── tailwind.config.js │ ├── utils │ └── ApiRoutes.js │ └── vite.config.js ├── ContextConcepts ├── .eslintrc.cjs ├── .gitignore ├── README.md ├── index.html ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ └── vite.svg ├── src │ ├── App.css │ ├── App.jsx │ ├── assets │ │ └── react.svg │ ├── components │ │ ├── Login.jsx │ │ └── Profile.jsx │ ├── context │ │ ├── UserContext.js │ │ └── UserContextProvider.jsx │ ├── index.css │ └── main.jsx ├── tailwind.config.js └── vite.config.js ├── CurrencyConvertor ├── .eslintrc.cjs ├── .gitignore ├── README.md ├── index.html ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ └── vite.svg ├── src │ ├── App.css │ ├── App.jsx │ ├── assets │ │ └── react.svg │ ├── components │ │ ├── InputBox.jsx │ │ └── index.js │ ├── hooks │ │ └── useCurrencyInfo.js │ ├── index.css │ └── main.jsx ├── tailwind.config.js └── vite.config.js ├── CustomReact ├── customreact.js └── index.html ├── EcoCycle ├── .eslintrc.cjs ├── .gitignore ├── README.md ├── index.html ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ ├── Fertilizer.jpg │ ├── Fertilizer1.jpg │ ├── Logo.png │ ├── Organic.jpg │ ├── SaveEarth.png │ ├── TomatoFertilizer.jpg │ ├── chemical.jpg │ ├── design.png │ ├── from.jpg │ ├── hand.jpg │ ├── manage.jpeg │ ├── organic.png │ ├── small.jpg │ ├── symbol.jpg │ └── wasteclass.png ├── src │ ├── App.css │ ├── Layout.jsx │ ├── components │ │ ├── About │ │ │ ├── About.css │ │ │ └── About.jsx │ │ ├── Client │ │ │ ├── BioProducts.jsx │ │ │ └── CallForCollection.jsx │ │ ├── Contact │ │ │ └── Contact.jsx │ │ ├── Footer │ │ │ └── Footer.jsx │ │ ├── Header │ │ │ └── Header.jsx │ │ ├── Home │ │ │ └── Home.jsx │ │ ├── NewContact │ │ │ └── NewContact.jsx │ │ └── User │ │ │ └── User.jsx │ ├── index.css │ └── main.jsx ├── tailwind.config.js └── vite.config.js ├── LocalStorageContext ├── .eslintrc.cjs ├── .gitignore ├── README.md ├── index.html ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ └── vite.svg ├── src │ ├── App.css │ ├── App.jsx │ ├── assets │ │ └── react.svg │ ├── components │ │ ├── TodoForm.jsx │ │ ├── TodoItem.jsx │ │ └── index.js │ ├── contexts │ │ ├── TodoContext.js │ │ └── index.js │ ├── index.css │ └── main.jsx ├── tailwind.config.js └── vite.config.js ├── RandomNumberMixed ├── .eslintrc.cjs ├── .gitignore ├── README.md ├── index.html ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ └── vite.svg ├── src │ ├── App.css │ ├── App.jsx │ ├── assets │ │ └── react.svg │ ├── index.css │ ├── main.jsx │ └── toastrService.js ├── tailwind.config.js └── vite.config.js ├── ReactRouter ├── .eslintrc.cjs ├── .gitignore ├── README.md ├── index.html ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ └── vite.svg ├── src │ ├── App.css │ ├── Layout.jsx │ ├── assets │ │ └── react.svg │ ├── components │ │ ├── About │ │ │ └── About.jsx │ │ ├── Contact │ │ │ └── Contact.jsx │ │ ├── Footer │ │ │ └── Footer.jsx │ │ ├── Github │ │ │ └── Github.jsx │ │ ├── Header │ │ │ └── Header.jsx │ │ ├── Home │ │ │ └── Home.jsx │ │ └── User │ │ │ └── User.jsx │ ├── index.css │ └── main.jsx ├── tailwind.config.js └── vite.config.js ├── TailWindBg ├── .eslintrc.cjs ├── .gitignore ├── README.md ├── index.html ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ └── vite.svg ├── src │ ├── App.css │ ├── App.jsx │ ├── assets │ │ └── react.svg │ ├── index.css │ └── main.jsx ├── tailwind.config.js └── vite.config.js ├── ThemeChanger ├── .eslintrc.cjs ├── .gitignore ├── README.md ├── index.html ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ ├── Fertilizer.jpg │ ├── Fertilizer1.jpg │ ├── Logo.png │ ├── Organic.jpg │ ├── SaveEarth.png │ ├── TomatoFertilizer.jpg │ ├── chemical.jpg │ ├── design.png │ ├── from.jpg │ ├── hand.jpg │ ├── manage.jpeg │ ├── organic.png │ ├── small.jpg │ ├── symbol.jpg │ ├── vite.svg │ └── wasteclass.png ├── src │ ├── App.css │ ├── App.jsx │ ├── components │ │ ├── Card.jsx │ │ └── ThemeBtn.jsx │ ├── contexts │ │ └── theme.jsx │ ├── index.css │ └── main.jsx ├── tailwind.config.js └── vite.config.js ├── counter ├── .eslintrc.cjs ├── .gitignore ├── README.md ├── index.html ├── package-lock.json ├── package.json ├── public │ └── vite.svg ├── src │ ├── App.css │ ├── App.jsx │ ├── assets │ │ └── react.svg │ ├── index.css │ └── main.jsx └── vite.config.js ├── note ├── package-lock.json ├── reduxToolKit ├── .eslintrc.cjs ├── .gitignore ├── README.md ├── index.html ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ └── vite.svg ├── src │ ├── App.css │ ├── App.jsx │ ├── app │ │ └── store.js │ ├── assets │ │ └── react.svg │ ├── components │ │ ├── AddTodo.jsx │ │ └── Todos.jsx │ ├── features │ │ └── todo │ │ │ └── todoSlice.js │ ├── index.css │ └── main.jsx ├── tailwind.config.js └── vite.config.js ├── tailwindwithprops ├── .eslintrc.cjs ├── .gitignore ├── README.md ├── index.html ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ └── vite.svg ├── src │ ├── App.css │ ├── App.jsx │ ├── assets │ │ └── react.svg │ ├── components │ │ └── Card.jsx │ ├── index.css │ └── main.jsx ├── tailwind.config.js └── vite.config.js └── vitebasics ├── .eslintrc.cjs ├── .gitignore ├── README.md ├── index.html ├── package-lock.json ├── package.json ├── public └── vite.svg ├── src ├── App.jsx ├── Hello.jsx └── main.jsx └── vite.config.js /001FullStack/RestrurantAPI/.vs/ProjectEvaluation/restrurantapi.metadata.v7.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/.vs/ProjectEvaluation/restrurantapi.metadata.v7.bin -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/.vs/ProjectEvaluation/restrurantapi.projects.v7.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/.vs/ProjectEvaluation/restrurantapi.projects.v7.bin -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/.vs/RestrurantAPI/DesignTimeBuild/.dtbcache.v2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/.vs/RestrurantAPI/DesignTimeBuild/.dtbcache.v2 -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/.vs/RestrurantAPI/FileContentIndex/12fb132e-51a2-4733-b1cc-8bec345e316e.vsidx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/.vs/RestrurantAPI/FileContentIndex/12fb132e-51a2-4733-b1cc-8bec345e316e.vsidx -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/.vs/RestrurantAPI/FileContentIndex/a4f1ae88-8ec1-4157-bf3e-656f511f5f00.vsidx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/.vs/RestrurantAPI/FileContentIndex/a4f1ae88-8ec1-4157-bf3e-656f511f5f00.vsidx -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/.vs/RestrurantAPI/FileContentIndex/b36bc999-fd56-48c3-837f-8d5307730790.vsidx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/.vs/RestrurantAPI/FileContentIndex/b36bc999-fd56-48c3-837f-8d5307730790.vsidx -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/.vs/RestrurantAPI/FileContentIndex/b3b6bd0b-35d1-4329-84b2-91b57f1d3e0d.vsidx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/.vs/RestrurantAPI/FileContentIndex/b3b6bd0b-35d1-4329-84b2-91b57f1d3e0d.vsidx -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/.vs/RestrurantAPI/FileContentIndex/b89b8397-4295-426c-b4dc-2ce52c5d98bd.vsidx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/.vs/RestrurantAPI/FileContentIndex/b89b8397-4295-426c-b4dc-2ce52c5d98bd.vsidx -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/.vs/RestrurantAPI/v17/.futdcache.v2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/.vs/RestrurantAPI/v17/.futdcache.v2 -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/.vs/RestrurantAPI/v17/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/.vs/RestrurantAPI/v17/.suo -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.7.34031.279 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RestrurantAPI", "RestrurantAPI\RestrurantAPI.csproj", "{FD6AEC21-DB5D-44FC-B529-D88597B6B13C}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {FD6AEC21-DB5D-44FC-B529-D88597B6B13C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {FD6AEC21-DB5D-44FC-B529-D88597B6B13C}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {FD6AEC21-DB5D-44FC-B529-D88597B6B13C}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {FD6AEC21-DB5D-44FC-B529-D88597B6B13C}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {E0D4A8F0-E470-4715-876D-A1ABAC68A5C4} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/Controllers/WeatherForecastController.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Mvc; 2 | using Microsoft.Extensions.Logging; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | 8 | namespace RestrurantAPI.Controllers 9 | { 10 | [ApiController] 11 | [Route("[controller]")] 12 | public class WeatherForecastController : ControllerBase 13 | { 14 | private static readonly string[] Summaries = new[] 15 | { 16 | "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" 17 | }; 18 | 19 | private readonly ILogger _logger; 20 | 21 | public WeatherForecastController(ILogger logger) 22 | { 23 | _logger = logger; 24 | } 25 | 26 | [HttpGet] 27 | public IEnumerable Get() 28 | { 29 | var rng = new Random(); 30 | return Enumerable.Range(1, 5).Select(index => new WeatherForecast 31 | { 32 | Date = DateTime.Now.AddDays(index), 33 | TemperatureC = rng.Next(-20, 55), 34 | Summary = Summaries[rng.Next(Summaries.Length)] 35 | }) 36 | .ToArray(); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/Migrations/20231008144924_added.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Microsoft.EntityFrameworkCore.Migrations; 3 | 4 | #nullable disable 5 | 6 | namespace RestrurantAPI.Migrations 7 | { 8 | /// 9 | public partial class added : Migration 10 | { 11 | /// 12 | protected override void Up(MigrationBuilder migrationBuilder) 13 | { 14 | migrationBuilder.AddColumn( 15 | name: "BirthDate", 16 | table: "Customers", 17 | type: "datetime2", 18 | nullable: true); 19 | 20 | migrationBuilder.AddColumn( 21 | name: "Email", 22 | table: "Customers", 23 | type: "nvarchar(100)", 24 | nullable: false, 25 | defaultValue: ""); 26 | } 27 | 28 | /// 29 | protected override void Down(MigrationBuilder migrationBuilder) 30 | { 31 | migrationBuilder.DropColumn( 32 | name: "BirthDate", 33 | table: "Customers"); 34 | 35 | migrationBuilder.DropColumn( 36 | name: "Email", 37 | table: "Customers"); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/Migrations/20231010152124_fooditms.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore.Migrations; 2 | 3 | #nullable disable 4 | 5 | namespace RestrurantAPI.Migrations 6 | { 7 | /// 8 | public partial class fooditms : Migration 9 | { 10 | /// 11 | protected override void Up(MigrationBuilder migrationBuilder) 12 | { 13 | 14 | } 15 | 16 | /// 17 | protected override void Down(MigrationBuilder migrationBuilder) 18 | { 19 | 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/Models/Customer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.ComponentModel.DataAnnotations.Schema; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | 8 | namespace RestrurantAPI.Models 9 | { 10 | public class Customer 11 | { 12 | [Key] 13 | [DatabaseGenerated(DatabaseGeneratedOption.Identity)] 14 | public int CustomerID { get; set; } 15 | 16 | [Required(ErrorMessage = "CustomerName is required")] 17 | [Column(TypeName = "nvarchar(100)")] 18 | public string CustomerName { get; set; } 19 | 20 | [Column(TypeName = "nvarchar(100)")] 21 | public string Email { get; set; } 22 | 23 | public DateTime? BirthDate { get; set; } 24 | 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/Models/FoodItem.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.ComponentModel.DataAnnotations.Schema; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | 8 | namespace RestrurantAPI.Models 9 | { 10 | public class FoodItem 11 | { 12 | [Key] 13 | [DatabaseGenerated(DatabaseGeneratedOption.Identity)] 14 | public int FoodItemId { get; set; } 15 | 16 | [Column(TypeName ="nvarchar(100)")] 17 | public string FoodItemName { get; set; } 18 | 19 | public decimal Price { get; set; } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/Models/OrderDetail.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.ComponentModel.DataAnnotations.Schema; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | 8 | namespace RestrurantAPI.Models 9 | { 10 | public class OrderDetail 11 | { 12 | [Key] 13 | [DatabaseGenerated(DatabaseGeneratedOption.Identity)] 14 | public long OrderDetailId { get; set; } 15 | 16 | public long OrderMasterId { get; set; } 17 | 18 | public int FoodItemId { get; set; } 19 | public FoodItem FoodItem { get; set; } 20 | 21 | public decimal FoodItemPrice { get; set; } 22 | 23 | public int Quantity { get; set; } 24 | 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/Models/OrderMaster.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.ComponentModel.DataAnnotations.Schema; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | 8 | namespace RestrurantAPI.Models 9 | { 10 | public class OrderMaster 11 | { 12 | [Key] 13 | [DatabaseGenerated(DatabaseGeneratedOption.Identity)] 14 | public long OrderMasterId { get; set; } 15 | 16 | [Column(TypeName = "nvarchar(75)")] 17 | public string OrderNumber { get; set; } 18 | 19 | public int CustomerId { get; set; } 20 | public Customer Customer { get; set; } 21 | 22 | [Column(TypeName = "nvarchar(10)")] 23 | public string PMethod { get; set; } 24 | 25 | public decimal GTotal { get; set; } 26 | 27 | public List OrderDetails { get; set; } 28 | 29 | [NotMapped] 30 | public string DeletedOrderItemIds { get; set; } 31 | 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/Models/RestaurantDbContext.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | 7 | namespace RestrurantAPI.Models 8 | { 9 | public class RestaurantDbContext:DbContext 10 | { 11 | public RestaurantDbContext(DbContextOptions options):base(options) 12 | { 13 | 14 | } 15 | 16 | public DbSet Customers { get; set; } 17 | public DbSet FoodItems { get; set; } 18 | public DbSet OrderMasters { get; set; } 19 | public DbSet OrderDetails { get; set; } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/Program.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Builder; 2 | using Microsoft.AspNetCore.Hosting; 3 | using Microsoft.EntityFrameworkCore; 4 | using Microsoft.Extensions.DependencyInjection; 5 | using Microsoft.Extensions.Hosting; 6 | using RestrurantAPI.Models; 7 | 8 | var builder = WebApplication.CreateBuilder(args); 9 | 10 | // Add services to the container. 11 | builder.Services.AddControllers(); 12 | builder.Services.AddEndpointsApiExplorer(); 13 | builder.Services.AddSwaggerGen(); 14 | 15 | builder.Services.AddDbContext(options => 16 | { 17 | options.UseSqlServer( 18 | builder.Configuration.GetConnectionString("DefaultConnection") 19 | ); 20 | }); 21 | builder.Services.AddCors(c => 22 | { 23 | c.AddPolicy("AllowOrigin", options => options.AllowAnyOrigin()); 24 | }); 25 | 26 | // Add CORS services and configure a CORS policy. 27 | builder.Services.AddCors(options => 28 | { 29 | options.AddPolicy("AllowAnyOrigin", builder => 30 | { 31 | builder 32 | .AllowAnyOrigin() // Allow requests from any origin 33 | .AllowAnyMethod() 34 | .AllowAnyHeader(); 35 | }); 36 | }); 37 | 38 | 39 | builder.Services.AddEndpointsApiExplorer(); 40 | builder.Services.AddSwaggerGen(); 41 | 42 | // Configure other services here... 43 | 44 | var app = builder.Build(); 45 | 46 | // Configure the HTTP request pipeline. 47 | if (app.Environment.IsDevelopment()) 48 | { 49 | app.UseSwagger(); 50 | app.UseSwaggerUI(); 51 | } 52 | 53 | app.UseHttpsRedirection(); 54 | 55 | app.UseAuthorization(); 56 | 57 | // Use CORS with the specific policy before mapping controllers. 58 | app.UseCors("AllowAnyOrigin"); 59 | 60 | app.MapControllers(); 61 | 62 | app.Run(); 63 | 64 | 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/launchsettings.json", 3 | "iisSettings": { 4 | "windowsAuthentication": false, 5 | "anonymousAuthentication": true, 6 | "iisExpress": { 7 | "applicationUrl": "http://localhost:21033", 8 | "sslPort": 44356 9 | } 10 | }, 11 | "profiles": { 12 | "RestrurantAPI": { 13 | "commandName": "Project", 14 | "dotnetRunMessages": true, 15 | "launchBrowser": true, 16 | "launchUrl": "swagger", 17 | "applicationUrl": "https://localhost:7279;http://localhost:5253", 18 | "environmentVariables": { 19 | "ASPNETCORE_ENVIRONMENT": "Development" 20 | } 21 | }, 22 | "IIS Express": { 23 | "commandName": "IISExpress", 24 | "launchBrowser": true, 25 | "launchUrl": "swagger", 26 | "environmentVariables": { 27 | "ASPNETCORE_ENVIRONMENT": "Development" 28 | } 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/RestrurantAPI.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net6.0 5 | enable 6 | enable 7 | 8 | 9 | 10 | 11 | 12 | 13 | all 14 | runtime; build; native; contentfiles; analyzers; buildtransitive 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/RestrurantAPI.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | ProjectDebugger 5 | 6 | 7 | IIS Express 8 | 9 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/WeatherForecast.cs: -------------------------------------------------------------------------------- 1 | namespace RestrurantAPI 2 | { 3 | public class WeatherForecast 4 | { 5 | public DateTime Date { get; set; } 6 | 7 | public int TemperatureC { get; set; } 8 | 9 | public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); 10 | 11 | public string? Summary { get; set; } 12 | } 13 | } -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*", 9 | "ConnectionStrings": { 10 | "DefaultConnection": "Server=DESKTOP-2ILB58A;Database=ReactAndDotnet;User=sa;Password=L@xmir1n1;TrustServerCertificate=true;" 11 | } 12 | } -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Azure.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Azure.Core.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Azure.Identity.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Azure.Identity.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Humanizer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Humanizer.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Bcl.AsyncInterfaces.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Bcl.AsyncInterfaces.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Data.SqlClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Data.SqlClient.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.Abstractions.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.Design.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.Design.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.Relational.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.Relational.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.SqlServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.SqlServer.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Extensions.Caching.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Extensions.Caching.Abstractions.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Extensions.Caching.Memory.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Extensions.Caching.Memory.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Extensions.Configuration.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Extensions.Configuration.Abstractions.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Extensions.DependencyInjection.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Extensions.DependencyInjection.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Extensions.DependencyModel.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Extensions.DependencyModel.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Extensions.Logging.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Extensions.Logging.Abstractions.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Extensions.Logging.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Extensions.Logging.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Extensions.Options.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Extensions.Options.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Extensions.Primitives.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Extensions.Primitives.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Identity.Client.Extensions.Msal.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Identity.Client.Extensions.Msal.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Identity.Client.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Identity.Client.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.IdentityModel.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.IdentityModel.Abstractions.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.IdentityModel.JsonWebTokens.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.IdentityModel.JsonWebTokens.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.IdentityModel.Logging.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.IdentityModel.Logging.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.IdentityModel.Protocols.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.IdentityModel.Protocols.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.IdentityModel.Tokens.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.IdentityModel.Tokens.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.OpenApi.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.OpenApi.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.SqlServer.Server.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.SqlServer.Server.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Win32.SystemEvents.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Microsoft.Win32.SystemEvents.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Mono.TextTemplating.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Mono.TextTemplating.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/RestrurantAPI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/RestrurantAPI.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/RestrurantAPI.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/RestrurantAPI.exe -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/RestrurantAPI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/RestrurantAPI.pdb -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/RestrurantAPI.runtimeconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "tfm": "net6.0", 4 | "frameworks": [ 5 | { 6 | "name": "Microsoft.NETCore.App", 7 | "version": "6.0.0" 8 | }, 9 | { 10 | "name": "Microsoft.AspNetCore.App", 11 | "version": "6.0.0" 12 | } 13 | ], 14 | "configProperties": { 15 | "System.GC.Server": true, 16 | "System.Reflection.NullabilityInfoContext.IsSupported": true, 17 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Swashbuckle.AspNetCore.Swagger.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Swashbuckle.AspNetCore.Swagger.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Swashbuckle.AspNetCore.SwaggerGen.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Swashbuckle.AspNetCore.SwaggerGen.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Swashbuckle.AspNetCore.SwaggerUI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/Swashbuckle.AspNetCore.SwaggerUI.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/System.CodeDom.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/System.CodeDom.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/System.Configuration.ConfigurationManager.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/System.Configuration.ConfigurationManager.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/System.Drawing.Common.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/System.Drawing.Common.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/System.IdentityModel.Tokens.Jwt.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/System.IdentityModel.Tokens.Jwt.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/System.Memory.Data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/System.Memory.Data.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/System.Runtime.Caching.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/System.Runtime.Caching.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/System.Security.Cryptography.ProtectedData.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/System.Security.Cryptography.ProtectedData.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/System.Security.Permissions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/System.Security.Permissions.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/System.Text.Encodings.Web.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/System.Text.Encodings.Web.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/System.Text.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/System.Text.Json.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/System.Windows.Extensions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/System.Windows.Extensions.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*", 9 | "ConnectionStrings": { 10 | "DefaultConnection": "Server=DESKTOP-2ILB58A;Database=ReactAndDotnet;User=sa;Password=L@xmir1n1;TrustServerCertificate=true;" 11 | } 12 | } -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/browser/lib/net6.0/System.Text.Encodings.Web.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/browser/lib/net6.0/System.Text.Encodings.Web.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/unix/lib/net6.0/Microsoft.Data.SqlClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/unix/lib/net6.0/Microsoft.Data.SqlClient.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/unix/lib/net6.0/System.Drawing.Common.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/unix/lib/net6.0/System.Drawing.Common.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/win-arm/native/Microsoft.Data.SqlClient.SNI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/win-arm/native/Microsoft.Data.SqlClient.SNI.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/win-arm64/native/Microsoft.Data.SqlClient.SNI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/win-arm64/native/Microsoft.Data.SqlClient.SNI.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/win-x64/native/Microsoft.Data.SqlClient.SNI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/win-x64/native/Microsoft.Data.SqlClient.SNI.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/win-x86/native/Microsoft.Data.SqlClient.SNI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/win-x86/native/Microsoft.Data.SqlClient.SNI.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/win/lib/net6.0/Microsoft.Data.SqlClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/win/lib/net6.0/Microsoft.Data.SqlClient.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/win/lib/net6.0/Microsoft.Win32.SystemEvents.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/win/lib/net6.0/Microsoft.Win32.SystemEvents.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/win/lib/net6.0/System.Drawing.Common.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/win/lib/net6.0/System.Drawing.Common.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/win/lib/net6.0/System.Runtime.Caching.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/win/lib/net6.0/System.Runtime.Caching.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/win/lib/net6.0/System.Security.Cryptography.ProtectedData.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/win/lib/net6.0/System.Security.Cryptography.ProtectedData.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/win/lib/net6.0/System.Windows.Extensions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/bin/Debug/net6.0/runtimes/win/lib/net6.0/System.Windows.Extensions.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs: -------------------------------------------------------------------------------- 1 | // 2 | using System; 3 | using System.Reflection; 4 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] 5 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/RestrurantAPI.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("RestrurantAPI")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 16 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 17 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 18 | [assembly: System.Reflection.AssemblyProductAttribute("RestrurantAPI")] 19 | [assembly: System.Reflection.AssemblyTitleAttribute("RestrurantAPI")] 20 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 21 | 22 | // Generated by the MSBuild WriteCodeFragment class. 23 | 24 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/RestrurantAPI.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 80778acf0c185ed385bd289c46f85aaf09a457de 2 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/RestrurantAPI.GeneratedMSBuildEditorConfig.editorconfig: -------------------------------------------------------------------------------- 1 | is_global = true 2 | build_property.TargetFramework = net6.0 3 | build_property.TargetPlatformMinVersion = 4 | build_property.UsingMicrosoftNETSdkWeb = true 5 | build_property.ProjectTypeGuids = 6 | build_property.InvariantGlobalization = 7 | build_property.PlatformNeutralAssembly = 8 | build_property.EnforceExtendedAnalyzerRules = 9 | build_property._SupportedPlatformList = Linux,macOS,Windows 10 | build_property.RootNamespace = RestrurantAPI 11 | build_property.RootNamespace = RestrurantAPI 12 | build_property.ProjectDir = F:\3JS\React\001FullStack\RestrurantAPI\RestrurantAPI\ 13 | build_property.RazorLangVersion = 6.0 14 | build_property.SupportLocalizedComponentNames = 15 | build_property.GenerateRazorMetadataSourceChecksumAttributes = 16 | build_property.MSBuildProjectDirectory = F:\3JS\React\001FullStack\RestrurantAPI\RestrurantAPI 17 | build_property._RazorSourceGeneratorDebug = 18 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/RestrurantAPI.GlobalUsings.g.cs: -------------------------------------------------------------------------------- 1 | // 2 | global using global::Microsoft.AspNetCore.Builder; 3 | global using global::Microsoft.AspNetCore.Hosting; 4 | global using global::Microsoft.AspNetCore.Http; 5 | global using global::Microsoft.AspNetCore.Routing; 6 | global using global::Microsoft.Extensions.Configuration; 7 | global using global::Microsoft.Extensions.DependencyInjection; 8 | global using global::Microsoft.Extensions.Hosting; 9 | global using global::Microsoft.Extensions.Logging; 10 | global using global::System; 11 | global using global::System.Collections.Generic; 12 | global using global::System.IO; 13 | global using global::System.Linq; 14 | global using global::System.Net.Http; 15 | global using global::System.Net.Http.Json; 16 | global using global::System.Threading; 17 | global using global::System.Threading.Tasks; 18 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/RestrurantAPI.MvcApplicationPartsAssemblyInfo.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/RestrurantAPI.MvcApplicationPartsAssemblyInfo.cache -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/RestrurantAPI.MvcApplicationPartsAssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartAttribute("Swashbuckle.AspNetCore.SwaggerGen")] 15 | 16 | // Generated by the MSBuild WriteCodeFragment class. 17 | 18 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/RestrurantAPI.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/RestrurantAPI.assets.cache -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/RestrurantAPI.csproj.AssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/RestrurantAPI.csproj.AssemblyReference.cache -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/RestrurantAPI.csproj.BuildWithSkipAnalyzers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/RestrurantAPI.csproj.BuildWithSkipAnalyzers -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/RestrurantAPI.csproj.CopyComplete: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/RestrurantAPI.csproj.CopyComplete -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/RestrurantAPI.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | a3fcb4ee698f56f39f3e9304e8a4e0e3da530960 2 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/RestrurantAPI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/RestrurantAPI.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/RestrurantAPI.genruntimeconfig.cache: -------------------------------------------------------------------------------- 1 | e0cbaca490d37dd389cb1cbbe80f436f302ac3f0 2 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/RestrurantAPI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/RestrurantAPI.pdb -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/apphost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/apphost.exe -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/ref/RestrurantAPI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/ref/RestrurantAPI.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/refint/RestrurantAPI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/refint/RestrurantAPI.dll -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/staticwebassets.build.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": 1, 3 | "Hash": "+6mpPcsfnT2+MYYAK+Nv5WXPZ96018FwJwoq/Y8bH4k=", 4 | "Source": "RestrurantAPI", 5 | "BasePath": "_content/RestrurantAPI", 6 | "Mode": "Default", 7 | "ManifestType": "Build", 8 | "ReferencedProjectsConfiguration": [], 9 | "DiscoveryPatterns": [], 10 | "Assets": [] 11 | } -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/staticwebassets/msbuild.build.RestrurantAPI.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/staticwebassets/msbuild.buildMultiTargeting.RestrurantAPI.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/obj/Debug/net6.0/staticwebassets/msbuild.buildTransitive.RestrurantAPI.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /001FullStack/RestrurantAPI/RestrurantAPI/obj/RestrurantAPI.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/.eslintrc.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { browser: true, es2020: true }, 4 | extends: [ 5 | 'eslint:recommended', 6 | 'plugin:react/recommended', 7 | 'plugin:react/jsx-runtime', 8 | 'plugin:react-hooks/recommended', 9 | ], 10 | ignorePatterns: ['dist', '.eslintrc.cjs'], 11 | parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, 12 | settings: { react: { version: '18.2' } }, 13 | plugins: ['react-refresh'], 14 | rules: { 15 | 'react-refresh/only-export-components': [ 16 | 'warn', 17 | { allowConstantExport: true }, 18 | ], 19 | }, 20 | } 21 | -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | dist 12 | dist-ssr 13 | *.local 14 | 15 | # Editor directories and files 16 | .vscode/* 17 | !.vscode/extensions.json 18 | .idea 19 | .DS_Store 20 | *.suo 21 | *.ntvs* 22 | *.njsproj 23 | *.sln 24 | *.sw? 25 | -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/README.md: -------------------------------------------------------------------------------- 1 | # React + Vite 2 | 3 | This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. 4 | 5 | Currently, two official plugins are available: 6 | 7 | - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh 8 | - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh 9 | -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Restro App 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "restrurant-ui", 3 | "private": true, 4 | "version": "0.0.0", 5 | "type": "module", 6 | "scripts": { 7 | "dev": "vite", 8 | "build": "vite build", 9 | "lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0", 10 | "preview": "vite preview" 11 | }, 12 | "dependencies": { 13 | "@emotion/react": "^11.11.1", 14 | "@emotion/styled": "^11.11.0", 15 | "@fortawesome/fontawesome-svg-core": "^6.4.2", 16 | "@fortawesome/free-solid-svg-icons": "^6.4.2", 17 | "@fortawesome/react-fontawesome": "^0.2.0", 18 | "@heroicons/react": "^2.0.18", 19 | "@mantine/core": "^7.1.2", 20 | "@mantine/form": "^7.1.2", 21 | "@mantine/hooks": "^7.1.2", 22 | "@material-tailwind/react": "^2.1.2", 23 | "@mui/material": "^5.14.13", 24 | "@tabler/icons-react": "^2.38.0", 25 | "chart.js": "^4.4.0", 26 | "react": "^18.2.0", 27 | "react-datepicker": "^4.18.0", 28 | "react-dom": "^18.2.0", 29 | "react-router-dom": "^6.16.0", 30 | "toastr": "^2.1.4" 31 | }, 32 | "devDependencies": { 33 | "@types/react": "^18.2.15", 34 | "@types/react-dom": "^18.2.7", 35 | "@vitejs/plugin-react": "^4.0.3", 36 | "autoprefixer": "^10.4.16", 37 | "eslint": "^8.45.0", 38 | "eslint-plugin-react": "^7.32.2", 39 | "eslint-plugin-react-hooks": "^4.6.0", 40 | "eslint-plugin-react-refresh": "^0.4.3", 41 | "postcss": "^8.4.31", 42 | "tailwindcss": "^3.3.3", 43 | "vite": "^4.4.5" 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/postcss.config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/public/Capture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/restrurant-ui/public/Capture.png -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/public/CaptureChef.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/restrurant-ui/public/CaptureChef.PNG -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/public/CaptureChefBack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/restrurant-ui/public/CaptureChefBack.png -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/public/CaptureLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/001FullStack/restrurant-ui/public/CaptureLogo.png -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/src/App.css: -------------------------------------------------------------------------------- 1 | #root { 2 | max-width: 1280px; 3 | margin: 0 auto; 4 | padding: 2rem; 5 | text-align: center; 6 | } 7 | 8 | .logo { 9 | height: 6em; 10 | padding: 1.5em; 11 | will-change: filter; 12 | transition: filter 300ms; 13 | } 14 | .logo:hover { 15 | filter: drop-shadow(0 0 2em #646cffaa); 16 | } 17 | .logo.react:hover { 18 | filter: drop-shadow(0 0 2em #61dafbaa); 19 | } 20 | 21 | @keyframes logo-spin { 22 | from { 23 | transform: rotate(0deg); 24 | } 25 | to { 26 | transform: rotate(360deg); 27 | } 28 | } 29 | 30 | @media (prefers-reduced-motion: no-preference) { 31 | a:nth-of-type(2) .logo { 32 | animation: logo-spin infinite 20s linear; 33 | } 34 | } 35 | 36 | .card { 37 | padding: 2em; 38 | } 39 | 40 | .read-the-docs { 41 | color: #888; 42 | } 43 | .toast { 44 | visibility: hidden; 45 | background-color: #333; 46 | color: #fff; 47 | text-align: center; 48 | border-radius: 5px; 49 | padding: 10px; 50 | position: fixed; 51 | bottom: 30px; 52 | left: 50%; 53 | transform: translateX(-50%); 54 | } 55 | 56 | .show-toast { 57 | visibility: visible; 58 | } 59 | -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/src/App.jsx: -------------------------------------------------------------------------------- 1 | import { useEffect, useState } from 'react' 2 | import { Route, RouterProvider, createBrowserRouter, createRoutesFromElements } from 'react-router-dom' 3 | 4 | import { BaseUrl } from '../utils/ApiRoutes' 5 | 6 | function App() { 7 | 8 | useEffect(()=>{ 9 | getCustomers(); 10 | }, []); 11 | 12 | const getCustomers= async () =>{ 13 | try{ 14 | const response = await fetch(`${BaseUrl}Customer/GetCustomers`, { 15 | method: "GET", // *GET, POST, PUT, DELETE, etc. 16 | 17 | headers: { 18 | "Content-Type": "application/json", 19 | // 'Content-Type': 'application/x-www-form-urlencoded', 20 | } 21 | }); 22 | const customers = await response.json(); 23 | console.log(response); 24 | 25 | }catch(e){ 26 | console.log(e.request, ' requ eerror'); 27 | console.log(e.response); 28 | } 29 | 30 | }; 31 | 32 | 33 | return ( 34 | <> 35 |
restro app
36 | 37 |
38 | 39 | 40 | 43 | 44 |
41 | 42 |
45 |
46 | 47 | ) 48 | } 49 | 50 | export default App 51 | -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/src/Layout.jsx: -------------------------------------------------------------------------------- 1 | 2 | import React, { useState } from 'react'; 3 | import Header from './components/Layout/Header.jsx'; 4 | import Footer from './components/Layout/Footer.jsx'; 5 | import Sidebar from './components/Layout/Sidebar.jsx'; 6 | import { Outlet } from 'react-router-dom'; 7 | 8 | function Layout() { 9 | const [isSidebarOpen, setIsSidebarOpen] = useState(true); 10 | 11 | const toggleSidebar = () => { 12 | setIsSidebarOpen(!isSidebarOpen); 13 | }; 14 | 15 | return ( 16 |
17 | {isSidebarOpen && } 18 |
19 |
20 | {/*
*/} 21 | {/*
*/} 22 | 23 | {/*
*/} 24 | {/*
*/} 25 |
26 |
27 |
28 | ); 29 | } 30 | 31 | export default Layout; 32 | -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/src/Order/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import OrderForm from './OrderForm' 3 | import { useForm } from '../../hooks/useForm'; 4 | import { Grid } from '@material-ui/core'; 5 | import SearchFoodItems from './SearchFoodItems'; 6 | import OrderedFoodItems from './OrderedFoodItems'; 7 | 8 | 9 | const generateOrderNumber = () => Math.floor(100000 + Math.random() * 900000).toString(); 10 | 11 | const getFreshModelObject = () => ({ 12 | orderMasterId: 0, 13 | orderNumber: generateOrderNumber(), 14 | customerId: 0, 15 | pMethod: 'none', 16 | gTotal: 0, 17 | deletedOrderItemIds: '', 18 | orderDetails: [] 19 | }) 20 | 21 | 22 | export default function Order() { 23 | 24 | const { 25 | values, 26 | setValues, 27 | errors, 28 | setErrors, 29 | handleInputChange, 30 | resetFormControls 31 | } = useForm(getFreshModelObject); 32 | 33 | return ( 34 | 35 | 36 | 46 | 47 | 48 | 49 | 55 | 56 | 57 | 63 | 64 | 65 | ) 66 | } 67 | -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/src/admin/user/ManageCustomer.jsx: -------------------------------------------------------------------------------- 1 | 2 | import { Table } from '@mantine/core'; 3 | 4 | export default function ManageCustomer() { 5 | const rows = elements.map((element) => ( 6 | 7 | {element.position} 8 | {element.name} 9 | {element.symbol} 10 | {element.mass} 11 | 12 | )); 13 | 14 | return ( 15 | 16 | 17 | 18 | 19 | Element position 20 | Element name 21 | Symbol 22 | Atomic mass 23 | 24 | 25 | {rows} 26 |
27 |
28 | ); 29 | } -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/src/components/Index/LandingIndex.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | export default function LandingIndex() { 4 | return ( 5 |
6 | 22 |
23 | ); 24 | } 25 | -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/src/components/Order/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import OrderForm from './OrderForm' 3 | import { useForm } from '../../hooks/useForm'; 4 | import { Grid } from '@material-ui/core'; 5 | import SearchFoodItems from './SearchFoodItems'; 6 | import OrderedFoodItems from './OrderedFoodItems'; 7 | 8 | 9 | const generateOrderNumber = () => Math.floor(100000 + Math.random() * 900000).toString(); 10 | 11 | const getFreshModelObject = () => ({ 12 | orderMasterId: 0, 13 | orderNumber: generateOrderNumber(), 14 | customerId: 0, 15 | pMethod: 'none', 16 | gTotal: 0, 17 | deletedOrderItemIds: '', 18 | orderDetails: [] 19 | }) 20 | 21 | 22 | export default function Order() { 23 | 24 | const { 25 | values, 26 | setValues, 27 | errors, 28 | setErrors, 29 | handleInputChange, 30 | resetFormControls 31 | } = useForm(getFreshModelObject); 32 | 33 | return ( 34 | 35 | 36 | 46 | 47 | 48 | 49 | 55 | 56 | 57 | 63 | 64 | 65 | ) 66 | } 67 | -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/src/components/User/User.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import { useParams } from 'react-router-dom' 3 | 4 | function User() { 5 | const {userid} = useParams() 6 | return ( 7 |
User: {userid}
8 | ) 9 | } 10 | 11 | export default User -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/src/hooks/useForm.js: -------------------------------------------------------------------------------- 1 | import React, { useState } from 'react' 2 | 3 | export function useForm(getFreshModelObject) { 4 | 5 | const [values, setValues] = useState(getFreshModelObject()); 6 | const [errors, setErrors] = useState({}); 7 | 8 | const handleInputChange = e => { 9 | const { name, value } = e.target 10 | setValues({ 11 | ...values, 12 | [name]: value 13 | }) 14 | } 15 | 16 | const resetFormControls = () => { 17 | setValues(getFreshModelObject()); 18 | setErrors({}) 19 | } 20 | 21 | return { 22 | values, 23 | setValues, 24 | errors, 25 | setErrors, 26 | handleInputChange, 27 | resetFormControls 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/src/index.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | 5 | -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/src/layouts/Form.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import { makeStyles } from "@material-ui/core"; 3 | 4 | const useStyles = makeStyles(theme => ({ 5 | root: { 6 | '& .MuiFormControl-root': { 7 | width: '90%', 8 | margin: theme.spacing(1) 9 | } 10 | } 11 | })) 12 | 13 | export default function Form(props) { 14 | const classes = useStyles(); 15 | const { children, ...other } = props; 16 | 17 | 18 | return ( 19 |
20 | {children} 21 |
22 | ) 23 | } 24 | -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/src/layouts/Notification.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import { Snackbar, makeStyles } from '@material-ui/core'; 3 | import { Alert } from '@material-ui/lab'; 4 | 5 | const useStyles = makeStyles(theme => ({ 6 | root: { 7 | top: theme.spacing(9), 8 | '& .MuiAlert-root': { 9 | backgroundColor: '#f3b33d', 10 | color: '#000' 11 | }, 12 | '& .MuiAlert-icon': { 13 | color: '#000' 14 | } 15 | } 16 | })) 17 | 18 | export default function Notification(props) { 19 | 20 | const { notify, setNotify } = props; 21 | const classes = useStyles() 22 | 23 | const handleClose = (event, reason) => { 24 | if (reason === 'clickaway') { 25 | return; 26 | } 27 | setNotify({ 28 | ...notify, 29 | isOpen: false 30 | }) 31 | } 32 | 33 | return ( 34 | 40 | 42 | {notify.message} 43 | 44 | 45 | ) 46 | } -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/src/layouts/Popup.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import { Dialog, DialogTitle, DialogContent, makeStyles, Typography, IconButton } from '@material-ui/core'; 3 | import CloseIcon from '@material-ui/icons/Close'; 4 | 5 | const useStyles = makeStyles(theme => ({ 6 | dialogWrapper: { 7 | padding: theme.spacing(2), 8 | position: 'absolute', 9 | top: theme.spacing(5) 10 | }, 11 | dialogTitle: { 12 | paddingRight: '0px' 13 | } 14 | })) 15 | 16 | export default function Popup(props) { 17 | 18 | const { title, children, openPopup, setOpenPopup } = props; 19 | const classes = useStyles(); 20 | 21 | return ( 22 | 23 | 24 |
25 | 26 | {title} 27 | 28 | { setOpenPopup(false) }}> 30 | 31 | 32 |
33 |
34 | 35 | {children} 36 | 37 |
38 | ) 39 | } -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/src/layouts/Table.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import { Table as MuiTable, makeStyles } from '@material-ui/core' 3 | 4 | const useStyles = makeStyles(() => ({ 5 | table: { 6 | '& tbody td': { 7 | fontWeight: '300', 8 | }, 9 | '& tbody tr:hover': { 10 | backgroundColor: '#fffbf2', 11 | cursor: 'pointer', 12 | }, 13 | '& .MuiTableCell-root': { 14 | border: 'none' 15 | } 16 | }, 17 | })); 18 | 19 | export default function Table(props) { 20 | 21 | const classes = useStyles(); 22 | 23 | return ( 24 | 25 | {props.children} 26 | 27 | ) 28 | } -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/src/main.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import ReactDOM from 'react-dom/client' 3 | import './index.css' 4 | import { Route, RouterProvider, createBrowserRouter, createRoutesFromElements } from 'react-router-dom' 5 | import Layout from './Layout.jsx' 6 | import CustomerIndex from './components/Index/CustomerIndex.jsx' 7 | import AddCustomer from './components/Customer/AddCustomer.jsx' 8 | import User from './components/User/User.jsx' 9 | import EditCustomer from './components/Customer/EditCustomer' 10 | import LandingIndex from './components/Index/LandingIndex' 11 | import FoodItemIndex from './components/Index/FoodItemIndex' 12 | import AddFoodItem from './components/FoodItem/AddFoodItem' 13 | import EditFoodItem from './components/FoodItem/EditFoodItem' 14 | import CreateOrder from './components/OrderManagement/CreateOrder' 15 | import OrderList from './components/OrderManagement/OrderList' 16 | 17 | 18 | const router = createBrowserRouter( 19 | createRoutesFromElements( 20 | }> 21 | } /> 22 | } /> 23 | } /> 24 | } /> 25 | } /> 26 | } /> 27 | } /> 28 | } /> 29 | } /> 30 | } /> 31 | 32 | ) 33 | ) 34 | 35 | ReactDOM.createRoot(document.getElementById('root')).render( 36 | 37 | 38 | , 39 | ) 40 | -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/tailwind.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('tailwindcss').Config} */ 2 | export default { 3 | content: [ 4 | "./index.html", 5 | "./src/**/*.{js,ts,jsx,tsx}", 6 | ], 7 | theme: { 8 | extend: {}, 9 | }, 10 | plugins: [], 11 | } -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/utils/ApiRoutes.js: -------------------------------------------------------------------------------- 1 | const BaseUrl= 'https://localhost:44356/api/' 2 | const AbsoluteUrl= 'https://localhost:44356/' 3 | 4 | export {BaseUrl, AbsoluteUrl} -------------------------------------------------------------------------------- /001FullStack/restrurant-ui/vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite' 2 | import react from '@vitejs/plugin-react' 3 | 4 | // https://vitejs.dev/config/ 5 | export default defineConfig({ 6 | plugins: [react()], 7 | }) 8 | -------------------------------------------------------------------------------- /ContextConcepts/.eslintrc.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { browser: true, es2020: true }, 4 | extends: [ 5 | 'eslint:recommended', 6 | 'plugin:react/recommended', 7 | 'plugin:react/jsx-runtime', 8 | 'plugin:react-hooks/recommended', 9 | ], 10 | ignorePatterns: ['dist', '.eslintrc.cjs'], 11 | parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, 12 | settings: { react: { version: '18.2' } }, 13 | plugins: ['react-refresh'], 14 | rules: { 15 | 'react-refresh/only-export-components': [ 16 | 'warn', 17 | { allowConstantExport: true }, 18 | ], 19 | }, 20 | } 21 | -------------------------------------------------------------------------------- /ContextConcepts/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | dist 12 | dist-ssr 13 | *.local 14 | 15 | # Editor directories and files 16 | .vscode/* 17 | !.vscode/extensions.json 18 | .idea 19 | .DS_Store 20 | *.suo 21 | *.ntvs* 22 | *.njsproj 23 | *.sln 24 | *.sw? 25 | -------------------------------------------------------------------------------- /ContextConcepts/README.md: -------------------------------------------------------------------------------- 1 | # React + Vite 2 | 3 | This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. 4 | 5 | Currently, two official plugins are available: 6 | 7 | - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh 8 | - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh 9 | -------------------------------------------------------------------------------- /ContextConcepts/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Vite + React 8 | 9 | 10 |
11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /ContextConcepts/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "contextconcepts", 3 | "private": true, 4 | "version": "0.0.0", 5 | "type": "module", 6 | "scripts": { 7 | "dev": "vite", 8 | "build": "vite build", 9 | "lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0", 10 | "preview": "vite preview" 11 | }, 12 | "dependencies": { 13 | "react": "^18.2.0", 14 | "react-dom": "^18.2.0", 15 | "react-router-dom": "^6.16.0" 16 | }, 17 | "devDependencies": { 18 | "@types/react": "^18.2.15", 19 | "@types/react-dom": "^18.2.7", 20 | "@vitejs/plugin-react": "^4.0.3", 21 | "autoprefixer": "^10.4.16", 22 | "eslint": "^8.45.0", 23 | "eslint-plugin-react": "^7.32.2", 24 | "eslint-plugin-react-hooks": "^4.6.0", 25 | "eslint-plugin-react-refresh": "^0.4.3", 26 | "postcss": "^8.4.30", 27 | "tailwindcss": "^3.3.3", 28 | "vite": "^4.4.5" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /ContextConcepts/postcss.config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /ContextConcepts/public/vite.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ContextConcepts/src/App.css: -------------------------------------------------------------------------------- 1 | #root { 2 | max-width: 1280px; 3 | margin: 0 auto; 4 | padding: 2rem; 5 | text-align: center; 6 | } 7 | 8 | .logo { 9 | height: 6em; 10 | padding: 1.5em; 11 | will-change: filter; 12 | transition: filter 300ms; 13 | } 14 | .logo:hover { 15 | filter: drop-shadow(0 0 2em #646cffaa); 16 | } 17 | .logo.react:hover { 18 | filter: drop-shadow(0 0 2em #61dafbaa); 19 | } 20 | 21 | @keyframes logo-spin { 22 | from { 23 | transform: rotate(0deg); 24 | } 25 | to { 26 | transform: rotate(360deg); 27 | } 28 | } 29 | 30 | @media (prefers-reduced-motion: no-preference) { 31 | a:nth-of-type(2) .logo { 32 | animation: logo-spin infinite 20s linear; 33 | } 34 | } 35 | 36 | .card { 37 | padding: 2em; 38 | } 39 | 40 | .read-the-docs { 41 | color: #888; 42 | } 43 | -------------------------------------------------------------------------------- /ContextConcepts/src/App.jsx: -------------------------------------------------------------------------------- 1 | 2 | import './App.css' 3 | import Login from './components/login' 4 | import Profile from './components/profile' 5 | import UserContextProvider from './context/UserContextProvider' 6 | 7 | 8 | function App() { 9 | 10 | return ( 11 | 12 |

Which Folder is Important ?

13 | 14 | 15 |
16 | ) 17 | } 18 | 19 | export default App 20 | 21 | -------------------------------------------------------------------------------- /ContextConcepts/src/components/Login.jsx: -------------------------------------------------------------------------------- 1 | import React, {useState, useContext} from 'react' 2 | import UserContext from '../context/UserContext' 3 | 4 | function Login() { 5 | const [username, setUsername] = useState('') 6 | const [password, setPassword] = useState('') 7 | 8 | const {setUser} = useContext(UserContext) 9 | 10 | const handleSubmit = (e) => { 11 | e.preventDefault() 12 | setUser({username, password}) 13 | } 14 | return ( 15 |
16 |

Login

17 | setUsername(e.target.value) } 20 | placeholder='username' /> 21 | {" "} 22 | setPassword(e.target.value) } 25 | placeholder='password' /> 26 | 27 |
28 | ) 29 | } 30 | 31 | export default Login -------------------------------------------------------------------------------- /ContextConcepts/src/components/Profile.jsx: -------------------------------------------------------------------------------- 1 | import React, {useContext} from 'react' 2 | import UserContext from '../context/UserContext' 3 | 4 | function Profile() { 5 | const {user} = useContext(UserContext) 6 | 7 | if (!user) return
please login
8 | 9 | return
Welcome {user.username}
10 | } 11 | 12 | export default Profile -------------------------------------------------------------------------------- /ContextConcepts/src/context/UserContext.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | const UserContext = React.createContext() 4 | 5 | export default UserContext; 6 | 7 | 8 | //Context is Global Variable if we create COntext we should have provide Provider 9 | {/* 10 | 11 | */} -------------------------------------------------------------------------------- /ContextConcepts/src/context/UserContextProvider.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import UserContext from "./UserContext"; 3 | 4 | const UserContextProvider = ({children}) => { 5 | const [user, setUser] = React.useState(null) 6 | return( 7 | 8 | {children} 9 | 10 | ) 11 | } 12 | 13 | export default UserContextProvider -------------------------------------------------------------------------------- /ContextConcepts/src/index.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | 5 | -------------------------------------------------------------------------------- /ContextConcepts/src/main.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import ReactDOM from 'react-dom/client' 3 | import App from './App.jsx' 4 | import './index.css' 5 | 6 | ReactDOM.createRoot(document.getElementById('root')).render( 7 | 8 | 9 | , 10 | ) 11 | -------------------------------------------------------------------------------- /ContextConcepts/tailwind.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('tailwindcss').Config} */ 2 | export default { 3 | content: [ 4 | "./index.html", 5 | "./src/**/*.{js,ts,jsx,tsx}", 6 | ], 7 | theme: { 8 | extend: {}, 9 | }, 10 | plugins: [], 11 | } 12 | 13 | -------------------------------------------------------------------------------- /ContextConcepts/vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite' 2 | import react from '@vitejs/plugin-react' 3 | 4 | // https://vitejs.dev/config/ 5 | export default defineConfig({ 6 | plugins: [react()], 7 | }) 8 | -------------------------------------------------------------------------------- /CurrencyConvertor/.eslintrc.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { browser: true, es2020: true }, 4 | extends: [ 5 | 'eslint:recommended', 6 | 'plugin:react/recommended', 7 | 'plugin:react/jsx-runtime', 8 | 'plugin:react-hooks/recommended', 9 | ], 10 | ignorePatterns: ['dist', '.eslintrc.cjs'], 11 | parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, 12 | settings: { react: { version: '18.2' } }, 13 | plugins: ['react-refresh'], 14 | rules: { 15 | 'react-refresh/only-export-components': [ 16 | 'warn', 17 | { allowConstantExport: true }, 18 | ], 19 | }, 20 | } 21 | -------------------------------------------------------------------------------- /CurrencyConvertor/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | dist 12 | dist-ssr 13 | *.local 14 | 15 | # Editor directories and files 16 | .vscode/* 17 | !.vscode/extensions.json 18 | .idea 19 | .DS_Store 20 | *.suo 21 | *.ntvs* 22 | *.njsproj 23 | *.sln 24 | *.sw? 25 | -------------------------------------------------------------------------------- /CurrencyConvertor/README.md: -------------------------------------------------------------------------------- 1 | # React + Vite 2 | 3 | This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. 4 | 5 | Currently, two official plugins are available: 6 | 7 | - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh 8 | - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh 9 | -------------------------------------------------------------------------------- /CurrencyConvertor/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Vite + React 8 | 9 | 10 |
11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /CurrencyConvertor/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "currencyconvertor", 3 | "private": true, 4 | "version": "0.0.0", 5 | "type": "module", 6 | "scripts": { 7 | "dev": "vite", 8 | "build": "vite build", 9 | "lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0", 10 | "preview": "vite preview" 11 | }, 12 | "dependencies": { 13 | "react": "^18.2.0", 14 | "react-dom": "^18.2.0" 15 | }, 16 | "devDependencies": { 17 | "@types/react": "^18.2.15", 18 | "@types/react-dom": "^18.2.7", 19 | "@vitejs/plugin-react": "^4.0.3", 20 | "autoprefixer": "^10.4.16", 21 | "eslint": "^8.45.0", 22 | "eslint-plugin-react": "^7.32.2", 23 | "eslint-plugin-react-hooks": "^4.6.0", 24 | "eslint-plugin-react-refresh": "^0.4.3", 25 | "postcss": "^8.4.30", 26 | "tailwindcss": "^3.3.3", 27 | "vite": "^4.4.5" 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /CurrencyConvertor/postcss.config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /CurrencyConvertor/public/vite.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CurrencyConvertor/src/App.css: -------------------------------------------------------------------------------- 1 | #root { 2 | max-width: 1280px; 3 | margin: 0 auto; 4 | padding: 2rem; 5 | text-align: center; 6 | } 7 | 8 | .logo { 9 | height: 6em; 10 | padding: 1.5em; 11 | will-change: filter; 12 | transition: filter 300ms; 13 | } 14 | .logo:hover { 15 | filter: drop-shadow(0 0 2em #646cffaa); 16 | } 17 | .logo.react:hover { 18 | filter: drop-shadow(0 0 2em #61dafbaa); 19 | } 20 | 21 | @keyframes logo-spin { 22 | from { 23 | transform: rotate(0deg); 24 | } 25 | to { 26 | transform: rotate(360deg); 27 | } 28 | } 29 | 30 | @media (prefers-reduced-motion: no-preference) { 31 | a:nth-of-type(2) .logo { 32 | animation: logo-spin infinite 20s linear; 33 | } 34 | } 35 | 36 | .card { 37 | padding: 2em; 38 | } 39 | 40 | .read-the-docs { 41 | color: #888; 42 | } 43 | -------------------------------------------------------------------------------- /CurrencyConvertor/src/components/InputBox.jsx: -------------------------------------------------------------------------------- 1 | import React, {useId} from 'react' 2 | 3 | function InputBox({ 4 | label, 5 | amount, 6 | onAmountChange, 7 | onCurrencyChange, 8 | currencyOptions = [], 9 | selectCurrency = "usd", 10 | amountDisable = false, 11 | currencyDisable = false, 12 | className = "", 13 | }) { 14 | const amountInputId = useId() 15 | 16 | return ( 17 |
18 |
19 | 22 | onAmountChange && onAmountChange(Number(e.target.value))} 30 | /> 31 |
32 |
33 |

Currency Type

34 | 48 |
49 |
50 | ); 51 | } 52 | 53 | 54 | export default InputBox; -------------------------------------------------------------------------------- /CurrencyConvertor/src/components/index.js: -------------------------------------------------------------------------------- 1 | import InputBox from './InputBox' 2 | 3 | export {InputBox} -------------------------------------------------------------------------------- /CurrencyConvertor/src/hooks/useCurrencyInfo.js: -------------------------------------------------------------------------------- 1 | import {useEffect, useState} from "react" 2 | 3 | 4 | function useCurrencyInfo(currency){ 5 | const [data, setData] = useState({}) 6 | useEffect(() => { 7 | fetch(`https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/latest/currencies/${currency}.json`) 8 | .then((res) => res.json()) 9 | .then((res) => setData(res[currency])) 10 | // console.log(data); 11 | }, [currency]) 12 | // console.log(data); 13 | return data 14 | } 15 | 16 | export default useCurrencyInfo; -------------------------------------------------------------------------------- /CurrencyConvertor/src/index.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; -------------------------------------------------------------------------------- /CurrencyConvertor/src/main.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import ReactDOM from 'react-dom/client' 3 | import App from './App.jsx' 4 | import './index.css' 5 | 6 | ReactDOM.createRoot(document.getElementById('root')).render( 7 | 8 | 9 | , 10 | ) 11 | -------------------------------------------------------------------------------- /CurrencyConvertor/tailwind.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('tailwindcss').Config} */ 2 | export default { 3 | content: [ 4 | "./index.html", 5 | "./src/**/*.{js,ts,jsx,tsx}", 6 | ], 7 | theme: { 8 | extend: {}, 9 | }, 10 | plugins: [], 11 | } 12 | 13 | -------------------------------------------------------------------------------- /CurrencyConvertor/vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite' 2 | import react from '@vitejs/plugin-react' 3 | 4 | // https://vitejs.dev/config/ 5 | export default defineConfig({ 6 | plugins: [react()], 7 | }) 8 | -------------------------------------------------------------------------------- /CustomReact/customreact.js: -------------------------------------------------------------------------------- 1 | function customRender(reactElement, container){ 2 | 3 | const domElement = document.createElement(reactElement.type) 4 | domElement.innerHTML = reactElement.children 5 | for (const prop in reactElement.props) { 6 | if (prop === 'children') continue; 7 | domElement.setAttribute(prop, reactElement.props[prop]) 8 | } 9 | container.appendChild(domElement) 10 | } 11 | 12 | const reactElement = { 13 | type: 'a', 14 | props: { 15 | href: 'https://google.com', 16 | target: '_blank' 17 | }, 18 | children: 'Click me to visit google' 19 | } 20 | 21 | const mainContainer = document.querySelector('#root') 22 | 23 | customRender(reactElement, mainContainer) -------------------------------------------------------------------------------- /CustomReact/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Custom React 7 | 8 | 9 |
10 | 11 | 12 | -------------------------------------------------------------------------------- /EcoCycle/.eslintrc.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { browser: true, es2020: true }, 4 | extends: [ 5 | 'eslint:recommended', 6 | 'plugin:react/recommended', 7 | 'plugin:react/jsx-runtime', 8 | 'plugin:react-hooks/recommended', 9 | ], 10 | ignorePatterns: ['dist', '.eslintrc.cjs'], 11 | parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, 12 | settings: { react: { version: '18.2' } }, 13 | plugins: ['react-refresh'], 14 | rules: { 15 | 'react-refresh/only-export-components': [ 16 | 'warn', 17 | { allowConstantExport: true }, 18 | ], 19 | }, 20 | } 21 | -------------------------------------------------------------------------------- /EcoCycle/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | dist 12 | dist-ssr 13 | *.local 14 | 15 | # Editor directories and files 16 | .vscode/* 17 | !.vscode/extensions.json 18 | .idea 19 | .DS_Store 20 | *.suo 21 | *.ntvs* 22 | *.njsproj 23 | *.sln 24 | *.sw? 25 | -------------------------------------------------------------------------------- /EcoCycle/README.md: -------------------------------------------------------------------------------- 1 | # React + Vite 2 | 3 | This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. 4 | 5 | Currently, two official plugins are available: 6 | 7 | - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh 8 | - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh 9 | -------------------------------------------------------------------------------- /EcoCycle/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Eco Cycle 8 | 9 | 10 |
11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /EcoCycle/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "reactrouter", 3 | "private": true, 4 | "version": "0.0.0", 5 | "type": "module", 6 | "scripts": { 7 | "dev": "vite", 8 | "build": "vite build", 9 | "lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0", 10 | "preview": "vite preview" 11 | }, 12 | "dependencies": { 13 | "body-parser": "^1.20.2", 14 | "bootstrap": "^5.3.2", 15 | "cors": "^2.8.5", 16 | "express": "^4.18.2", 17 | "openai": "^4.10.0", 18 | "react": "^18.2.0", 19 | "react-bootstrap": "^2.9.0", 20 | "react-dom": "^18.2.0", 21 | "react-router-dom": "^6.16.0" 22 | }, 23 | "devDependencies": { 24 | "@types/react": "^18.2.15", 25 | "@types/react-dom": "^18.2.7", 26 | "@vitejs/plugin-react": "^4.0.3", 27 | "autoprefixer": "^10.4.16", 28 | "eslint": "^8.45.0", 29 | "eslint-plugin-react": "^7.32.2", 30 | "eslint-plugin-react-hooks": "^4.6.0", 31 | "eslint-plugin-react-refresh": "^0.4.3", 32 | "postcss": "^8.4.30", 33 | "tailwindcss": "^3.3.3", 34 | "vite": "^4.4.5" 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /EcoCycle/postcss.config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /EcoCycle/public/Fertilizer.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/EcoCycle/public/Fertilizer.jpg -------------------------------------------------------------------------------- /EcoCycle/public/Fertilizer1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/EcoCycle/public/Fertilizer1.jpg -------------------------------------------------------------------------------- /EcoCycle/public/Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/EcoCycle/public/Logo.png -------------------------------------------------------------------------------- /EcoCycle/public/Organic.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/EcoCycle/public/Organic.jpg -------------------------------------------------------------------------------- /EcoCycle/public/SaveEarth.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/EcoCycle/public/SaveEarth.png -------------------------------------------------------------------------------- /EcoCycle/public/TomatoFertilizer.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/EcoCycle/public/TomatoFertilizer.jpg -------------------------------------------------------------------------------- /EcoCycle/public/chemical.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/EcoCycle/public/chemical.jpg -------------------------------------------------------------------------------- /EcoCycle/public/design.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/EcoCycle/public/design.png -------------------------------------------------------------------------------- /EcoCycle/public/from.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/EcoCycle/public/from.jpg -------------------------------------------------------------------------------- /EcoCycle/public/hand.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/EcoCycle/public/hand.jpg -------------------------------------------------------------------------------- /EcoCycle/public/manage.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/EcoCycle/public/manage.jpeg -------------------------------------------------------------------------------- /EcoCycle/public/organic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/EcoCycle/public/organic.png -------------------------------------------------------------------------------- /EcoCycle/public/small.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/EcoCycle/public/small.jpg -------------------------------------------------------------------------------- /EcoCycle/public/symbol.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/EcoCycle/public/symbol.jpg -------------------------------------------------------------------------------- /EcoCycle/public/wasteclass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dyells07/ViteReactTailwind/32f6e2ebbbc15321c0ffccc72f9d6bbab847ad12/EcoCycle/public/wasteclass.png -------------------------------------------------------------------------------- /EcoCycle/src/App.css: -------------------------------------------------------------------------------- 1 | #root { 2 | max-width: 1280px; 3 | margin: 0 auto; 4 | padding: 2rem; 5 | text-align: center; 6 | } 7 | 8 | .logo { 9 | height: 6em; 10 | padding: 1.5em; 11 | will-change: filter; 12 | transition: filter 300ms; 13 | } 14 | .logo:hover { 15 | filter: drop-shadow(0 0 2em #646cffaa); 16 | } 17 | .logo.react:hover { 18 | filter: drop-shadow(0 0 2em #61dafbaa); 19 | } 20 | 21 | @keyframes logo-spin { 22 | from { 23 | transform: rotate(0deg); 24 | } 25 | to { 26 | transform: rotate(360deg); 27 | } 28 | } 29 | 30 | @media (prefers-reduced-motion: no-preference) { 31 | a:nth-of-type(2) .logo { 32 | animation: logo-spin infinite 20s linear; 33 | } 34 | } 35 | 36 | .card { 37 | padding: 2em; 38 | } 39 | 40 | .read-the-docs { 41 | color: #888; 42 | } 43 | -------------------------------------------------------------------------------- /EcoCycle/src/Layout.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import Header from './components/Header/Header'; 3 | import Footer from './components/Footer/Footer'; 4 | import { Outlet } from 'react-router-dom'; 5 | 6 | function Layout() { 7 | return ( 8 |
9 |
10 | 11 |
12 |
13 | ); 14 | } 15 | 16 | export default Layout; 17 | -------------------------------------------------------------------------------- /EcoCycle/src/components/About/About.css: -------------------------------------------------------------------------------- 1 | /* About.css */ 2 | 3 | .about-image { 4 | transition: transform 0.3s ease-in-out; 5 | height: 100%; /* Set the initial width of the image */ 6 | width:800px; 7 | } 8 | 9 | 10 | .about-image:hover { 11 | transform: scale(1.1); 12 | } 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /EcoCycle/src/components/Client/BioProducts.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | 4 | export default function BioProducts() { 5 | const products = [ 6 | { 7 | id: 1, 8 | name: 'Osmocote Fertilizer', 9 | href: '#', 10 | price: 'रु 100', 11 | imageSrc: './small.jpg', 12 | imageAlt: 'Tall slender porcelain bottle with natural clay textured body and cork stopper.', 13 | }, 14 | { 15 | id: 2, 16 | name: 'Vermicompost Ferilizer', 17 | href: '#', 18 | price: 'रु 50', 19 | imageSrc: './chemical.jpg', 20 | imageAlt: 'Olive drab green insulated bottle with flared screw lid and flat top.', 21 | }, 22 | { 23 | id: 3, 24 | name: 'Tomato fertilizer', 25 | href: '#', 26 | price: 'रु 189', 27 | imageSrc: './from.jpg', 28 | imageAlt: 'Person using a pen to cross a task off a productivity paper card.', 29 | }, 30 | { 31 | id: 4, 32 | name: 'Oragnic', 33 | href: '#', 34 | price: 'रु 200', 35 | imageSrc: './hand.jpg', 36 | imageAlt: 'Hand holding black machined steel mechanical pencil with brass tip and top.', 37 | }, 38 | 39 | ] 40 | 41 | return ( 42 |
43 |
44 |

Products

45 | 46 |
47 | {products.map((product) => ( 48 | 49 |
50 | {product.imageAlt} 55 |
56 |

{product.name}

57 |

{product.price}

58 | 59 |
60 | ))} 61 |
62 |
63 |
64 | ); 65 | } -------------------------------------------------------------------------------- /EcoCycle/src/components/Client/CallForCollection.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | export default function CallForCollection() { 4 | const vendors = [ 5 | { 6 | id: 1, 7 | name: 'Bio Gas Company', 8 | phone: '+977 1234567890', 9 | email: 'vendor1@example.com', 10 | avatar: 'https://via.placeholder.com/150', // Placeholder URL for vendor avatar image 11 | }, 12 | { 13 | id: 2, 14 | name: 'Green Hub', 15 | phone: '+977 9876543210', 16 | email: 'vendor2@example.com', 17 | avatar: 'https://via.placeholder.com/150', // Placeholder URL for vendor avatar image 18 | }, 19 | // Add more vendors as needed 20 | ]; 21 | 22 | const handleCallVendor = (phoneNumber) => { 23 | window.open(`tel:${phoneNumber}`); 24 | }; 25 | 26 | const handleEmailVendor = (email) => { 27 | window.location.href = `mailto:${email}`; 28 | }; 29 | 30 | return ( 31 |
32 |
33 |

34 | Available Vendors 35 |

36 | 37 |
38 | {vendors.map((vendor) => ( 39 |
40 |
41 | {`${vendor.name}'s 42 |

{vendor.name}

43 |
44 | 50 | 56 |
57 |
58 |
59 | ))} 60 |
61 |
62 |
63 | ); 64 | } 65 | -------------------------------------------------------------------------------- /EcoCycle/src/components/Home/Home.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Link } from 'react-router-dom'; 3 | 4 | const EcoCycleProject = () => { 5 | return ( 6 |
7 |

Eco Cycle : From Trash To Treasure

8 |
9 | Innovative way to manage Organic Wastes 10 |
11 | 12 |
13 | Eco Cycle Project 18 |
19 |

Be Responsible , Save Earth

20 | 24 | Get Involved 25 | 26 |
27 | ); 28 | }; 29 | 30 | export default EcoCycleProject; 31 | -------------------------------------------------------------------------------- /EcoCycle/src/components/User/User.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import { useParams } from 'react-router-dom' 3 | 4 | function User() { 5 | const {userid} = useParams() 6 | return ( 7 |
User: {userid}
8 | ) 9 | } 10 | 11 | export default User -------------------------------------------------------------------------------- /EcoCycle/src/index.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | 5 | -------------------------------------------------------------------------------- /EcoCycle/src/main.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import ReactDOM from 'react-dom/client' 3 | import './index.css' 4 | import { Route, RouterProvider, createBrowserRouter, createRoutesFromElements } from 'react-router-dom' 5 | import Layout from './Layout.jsx' 6 | import Home from './components/Home/Home.jsx' 7 | import About from './components/About/About.jsx' 8 | import Contact from './components/Contact/Contact.jsx' 9 | import User from './components/User/User.jsx' 10 | import BioProducts from './components/Client/BioProducts.jsx' 11 | import NewContact from './components/NewContact/NewContact.jsx' 12 | import CallForCollection from './components/Client/CallForCollection.jsx' 13 | 14 | const router = createBrowserRouter( 15 | createRoutesFromElements( 16 | }> 17 | } /> 18 | } /> 19 | } /> 20 | } /> 21 | } /> 22 | } /> 23 | } /> 24 | 25 | ) 26 | ) 27 | 28 | ReactDOM.createRoot(document.getElementById('root')).render( 29 | 30 | 31 | , 32 | ) 33 | -------------------------------------------------------------------------------- /EcoCycle/tailwind.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('tailwindcss').Config} */ 2 | export default { 3 | content: [ 4 | "./index.html", 5 | "./src/**/*.{js,ts,jsx,tsx}", 6 | ], 7 | theme: { 8 | extend: {}, 9 | }, 10 | plugins: [], 11 | } -------------------------------------------------------------------------------- /EcoCycle/vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite' 2 | import react from '@vitejs/plugin-react' 3 | 4 | // https://vitejs.dev/config/ 5 | export default defineConfig({ 6 | plugins: [react()], 7 | }) 8 | -------------------------------------------------------------------------------- /LocalStorageContext/.eslintrc.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { browser: true, es2020: true }, 4 | extends: [ 5 | 'eslint:recommended', 6 | 'plugin:react/recommended', 7 | 'plugin:react/jsx-runtime', 8 | 'plugin:react-hooks/recommended', 9 | ], 10 | ignorePatterns: ['dist', '.eslintrc.cjs'], 11 | parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, 12 | settings: { react: { version: '18.2' } }, 13 | plugins: ['react-refresh'], 14 | rules: { 15 | 'react-refresh/only-export-components': [ 16 | 'warn', 17 | { allowConstantExport: true }, 18 | ], 19 | }, 20 | } 21 | -------------------------------------------------------------------------------- /LocalStorageContext/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | dist 12 | dist-ssr 13 | *.local 14 | 15 | # Editor directories and files 16 | .vscode/* 17 | !.vscode/extensions.json 18 | .idea 19 | .DS_Store 20 | *.suo 21 | *.ntvs* 22 | *.njsproj 23 | *.sln 24 | *.sw? 25 | -------------------------------------------------------------------------------- /LocalStorageContext/README.md: -------------------------------------------------------------------------------- 1 | # React + Vite 2 | 3 | This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. 4 | 5 | Currently, two official plugins are available: 6 | 7 | - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh 8 | - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh 9 | -------------------------------------------------------------------------------- /LocalStorageContext/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Vite + React 8 | 9 | 10 |
11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /LocalStorageContext/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "localstoragecontext", 3 | "private": true, 4 | "version": "0.0.0", 5 | "type": "module", 6 | "scripts": { 7 | "dev": "vite", 8 | "build": "vite build", 9 | "lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0", 10 | "preview": "vite preview" 11 | }, 12 | "dependencies": { 13 | "react": "^18.2.0", 14 | "react-dom": "^18.2.0" 15 | }, 16 | "devDependencies": { 17 | "@types/react": "^18.2.15", 18 | "@types/react-dom": "^18.2.7", 19 | "@vitejs/plugin-react": "^4.0.3", 20 | "autoprefixer": "^10.4.16", 21 | "eslint": "^8.45.0", 22 | "eslint-plugin-react": "^7.32.2", 23 | "eslint-plugin-react-hooks": "^4.6.0", 24 | "eslint-plugin-react-refresh": "^0.4.3", 25 | "postcss": "^8.4.31", 26 | "tailwindcss": "^3.3.3", 27 | "vite": "^4.4.5" 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /LocalStorageContext/postcss.config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /LocalStorageContext/public/vite.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /LocalStorageContext/src/App.css: -------------------------------------------------------------------------------- 1 | #root { 2 | max-width: 1280px; 3 | margin: 0 auto; 4 | padding: 2rem; 5 | text-align: center; 6 | } 7 | 8 | .logo { 9 | height: 6em; 10 | padding: 1.5em; 11 | will-change: filter; 12 | transition: filter 300ms; 13 | } 14 | .logo:hover { 15 | filter: drop-shadow(0 0 2em #646cffaa); 16 | } 17 | .logo.react:hover { 18 | filter: drop-shadow(0 0 2em #61dafbaa); 19 | } 20 | 21 | @keyframes logo-spin { 22 | from { 23 | transform: rotate(0deg); 24 | } 25 | to { 26 | transform: rotate(360deg); 27 | } 28 | } 29 | 30 | @media (prefers-reduced-motion: no-preference) { 31 | a:nth-of-type(2) .logo { 32 | animation: logo-spin infinite 20s linear; 33 | } 34 | } 35 | 36 | .card { 37 | padding: 2em; 38 | } 39 | 40 | .read-the-docs { 41 | color: #888; 42 | } 43 | -------------------------------------------------------------------------------- /LocalStorageContext/src/App.jsx: -------------------------------------------------------------------------------- 1 | import { useState, useEffect } from 'react' 2 | import {TodoProvider} from './contexts' 3 | import './App.css' 4 | import TodoForm from './components/TodoForm' 5 | import TodoItem from './components/TodoItem' 6 | 7 | function App() { 8 | const [todos, setTodos] = useState([]) 9 | 10 | const addTodo = (todo) => { 11 | setTodos((prev) => [{id: Date.now(), ...todo}, ...prev] ) 12 | } 13 | 14 | const updateTodo = (id, todo) => { 15 | setTodos((prev) => prev.map((prevTodo) => (prevTodo.id === id ? todo : prevTodo ))) 16 | 17 | 18 | } 19 | 20 | const deleteTodo = (id) => { 21 | setTodos((prev) => prev.filter((todo) => todo.id !== id)) 22 | } 23 | 24 | const toggleComplete = (id) => { 25 | //console.log(id); 26 | setTodos((prev) => 27 | prev.map((prevTodo) => 28 | prevTodo.id === id ? { ...prevTodo, 29 | completed: !prevTodo.completed } : prevTodo)) 30 | } 31 | 32 | useEffect(() => { 33 | const todos = JSON.parse(localStorage.getItem("todos")) 34 | 35 | if (todos && todos.length > 0) { 36 | setTodos(todos) 37 | } 38 | }, []) 39 | 40 | useEffect(() => { 41 | localStorage.setItem("todos", JSON.stringify(todos)) 42 | }, [todos]) 43 | 44 | 45 | 46 | 47 | return ( 48 | 49 |
50 |
51 |

Manage Your Todos

52 |
53 | {/* Todo form goes here */} 54 | 55 |
56 |
57 | {/*Loop and Add TodoItem here */} 58 | {todos.map((todo) => ( 59 |
62 | 63 |
64 | ))} 65 |
66 |
67 |
68 |
69 | ) 70 | } 71 | 72 | export default App 73 | -------------------------------------------------------------------------------- /LocalStorageContext/src/components/TodoForm.jsx: -------------------------------------------------------------------------------- 1 | import React, { useState } from 'react' 2 | import { useTodo } from '../contexts/TodoContext'; 3 | 4 | function TodoForm() { 5 | const [todo, setTodo] = useState("") 6 | const {addTodo} = useTodo() 7 | 8 | const add = (e) => { 9 | e.preventDefault() 10 | 11 | if (!todo) return 12 | 13 | addTodo({ todo, completed: false}) 14 | setTodo("") 15 | } 16 | 17 | return ( 18 |
19 | setTodo(e.target.value)} 25 | /> 26 | 29 |
30 | ); 31 | } 32 | 33 | export default TodoForm; -------------------------------------------------------------------------------- /LocalStorageContext/src/components/index.js: -------------------------------------------------------------------------------- 1 | import TodoForm from "./TodoForm"; 2 | import TodoItem from "./TodoItem"; 3 | 4 | export {TodoForm,TodoItem} -------------------------------------------------------------------------------- /LocalStorageContext/src/contexts/TodoContext.js: -------------------------------------------------------------------------------- 1 | import {createContext,useContext} from 'react' 2 | 3 | export const TodoContext = createContext({ 4 | 5 | todos:[ 6 | { 7 | id:1, 8 | todo:"Todo msg", 9 | completed:false, 10 | } 11 | ], 12 | addTodo :(todo)=>{}, 13 | updateTodo:(id,todo)=>{}, 14 | deleteTodo:(id)=>{}, 15 | toggleComplete:(id)=>{} 16 | 17 | 18 | }); 19 | 20 | export const useTodo=()=> 21 | { 22 | return useContext(TodoContext) 23 | } 24 | 25 | export const TodoProvider=TodoContext.Provider -------------------------------------------------------------------------------- /LocalStorageContext/src/contexts/index.js: -------------------------------------------------------------------------------- 1 | export {TodoContext,TodoProvider,useTodo} from "./TodoContext" -------------------------------------------------------------------------------- /LocalStorageContext/src/index.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | 5 | -------------------------------------------------------------------------------- /LocalStorageContext/src/main.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import ReactDOM from 'react-dom/client' 3 | import App from './App.jsx' 4 | import './index.css' 5 | 6 | ReactDOM.createRoot(document.getElementById('root')).render( 7 | 8 | 9 | , 10 | ) 11 | -------------------------------------------------------------------------------- /LocalStorageContext/tailwind.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('tailwindcss').Config} */ 2 | export default { 3 | content: [ 4 | "./index.html", 5 | "./src/**/*.{js,ts,jsx,tsx}", 6 | ], 7 | darkMode: "class", 8 | theme: { 9 | extend: {}, 10 | }, 11 | plugins: [], 12 | } 13 | 14 | -------------------------------------------------------------------------------- /LocalStorageContext/vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite' 2 | import react from '@vitejs/plugin-react' 3 | 4 | // https://vitejs.dev/config/ 5 | export default defineConfig({ 6 | plugins: [react()], 7 | }) 8 | -------------------------------------------------------------------------------- /RandomNumberMixed/.eslintrc.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { browser: true, es2020: true }, 4 | extends: [ 5 | 'eslint:recommended', 6 | 'plugin:react/recommended', 7 | 'plugin:react/jsx-runtime', 8 | 'plugin:react-hooks/recommended', 9 | ], 10 | ignorePatterns: ['dist', '.eslintrc.cjs'], 11 | parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, 12 | settings: { react: { version: '18.2' } }, 13 | plugins: ['react-refresh'], 14 | rules: { 15 | 'react-refresh/only-export-components': [ 16 | 'warn', 17 | { allowConstantExport: true }, 18 | ], 19 | }, 20 | } 21 | -------------------------------------------------------------------------------- /RandomNumberMixed/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | dist 12 | dist-ssr 13 | *.local 14 | 15 | # Editor directories and files 16 | .vscode/* 17 | !.vscode/extensions.json 18 | .idea 19 | .DS_Store 20 | *.suo 21 | *.ntvs* 22 | *.njsproj 23 | *.sln 24 | *.sw? 25 | -------------------------------------------------------------------------------- /RandomNumberMixed/README.md: -------------------------------------------------------------------------------- 1 | # React + Vite 2 | 3 | This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. 4 | 5 | Currently, two official plugins are available: 6 | 7 | - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh 8 | - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh 9 | -------------------------------------------------------------------------------- /RandomNumberMixed/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Vite + React 8 | 9 | 10 |
11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /RandomNumberMixed/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "randomnumbermixed", 3 | "private": true, 4 | "version": "0.0.0", 5 | "type": "module", 6 | "scripts": { 7 | "dev": "vite", 8 | "build": "vite build", 9 | "lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0", 10 | "preview": "vite preview" 11 | }, 12 | "dependencies": { 13 | "@fortawesome/fontawesome-svg-core": "^6.4.2", 14 | "@fortawesome/react-fontawesome": "^0.2.0", 15 | "babel-plugin-macros": "^3.1.0", 16 | "react": "^18.2.0", 17 | "react-dom": "^18.2.0", 18 | "react-toastify": "^9.1.3", 19 | "toastr": "^2.1.4" 20 | }, 21 | "devDependencies": { 22 | "@types/react": "^18.2.15", 23 | "@types/react-dom": "^18.2.7", 24 | "@vitejs/plugin-react": "^4.0.3", 25 | "autoprefixer": "^10.4.16", 26 | "eslint": "^8.45.0", 27 | "eslint-plugin-react": "^7.32.2", 28 | "eslint-plugin-react-hooks": "^4.6.0", 29 | "eslint-plugin-react-refresh": "^0.4.3", 30 | "postcss": "^8.4.30", 31 | "tailwindcss": "^3.3.3", 32 | "vite": "^4.4.5" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /RandomNumberMixed/postcss.config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /RandomNumberMixed/public/vite.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /RandomNumberMixed/src/index.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | 5 | 6 | :root { 7 | font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; 8 | line-height: 1.5; 9 | font-weight: 400; 10 | 11 | color-scheme: light dark; 12 | color: rgba(255, 255, 255, 0.87); 13 | background-color: #242424; 14 | 15 | font-synthesis: none; 16 | text-rendering: optimizeLegibility; 17 | -webkit-font-smoothing: antialiased; 18 | -moz-osx-font-smoothing: grayscale; 19 | -webkit-text-size-adjust: 100%; 20 | } 21 | 22 | a { 23 | font-weight: 500; 24 | color: #646cff; 25 | text-decoration: inherit; 26 | } 27 | a:hover { 28 | color: #535bf2; 29 | } 30 | 31 | body { 32 | margin: 0; 33 | display: flex; 34 | place-items: center; 35 | min-width: 320px; 36 | min-height: 100vh; 37 | } 38 | 39 | h1 { 40 | font-size: 3.2em; 41 | line-height: 1.1; 42 | } 43 | 44 | button { 45 | border-radius: 8px; 46 | border: 1px solid transparent; 47 | padding: 0.6em 1.2em; 48 | font-size: 1em; 49 | font-weight: 500; 50 | font-family: inherit; 51 | background-color: #1a1a1a; 52 | cursor: pointer; 53 | transition: border-color 0.25s; 54 | } 55 | button:hover { 56 | border-color: #646cff; 57 | } 58 | button:focus, 59 | button:focus-visible { 60 | outline: 4px auto -webkit-focus-ring-color; 61 | } 62 | 63 | @media (prefers-color-scheme: light) { 64 | :root { 65 | color: #213547; 66 | background-color: #ffffff; 67 | } 68 | a:hover { 69 | color: #747bff; 70 | } 71 | button { 72 | background-color: #f9f9f9; 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /RandomNumberMixed/src/main.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import ReactDOM from 'react-dom/client' 3 | import App from './App.jsx' 4 | import './index.css' 5 | 6 | ReactDOM.createRoot(document.getElementById('root')).render( 7 | 8 | 9 | , 10 | ) 11 | -------------------------------------------------------------------------------- /RandomNumberMixed/src/toastrService.js: -------------------------------------------------------------------------------- 1 | import toastr from 'toastr'; 2 | 3 | toastr.options = { 4 | positionClass: 'toast-top-right', // Customize the position 5 | closeButton: true, // Show close button 6 | }; 7 | 8 | const toastrService = { 9 | success: (message) => toastr.success(message), 10 | error: (message) => toastr.error(message), 11 | info: (message) => toastr.info(message), 12 | warning: (message) => toastr.warning(message), 13 | }; 14 | 15 | export default toastrService; 16 | -------------------------------------------------------------------------------- /RandomNumberMixed/tailwind.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('tailwindcss').Config} */ 2 | export default { 3 | content: [ 4 | "./index.html", 5 | "./src/**/*.{js,ts,jsx,tsx}", 6 | ], 7 | theme: { 8 | extend: {}, 9 | }, 10 | plugins: [], 11 | } 12 | 13 | -------------------------------------------------------------------------------- /RandomNumberMixed/vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite' 2 | import react from '@vitejs/plugin-react' 3 | 4 | // https://vitejs.dev/config/ 5 | export default defineConfig({ 6 | plugins: [react()], 7 | }) 8 | -------------------------------------------------------------------------------- /ReactRouter/.eslintrc.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { browser: true, es2020: true }, 4 | extends: [ 5 | 'eslint:recommended', 6 | 'plugin:react/recommended', 7 | 'plugin:react/jsx-runtime', 8 | 'plugin:react-hooks/recommended', 9 | ], 10 | ignorePatterns: ['dist', '.eslintrc.cjs'], 11 | parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, 12 | settings: { react: { version: '18.2' } }, 13 | plugins: ['react-refresh'], 14 | rules: { 15 | 'react-refresh/only-export-components': [ 16 | 'warn', 17 | { allowConstantExport: true }, 18 | ], 19 | }, 20 | } 21 | -------------------------------------------------------------------------------- /ReactRouter/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | dist 12 | dist-ssr 13 | *.local 14 | 15 | # Editor directories and files 16 | .vscode/* 17 | !.vscode/extensions.json 18 | .idea 19 | .DS_Store 20 | *.suo 21 | *.ntvs* 22 | *.njsproj 23 | *.sln 24 | *.sw? 25 | -------------------------------------------------------------------------------- /ReactRouter/README.md: -------------------------------------------------------------------------------- 1 | # React + Vite 2 | 3 | This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. 4 | 5 | Currently, two official plugins are available: 6 | 7 | - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh 8 | - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh 9 | -------------------------------------------------------------------------------- /ReactRouter/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Vite + React 8 | 9 | 10 |
11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /ReactRouter/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "reactrouter", 3 | "private": true, 4 | "version": "0.0.0", 5 | "type": "module", 6 | "scripts": { 7 | "dev": "vite", 8 | "build": "vite build", 9 | "lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0", 10 | "preview": "vite preview" 11 | }, 12 | "dependencies": { 13 | "body-parser": "^1.20.2", 14 | "cors": "^2.8.5", 15 | "express": "^4.18.2", 16 | "openai": "^4.10.0", 17 | "react": "^18.2.0", 18 | "react-dom": "^18.2.0", 19 | "react-router-dom": "^6.16.0" 20 | }, 21 | "devDependencies": { 22 | "@types/react": "^18.2.15", 23 | "@types/react-dom": "^18.2.7", 24 | "@vitejs/plugin-react": "^4.0.3", 25 | "autoprefixer": "^10.4.16", 26 | "eslint": "^8.45.0", 27 | "eslint-plugin-react": "^7.32.2", 28 | "eslint-plugin-react-hooks": "^4.6.0", 29 | "eslint-plugin-react-refresh": "^0.4.3", 30 | "postcss": "^8.4.30", 31 | "tailwindcss": "^3.3.3", 32 | "vite": "^4.4.5" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /ReactRouter/postcss.config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /ReactRouter/public/vite.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ReactRouter/src/App.css: -------------------------------------------------------------------------------- 1 | #root { 2 | max-width: 1280px; 3 | margin: 0 auto; 4 | padding: 2rem; 5 | text-align: center; 6 | } 7 | 8 | .logo { 9 | height: 6em; 10 | padding: 1.5em; 11 | will-change: filter; 12 | transition: filter 300ms; 13 | } 14 | .logo:hover { 15 | filter: drop-shadow(0 0 2em #646cffaa); 16 | } 17 | .logo.react:hover { 18 | filter: drop-shadow(0 0 2em #61dafbaa); 19 | } 20 | 21 | @keyframes logo-spin { 22 | from { 23 | transform: rotate(0deg); 24 | } 25 | to { 26 | transform: rotate(360deg); 27 | } 28 | } 29 | 30 | @media (prefers-reduced-motion: no-preference) { 31 | a:nth-of-type(2) .logo { 32 | animation: logo-spin infinite 20s linear; 33 | } 34 | } 35 | 36 | .card { 37 | padding: 2em; 38 | } 39 | 40 | .read-the-docs { 41 | color: #888; 42 | } 43 | -------------------------------------------------------------------------------- /ReactRouter/src/Layout.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import Header from './components/Header/Header' 3 | import Footer from './components/Footer/Footer' 4 | import { Outlet } from 'react-router-dom' 5 | 6 | function Layout() { 7 | return ( 8 | <> 9 |
10 | 11 |