embeddedaichatux 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/AIChat.npm.csproj +17 -0
  2. package/AIChat.npm.csproj.user +6 -0
  3. package/EmbeddedChat.js +46 -0
  4. package/Pages/Error.cshtml +26 -0
  5. package/Pages/Error.cshtml.cs +27 -0
  6. package/Pages/Index.cshtml +10 -0
  7. package/Pages/Index.cshtml.cs +20 -0
  8. package/Pages/Privacy.cshtml +8 -0
  9. package/Pages/Privacy.cshtml.cs +19 -0
  10. package/Pages/Shared/_Layout.cshtml +51 -0
  11. package/Pages/Shared/_Layout.cshtml.css +48 -0
  12. package/Pages/Shared/_ValidationScriptsPartial.cshtml +2 -0
  13. package/Pages/_ViewImports.cshtml +3 -0
  14. package/Pages/_ViewStart.cshtml +3 -0
  15. package/Program.cs +25 -0
  16. package/Properties/launchSettings.json +37 -0
  17. package/README.md +7 -0
  18. package/appsettings.Development.json +9 -0
  19. package/appsettings.json +9 -0
  20. package/obj/AIChat.npm.csproj.nuget.dgspec.json +67 -0
  21. package/obj/AIChat.npm.csproj.nuget.g.props +15 -0
  22. package/obj/AIChat.npm.csproj.nuget.g.targets +2 -0
  23. package/obj/AIChatEmbed.csproj.nuget.dgspec.json +67 -0
  24. package/obj/AIChatEmbed.csproj.nuget.g.props +15 -0
  25. package/obj/AIChatEmbed.csproj.nuget.g.targets +2 -0
  26. package/obj/AIChatEmbedded.csproj.nuget.dgspec.json +67 -0
  27. package/obj/AIChatEmbedded.csproj.nuget.g.props +15 -0
  28. package/obj/AIChatEmbedded.csproj.nuget.g.targets +2 -0
  29. package/obj/Debug/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs +4 -0
  30. package/obj/Debug/net7.0/AIChat.npm.AssemblyInfo.cs +23 -0
  31. package/obj/Debug/net7.0/AIChat.npm.AssemblyInfoInputs.cache +1 -0
  32. package/obj/Debug/net7.0/AIChat.npm.GeneratedMSBuildEditorConfig.editorconfig +45 -0
  33. package/obj/Debug/net7.0/AIChat.npm.GlobalUsings.g.cs +17 -0
  34. package/obj/Debug/net7.0/AIChat.npm.RazorAssemblyInfo.cache +1 -0
  35. package/obj/Debug/net7.0/AIChat.npm.RazorAssemblyInfo.cs +18 -0
  36. package/obj/Debug/net7.0/AIChat.npm.assets.cache +0 -0
  37. package/obj/Debug/net7.0/AIChatEmbed.AssemblyInfo.cs +23 -0
  38. package/obj/Debug/net7.0/AIChatEmbed.AssemblyInfoInputs.cache +1 -0
  39. package/obj/Debug/net7.0/AIChatEmbed.GeneratedMSBuildEditorConfig.editorconfig +45 -0
  40. package/obj/Debug/net7.0/AIChatEmbed.GlobalUsings.g.cs +17 -0
  41. package/obj/Debug/net7.0/AIChatEmbed.RazorAssemblyInfo.cache +1 -0
  42. package/obj/Debug/net7.0/AIChatEmbed.RazorAssemblyInfo.cs +18 -0
  43. package/obj/Debug/net7.0/AIChatEmbed.assets.cache +0 -0
  44. package/obj/Debug/net7.0/AIChatEmbedded.AssemblyInfo.cs +23 -0
  45. package/obj/Debug/net7.0/AIChatEmbedded.AssemblyInfoInputs.cache +1 -0
  46. package/obj/Debug/net7.0/AIChatEmbedded.GeneratedMSBuildEditorConfig.editorconfig +45 -0
  47. package/obj/Debug/net7.0/AIChatEmbedded.GlobalUsings.g.cs +17 -0
  48. package/obj/Debug/net7.0/AIChatEmbedded.RazorAssemblyInfo.cache +1 -0
  49. package/obj/Debug/net7.0/AIChatEmbedded.RazorAssemblyInfo.cs +18 -0
  50. package/obj/Debug/net7.0/AIChatEmbedded.assets.cache +0 -0
  51. package/obj/Debug/net7.0/project.razor.vs.json +1 -0
  52. package/obj/project.assets.json +72 -0
  53. package/obj/project.nuget.cache +8 -0
  54. package/package.json +11 -0
  55. package/wwwroot/css/site.css +22 -0
  56. package/wwwroot/favicon.ico +0 -0
  57. package/wwwroot/js/site.js +4 -0
  58. package/wwwroot/lib/bootstrap/LICENSE +22 -0
  59. package/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css +4997 -0
  60. package/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css.map +1 -0
  61. package/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css +7 -0
  62. package/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css.map +1 -0
  63. package/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css +4996 -0
  64. package/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css.map +1 -0
  65. package/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css +7 -0
  66. package/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css.map +1 -0
  67. package/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css +427 -0
  68. package/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css.map +1 -0
  69. package/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css +8 -0
  70. package/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css.map +1 -0
  71. package/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css +424 -0
  72. package/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css.map +1 -0
  73. package/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.min.css +8 -0
  74. package/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.min.css.map +1 -0
  75. package/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css +4866 -0
  76. package/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css.map +1 -0
  77. package/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.min.css +7 -0
  78. package/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.min.css.map +1 -0
  79. package/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css +4857 -0
  80. package/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css.map +1 -0
  81. package/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.min.css +7 -0
  82. package/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.min.css.map +1 -0
  83. package/wwwroot/lib/bootstrap/dist/css/bootstrap.css +11221 -0
  84. package/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map +1 -0
  85. package/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css +7 -0
  86. package/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map +1 -0
  87. package/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.css +11197 -0
  88. package/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.css.map +1 -0
  89. package/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.min.css +7 -0
  90. package/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.min.css.map +1 -0
  91. package/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js +6780 -0
  92. package/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js.map +1 -0
  93. package/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js +7 -0
  94. package/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js.map +1 -0
  95. package/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js +4977 -0
  96. package/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js.map +1 -0
  97. package/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.min.js +7 -0
  98. package/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.min.js.map +1 -0
  99. package/wwwroot/lib/bootstrap/dist/js/bootstrap.js +5026 -0
  100. package/wwwroot/lib/bootstrap/dist/js/bootstrap.js.map +1 -0
  101. package/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js +7 -0
  102. package/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js.map +1 -0
  103. package/wwwroot/lib/jquery/LICENSE.txt +21 -0
  104. package/wwwroot/lib/jquery/dist/jquery.js +10881 -0
  105. package/wwwroot/lib/jquery/dist/jquery.min.js +2 -0
  106. package/wwwroot/lib/jquery/dist/jquery.min.map +1 -0
  107. package/wwwroot/lib/jquery-validation/LICENSE.md +22 -0
  108. package/wwwroot/lib/jquery-validation/dist/additional-methods.js +1158 -0
  109. package/wwwroot/lib/jquery-validation/dist/additional-methods.min.js +4 -0
  110. package/wwwroot/lib/jquery-validation/dist/jquery.validate.js +1601 -0
  111. package/wwwroot/lib/jquery-validation/dist/jquery.validate.min.js +4 -0
  112. package/wwwroot/lib/jquery-validation-unobtrusive/LICENSE.txt +23 -0
  113. package/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js +435 -0
  114. package/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js +8 -0
@@ -0,0 +1,17 @@
1
+ <Project Sdk="Microsoft.NET.Sdk.Web">
2
+
3
+ <PropertyGroup>
4
+ <TargetFramework>net7.0</TargetFramework>
5
+ <Nullable>enable</Nullable>
6
+ <ImplicitUsings>enable</ImplicitUsings>
7
+ </PropertyGroup>
8
+
9
+ <ItemGroup>
10
+ <None Remove="EmbeddedChat.js" />
11
+ </ItemGroup>
12
+
13
+ <ItemGroup>
14
+ <Content Include="EmbeddedChat.js" />
15
+ </ItemGroup>
16
+
17
+ </Project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <PropertyGroup>
4
+ <ActiveDebugProfile>https</ActiveDebugProfile>
5
+ </PropertyGroup>
6
+ </Project>
@@ -0,0 +1,46 @@
1
+ // embeddedChat.js
2
+ class EmbeddedChat {
3
+ constructor(containerDiv, chatId, options) {
4
+ this.containerDiv = containerDiv;
5
+ this.chatId = chatId;
6
+ this.options = options || {};
7
+ this.avatarImage = this.options.avatarImage || '/img/avatar.jpg';
8
+ this.isPreview = this.options.isPreview || false;
9
+ this.previewParam = this.isPreview ? "?isPreview=true" : "";
10
+ this.init();
11
+ }
12
+
13
+ init() {
14
+ const iframeHtml = `
15
+ <iframe id="embedded-chat" style="display: none; width:100%; border:none; overflow:hidden; position: fixed; right: 0; bottom: 0; width: 300px; height: 600px;" src="https://embedgpt.chat/ChatUX/${this.chatId}${this.previewParam}" frameborder="0" sandbox="allow-same-origin allow-scripts allow-popups allow-forms"></iframe>
16
+ <div id="embedded-chat-minimized" class="container" style="display: none;; color:#43636e;width:100%; position: fixed; right: 0; bottom: 0; width: 300px; height: 50px; padding-top: 10px;padding-left: 100px;">
17
+ <img title="Chat" src="${this.avatarImage}" style="height:40px; border-radius: 50%;" />
18
+ <button id="embedded-chat-now" class="btn btn-primary">Chat Now</button>
19
+ </div>
20
+ `;
21
+
22
+ this.containerDiv.innerHTML = iframeHtml;
23
+ this.iframe = this.containerDiv.querySelector("#embedded-chat");
24
+ this.minimizedDiv = this.containerDiv.querySelector("#embedded-chat-minimized");
25
+ this.chatNowButton = this.containerDiv.querySelector("#embedded-chat-now");
26
+
27
+ this.chatNowButton.addEventListener("click", () => {
28
+ this.iframe.style.display = "block";
29
+ this.minimizedDiv.style.display = "none";
30
+ });
31
+
32
+ window.addEventListener("message", (e) => {
33
+ if (e.data === "minimize") {
34
+ this.iframe.style.display = "none";
35
+ this.minimizedDiv.style.display = "block";
36
+ } else if (e.data === "show") {
37
+ this.iframe.style.display = "block";
38
+ this.minimizedDiv.style.display = "none";
39
+ }
40
+ });
41
+ }
42
+ }
43
+
44
+ export function initEmbeddedChat(containerDiv, chatId, options) {
45
+ return new EmbeddedChat(containerDiv, chatId, options);
46
+ }
@@ -0,0 +1,26 @@
1
+ @page
2
+ @model ErrorModel
3
+ @{
4
+ ViewData["Title"] = "Error";
5
+ }
6
+
7
+ <h1 class="text-danger">Error.</h1>
8
+ <h2 class="text-danger">An error occurred while processing your request.</h2>
9
+
10
+ @if (Model.ShowRequestId)
11
+ {
12
+ <p>
13
+ <strong>Request ID:</strong> <code>@Model.RequestId</code>
14
+ </p>
15
+ }
16
+
17
+ <h3>Development Mode</h3>
18
+ <p>
19
+ Swapping to the <strong>Development</strong> environment displays detailed information about the error that occurred.
20
+ </p>
21
+ <p>
22
+ <strong>The Development environment shouldn't be enabled for deployed applications.</strong>
23
+ It can result in displaying sensitive information from exceptions to end users.
24
+ For local debugging, enable the <strong>Development</strong> environment by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>
25
+ and restarting the app.
26
+ </p>
@@ -0,0 +1,27 @@
1
+ using Microsoft.AspNetCore.Mvc;
2
+ using Microsoft.AspNetCore.Mvc.RazorPages;
3
+ using System.Diagnostics;
4
+
5
+ namespace AIChatEmbedded.Pages
6
+ {
7
+ [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
8
+ [IgnoreAntiforgeryToken]
9
+ public class ErrorModel : PageModel
10
+ {
11
+ public string? RequestId { get; set; }
12
+
13
+ public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
14
+
15
+ private readonly ILogger<ErrorModel> _logger;
16
+
17
+ public ErrorModel(ILogger<ErrorModel> logger)
18
+ {
19
+ _logger = logger;
20
+ }
21
+
22
+ public void OnGet()
23
+ {
24
+ RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,10 @@
1
+ @page
2
+ @model IndexModel
3
+ @{
4
+ ViewData["Title"] = "Home page";
5
+ }
6
+
7
+ <div class="text-center">
8
+ <h1 class="display-4">Welcome</h1>
9
+ <p>Learn about <a href="https://docs.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
10
+ </div>
@@ -0,0 +1,20 @@
1
+ using Microsoft.AspNetCore.Mvc;
2
+ using Microsoft.AspNetCore.Mvc.RazorPages;
3
+
4
+ namespace AIChatEmbedded.Pages
5
+ {
6
+ public class IndexModel : PageModel
7
+ {
8
+ private readonly ILogger<IndexModel> _logger;
9
+
10
+ public IndexModel(ILogger<IndexModel> logger)
11
+ {
12
+ _logger = logger;
13
+ }
14
+
15
+ public void OnGet()
16
+ {
17
+
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,8 @@
1
+ @page
2
+ @model PrivacyModel
3
+ @{
4
+ ViewData["Title"] = "Privacy Policy";
5
+ }
6
+ <h1>@ViewData["Title"]</h1>
7
+
8
+ <p>Use this page to detail your site's privacy policy.</p>
@@ -0,0 +1,19 @@
1
+ using Microsoft.AspNetCore.Mvc;
2
+ using Microsoft.AspNetCore.Mvc.RazorPages;
3
+
4
+ namespace AIChatEmbedded.Pages
5
+ {
6
+ public class PrivacyModel : PageModel
7
+ {
8
+ private readonly ILogger<PrivacyModel> _logger;
9
+
10
+ public PrivacyModel(ILogger<PrivacyModel> logger)
11
+ {
12
+ _logger = logger;
13
+ }
14
+
15
+ public void OnGet()
16
+ {
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,51 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>@ViewData["Title"] - AIChatEmbedded</title>
7
+ <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
8
+ <link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
9
+ <link rel="stylesheet" href="~/AIChatEmbedded.styles.css" asp-append-version="true" />
10
+ </head>
11
+ <body>
12
+ <header>
13
+ <nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3">
14
+ <div class="container">
15
+ <a class="navbar-brand" asp-area="" asp-page="/Index">AIChatEmbedded</a>
16
+ <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse" aria-controls="navbarSupportedContent"
17
+ aria-expanded="false" aria-label="Toggle navigation">
18
+ <span class="navbar-toggler-icon"></span>
19
+ </button>
20
+ <div class="navbar-collapse collapse d-sm-inline-flex justify-content-between">
21
+ <ul class="navbar-nav flex-grow-1">
22
+ <li class="nav-item">
23
+ <a class="nav-link text-dark" asp-area="" asp-page="/Index">Home</a>
24
+ </li>
25
+ <li class="nav-item">
26
+ <a class="nav-link text-dark" asp-area="" asp-page="/Privacy">Privacy</a>
27
+ </li>
28
+ </ul>
29
+ </div>
30
+ </div>
31
+ </nav>
32
+ </header>
33
+ <div class="container">
34
+ <main role="main" class="pb-3">
35
+ @RenderBody()
36
+ </main>
37
+ </div>
38
+
39
+ <footer class="border-top footer text-muted">
40
+ <div class="container">
41
+ &copy; 2023 - AIChatEmbedded - <a asp-area="" asp-page="/Privacy">Privacy</a>
42
+ </div>
43
+ </footer>
44
+
45
+ <script src="~/lib/jquery/dist/jquery.min.js"></script>
46
+ <script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
47
+ <script src="~/js/site.js" asp-append-version="true"></script>
48
+
49
+ @await RenderSectionAsync("Scripts", required: false)
50
+ </body>
51
+ </html>
@@ -0,0 +1,48 @@
1
+ /* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
2
+ for details on configuring this project to bundle and minify static web assets. */
3
+
4
+ a.navbar-brand {
5
+ white-space: normal;
6
+ text-align: center;
7
+ word-break: break-all;
8
+ }
9
+
10
+ a {
11
+ color: #0077cc;
12
+ }
13
+
14
+ .btn-primary {
15
+ color: #fff;
16
+ background-color: #1b6ec2;
17
+ border-color: #1861ac;
18
+ }
19
+
20
+ .nav-pills .nav-link.active, .nav-pills .show > .nav-link {
21
+ color: #fff;
22
+ background-color: #1b6ec2;
23
+ border-color: #1861ac;
24
+ }
25
+
26
+ .border-top {
27
+ border-top: 1px solid #e5e5e5;
28
+ }
29
+ .border-bottom {
30
+ border-bottom: 1px solid #e5e5e5;
31
+ }
32
+
33
+ .box-shadow {
34
+ box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
35
+ }
36
+
37
+ button.accept-policy {
38
+ font-size: 1rem;
39
+ line-height: inherit;
40
+ }
41
+
42
+ .footer {
43
+ position: absolute;
44
+ bottom: 0;
45
+ width: 100%;
46
+ white-space: nowrap;
47
+ line-height: 60px;
48
+ }
@@ -0,0 +1,2 @@
1
+ <script src="~/lib/jquery-validation/dist/jquery.validate.min.js"></script>
2
+ <script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script>
@@ -0,0 +1,3 @@
1
+ @using AIChatEmbedded
2
+ @namespace AIChatEmbedded.Pages
3
+ @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@@ -0,0 +1,3 @@
1
+ @{
2
+ Layout = "_Layout";
3
+ }
package/Program.cs ADDED
@@ -0,0 +1,25 @@
1
+ var builder = WebApplication.CreateBuilder(args);
2
+
3
+ // Add services to the container.
4
+ builder.Services.AddRazorPages();
5
+
6
+ var app = builder.Build();
7
+
8
+ // Configure the HTTP request pipeline.
9
+ if (!app.Environment.IsDevelopment())
10
+ {
11
+ app.UseExceptionHandler("/Error");
12
+ // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
13
+ app.UseHsts();
14
+ }
15
+
16
+ app.UseHttpsRedirection();
17
+ app.UseStaticFiles();
18
+
19
+ app.UseRouting();
20
+
21
+ app.UseAuthorization();
22
+
23
+ app.MapRazorPages();
24
+
25
+ app.Run();
@@ -0,0 +1,37 @@
1
+ {
2
+ "iisSettings": {
3
+ "windowsAuthentication": false,
4
+ "anonymousAuthentication": true,
5
+ "iisExpress": {
6
+ "applicationUrl": "http://localhost:27434",
7
+ "sslPort": 44389
8
+ }
9
+ },
10
+ "profiles": {
11
+ "http": {
12
+ "commandName": "Project",
13
+ "dotnetRunMessages": true,
14
+ "launchBrowser": true,
15
+ "applicationUrl": "http://localhost:5103",
16
+ "environmentVariables": {
17
+ "ASPNETCORE_ENVIRONMENT": "Development"
18
+ }
19
+ },
20
+ "https": {
21
+ "commandName": "Project",
22
+ "dotnetRunMessages": true,
23
+ "launchBrowser": true,
24
+ "applicationUrl": "https://localhost:7299;http://localhost:5103",
25
+ "environmentVariables": {
26
+ "ASPNETCORE_ENVIRONMENT": "Development"
27
+ }
28
+ },
29
+ "IIS Express": {
30
+ "commandName": "IISExpress",
31
+ "launchBrowser": true,
32
+ "environmentVariables": {
33
+ "ASPNETCORE_ENVIRONMENT": "Development"
34
+ }
35
+ }
36
+ }
37
+ }
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # EmbeddedChat
2
+
3
+ A lightweight and customizable embedded chat UI component that seamlessly integrates into web applications, offering minimized and expanded views, with iframe-based content rendering.
4
+
5
+ ## Installation
6
+
7
+ npm install aichatembedded
@@ -0,0 +1,9 @@
1
+ {
2
+ "DetailedErrors": true,
3
+ "Logging": {
4
+ "LogLevel": {
5
+ "Default": "Information",
6
+ "Microsoft.AspNetCore": "Warning"
7
+ }
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "Logging": {
3
+ "LogLevel": {
4
+ "Default": "Information",
5
+ "Microsoft.AspNetCore": "Warning"
6
+ }
7
+ },
8
+ "AllowedHosts": "*"
9
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "format": 1,
3
+ "restore": {
4
+ "C:\\Git\\AIChat\\AIChat.npm\\AIChat.npm.csproj": {}
5
+ },
6
+ "projects": {
7
+ "C:\\Git\\AIChat\\AIChat.npm\\AIChat.npm.csproj": {
8
+ "version": "1.0.0",
9
+ "restore": {
10
+ "projectUniqueName": "C:\\Git\\AIChat\\AIChat.npm\\AIChat.npm.csproj",
11
+ "projectName": "AIChat.npm",
12
+ "projectPath": "C:\\Git\\AIChat\\AIChat.npm\\AIChat.npm.csproj",
13
+ "packagesPath": "C:\\Users\\esipo\\.nuget\\packages\\",
14
+ "outputPath": "C:\\Git\\AIChat\\AIChat.npm\\obj\\",
15
+ "projectStyle": "PackageReference",
16
+ "configFilePaths": [
17
+ "C:\\Users\\esipo\\AppData\\Roaming\\NuGet\\NuGet.Config",
18
+ "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
19
+ ],
20
+ "originalTargetFrameworks": [
21
+ "net7.0"
22
+ ],
23
+ "sources": {
24
+ "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
25
+ "https://api.nuget.org/v3/index.json": {},
26
+ "https://cosmosdbmongodbvcore.pkgs.visualstudio.com/_packaging/CosmosDBMongoDBvCore/nuget/v3/index.json": {}
27
+ },
28
+ "frameworks": {
29
+ "net7.0": {
30
+ "targetAlias": "net7.0",
31
+ "projectReferences": {}
32
+ }
33
+ },
34
+ "warningProperties": {
35
+ "warnAsError": [
36
+ "NU1605"
37
+ ]
38
+ }
39
+ },
40
+ "frameworks": {
41
+ "net7.0": {
42
+ "targetAlias": "net7.0",
43
+ "imports": [
44
+ "net461",
45
+ "net462",
46
+ "net47",
47
+ "net471",
48
+ "net472",
49
+ "net48",
50
+ "net481"
51
+ ],
52
+ "assetTargetFallback": true,
53
+ "warn": true,
54
+ "frameworkReferences": {
55
+ "Microsoft.AspNetCore.App": {
56
+ "privateAssets": "none"
57
+ },
58
+ "Microsoft.NETCore.App": {
59
+ "privateAssets": "all"
60
+ }
61
+ },
62
+ "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.400\\RuntimeIdentifierGraph.json"
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="utf-8" standalone="no"?>
2
+ <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4
+ <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5
+ <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6
+ <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7
+ <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8
+ <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\esipo\.nuget\packages\</NuGetPackageFolders>
9
+ <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10
+ <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.7.0</NuGetToolVersion>
11
+ </PropertyGroup>
12
+ <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13
+ <SourceRoot Include="C:\Users\esipo\.nuget\packages\" />
14
+ </ItemGroup>
15
+ </Project>
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="utf-8" standalone="no"?>
2
+ <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
@@ -0,0 +1,67 @@
1
+ {
2
+ "format": 1,
3
+ "restore": {
4
+ "C:\\Git\\AIChat\\AIChatEmbedded\\AIChatEmbed.csproj": {}
5
+ },
6
+ "projects": {
7
+ "C:\\Git\\AIChat\\AIChatEmbedded\\AIChatEmbed.csproj": {
8
+ "version": "1.0.0",
9
+ "restore": {
10
+ "projectUniqueName": "C:\\Git\\AIChat\\AIChatEmbedded\\AIChatEmbed.csproj",
11
+ "projectName": "AIChatEmbed",
12
+ "projectPath": "C:\\Git\\AIChat\\AIChatEmbedded\\AIChatEmbed.csproj",
13
+ "packagesPath": "C:\\Users\\esipo\\.nuget\\packages\\",
14
+ "outputPath": "C:\\Git\\AIChat\\AIChatEmbedded\\obj\\",
15
+ "projectStyle": "PackageReference",
16
+ "configFilePaths": [
17
+ "C:\\Users\\esipo\\AppData\\Roaming\\NuGet\\NuGet.Config",
18
+ "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
19
+ ],
20
+ "originalTargetFrameworks": [
21
+ "net7.0"
22
+ ],
23
+ "sources": {
24
+ "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
25
+ "https://api.nuget.org/v3/index.json": {},
26
+ "https://cosmosdbmongodbvcore.pkgs.visualstudio.com/_packaging/CosmosDBMongoDBvCore/nuget/v3/index.json": {}
27
+ },
28
+ "frameworks": {
29
+ "net7.0": {
30
+ "targetAlias": "net7.0",
31
+ "projectReferences": {}
32
+ }
33
+ },
34
+ "warningProperties": {
35
+ "warnAsError": [
36
+ "NU1605"
37
+ ]
38
+ }
39
+ },
40
+ "frameworks": {
41
+ "net7.0": {
42
+ "targetAlias": "net7.0",
43
+ "imports": [
44
+ "net461",
45
+ "net462",
46
+ "net47",
47
+ "net471",
48
+ "net472",
49
+ "net48",
50
+ "net481"
51
+ ],
52
+ "assetTargetFallback": true,
53
+ "warn": true,
54
+ "frameworkReferences": {
55
+ "Microsoft.AspNetCore.App": {
56
+ "privateAssets": "none"
57
+ },
58
+ "Microsoft.NETCore.App": {
59
+ "privateAssets": "all"
60
+ }
61
+ },
62
+ "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.400\\RuntimeIdentifierGraph.json"
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="utf-8" standalone="no"?>
2
+ <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4
+ <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5
+ <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6
+ <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7
+ <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8
+ <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\esipo\.nuget\packages\</NuGetPackageFolders>
9
+ <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10
+ <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.7.0</NuGetToolVersion>
11
+ </PropertyGroup>
12
+ <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13
+ <SourceRoot Include="C:\Users\esipo\.nuget\packages\" />
14
+ </ItemGroup>
15
+ </Project>
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="utf-8" standalone="no"?>
2
+ <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
@@ -0,0 +1,67 @@
1
+ {
2
+ "format": 1,
3
+ "restore": {
4
+ "C:\\Git\\AIChat\\AIChatEmbedded\\AIChatEmbedded.csproj": {}
5
+ },
6
+ "projects": {
7
+ "C:\\Git\\AIChat\\AIChatEmbedded\\AIChatEmbedded.csproj": {
8
+ "version": "1.0.0",
9
+ "restore": {
10
+ "projectUniqueName": "C:\\Git\\AIChat\\AIChatEmbedded\\AIChatEmbedded.csproj",
11
+ "projectName": "AIChatEmbedded",
12
+ "projectPath": "C:\\Git\\AIChat\\AIChatEmbedded\\AIChatEmbedded.csproj",
13
+ "packagesPath": "C:\\Users\\esipo\\.nuget\\packages\\",
14
+ "outputPath": "C:\\Git\\AIChat\\AIChatEmbedded\\obj\\",
15
+ "projectStyle": "PackageReference",
16
+ "configFilePaths": [
17
+ "C:\\Users\\esipo\\AppData\\Roaming\\NuGet\\NuGet.Config",
18
+ "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
19
+ ],
20
+ "originalTargetFrameworks": [
21
+ "net7.0"
22
+ ],
23
+ "sources": {
24
+ "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
25
+ "https://api.nuget.org/v3/index.json": {},
26
+ "https://cosmosdbmongodbvcore.pkgs.visualstudio.com/_packaging/CosmosDBMongoDBvCore/nuget/v3/index.json": {}
27
+ },
28
+ "frameworks": {
29
+ "net7.0": {
30
+ "targetAlias": "net7.0",
31
+ "projectReferences": {}
32
+ }
33
+ },
34
+ "warningProperties": {
35
+ "warnAsError": [
36
+ "NU1605"
37
+ ]
38
+ }
39
+ },
40
+ "frameworks": {
41
+ "net7.0": {
42
+ "targetAlias": "net7.0",
43
+ "imports": [
44
+ "net461",
45
+ "net462",
46
+ "net47",
47
+ "net471",
48
+ "net472",
49
+ "net48",
50
+ "net481"
51
+ ],
52
+ "assetTargetFallback": true,
53
+ "warn": true,
54
+ "frameworkReferences": {
55
+ "Microsoft.AspNetCore.App": {
56
+ "privateAssets": "none"
57
+ },
58
+ "Microsoft.NETCore.App": {
59
+ "privateAssets": "all"
60
+ }
61
+ },
62
+ "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.400\\RuntimeIdentifierGraph.json"
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="utf-8" standalone="no"?>
2
+ <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4
+ <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5
+ <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6
+ <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7
+ <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8
+ <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\esipo\.nuget\packages\</NuGetPackageFolders>
9
+ <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10
+ <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.7.0</NuGetToolVersion>
11
+ </PropertyGroup>
12
+ <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13
+ <SourceRoot Include="C:\Users\esipo\.nuget\packages\" />
14
+ </ItemGroup>
15
+ </Project>