├── .github └── workflows │ ├── azure-webapps-dotnet-core.yml │ └── dotnet.yml ├── .gitignore ├── BffMicrosoftEntraID.Server.sln ├── CHANGELOG.md ├── LICENSE ├── README.md ├── images ├── azure-app-registration_01.png ├── vue-aspnetcore-bff-02.png ├── vue-aspnetcore-bff-yarp-dev_01.png └── vue-aspnetcore-bff_01.png ├── server ├── BffMicrosoftEntraID.Server.csproj ├── Cae │ ├── AuthContextId.cs │ ├── CaeClaimsChallengeService.cs │ └── WebApiMsalUiRequiredException.cs ├── Controllers │ ├── AccountController.cs │ ├── DirectApiController.cs │ ├── GraphApiDataController.cs │ └── UserController.cs ├── Models │ ├── ClaimValue.cs │ └── UserInfo.cs ├── Pages │ ├── Error.cshtml │ ├── Error.cshtml.cs │ └── _Host.cshtml ├── Program.cs ├── Properties │ └── launchSettings.json ├── RejectSessionCookieWhenAccountNotInCacheEvents.cs ├── SecurityHeadersDefinitions.cs ├── Services │ ├── ApplicationBuilderExtensions.cs │ ├── EndpointRouteBuilderExtensions.cs │ └── MsGraphService.cs ├── appsettings.Development.json ├── appsettings.json └── wwwroot │ ├── assets │ ├── index-684edfa4.js │ ├── index-6e4b80cd.css │ └── vue-5532db34.svg │ ├── index.html │ └── vite.svg └── ui ├── .gitignore ├── .vscode └── extensions.json ├── README.md ├── certs ├── Readme.md ├── dev_localhost.crt ├── dev_localhost.key └── dev_localhost.pem ├── index.html ├── package-lock.json ├── package.json ├── public └── vite.svg ├── src ├── App.vue ├── assets │ └── vue.svg ├── components │ ├── HelloWorld.vue │ └── ResultsDisplay.vue ├── getCookie.ts ├── main.ts ├── style.css └── vite-env.d.ts ├── tsconfig.json ├── tsconfig.node.json └── vite.config.ts /.github/workflows/azure-webapps-dotnet-core.yml: -------------------------------------------------------------------------------- 1 | 2 | name: Build and deploy to Azure Web App 3 | 4 | env: 5 | AZURE_WEBAPP_NAME: bff-vue-aspnetcore # set this to the name of your Azure Web App 6 | AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root 7 | DOTNET_VERSION: '9.0' # set this to the .NET Core version to use 8 | 9 | on: 10 | push: 11 | branches: [ "deploy" ] 12 | workflow_dispatch: 13 | 14 | permissions: 15 | contents: read 16 | 17 | jobs: 18 | build: 19 | runs-on: ubuntu-latest 20 | 21 | steps: 22 | - uses: actions/checkout@v4 23 | 24 | - name: Set up .NET Core 25 | uses: actions/setup-dotnet@v4 26 | with: 27 | dotnet-version: ${{ env.DOTNET_VERSION }} 28 | 29 | - name: Set up dependency caching for faster builds 30 | uses: actions/cache@v4 31 | with: 32 | path: ~/.nuget/packages 33 | key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} 34 | restore-keys: | 35 | ${{ runner.os }}-nuget- 36 | 37 | - name: Restore dependencies 38 | run: dotnet restore 39 | 40 | - name: npm setup 41 | working-directory: ui 42 | run: npm install 43 | 44 | - name: ui-build 45 | working-directory: ui 46 | run: npm run build 47 | 48 | - name: Build with dotnet 49 | run: dotnet build --configuration Release 50 | 51 | - name: dotnet publish 52 | run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp 53 | 54 | - name: Upload artifact for deployment job 55 | uses: actions/upload-artifact@v4 56 | with: 57 | name: .net-app 58 | path: ${{env.DOTNET_ROOT}}/myapp 59 | 60 | deploy: 61 | permissions: 62 | contents: none 63 | runs-on: ubuntu-latest 64 | needs: build 65 | environment: 66 | name: 'Development' 67 | url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} 68 | 69 | steps: 70 | - name: Download artifact from build job 71 | uses: actions/download-artifact@v4 72 | with: 73 | name: .net-app 74 | 75 | - name: Deploy to Azure Web App 76 | id: deploy-to-webapp 77 | uses: azure/webapps-deploy@v2 78 | with: 79 | app-name: ${{ env.AZURE_WEBAPP_NAME }} 80 | publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} 81 | package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} 82 | -------------------------------------------------------------------------------- /.github/workflows/dotnet.yml: -------------------------------------------------------------------------------- 1 | 2 | name: .NET and npm build 3 | 4 | on: 5 | push: 6 | branches: [ "main" ] 7 | pull_request: 8 | branches: [ "main" ] 9 | 10 | jobs: 11 | build: 12 | runs-on: ubuntu-latest 13 | 14 | steps: 15 | 16 | - uses: actions/checkout@v4 17 | - name: Setup .NET 18 | uses: actions/setup-dotnet@v4 19 | with: 20 | dotnet-version: 9.0.x 21 | 22 | - name: Restore dependencies 23 | run: dotnet restore 24 | 25 | - name: npm setup 26 | working-directory: ui 27 | run: npm install 28 | 29 | - name: ui-build 30 | working-directory: ui 31 | run: npm run build 32 | 33 | - name: Build 34 | run: dotnet build --no-restore 35 | - name: Test 36 | run: dotnet test --no-build --verbosity normal 37 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Ww][Ii][Nn]32/ 27 | [Aa][Rr][Mm]/ 28 | [Aa][Rr][Mm]64/ 29 | bld/ 30 | [Bb]in/ 31 | [Oo]bj/ 32 | [Ll]og/ 33 | [Ll]ogs/ 34 | 35 | # Visual Studio 2015/2017 cache/options directory 36 | .vs/ 37 | # Uncomment if you have tasks that create the project's static files in wwwroot 38 | #wwwroot/ 39 | 40 | # Visual Studio 2017 auto generated files 41 | Generated\ Files/ 42 | 43 | # MSTest test Results 44 | [Tt]est[Rr]esult*/ 45 | [Bb]uild[Ll]og.* 46 | 47 | # NUnit 48 | *.VisualState.xml 49 | TestResult.xml 50 | nunit-*.xml 51 | 52 | # Build Results of an ATL Project 53 | [Dd]ebugPS/ 54 | [Rr]eleasePS/ 55 | dlldata.c 56 | 57 | # Benchmark Results 58 | BenchmarkDotNet.Artifacts/ 59 | 60 | # .NET Core 61 | project.lock.json 62 | project.fragment.lock.json 63 | artifacts/ 64 | 65 | # ASP.NET Scaffolding 66 | ScaffoldingReadMe.txt 67 | 68 | # StyleCop 69 | StyleCopReport.xml 70 | 71 | # Files built by Visual Studio 72 | *_i.c 73 | *_p.c 74 | *_h.h 75 | *.ilk 76 | *.meta 77 | *.obj 78 | *.iobj 79 | *.pch 80 | *.pdb 81 | *.ipdb 82 | *.pgc 83 | *.pgd 84 | *.rsp 85 | *.sbr 86 | *.tlb 87 | *.tli 88 | *.tlh 89 | *.tmp 90 | *.tmp_proj 91 | *_wpftmp.csproj 92 | *.log 93 | *.tlog 94 | *.vspscc 95 | *.vssscc 96 | .builds 97 | *.pidb 98 | *.svclog 99 | *.scc 100 | 101 | # Chutzpah Test files 102 | _Chutzpah* 103 | 104 | # Visual C++ cache files 105 | ipch/ 106 | *.aps 107 | *.ncb 108 | *.opendb 109 | *.opensdf 110 | *.sdf 111 | *.cachefile 112 | *.VC.db 113 | *.VC.VC.opendb 114 | 115 | # Visual Studio profiler 116 | *.psess 117 | *.vsp 118 | *.vspx 119 | *.sap 120 | 121 | # Visual Studio Trace Files 122 | *.e2e 123 | 124 | # TFS 2012 Local Workspace 125 | $tf/ 126 | 127 | # Guidance Automation Toolkit 128 | *.gpState 129 | 130 | # ReSharper is a .NET coding add-in 131 | _ReSharper*/ 132 | *.[Rr]e[Ss]harper 133 | *.DotSettings.user 134 | 135 | # TeamCity is a build add-in 136 | _TeamCity* 137 | 138 | # DotCover is a Code Coverage Tool 139 | *.dotCover 140 | 141 | # AxoCover is a Code Coverage Tool 142 | .axoCover/* 143 | !.axoCover/settings.json 144 | 145 | # Coverlet is a free, cross platform Code Coverage Tool 146 | coverage*.json 147 | coverage*.xml 148 | coverage*.info 149 | 150 | # Visual Studio code coverage results 151 | *.coverage 152 | *.coveragexml 153 | 154 | # NCrunch 155 | _NCrunch_* 156 | .*crunch*.local.xml 157 | nCrunchTemp_* 158 | 159 | # MightyMoose 160 | *.mm.* 161 | AutoTest.Net/ 162 | 163 | # Web workbench (sass) 164 | .sass-cache/ 165 | 166 | # Installshield output folder 167 | [Ee]xpress/ 168 | 169 | # DocProject is a documentation generator add-in 170 | DocProject/buildhelp/ 171 | DocProject/Help/*.HxT 172 | DocProject/Help/*.HxC 173 | DocProject/Help/*.hhc 174 | DocProject/Help/*.hhk 175 | DocProject/Help/*.hhp 176 | DocProject/Help/Html2 177 | DocProject/Help/html 178 | 179 | # Click-Once directory 180 | publish/ 181 | 182 | # Publish Web Output 183 | *.[Pp]ublish.xml 184 | *.azurePubxml 185 | # Note: Comment the next line if you want to checkin your web deploy settings, 186 | # but database connection strings (with potential passwords) will be unencrypted 187 | *.pubxml 188 | *.publishproj 189 | 190 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 191 | # checkin your Azure Web App publish settings, but sensitive information contained 192 | # in these scripts will be unencrypted 193 | PublishScripts/ 194 | 195 | # NuGet Packages 196 | *.nupkg 197 | # NuGet Symbol Packages 198 | *.snupkg 199 | # The packages folder can be ignored because of Package Restore 200 | **/[Pp]ackages/* 201 | # except build/, which is used as an MSBuild target. 202 | !**/[Pp]ackages/build/ 203 | # Uncomment if necessary however generally it will be regenerated when needed 204 | #!**/[Pp]ackages/repositories.config 205 | # NuGet v3's project.json files produces more ignorable files 206 | *.nuget.props 207 | *.nuget.targets 208 | 209 | # Microsoft Azure Build Output 210 | csx/ 211 | *.build.csdef 212 | 213 | # Microsoft Azure Emulator 214 | ecf/ 215 | rcf/ 216 | 217 | # Windows Store app package directories and files 218 | AppPackages/ 219 | BundleArtifacts/ 220 | Package.StoreAssociation.xml 221 | _pkginfo.txt 222 | *.appx 223 | *.appxbundle 224 | *.appxupload 225 | 226 | # Visual Studio cache files 227 | # files ending in .cache can be ignored 228 | *.[Cc]ache 229 | # but keep track of directories ending in .cache 230 | !?*.[Cc]ache/ 231 | 232 | # Others 233 | ClientBin/ 234 | ~$* 235 | *~ 236 | *.dbmdl 237 | *.dbproj.schemaview 238 | *.jfm 239 | *.pfx 240 | *.publishsettings 241 | orleans.codegen.cs 242 | 243 | # Including strong name files can present a security risk 244 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 245 | #*.snk 246 | 247 | # Since there are multiple workflows, uncomment next line to ignore bower_components 248 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 249 | #bower_components/ 250 | 251 | # RIA/Silverlight projects 252 | Generated_Code/ 253 | 254 | # Backup & report files from converting an old project file 255 | # to a newer Visual Studio version. Backup files are not needed, 256 | # because we have git ;-) 257 | _UpgradeReport_Files/ 258 | Backup*/ 259 | UpgradeLog*.XML 260 | UpgradeLog*.htm 261 | ServiceFabricBackup/ 262 | *.rptproj.bak 263 | 264 | # SQL Server files 265 | *.mdf 266 | *.ldf 267 | *.ndf 268 | 269 | # Business Intelligence projects 270 | *.rdl.data 271 | *.bim.layout 272 | *.bim_*.settings 273 | *.rptproj.rsuser 274 | *- [Bb]ackup.rdl 275 | *- [Bb]ackup ([0-9]).rdl 276 | *- [Bb]ackup ([0-9][0-9]).rdl 277 | 278 | # Microsoft Fakes 279 | FakesAssemblies/ 280 | 281 | # GhostDoc plugin setting file 282 | *.GhostDoc.xml 283 | 284 | # Node.js Tools for Visual Studio 285 | .ntvs_analysis.dat 286 | node_modules/ 287 | 288 | # Visual Studio 6 build log 289 | *.plg 290 | 291 | # Visual Studio 6 workspace options file 292 | *.opt 293 | 294 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 295 | *.vbw 296 | 297 | # Visual Studio 6 auto-generated project file (contains which files were open etc.) 298 | *.vbp 299 | 300 | # Visual Studio 6 workspace and project file (working project files containing files to include in project) 301 | *.dsw 302 | *.dsp 303 | 304 | # Visual Studio 6 technical files 305 | *.ncb 306 | *.aps 307 | 308 | # Visual Studio LightSwitch build output 309 | **/*.HTMLClient/GeneratedArtifacts 310 | **/*.DesktopClient/GeneratedArtifacts 311 | **/*.DesktopClient/ModelManifest.xml 312 | **/*.Server/GeneratedArtifacts 313 | **/*.Server/ModelManifest.xml 314 | _Pvt_Extensions 315 | 316 | # Paket dependency manager 317 | .paket/paket.exe 318 | paket-files/ 319 | 320 | # FAKE - F# Make 321 | .fake/ 322 | 323 | # CodeRush personal settings 324 | .cr/personal 325 | 326 | # Python Tools for Visual Studio (PTVS) 327 | __pycache__/ 328 | *.pyc 329 | 330 | # Cake - Uncomment if you are using it 331 | # tools/** 332 | # !tools/packages.config 333 | 334 | # Tabs Studio 335 | *.tss 336 | 337 | # Telerik's JustMock configuration file 338 | *.jmconfig 339 | 340 | # BizTalk build output 341 | *.btp.cs 342 | *.btm.cs 343 | *.odx.cs 344 | *.xsd.cs 345 | 346 | # OpenCover UI analysis results 347 | OpenCover/ 348 | 349 | # Azure Stream Analytics local run output 350 | ASALocalRun/ 351 | 352 | # MSBuild Binary and Structured Log 353 | *.binlog 354 | 355 | # NVidia Nsight GPU debugger configuration file 356 | *.nvuser 357 | 358 | # MFractors (Xamarin productivity tool) working folder 359 | .mfractor/ 360 | 361 | # Local History for Visual Studio 362 | .localhistory/ 363 | 364 | # Visual Studio History (VSHistory) files 365 | .vshistory/ 366 | 367 | # BeatPulse healthcheck temp database 368 | healthchecksdb 369 | 370 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 371 | MigrationBackup/ 372 | 373 | # Ionide (cross platform F# VS Code tools) working folder 374 | .ionide/ 375 | 376 | # Fody - auto-generated XML schema 377 | FodyWeavers.xsd 378 | 379 | # VS Code files for those working on multiple tools 380 | .vscode/* 381 | !.vscode/settings.json 382 | !.vscode/tasks.json 383 | !.vscode/launch.json 384 | !.vscode/extensions.json 385 | *.code-workspace 386 | 387 | # Local History for Visual Studio Code 388 | .history/ 389 | 390 | # Windows Installer files from build outputs 391 | *.cab 392 | *.msi 393 | *.msix 394 | *.msm 395 | *.msp 396 | 397 | # JetBrains Rider 398 | *.sln.iml 399 | -------------------------------------------------------------------------------- /BffMicrosoftEntraID.Server.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.6.33829.357 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BffMicrosoftEntraID.Server", "server\BffMicrosoftEntraID.Server.csproj", "{586272BB-19BC-4BAB-976F-5DC1E778257E}" 7 | EndProject 8 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{9D8FB767-F7A7-4A5B-A4E9-DC6DB6BCD941}" 9 | ProjectSection(SolutionItems) = preProject 10 | .github\workflows\azure-webapps-dotnet-core.yml = .github\workflows\azure-webapps-dotnet-core.yml 11 | CHANGELOG.md = CHANGELOG.md 12 | .github\workflows\dotnet.yml = .github\workflows\dotnet.yml 13 | README.md = README.md 14 | EndProjectSection 15 | EndProject 16 | Global 17 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 18 | Debug|Any CPU = Debug|Any CPU 19 | Release|Any CPU = Release|Any CPU 20 | EndGlobalSection 21 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 22 | {586272BB-19BC-4BAB-976F-5DC1E778257E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 23 | {586272BB-19BC-4BAB-976F-5DC1E778257E}.Debug|Any CPU.Build.0 = Debug|Any CPU 24 | {586272BB-19BC-4BAB-976F-5DC1E778257E}.Release|Any CPU.ActiveCfg = Release|Any CPU 25 | {586272BB-19BC-4BAB-976F-5DC1E778257E}.Release|Any CPU.Build.0 = Release|Any CPU 26 | EndGlobalSection 27 | GlobalSection(SolutionProperties) = preSolution 28 | HideSolutionNode = FALSE 29 | EndGlobalSection 30 | GlobalSection(ExtensibilityGlobals) = postSolution 31 | SolutionGuid = {BD95AC6A-7177-42CE-AB6C-8BFF7958FDC2} 32 | EndGlobalSection 33 | EndGlobal 34 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## ASP.NET Core, Vue.js BFF using Microsoft Entra ID Changelog 2 | 3 | ### 2024-12-18 0.0.7 4 | - .NET 9 5 | 6 | ### 2024-10-17 0.0.6 7 | - Updated packages 8 | - Updated security headers performance 9 | 10 | ### 2024-10-05 0.0.5 11 | - Updated packages 12 | - Updated security headers 13 | 14 | ### 2023-11-17 0.0.3 15 | - .NET 8 16 | 17 | ### 2023-09-30 0.0.2 18 | - Update packages 19 | - Fixed dynamic CSP nonce injection 20 | 21 | ### 2023-09-26 0.0.1 22 | - Initial version using Vue.js (Typescript & Vite) and ASP.NET Core 23 | - ASP.NET Core version 7.x 24 | - Vue.js (typescript & vite) 25 | - CRSF used in web requests 26 | - Strong CSP in production 27 | - Azure deployment pipeline 28 | - Yarp proxy for developement 29 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright (c) 2023 damienbod 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # bff-aspnetcore-vuejs 2 | 3 | [![.NET and npm build](https://github.com/damienbod/bff-aspnetcore-vuejs/actions/workflows/dotnet.yml/badge.svg)](https://github.com/damienbod/bff-aspnetcore-vuejs/actions/workflows/dotnet.yml) [![Build and deploy to Azure Web App](https://github.com/damienbod/bff-aspnetcore-vuejs/actions/workflows/azure-webapps-dotnet-core.yml/badge.svg)](https://github.com/damienbod/bff-aspnetcore-vuejs/actions/workflows/azure-webapps-dotnet-core.yml) [![License](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg)](https://github.com/damienbod/bff-aspnetcore-vuejs/blob/main/LICENSE) 4 | 5 | [Implement a secure web application using Vue.js and an ASP.NET Core server](https://damienbod.com/2023/10/02/implement-a-secure-web-application-using-vue-js-and-an-asp-net-core-server/) 6 | 7 | ## Setup Server 8 | 9 | The ASP.NET Core project is setup to run in development and production. In production, it uses the Vue.js production build deployed to the wwwroot. In development, it uses MS YARP reverse proxy to forward requests. 10 | 11 | > [!IMPORTANT] 12 | > In production, the Vue.js project is built into the **wwwroot** of the .NET project. 13 | 14 | ![BFF production](https://github.com/damienbod/bff-aspnetcore-vuejs/blob/main/images/vue-aspnetcore-bff_01.png) 15 | 16 | Configure the YARP reverse proxy to match the Vue.js URL. This is only required in development. I always use HTTPS in development and the port needs to match the Vue.js developement env (vite.config.js). 17 | 18 | ```json 19 | "UiDevServerUrl": "https://localhost:4201", 20 | "ReverseProxy": { 21 | "Routes": { 22 | "route1": { 23 | "ClusterId": "cluster1", 24 | "Match": { 25 | "Path": "{**catch-all}" 26 | } 27 | } 28 | }, 29 | "Clusters": { 30 | "cluster1": { 31 | "HttpClient": { 32 | "SslProtocols": [ 33 | "Tls12" 34 | ] 35 | }, 36 | "Destinations": { 37 | "cluster1/destination1": { 38 | "Address": "https://localhost:4201/" 39 | } 40 | } 41 | } 42 | } 43 | } 44 | ``` 45 | 46 | 47 | ## Setup Vue.js Vite project 48 | 49 | Add the certificates to the nx project for example in the **/certs** folder 50 | 51 | Update the vite.config.ts file: 52 | 53 | ```typescipt 54 | import { defineConfig } from 'vite' 55 | import vue from '@vitejs/plugin-vue' 56 | import fs from 'fs'; 57 | 58 | // https://vitejs.dev/config/ 59 | export default defineConfig({ 60 | plugins: [vue()], 61 | server: { 62 | https: { 63 | key: fs.readFileSync('./certs/dev_localhost.key'), 64 | cert: fs.readFileSync('./certs/dev_localhost.pem'), 65 | }, 66 | port: 4202, 67 | strictPort: true, // exit if port is in use 68 | hmr: { 69 | clientPort: 4202, // point vite websocket connection to vite directly, circumventing .net proxy 70 | }, 71 | }, 72 | optimizeDeps: { 73 | force: true, 74 | }, 75 | build: { 76 | outDir: "../server/wwwroot", 77 | emptyOutDir: true 78 | }, 79 | }) 80 | ``` 81 | 82 | 83 | > [!NOTE] 84 | > The ASP.NET Core project setup uses port 4202, this needs to match the YARP reverse proxy settings for development. 85 | 86 | 87 | ## Setup development 88 | 89 | The development environment is setup to use the defualt tools for each of the tech stacks. Vue.js is used like recommended. I use Visual Studio code. A YARP reverse proxy is used to integrate the Vue.js development into the backend application. 90 | 91 | ![BFF development](https://github.com/damienbod/bff-aspnetcore-vuejs/blob/main/images/vue-aspnetcore-bff-yarp-dev_01.png) 92 | 93 | > [!NOTE] 94 | > Always run in HTTPS, both in development and production 95 | 96 | ``` 97 | npm start 98 | ``` 99 | 100 | ## Azure App Registration setup 101 | 102 | The application(s) are deployed as one. This is an OpenID Connect confidential client with a user secret or a certification for client assertion. 103 | 104 | Use the Web client type on setup. 105 | 106 | ![BFF Azure registration](https://github.com/damienbod/bff-aspnetcore-angular/blob/main/images/azure-app-registration_01.png) 107 | 108 | The OpenID Connect client is setup using **Microsoft.Identity.Web**. This implements the Microsoft Entra ID client. I have created downstream APIs using the OBO flow and a Microsoft Graph client. This could be replaced with any OpenID Connect client and requires no changes in the frontend part of the solution. 109 | 110 | ```csharp 111 | var scopes = configuration.GetValue("DownstreamApi:Scopes"); 112 | string[] initialScopes = scopes!.Split(' '); 113 | 114 | services.AddMicrosoftIdentityWebAppAuthentication(configuration, "MicrosoftEntraID") 115 | .EnableTokenAcquisitionToCallDownstreamApi(initialScopes) 116 | .AddMicrosoftGraph("https://graph.microsoft.com/v1.0", initialScopes) 117 | .AddInMemoryTokenCaches(); 118 | 119 | services.AddControllersWithViews(options => 120 | options.Filters.Add(new AutoValidateAntiforgeryTokenAttribute())); 121 | 122 | services.AddRazorPages().AddMvcOptions(options => 123 | { 124 | //var policy = new AuthorizationPolicyBuilder() 125 | // .RequireAuthenticatedUser() 126 | // .Build(); 127 | //options.Filters.Add(new AuthorizeFilter(policy)); 128 | }).AddMicrosoftIdentityUI(); 129 | ``` 130 | 131 | Add the Azure App registration settings to the **appsettings.Development.json** and the **ClientSecret** to the user secrets. 132 | 133 | ```json 134 | "MicrosoftEntraID": { 135 | "Instance": "https://login.microsoftonline.com/", 136 | "Domain": "[Enter the domain of your tenant, e.g. contoso.onmicrosoft.com]", 137 | "TenantId": "[Enter 'common', or 'organizations' or the Tenant Id (Obtained from the Azure portal. Select 'Endpoints' from the 'App registrations' blade and use the GUID in any of the URLs), e.g. da41245a5-11b3-996c-00a8-4d99re19f292]", 138 | "ClientId": "[Enter the Client Id (Application ID obtained from the Azure portal), e.g. ba74781c2-53c2-442a-97c2-3d60re42f403]", 139 | "ClientSecret": "[Copy the client secret added to the app from the Azure portal]", 140 | "ClientCertificates": [ 141 | ], 142 | // the following is required to handle Continuous Access Evaluation challenges 143 | "ClientCapabilities": [ "cp1" ], 144 | "CallbackPath": "/signin-oidc" 145 | }, 146 | ``` 147 | 148 | App Service (linux plan) configuration 149 | 150 | ``` 151 | MicrosoftEntraID__Instance --your-value-- 152 | MicrosoftEntraID__Domain --your-value-- 153 | MicrosoftEntraID__TenantId --your-value-- 154 | MicrosoftEntraID__ClientId --your-value-- 155 | MicrosoftEntraID__CallbackPath /signin-oidc 156 | MicrosoftEntraID__SignedOutCallbackPath /signout-callback-oidc 157 | ``` 158 | 159 | The client secret or client certificate needs to be setup, see Microsoft Entra ID documentation. 160 | 161 | ## Debugging 162 | 163 | Start the Vue.js project from the **ui** folder 164 | 165 | ``` 166 | npm start 167 | ``` 168 | 169 | Start the ASP.NET Core project from the **server** folder 170 | 171 | ``` 172 | dotnet run 173 | ``` 174 | 175 | Or just open Visual Studio and run the solution. 176 | 177 | ## github actions build 178 | 179 | Github actions is used for the DevOps. The build pipeline builds both the .NET project and the Vue.js project using npm. The two projects are built in the same step because the UI project is built into the wwwroot of the server project. 180 | 181 | ```yaml 182 | 183 | name: .NET and npm build 184 | 185 | on: 186 | push: 187 | branches: [ "main" ] 188 | pull_request: 189 | branches: [ "main" ] 190 | 191 | jobs: 192 | build: 193 | runs-on: ubuntu-latest 194 | 195 | steps: 196 | 197 | - uses: actions/checkout@v4 198 | - name: Setup .NET 199 | uses: actions/setup-dotnet@v4 200 | with: 201 | dotnet-version: 8.0.x 202 | 203 | - name: Restore dependencies 204 | run: dotnet restore 205 | 206 | - name: npm setup 207 | working-directory: ui 208 | run: npm install 209 | 210 | - name: ui-build 211 | working-directory: ui 212 | run: npm run build 213 | 214 | - name: Build 215 | run: dotnet build --no-restore 216 | - name: Test 217 | run: dotnet test --no-build --verbosity normal 218 | ``` 219 | 220 | ## github actions Azure deployment 221 | 222 | The deployment pipeline builds both projects and deployes this to Azure using an Azure App Service. See **azure-webapps-dotnet-core.yml** 223 | 224 | deployment test server: https://bff-vue-aspnetcore.azurewebsites.net/ 225 | 226 | ## Credits and used libraries 227 | 228 | - NetEscapades.AspNetCore.SecurityHeaders 229 | - Yarp.ReverseProxy 230 | - Microsoft.Identity.Web 231 | - ASP.NET Core 232 | - Vue.js 233 | - Vite 234 | 235 | ## Links 236 | 237 | https://vuejs.org/ 238 | 239 | https://vitejs.dev/ 240 | 241 | https://github.com/vuejs/create-vue 242 | 243 | https://learn.microsoft.com/en-us/aspnet/core/introduction-to-aspnet-core 244 | 245 | https://github.com/AzureAD/microsoft-identity-web 246 | 247 | https://www.koderhq.com/tutorial/vue/vite/ 248 | 249 | https://github.com/isolutionsag/aspnet-react-bff-proxy-example 250 | 251 | https://github.com/damienbod/bff-aspnetcore-angular 252 | 253 | https://github.com/damienbod/bff-auth0-aspnetcore-angular 254 | 255 | https://github.com/damienbod/bff-openiddict-aspnetcore-angular 256 | 257 | https://github.com/damienbod/bff-azureadb2c-aspnetcore-angular 258 | 259 | https://github.com/damienbod/bff-MicrosoftEntraExternalID-aspnetcore-angular 260 | -------------------------------------------------------------------------------- /images/azure-app-registration_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damienbod/bff-aspnetcore-vuejs/7371304670e206c493950e933dde161633584ee4/images/azure-app-registration_01.png -------------------------------------------------------------------------------- /images/vue-aspnetcore-bff-02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damienbod/bff-aspnetcore-vuejs/7371304670e206c493950e933dde161633584ee4/images/vue-aspnetcore-bff-02.png -------------------------------------------------------------------------------- /images/vue-aspnetcore-bff-yarp-dev_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damienbod/bff-aspnetcore-vuejs/7371304670e206c493950e933dde161633584ee4/images/vue-aspnetcore-bff-yarp-dev_01.png -------------------------------------------------------------------------------- /images/vue-aspnetcore-bff_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damienbod/bff-aspnetcore-vuejs/7371304670e206c493950e933dde161633584ee4/images/vue-aspnetcore-bff_01.png -------------------------------------------------------------------------------- /server/BffMicrosoftEntraID.Server.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | net9.0 5 | enable 6 | enable 7 | 1718c0e4-1dc3-49e8-87a7-16301f1eecb3 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /server/Cae/AuthContextId.cs: -------------------------------------------------------------------------------- 1 | namespace BffMicrosoftEntraID.Server; 2 | 3 | /// 4 | /// Consts used for the defined AuthContext. The AuthContext can be created using MS Graph. 5 | /// the values can then be used in CAE policies. 6 | /// 7 | public static class AuthContextId 8 | { 9 | public const string C1 = "c1"; 10 | public const string C2 = "c2"; 11 | public const string C3 = "c3"; 12 | } 13 | -------------------------------------------------------------------------------- /server/Cae/CaeClaimsChallengeService.cs: -------------------------------------------------------------------------------- 1 | namespace BffMicrosoftEntraID.Server; 2 | 3 | /// 4 | /// Claims challenges, claims requests, and client capabilities 5 | /// 6 | /// https://docs.microsoft.com/en-us/azure/active-directory/develop/claims-challenge 7 | /// 8 | /// Applications that use enhanced security features like Continuous Access Evaluation (CAE) 9 | /// and Conditional Access authentication context must be prepared to handle claims challenges. 10 | /// 11 | /// This class is only required if using a standalone AuthContext check 12 | /// 13 | public class CaeClaimsChallengeService 14 | { 15 | public string? CheckForRequiredAuthContextIdToken(string authContextId, HttpContext context) 16 | { 17 | if (!string.IsNullOrEmpty(authContextId)) 18 | { 19 | string authenticationContextClassReferencesClaim = "acrs"; 20 | 21 | if (context == null || context.User == null || context.User.Claims == null || !context.User.Claims.Any()) 22 | { 23 | throw new ArgumentNullException(nameof(context), "No Usercontext is available to pick claims from"); 24 | } 25 | 26 | var acrsClaim = context.User.FindAll(authenticationContextClassReferencesClaim).FirstOrDefault(x => x.Value == authContextId); 27 | 28 | if (acrsClaim?.Value != authContextId) 29 | { 30 | var cae = "{\"id_token\":{\"acrs\":{\"essential\":true,\"value\":\"" + authContextId + "\"}}}"; 31 | return cae; 32 | } 33 | } 34 | 35 | return null; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /server/Cae/WebApiMsalUiRequiredException.cs: -------------------------------------------------------------------------------- 1 | using System.Net; 2 | using System.Net.Http.Headers; 3 | 4 | namespace BffMicrosoftEntraID.Server; 5 | 6 | /// 7 | /// This exception class is used to pass HTTP CAE unauthorized responses from a Httpclient and 8 | /// return the WWW-Authenticate header with the required claims challenge. 9 | /// This is only required if using a downstream API 10 | /// 11 | public class WebApiMsalUiRequiredException : Exception 12 | { 13 | private readonly HttpResponseMessage httpResponseMessage; 14 | 15 | public WebApiMsalUiRequiredException(string message, HttpResponseMessage response) : base(message) 16 | { 17 | httpResponseMessage = response; 18 | } 19 | 20 | public HttpStatusCode StatusCode 21 | { 22 | get { return httpResponseMessage.StatusCode; } 23 | } 24 | 25 | public HttpResponseHeaders Headers 26 | { 27 | get { return httpResponseMessage.Headers; } 28 | } 29 | 30 | public HttpResponseMessage HttpResponseMessage 31 | { 32 | get { return httpResponseMessage; } 33 | } 34 | } -------------------------------------------------------------------------------- /server/Controllers/AccountController.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Authentication; 2 | using Microsoft.AspNetCore.Authentication.Cookies; 3 | using Microsoft.AspNetCore.Authentication.OpenIdConnect; 4 | using Microsoft.AspNetCore.Authorization; 5 | using Microsoft.AspNetCore.Mvc; 6 | 7 | namespace BffMicrosoftEntraID.Server.Controllers; 8 | 9 | // orig src https://github.com/berhir/BlazorWebAssemblyCookieAuth 10 | [Route("api/[controller]")] 11 | public class AccountController : ControllerBase 12 | { 13 | [HttpGet("Login")] 14 | public ActionResult Login(string? returnUrl, string? claimsChallenge) 15 | { 16 | // var claims = "{\"access_token\":{\"acrs\":{\"essential\":true,\"value\":\"c1\"}}}"; 17 | // var claims = "{\"id_token\":{\"acrs\":{\"essential\":true,\"value\":\"c1\"}}}"; 18 | var redirectUri = !string.IsNullOrEmpty(returnUrl) ? returnUrl : "/"; 19 | 20 | var properties = new AuthenticationProperties { RedirectUri = redirectUri }; 21 | 22 | if (claimsChallenge != null) 23 | { 24 | string jsonString = claimsChallenge.Replace("\\", "") 25 | .Trim(new char[1] { '"' }); 26 | 27 | properties.Items["claims"] = jsonString; 28 | } 29 | 30 | return Challenge(properties); 31 | } 32 | 33 | // [ValidateAntiForgeryToken] // not needed explicitly due the the Auto global definition. 34 | [IgnoreAntiforgeryToken] // need to apply this to the form post request 35 | [Authorize] 36 | [HttpPost("Logout")] 37 | public IActionResult Logout() 38 | { 39 | return SignOut( 40 | new AuthenticationProperties { RedirectUri = "/" }, 41 | CookieAuthenticationDefaults.AuthenticationScheme, 42 | OpenIdConnectDefaults.AuthenticationScheme); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /server/Controllers/DirectApiController.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Authentication.Cookies; 2 | using Microsoft.AspNetCore.Authorization; 3 | using Microsoft.AspNetCore.Mvc; 4 | 5 | namespace BffMicrosoftEntraID.Server.Controllers; 6 | 7 | [ValidateAntiForgeryToken] 8 | [Authorize(AuthenticationSchemes = CookieAuthenticationDefaults.AuthenticationScheme)] 9 | [ApiController] 10 | [Route("api/[controller]")] 11 | public class DirectApiController : ControllerBase 12 | { 13 | [HttpGet] 14 | public IEnumerable Get() 15 | { 16 | return new List { "some data", "more data", "loads of data" }; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /server/Controllers/GraphApiDataController.cs: -------------------------------------------------------------------------------- 1 | using BffMicrosoftEntraID.Server.Services; 2 | using Microsoft.AspNetCore.Authentication.Cookies; 3 | using Microsoft.AspNetCore.Authorization; 4 | using Microsoft.AspNetCore.Mvc; 5 | using Microsoft.Identity.Web; 6 | 7 | namespace BffMicrosoftEntraID.Server.Controllers; 8 | 9 | [ValidateAntiForgeryToken] 10 | [Authorize(AuthenticationSchemes = CookieAuthenticationDefaults.AuthenticationScheme)] 11 | [AuthorizeForScopes(Scopes = new string[] { "User.ReadBasic.All user.read" })] 12 | [ApiController] 13 | [Route("api/[controller]")] 14 | public class GraphApiDataController : ControllerBase 15 | { 16 | private readonly MsGraphService _graphApiClientService; 17 | 18 | public GraphApiDataController(MsGraphService graphApiClientService) 19 | { 20 | _graphApiClientService = graphApiClientService; 21 | } 22 | 23 | [HttpGet] 24 | public async Task> Get() 25 | { 26 | var userData = await _graphApiClientService.GetGraphApiUser(); 27 | if (userData == null) 28 | return new List { "no user data" }; 29 | 30 | return new List { $"DisplayName: {userData.DisplayName}", 31 | $"GivenName: {userData.GivenName}", $"AboutMe: {userData.AboutMe}" }; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /server/Controllers/UserController.cs: -------------------------------------------------------------------------------- 1 | using BffMicrosoftEntraID.Server.Models; 2 | using Microsoft.AspNetCore.Authorization; 3 | using Microsoft.AspNetCore.Mvc; 4 | 5 | using System.Security.Claims; 6 | 7 | namespace BlazorBffOpenIDConnect.Server.Controllers; 8 | 9 | [Route("api/[controller]")] 10 | [ApiController] 11 | public class UserController : ControllerBase 12 | { 13 | [HttpGet] 14 | [AllowAnonymous] 15 | public IActionResult GetCurrentUser() => Ok(CreateUserInfo(User)); 16 | 17 | private static UserInfo CreateUserInfo(ClaimsPrincipal claimsPrincipal) 18 | { 19 | if (!claimsPrincipal?.Identity?.IsAuthenticated ?? true) 20 | { 21 | return UserInfo.Anonymous; 22 | } 23 | 24 | var userInfo = new UserInfo 25 | { 26 | IsAuthenticated = true 27 | }; 28 | 29 | if (claimsPrincipal?.Identity is ClaimsIdentity claimsIdentity) 30 | { 31 | userInfo.NameClaimType = claimsIdentity.NameClaimType; 32 | userInfo.RoleClaimType = claimsIdentity.RoleClaimType; 33 | } 34 | else 35 | { 36 | userInfo.NameClaimType = ClaimTypes.Name; 37 | userInfo.RoleClaimType = ClaimTypes.Role; 38 | } 39 | 40 | if (claimsPrincipal?.Claims?.Any() ?? false) 41 | { 42 | // Add just the name claim 43 | var claims = claimsPrincipal.FindAll(userInfo.NameClaimType) 44 | .Select(u => new ClaimValue(userInfo.NameClaimType, u.Value)) 45 | .ToList(); 46 | 47 | // Uncomment this code if you want to send additional claims to the client. 48 | //var claims = claimsPrincipal.Claims.Select(u => new ClaimValue(u.Type, u.Value)) 49 | // .ToList(); 50 | 51 | userInfo.Claims = claims; 52 | } 53 | 54 | return userInfo; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /server/Models/ClaimValue.cs: -------------------------------------------------------------------------------- 1 | namespace BffMicrosoftEntraID.Server.Models; 2 | 3 | public class ClaimValue 4 | { 5 | public ClaimValue() 6 | { 7 | } 8 | 9 | public ClaimValue(string type, string value) 10 | { 11 | Type = type; 12 | Value = value; 13 | } 14 | 15 | public string Type { get; set; } = string.Empty; 16 | 17 | public string Value { get; set; } = string.Empty; 18 | } -------------------------------------------------------------------------------- /server/Models/UserInfo.cs: -------------------------------------------------------------------------------- 1 | namespace BffMicrosoftEntraID.Server.Models; 2 | 3 | public class UserInfo 4 | { 5 | public static readonly UserInfo Anonymous = new(); 6 | 7 | public bool IsAuthenticated { get; set; } 8 | 9 | public string NameClaimType { get; set; } = string.Empty; 10 | 11 | public string RoleClaimType { get; set; } = string.Empty; 12 | 13 | public ICollection Claims { get; set; } = new List(); 14 | } 15 | -------------------------------------------------------------------------------- /server/Pages/Error.cshtml: -------------------------------------------------------------------------------- 1 | @page 2 | @model BffMicrosoftEntraID.Server.Pages.ErrorModel 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Error 11 | 12 | 13 | 14 |
15 |
16 |

Error.

17 |

An error occurred while processing your request.

18 | 19 | @if (Model.ShowRequestId) 20 | { 21 |

22 | Request ID: @Model.RequestId 23 |

24 | } 25 | 26 |

Development Mode

27 |

28 | Swapping to the Development environment displays detailed information about the error that occurred. 29 |

30 |

31 | The Development environment shouldn't be enabled for deployed applications. 32 | It can result in displaying sensitive information from exceptions to end users. 33 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 34 | and restarting the app. 35 |

36 |
37 |
38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /server/Pages/Error.cshtml.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Mvc; 2 | using Microsoft.AspNetCore.Mvc.RazorPages; 3 | using System.Diagnostics; 4 | 5 | namespace BffMicrosoftEntraID.Server.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 | public void OnGet() 16 | { 17 | RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /server/Pages/_Host.cshtml: -------------------------------------------------------------------------------- 1 | @page "/" 2 | @namespace BlazorBffAzureAD.Pages 3 | @using System.Net; 4 | @using NetEscapades.AspNetCore.SecurityHeaders; 5 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 6 | @addTagHelper *, NetEscapades.AspNetCore.SecurityHeaders.TagHelpers 7 | @inject IHostEnvironment hostEnvironment 8 | @inject IConfiguration config 9 | @inject Microsoft.AspNetCore.Antiforgery.IAntiforgery antiForgery 10 | @{ 11 | Layout = null; 12 | 13 | var source = ""; 14 | if (hostEnvironment.IsDevelopment()) 15 | { 16 | var httpClient = new HttpClient(); 17 | source = await httpClient.GetStringAsync($"{config["UiDevServerUrl"]}/index.html"); 18 | } 19 | else 20 | { 21 | source = System.IO.File.ReadAllText($"{System.IO.Directory.GetCurrentDirectory()}{@"/wwwroot/index.html"}"); 22 | } 23 | 24 | var nonce = HttpContext.GetNonce(); 25 | 26 | // The nonce is passed to the client through the HTML to avoid sync issues between tabs 27 | source = source.Replace("**PLACEHOLDER_NONCE_SERVER**", nonce); 28 | 29 | var nonceScript = $" 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /server/wwwroot/vite.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ui/.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"] 3 | } 4 | -------------------------------------------------------------------------------- /ui/README.md: -------------------------------------------------------------------------------- 1 | # Vue 3 + TypeScript + Vite 2 | 3 | This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 ` 13 | 14 | 15 | -------------------------------------------------------------------------------- /ui/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ui", 3 | "version": "0.0.0", 4 | "lockfileVersion": 2, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "ui", 9 | "version": "0.0.0", 10 | "dependencies": { 11 | "axios": "^1.5.0", 12 | "vue": "^3.3.4" 13 | }, 14 | "devDependencies": { 15 | "@vitejs/plugin-basic-ssl": "^1.0.1", 16 | "@vitejs/plugin-vue": "^4.2.3", 17 | "typescript": "^5.2.2", 18 | "vite": "^4.4.5", 19 | "vue-tsc": "^1.8.5" 20 | } 21 | }, 22 | "node_modules/@babel/parser": { 23 | "version": "7.22.16", 24 | "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.16.tgz", 25 | "integrity": "sha512-+gPfKv8UWeKKeJTUxe59+OobVcrYHETCsORl61EmSkmgymguYk/X5bp7GuUIXaFsc6y++v8ZxPsLSSuujqDphA==", 26 | "bin": { 27 | "parser": "bin/babel-parser.js" 28 | }, 29 | "engines": { 30 | "node": ">=6.0.0" 31 | } 32 | }, 33 | "node_modules/@esbuild/android-arm": { 34 | "version": "0.18.20", 35 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz", 36 | "integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==", 37 | "cpu": [ 38 | "arm" 39 | ], 40 | "dev": true, 41 | "optional": true, 42 | "os": [ 43 | "android" 44 | ], 45 | "engines": { 46 | "node": ">=12" 47 | } 48 | }, 49 | "node_modules/@esbuild/android-arm64": { 50 | "version": "0.18.20", 51 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz", 52 | "integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==", 53 | "cpu": [ 54 | "arm64" 55 | ], 56 | "dev": true, 57 | "optional": true, 58 | "os": [ 59 | "android" 60 | ], 61 | "engines": { 62 | "node": ">=12" 63 | } 64 | }, 65 | "node_modules/@esbuild/android-x64": { 66 | "version": "0.18.20", 67 | "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.20.tgz", 68 | "integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==", 69 | "cpu": [ 70 | "x64" 71 | ], 72 | "dev": true, 73 | "optional": true, 74 | "os": [ 75 | "android" 76 | ], 77 | "engines": { 78 | "node": ">=12" 79 | } 80 | }, 81 | "node_modules/@esbuild/darwin-arm64": { 82 | "version": "0.18.20", 83 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz", 84 | "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==", 85 | "cpu": [ 86 | "arm64" 87 | ], 88 | "dev": true, 89 | "optional": true, 90 | "os": [ 91 | "darwin" 92 | ], 93 | "engines": { 94 | "node": ">=12" 95 | } 96 | }, 97 | "node_modules/@esbuild/darwin-x64": { 98 | "version": "0.18.20", 99 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz", 100 | "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==", 101 | "cpu": [ 102 | "x64" 103 | ], 104 | "dev": true, 105 | "optional": true, 106 | "os": [ 107 | "darwin" 108 | ], 109 | "engines": { 110 | "node": ">=12" 111 | } 112 | }, 113 | "node_modules/@esbuild/freebsd-arm64": { 114 | "version": "0.18.20", 115 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz", 116 | "integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==", 117 | "cpu": [ 118 | "arm64" 119 | ], 120 | "dev": true, 121 | "optional": true, 122 | "os": [ 123 | "freebsd" 124 | ], 125 | "engines": { 126 | "node": ">=12" 127 | } 128 | }, 129 | "node_modules/@esbuild/freebsd-x64": { 130 | "version": "0.18.20", 131 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz", 132 | "integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==", 133 | "cpu": [ 134 | "x64" 135 | ], 136 | "dev": true, 137 | "optional": true, 138 | "os": [ 139 | "freebsd" 140 | ], 141 | "engines": { 142 | "node": ">=12" 143 | } 144 | }, 145 | "node_modules/@esbuild/linux-arm": { 146 | "version": "0.18.20", 147 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz", 148 | "integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==", 149 | "cpu": [ 150 | "arm" 151 | ], 152 | "dev": true, 153 | "optional": true, 154 | "os": [ 155 | "linux" 156 | ], 157 | "engines": { 158 | "node": ">=12" 159 | } 160 | }, 161 | "node_modules/@esbuild/linux-arm64": { 162 | "version": "0.18.20", 163 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz", 164 | "integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==", 165 | "cpu": [ 166 | "arm64" 167 | ], 168 | "dev": true, 169 | "optional": true, 170 | "os": [ 171 | "linux" 172 | ], 173 | "engines": { 174 | "node": ">=12" 175 | } 176 | }, 177 | "node_modules/@esbuild/linux-ia32": { 178 | "version": "0.18.20", 179 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz", 180 | "integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==", 181 | "cpu": [ 182 | "ia32" 183 | ], 184 | "dev": true, 185 | "optional": true, 186 | "os": [ 187 | "linux" 188 | ], 189 | "engines": { 190 | "node": ">=12" 191 | } 192 | }, 193 | "node_modules/@esbuild/linux-loong64": { 194 | "version": "0.18.20", 195 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz", 196 | "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==", 197 | "cpu": [ 198 | "loong64" 199 | ], 200 | "dev": true, 201 | "optional": true, 202 | "os": [ 203 | "linux" 204 | ], 205 | "engines": { 206 | "node": ">=12" 207 | } 208 | }, 209 | "node_modules/@esbuild/linux-mips64el": { 210 | "version": "0.18.20", 211 | "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz", 212 | "integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==", 213 | "cpu": [ 214 | "mips64el" 215 | ], 216 | "dev": true, 217 | "optional": true, 218 | "os": [ 219 | "linux" 220 | ], 221 | "engines": { 222 | "node": ">=12" 223 | } 224 | }, 225 | "node_modules/@esbuild/linux-ppc64": { 226 | "version": "0.18.20", 227 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz", 228 | "integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==", 229 | "cpu": [ 230 | "ppc64" 231 | ], 232 | "dev": true, 233 | "optional": true, 234 | "os": [ 235 | "linux" 236 | ], 237 | "engines": { 238 | "node": ">=12" 239 | } 240 | }, 241 | "node_modules/@esbuild/linux-riscv64": { 242 | "version": "0.18.20", 243 | "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz", 244 | "integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==", 245 | "cpu": [ 246 | "riscv64" 247 | ], 248 | "dev": true, 249 | "optional": true, 250 | "os": [ 251 | "linux" 252 | ], 253 | "engines": { 254 | "node": ">=12" 255 | } 256 | }, 257 | "node_modules/@esbuild/linux-s390x": { 258 | "version": "0.18.20", 259 | "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz", 260 | "integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==", 261 | "cpu": [ 262 | "s390x" 263 | ], 264 | "dev": true, 265 | "optional": true, 266 | "os": [ 267 | "linux" 268 | ], 269 | "engines": { 270 | "node": ">=12" 271 | } 272 | }, 273 | "node_modules/@esbuild/linux-x64": { 274 | "version": "0.18.20", 275 | "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz", 276 | "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==", 277 | "cpu": [ 278 | "x64" 279 | ], 280 | "dev": true, 281 | "optional": true, 282 | "os": [ 283 | "linux" 284 | ], 285 | "engines": { 286 | "node": ">=12" 287 | } 288 | }, 289 | "node_modules/@esbuild/netbsd-x64": { 290 | "version": "0.18.20", 291 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz", 292 | "integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==", 293 | "cpu": [ 294 | "x64" 295 | ], 296 | "dev": true, 297 | "optional": true, 298 | "os": [ 299 | "netbsd" 300 | ], 301 | "engines": { 302 | "node": ">=12" 303 | } 304 | }, 305 | "node_modules/@esbuild/openbsd-x64": { 306 | "version": "0.18.20", 307 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz", 308 | "integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==", 309 | "cpu": [ 310 | "x64" 311 | ], 312 | "dev": true, 313 | "optional": true, 314 | "os": [ 315 | "openbsd" 316 | ], 317 | "engines": { 318 | "node": ">=12" 319 | } 320 | }, 321 | "node_modules/@esbuild/sunos-x64": { 322 | "version": "0.18.20", 323 | "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz", 324 | "integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==", 325 | "cpu": [ 326 | "x64" 327 | ], 328 | "dev": true, 329 | "optional": true, 330 | "os": [ 331 | "sunos" 332 | ], 333 | "engines": { 334 | "node": ">=12" 335 | } 336 | }, 337 | "node_modules/@esbuild/win32-arm64": { 338 | "version": "0.18.20", 339 | "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz", 340 | "integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==", 341 | "cpu": [ 342 | "arm64" 343 | ], 344 | "dev": true, 345 | "optional": true, 346 | "os": [ 347 | "win32" 348 | ], 349 | "engines": { 350 | "node": ">=12" 351 | } 352 | }, 353 | "node_modules/@esbuild/win32-ia32": { 354 | "version": "0.18.20", 355 | "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz", 356 | "integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==", 357 | "cpu": [ 358 | "ia32" 359 | ], 360 | "dev": true, 361 | "optional": true, 362 | "os": [ 363 | "win32" 364 | ], 365 | "engines": { 366 | "node": ">=12" 367 | } 368 | }, 369 | "node_modules/@esbuild/win32-x64": { 370 | "version": "0.18.20", 371 | "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz", 372 | "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==", 373 | "cpu": [ 374 | "x64" 375 | ], 376 | "dev": true, 377 | "optional": true, 378 | "os": [ 379 | "win32" 380 | ], 381 | "engines": { 382 | "node": ">=12" 383 | } 384 | }, 385 | "node_modules/@jridgewell/sourcemap-codec": { 386 | "version": "1.4.15", 387 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", 388 | "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" 389 | }, 390 | "node_modules/@vitejs/plugin-basic-ssl": { 391 | "version": "1.0.1", 392 | "resolved": "https://registry.npmjs.org/@vitejs/plugin-basic-ssl/-/plugin-basic-ssl-1.0.1.tgz", 393 | "integrity": "sha512-pcub+YbFtFhaGRTo1832FQHQSHvMrlb43974e2eS8EKleR3p1cDdkJFPci1UhwkEf1J9Bz+wKBSzqpKp7nNj2A==", 394 | "dev": true, 395 | "engines": { 396 | "node": ">=14.6.0" 397 | }, 398 | "peerDependencies": { 399 | "vite": "^3.0.0 || ^4.0.0" 400 | } 401 | }, 402 | "node_modules/@vitejs/plugin-vue": { 403 | "version": "4.3.4", 404 | "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-4.3.4.tgz", 405 | "integrity": "sha512-ciXNIHKPriERBisHFBvnTbfKa6r9SAesOYXeGDzgegcvy9Q4xdScSHAmKbNT0M3O0S9LKhIf5/G+UYG4NnnzYw==", 406 | "dev": true, 407 | "engines": { 408 | "node": "^14.18.0 || >=16.0.0" 409 | }, 410 | "peerDependencies": { 411 | "vite": "^4.0.0", 412 | "vue": "^3.2.25" 413 | } 414 | }, 415 | "node_modules/@volar/language-core": { 416 | "version": "1.10.1", 417 | "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-1.10.1.tgz", 418 | "integrity": "sha512-JnsM1mIPdfGPxmoOcK1c7HYAsL6YOv0TCJ4aW3AXPZN/Jb4R77epDyMZIVudSGjWMbvv/JfUa+rQ+dGKTmgwBA==", 419 | "dev": true, 420 | "dependencies": { 421 | "@volar/source-map": "1.10.1" 422 | } 423 | }, 424 | "node_modules/@volar/source-map": { 425 | "version": "1.10.1", 426 | "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-1.10.1.tgz", 427 | "integrity": "sha512-3/S6KQbqa7pGC8CxPrg69qHLpOvkiPHGJtWPkI/1AXCsktkJ6gIk/5z4hyuMp8Anvs6eS/Kvp/GZa3ut3votKA==", 428 | "dev": true, 429 | "dependencies": { 430 | "muggle-string": "^0.3.1" 431 | } 432 | }, 433 | "node_modules/@volar/typescript": { 434 | "version": "1.10.1", 435 | "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-1.10.1.tgz", 436 | "integrity": "sha512-+iiO9yUSRHIYjlteT+QcdRq8b44qH19/eiUZtjNtuh6D9ailYM7DVR0zO2sEgJlvCaunw/CF9Ov2KooQBpR4VQ==", 437 | "dev": true, 438 | "dependencies": { 439 | "@volar/language-core": "1.10.1" 440 | } 441 | }, 442 | "node_modules/@vue/compiler-core": { 443 | "version": "3.3.4", 444 | "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.3.4.tgz", 445 | "integrity": "sha512-cquyDNvZ6jTbf/+x+AgM2Arrp6G4Dzbb0R64jiG804HRMfRiFXWI6kqUVqZ6ZR0bQhIoQjB4+2bhNtVwndW15g==", 446 | "dependencies": { 447 | "@babel/parser": "^7.21.3", 448 | "@vue/shared": "3.3.4", 449 | "estree-walker": "^2.0.2", 450 | "source-map-js": "^1.0.2" 451 | } 452 | }, 453 | "node_modules/@vue/compiler-dom": { 454 | "version": "3.3.4", 455 | "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.3.4.tgz", 456 | "integrity": "sha512-wyM+OjOVpuUukIq6p5+nwHYtj9cFroz9cwkfmP9O1nzH68BenTTv0u7/ndggT8cIQlnBeOo6sUT/gvHcIkLA5w==", 457 | "dependencies": { 458 | "@vue/compiler-core": "3.3.4", 459 | "@vue/shared": "3.3.4" 460 | } 461 | }, 462 | "node_modules/@vue/compiler-sfc": { 463 | "version": "3.3.4", 464 | "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.3.4.tgz", 465 | "integrity": "sha512-6y/d8uw+5TkCuzBkgLS0v3lSM3hJDntFEiUORM11pQ/hKvkhSKZrXW6i69UyXlJQisJxuUEJKAWEqWbWsLeNKQ==", 466 | "dependencies": { 467 | "@babel/parser": "^7.20.15", 468 | "@vue/compiler-core": "3.3.4", 469 | "@vue/compiler-dom": "3.3.4", 470 | "@vue/compiler-ssr": "3.3.4", 471 | "@vue/reactivity-transform": "3.3.4", 472 | "@vue/shared": "3.3.4", 473 | "estree-walker": "^2.0.2", 474 | "magic-string": "^0.30.0", 475 | "postcss": "^8.1.10", 476 | "source-map-js": "^1.0.2" 477 | } 478 | }, 479 | "node_modules/@vue/compiler-ssr": { 480 | "version": "3.3.4", 481 | "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.3.4.tgz", 482 | "integrity": "sha512-m0v6oKpup2nMSehwA6Uuu+j+wEwcy7QmwMkVNVfrV9P2qE5KshC6RwOCq8fjGS/Eak/uNb8AaWekfiXxbBB6gQ==", 483 | "dependencies": { 484 | "@vue/compiler-dom": "3.3.4", 485 | "@vue/shared": "3.3.4" 486 | } 487 | }, 488 | "node_modules/@vue/language-core": { 489 | "version": "1.8.13", 490 | "resolved": "https://registry.npmjs.org/@vue/language-core/-/language-core-1.8.13.tgz", 491 | "integrity": "sha512-nata2fYBZAkl4QJrU+IcArJCMTHt1VP8ePL/Z7eUPC2AF+Cm7Qgo9ksNCPBzZRh1LYjCaSaqV7njqNogwpsMVg==", 492 | "dev": true, 493 | "dependencies": { 494 | "@volar/language-core": "~1.10.0", 495 | "@volar/source-map": "~1.10.0", 496 | "@vue/compiler-dom": "^3.3.0", 497 | "@vue/reactivity": "^3.3.0", 498 | "@vue/shared": "^3.3.0", 499 | "minimatch": "^9.0.0", 500 | "muggle-string": "^0.3.1", 501 | "vue-template-compiler": "^2.7.14" 502 | }, 503 | "peerDependencies": { 504 | "typescript": "*" 505 | }, 506 | "peerDependenciesMeta": { 507 | "typescript": { 508 | "optional": true 509 | } 510 | } 511 | }, 512 | "node_modules/@vue/reactivity": { 513 | "version": "3.3.4", 514 | "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.3.4.tgz", 515 | "integrity": "sha512-kLTDLwd0B1jG08NBF3R5rqULtv/f8x3rOFByTDz4J53ttIQEDmALqKqXY0J+XQeN0aV2FBxY8nJDf88yvOPAqQ==", 516 | "dependencies": { 517 | "@vue/shared": "3.3.4" 518 | } 519 | }, 520 | "node_modules/@vue/reactivity-transform": { 521 | "version": "3.3.4", 522 | "resolved": "https://registry.npmjs.org/@vue/reactivity-transform/-/reactivity-transform-3.3.4.tgz", 523 | "integrity": "sha512-MXgwjako4nu5WFLAjpBnCj/ieqcjE2aJBINUNQzkZQfzIZA4xn+0fV1tIYBJvvva3N3OvKGofRLvQIwEQPpaXw==", 524 | "dependencies": { 525 | "@babel/parser": "^7.20.15", 526 | "@vue/compiler-core": "3.3.4", 527 | "@vue/shared": "3.3.4", 528 | "estree-walker": "^2.0.2", 529 | "magic-string": "^0.30.0" 530 | } 531 | }, 532 | "node_modules/@vue/runtime-core": { 533 | "version": "3.3.4", 534 | "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.3.4.tgz", 535 | "integrity": "sha512-R+bqxMN6pWO7zGI4OMlmvePOdP2c93GsHFM/siJI7O2nxFRzj55pLwkpCedEY+bTMgp5miZ8CxfIZo3S+gFqvA==", 536 | "dependencies": { 537 | "@vue/reactivity": "3.3.4", 538 | "@vue/shared": "3.3.4" 539 | } 540 | }, 541 | "node_modules/@vue/runtime-dom": { 542 | "version": "3.3.4", 543 | "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.3.4.tgz", 544 | "integrity": "sha512-Aj5bTJ3u5sFsUckRghsNjVTtxZQ1OyMWCr5dZRAPijF/0Vy4xEoRCwLyHXcj4D0UFbJ4lbx3gPTgg06K/GnPnQ==", 545 | "dependencies": { 546 | "@vue/runtime-core": "3.3.4", 547 | "@vue/shared": "3.3.4", 548 | "csstype": "^3.1.1" 549 | } 550 | }, 551 | "node_modules/@vue/server-renderer": { 552 | "version": "3.3.4", 553 | "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.3.4.tgz", 554 | "integrity": "sha512-Q6jDDzR23ViIb67v+vM1Dqntu+HUexQcsWKhhQa4ARVzxOY2HbC7QRW/ggkDBd5BU+uM1sV6XOAP0b216o34JQ==", 555 | "dependencies": { 556 | "@vue/compiler-ssr": "3.3.4", 557 | "@vue/shared": "3.3.4" 558 | }, 559 | "peerDependencies": { 560 | "vue": "3.3.4" 561 | } 562 | }, 563 | "node_modules/@vue/shared": { 564 | "version": "3.3.4", 565 | "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.3.4.tgz", 566 | "integrity": "sha512-7OjdcV8vQ74eiz1TZLzZP4JwqM5fA94K6yntPS5Z25r9HDuGNzaGdgvwKYq6S+MxwF0TFRwe50fIR/MYnakdkQ==" 567 | }, 568 | "node_modules/@vue/typescript": { 569 | "version": "1.8.13", 570 | "resolved": "https://registry.npmjs.org/@vue/typescript/-/typescript-1.8.13.tgz", 571 | "integrity": "sha512-ALJjHFqQ3dgZVCI/ogAS/dZ7JEhIi1N0Em5I7uwabY1p9RDRK3odLsycMHyxZRjm5dLI15c07eeBloHiD2Otlg==", 572 | "dev": true, 573 | "dependencies": { 574 | "@volar/typescript": "~1.10.0", 575 | "@vue/language-core": "1.8.13" 576 | } 577 | }, 578 | "node_modules/asynckit": { 579 | "version": "0.4.0", 580 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 581 | "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" 582 | }, 583 | "node_modules/axios": { 584 | "version": "1.5.0", 585 | "resolved": "https://registry.npmjs.org/axios/-/axios-1.5.0.tgz", 586 | "integrity": "sha512-D4DdjDo5CY50Qms0qGQTTw6Q44jl7zRwY7bthds06pUGfChBCTcQs+N743eFWGEd6pRTMd6A+I87aWyFV5wiZQ==", 587 | "dependencies": { 588 | "follow-redirects": "^1.15.0", 589 | "form-data": "^4.0.0", 590 | "proxy-from-env": "^1.1.0" 591 | } 592 | }, 593 | "node_modules/balanced-match": { 594 | "version": "1.0.2", 595 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 596 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 597 | "dev": true 598 | }, 599 | "node_modules/brace-expansion": { 600 | "version": "2.0.1", 601 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", 602 | "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", 603 | "dev": true, 604 | "dependencies": { 605 | "balanced-match": "^1.0.0" 606 | } 607 | }, 608 | "node_modules/combined-stream": { 609 | "version": "1.0.8", 610 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", 611 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", 612 | "dependencies": { 613 | "delayed-stream": "~1.0.0" 614 | }, 615 | "engines": { 616 | "node": ">= 0.8" 617 | } 618 | }, 619 | "node_modules/csstype": { 620 | "version": "3.1.2", 621 | "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", 622 | "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==" 623 | }, 624 | "node_modules/de-indent": { 625 | "version": "1.0.2", 626 | "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", 627 | "integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==", 628 | "dev": true 629 | }, 630 | "node_modules/delayed-stream": { 631 | "version": "1.0.0", 632 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 633 | "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", 634 | "engines": { 635 | "node": ">=0.4.0" 636 | } 637 | }, 638 | "node_modules/esbuild": { 639 | "version": "0.18.20", 640 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.20.tgz", 641 | "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==", 642 | "dev": true, 643 | "hasInstallScript": true, 644 | "bin": { 645 | "esbuild": "bin/esbuild" 646 | }, 647 | "engines": { 648 | "node": ">=12" 649 | }, 650 | "optionalDependencies": { 651 | "@esbuild/android-arm": "0.18.20", 652 | "@esbuild/android-arm64": "0.18.20", 653 | "@esbuild/android-x64": "0.18.20", 654 | "@esbuild/darwin-arm64": "0.18.20", 655 | "@esbuild/darwin-x64": "0.18.20", 656 | "@esbuild/freebsd-arm64": "0.18.20", 657 | "@esbuild/freebsd-x64": "0.18.20", 658 | "@esbuild/linux-arm": "0.18.20", 659 | "@esbuild/linux-arm64": "0.18.20", 660 | "@esbuild/linux-ia32": "0.18.20", 661 | "@esbuild/linux-loong64": "0.18.20", 662 | "@esbuild/linux-mips64el": "0.18.20", 663 | "@esbuild/linux-ppc64": "0.18.20", 664 | "@esbuild/linux-riscv64": "0.18.20", 665 | "@esbuild/linux-s390x": "0.18.20", 666 | "@esbuild/linux-x64": "0.18.20", 667 | "@esbuild/netbsd-x64": "0.18.20", 668 | "@esbuild/openbsd-x64": "0.18.20", 669 | "@esbuild/sunos-x64": "0.18.20", 670 | "@esbuild/win32-arm64": "0.18.20", 671 | "@esbuild/win32-ia32": "0.18.20", 672 | "@esbuild/win32-x64": "0.18.20" 673 | } 674 | }, 675 | "node_modules/estree-walker": { 676 | "version": "2.0.2", 677 | "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", 678 | "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" 679 | }, 680 | "node_modules/follow-redirects": { 681 | "version": "1.15.3", 682 | "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz", 683 | "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==", 684 | "funding": [ 685 | { 686 | "type": "individual", 687 | "url": "https://github.com/sponsors/RubenVerborgh" 688 | } 689 | ], 690 | "engines": { 691 | "node": ">=4.0" 692 | }, 693 | "peerDependenciesMeta": { 694 | "debug": { 695 | "optional": true 696 | } 697 | } 698 | }, 699 | "node_modules/form-data": { 700 | "version": "4.0.0", 701 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", 702 | "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", 703 | "dependencies": { 704 | "asynckit": "^0.4.0", 705 | "combined-stream": "^1.0.8", 706 | "mime-types": "^2.1.12" 707 | }, 708 | "engines": { 709 | "node": ">= 6" 710 | } 711 | }, 712 | "node_modules/fsevents": { 713 | "version": "2.3.3", 714 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 715 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 716 | "dev": true, 717 | "hasInstallScript": true, 718 | "optional": true, 719 | "os": [ 720 | "darwin" 721 | ], 722 | "engines": { 723 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 724 | } 725 | }, 726 | "node_modules/he": { 727 | "version": "1.2.0", 728 | "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", 729 | "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", 730 | "dev": true, 731 | "bin": { 732 | "he": "bin/he" 733 | } 734 | }, 735 | "node_modules/lru-cache": { 736 | "version": "6.0.0", 737 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 738 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 739 | "dev": true, 740 | "dependencies": { 741 | "yallist": "^4.0.0" 742 | }, 743 | "engines": { 744 | "node": ">=10" 745 | } 746 | }, 747 | "node_modules/magic-string": { 748 | "version": "0.30.3", 749 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.3.tgz", 750 | "integrity": "sha512-B7xGbll2fG/VjP+SWg4sX3JynwIU0mjoTc6MPpKNuIvftk6u6vqhDnk1R80b8C2GBR6ywqy+1DcKBrevBg+bmw==", 751 | "dependencies": { 752 | "@jridgewell/sourcemap-codec": "^1.4.15" 753 | }, 754 | "engines": { 755 | "node": ">=12" 756 | } 757 | }, 758 | "node_modules/mime-db": { 759 | "version": "1.52.0", 760 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", 761 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", 762 | "engines": { 763 | "node": ">= 0.6" 764 | } 765 | }, 766 | "node_modules/mime-types": { 767 | "version": "2.1.35", 768 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", 769 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", 770 | "dependencies": { 771 | "mime-db": "1.52.0" 772 | }, 773 | "engines": { 774 | "node": ">= 0.6" 775 | } 776 | }, 777 | "node_modules/minimatch": { 778 | "version": "9.0.3", 779 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", 780 | "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", 781 | "dev": true, 782 | "dependencies": { 783 | "brace-expansion": "^2.0.1" 784 | }, 785 | "engines": { 786 | "node": ">=16 || 14 >=14.17" 787 | }, 788 | "funding": { 789 | "url": "https://github.com/sponsors/isaacs" 790 | } 791 | }, 792 | "node_modules/muggle-string": { 793 | "version": "0.3.1", 794 | "resolved": "https://registry.npmjs.org/muggle-string/-/muggle-string-0.3.1.tgz", 795 | "integrity": "sha512-ckmWDJjphvd/FvZawgygcUeQCxzvohjFO5RxTjj4eq8kw359gFF3E1brjfI+viLMxss5JrHTDRHZvu2/tuy0Qg==", 796 | "dev": true 797 | }, 798 | "node_modules/nanoid": { 799 | "version": "3.3.6", 800 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", 801 | "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", 802 | "funding": [ 803 | { 804 | "type": "github", 805 | "url": "https://github.com/sponsors/ai" 806 | } 807 | ], 808 | "bin": { 809 | "nanoid": "bin/nanoid.cjs" 810 | }, 811 | "engines": { 812 | "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" 813 | } 814 | }, 815 | "node_modules/picocolors": { 816 | "version": "1.0.0", 817 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", 818 | "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" 819 | }, 820 | "node_modules/postcss": { 821 | "version": "8.4.30", 822 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.30.tgz", 823 | "integrity": "sha512-7ZEao1g4kd68l97aWG/etQKPKq07us0ieSZ2TnFDk11i0ZfDW2AwKHYU8qv4MZKqN2fdBfg+7q0ES06UA73C1g==", 824 | "funding": [ 825 | { 826 | "type": "opencollective", 827 | "url": "https://opencollective.com/postcss/" 828 | }, 829 | { 830 | "type": "tidelift", 831 | "url": "https://tidelift.com/funding/github/npm/postcss" 832 | }, 833 | { 834 | "type": "github", 835 | "url": "https://github.com/sponsors/ai" 836 | } 837 | ], 838 | "dependencies": { 839 | "nanoid": "^3.3.6", 840 | "picocolors": "^1.0.0", 841 | "source-map-js": "^1.0.2" 842 | }, 843 | "engines": { 844 | "node": "^10 || ^12 || >=14" 845 | } 846 | }, 847 | "node_modules/proxy-from-env": { 848 | "version": "1.1.0", 849 | "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", 850 | "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" 851 | }, 852 | "node_modules/rollup": { 853 | "version": "3.29.3", 854 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.29.3.tgz", 855 | "integrity": "sha512-T7du6Hum8jOkSWetjRgbwpM6Sy0nECYrYRSmZjayFcOddtKJWU4d17AC3HNUk7HRuqy4p+G7aEZclSHytqUmEg==", 856 | "dev": true, 857 | "bin": { 858 | "rollup": "dist/bin/rollup" 859 | }, 860 | "engines": { 861 | "node": ">=14.18.0", 862 | "npm": ">=8.0.0" 863 | }, 864 | "optionalDependencies": { 865 | "fsevents": "~2.3.2" 866 | } 867 | }, 868 | "node_modules/semver": { 869 | "version": "7.5.4", 870 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", 871 | "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", 872 | "dev": true, 873 | "dependencies": { 874 | "lru-cache": "^6.0.0" 875 | }, 876 | "bin": { 877 | "semver": "bin/semver.js" 878 | }, 879 | "engines": { 880 | "node": ">=10" 881 | } 882 | }, 883 | "node_modules/source-map-js": { 884 | "version": "1.0.2", 885 | "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", 886 | "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", 887 | "engines": { 888 | "node": ">=0.10.0" 889 | } 890 | }, 891 | "node_modules/typescript": { 892 | "version": "5.2.2", 893 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", 894 | "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", 895 | "dev": true, 896 | "bin": { 897 | "tsc": "bin/tsc", 898 | "tsserver": "bin/tsserver" 899 | }, 900 | "engines": { 901 | "node": ">=14.17" 902 | } 903 | }, 904 | "node_modules/vite": { 905 | "version": "4.4.9", 906 | "resolved": "https://registry.npmjs.org/vite/-/vite-4.4.9.tgz", 907 | "integrity": "sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==", 908 | "dev": true, 909 | "dependencies": { 910 | "esbuild": "^0.18.10", 911 | "postcss": "^8.4.27", 912 | "rollup": "^3.27.1" 913 | }, 914 | "bin": { 915 | "vite": "bin/vite.js" 916 | }, 917 | "engines": { 918 | "node": "^14.18.0 || >=16.0.0" 919 | }, 920 | "funding": { 921 | "url": "https://github.com/vitejs/vite?sponsor=1" 922 | }, 923 | "optionalDependencies": { 924 | "fsevents": "~2.3.2" 925 | }, 926 | "peerDependencies": { 927 | "@types/node": ">= 14", 928 | "less": "*", 929 | "lightningcss": "^1.21.0", 930 | "sass": "*", 931 | "stylus": "*", 932 | "sugarss": "*", 933 | "terser": "^5.4.0" 934 | }, 935 | "peerDependenciesMeta": { 936 | "@types/node": { 937 | "optional": true 938 | }, 939 | "less": { 940 | "optional": true 941 | }, 942 | "lightningcss": { 943 | "optional": true 944 | }, 945 | "sass": { 946 | "optional": true 947 | }, 948 | "stylus": { 949 | "optional": true 950 | }, 951 | "sugarss": { 952 | "optional": true 953 | }, 954 | "terser": { 955 | "optional": true 956 | } 957 | } 958 | }, 959 | "node_modules/vue": { 960 | "version": "3.3.4", 961 | "resolved": "https://registry.npmjs.org/vue/-/vue-3.3.4.tgz", 962 | "integrity": "sha512-VTyEYn3yvIeY1Py0WaYGZsXnz3y5UnGi62GjVEqvEGPl6nxbOrCXbVOTQWBEJUqAyTUk2uJ5JLVnYJ6ZzGbrSw==", 963 | "dependencies": { 964 | "@vue/compiler-dom": "3.3.4", 965 | "@vue/compiler-sfc": "3.3.4", 966 | "@vue/runtime-dom": "3.3.4", 967 | "@vue/server-renderer": "3.3.4", 968 | "@vue/shared": "3.3.4" 969 | } 970 | }, 971 | "node_modules/vue-template-compiler": { 972 | "version": "2.7.14", 973 | "resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.7.14.tgz", 974 | "integrity": "sha512-zyA5Y3ArvVG0NacJDkkzJuPQDF8RFeRlzV2vLeSnhSpieO6LK2OVbdLPi5MPPs09Ii+gMO8nY4S3iKQxBxDmWQ==", 975 | "dev": true, 976 | "dependencies": { 977 | "de-indent": "^1.0.2", 978 | "he": "^1.2.0" 979 | } 980 | }, 981 | "node_modules/vue-tsc": { 982 | "version": "1.8.13", 983 | "resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-1.8.13.tgz", 984 | "integrity": "sha512-Hl8zUXPVK2KzPtbXeMCN0CSFkwvD96YOtYt9KvJPG9W8QGcNpGk9KHwPuGMxA8blWXSIli7gtsoC+clICEVdVg==", 985 | "dev": true, 986 | "dependencies": { 987 | "@vue/language-core": "1.8.13", 988 | "@vue/typescript": "1.8.13", 989 | "semver": "^7.3.8" 990 | }, 991 | "bin": { 992 | "vue-tsc": "bin/vue-tsc.js" 993 | }, 994 | "peerDependencies": { 995 | "typescript": "*" 996 | } 997 | }, 998 | "node_modules/yallist": { 999 | "version": "4.0.0", 1000 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 1001 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", 1002 | "dev": true 1003 | } 1004 | }, 1005 | "dependencies": { 1006 | "@babel/parser": { 1007 | "version": "7.22.16", 1008 | "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.16.tgz", 1009 | "integrity": "sha512-+gPfKv8UWeKKeJTUxe59+OobVcrYHETCsORl61EmSkmgymguYk/X5bp7GuUIXaFsc6y++v8ZxPsLSSuujqDphA==" 1010 | }, 1011 | "@esbuild/android-arm": { 1012 | "version": "0.18.20", 1013 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz", 1014 | "integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==", 1015 | "dev": true, 1016 | "optional": true 1017 | }, 1018 | "@esbuild/android-arm64": { 1019 | "version": "0.18.20", 1020 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz", 1021 | "integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==", 1022 | "dev": true, 1023 | "optional": true 1024 | }, 1025 | "@esbuild/android-x64": { 1026 | "version": "0.18.20", 1027 | "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.20.tgz", 1028 | "integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==", 1029 | "dev": true, 1030 | "optional": true 1031 | }, 1032 | "@esbuild/darwin-arm64": { 1033 | "version": "0.18.20", 1034 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz", 1035 | "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==", 1036 | "dev": true, 1037 | "optional": true 1038 | }, 1039 | "@esbuild/darwin-x64": { 1040 | "version": "0.18.20", 1041 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz", 1042 | "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==", 1043 | "dev": true, 1044 | "optional": true 1045 | }, 1046 | "@esbuild/freebsd-arm64": { 1047 | "version": "0.18.20", 1048 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz", 1049 | "integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==", 1050 | "dev": true, 1051 | "optional": true 1052 | }, 1053 | "@esbuild/freebsd-x64": { 1054 | "version": "0.18.20", 1055 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz", 1056 | "integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==", 1057 | "dev": true, 1058 | "optional": true 1059 | }, 1060 | "@esbuild/linux-arm": { 1061 | "version": "0.18.20", 1062 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz", 1063 | "integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==", 1064 | "dev": true, 1065 | "optional": true 1066 | }, 1067 | "@esbuild/linux-arm64": { 1068 | "version": "0.18.20", 1069 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz", 1070 | "integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==", 1071 | "dev": true, 1072 | "optional": true 1073 | }, 1074 | "@esbuild/linux-ia32": { 1075 | "version": "0.18.20", 1076 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz", 1077 | "integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==", 1078 | "dev": true, 1079 | "optional": true 1080 | }, 1081 | "@esbuild/linux-loong64": { 1082 | "version": "0.18.20", 1083 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz", 1084 | "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==", 1085 | "dev": true, 1086 | "optional": true 1087 | }, 1088 | "@esbuild/linux-mips64el": { 1089 | "version": "0.18.20", 1090 | "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz", 1091 | "integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==", 1092 | "dev": true, 1093 | "optional": true 1094 | }, 1095 | "@esbuild/linux-ppc64": { 1096 | "version": "0.18.20", 1097 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz", 1098 | "integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==", 1099 | "dev": true, 1100 | "optional": true 1101 | }, 1102 | "@esbuild/linux-riscv64": { 1103 | "version": "0.18.20", 1104 | "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz", 1105 | "integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==", 1106 | "dev": true, 1107 | "optional": true 1108 | }, 1109 | "@esbuild/linux-s390x": { 1110 | "version": "0.18.20", 1111 | "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz", 1112 | "integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==", 1113 | "dev": true, 1114 | "optional": true 1115 | }, 1116 | "@esbuild/linux-x64": { 1117 | "version": "0.18.20", 1118 | "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz", 1119 | "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==", 1120 | "dev": true, 1121 | "optional": true 1122 | }, 1123 | "@esbuild/netbsd-x64": { 1124 | "version": "0.18.20", 1125 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz", 1126 | "integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==", 1127 | "dev": true, 1128 | "optional": true 1129 | }, 1130 | "@esbuild/openbsd-x64": { 1131 | "version": "0.18.20", 1132 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz", 1133 | "integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==", 1134 | "dev": true, 1135 | "optional": true 1136 | }, 1137 | "@esbuild/sunos-x64": { 1138 | "version": "0.18.20", 1139 | "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz", 1140 | "integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==", 1141 | "dev": true, 1142 | "optional": true 1143 | }, 1144 | "@esbuild/win32-arm64": { 1145 | "version": "0.18.20", 1146 | "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz", 1147 | "integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==", 1148 | "dev": true, 1149 | "optional": true 1150 | }, 1151 | "@esbuild/win32-ia32": { 1152 | "version": "0.18.20", 1153 | "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz", 1154 | "integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==", 1155 | "dev": true, 1156 | "optional": true 1157 | }, 1158 | "@esbuild/win32-x64": { 1159 | "version": "0.18.20", 1160 | "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz", 1161 | "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==", 1162 | "dev": true, 1163 | "optional": true 1164 | }, 1165 | "@jridgewell/sourcemap-codec": { 1166 | "version": "1.4.15", 1167 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", 1168 | "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" 1169 | }, 1170 | "@vitejs/plugin-basic-ssl": { 1171 | "version": "1.0.1", 1172 | "resolved": "https://registry.npmjs.org/@vitejs/plugin-basic-ssl/-/plugin-basic-ssl-1.0.1.tgz", 1173 | "integrity": "sha512-pcub+YbFtFhaGRTo1832FQHQSHvMrlb43974e2eS8EKleR3p1cDdkJFPci1UhwkEf1J9Bz+wKBSzqpKp7nNj2A==", 1174 | "dev": true, 1175 | "requires": {} 1176 | }, 1177 | "@vitejs/plugin-vue": { 1178 | "version": "4.3.4", 1179 | "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-4.3.4.tgz", 1180 | "integrity": "sha512-ciXNIHKPriERBisHFBvnTbfKa6r9SAesOYXeGDzgegcvy9Q4xdScSHAmKbNT0M3O0S9LKhIf5/G+UYG4NnnzYw==", 1181 | "dev": true, 1182 | "requires": {} 1183 | }, 1184 | "@volar/language-core": { 1185 | "version": "1.10.1", 1186 | "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-1.10.1.tgz", 1187 | "integrity": "sha512-JnsM1mIPdfGPxmoOcK1c7HYAsL6YOv0TCJ4aW3AXPZN/Jb4R77epDyMZIVudSGjWMbvv/JfUa+rQ+dGKTmgwBA==", 1188 | "dev": true, 1189 | "requires": { 1190 | "@volar/source-map": "1.10.1" 1191 | } 1192 | }, 1193 | "@volar/source-map": { 1194 | "version": "1.10.1", 1195 | "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-1.10.1.tgz", 1196 | "integrity": "sha512-3/S6KQbqa7pGC8CxPrg69qHLpOvkiPHGJtWPkI/1AXCsktkJ6gIk/5z4hyuMp8Anvs6eS/Kvp/GZa3ut3votKA==", 1197 | "dev": true, 1198 | "requires": { 1199 | "muggle-string": "^0.3.1" 1200 | } 1201 | }, 1202 | "@volar/typescript": { 1203 | "version": "1.10.1", 1204 | "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-1.10.1.tgz", 1205 | "integrity": "sha512-+iiO9yUSRHIYjlteT+QcdRq8b44qH19/eiUZtjNtuh6D9ailYM7DVR0zO2sEgJlvCaunw/CF9Ov2KooQBpR4VQ==", 1206 | "dev": true, 1207 | "requires": { 1208 | "@volar/language-core": "1.10.1" 1209 | } 1210 | }, 1211 | "@vue/compiler-core": { 1212 | "version": "3.3.4", 1213 | "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.3.4.tgz", 1214 | "integrity": "sha512-cquyDNvZ6jTbf/+x+AgM2Arrp6G4Dzbb0R64jiG804HRMfRiFXWI6kqUVqZ6ZR0bQhIoQjB4+2bhNtVwndW15g==", 1215 | "requires": { 1216 | "@babel/parser": "^7.21.3", 1217 | "@vue/shared": "3.3.4", 1218 | "estree-walker": "^2.0.2", 1219 | "source-map-js": "^1.0.2" 1220 | } 1221 | }, 1222 | "@vue/compiler-dom": { 1223 | "version": "3.3.4", 1224 | "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.3.4.tgz", 1225 | "integrity": "sha512-wyM+OjOVpuUukIq6p5+nwHYtj9cFroz9cwkfmP9O1nzH68BenTTv0u7/ndggT8cIQlnBeOo6sUT/gvHcIkLA5w==", 1226 | "requires": { 1227 | "@vue/compiler-core": "3.3.4", 1228 | "@vue/shared": "3.3.4" 1229 | } 1230 | }, 1231 | "@vue/compiler-sfc": { 1232 | "version": "3.3.4", 1233 | "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.3.4.tgz", 1234 | "integrity": "sha512-6y/d8uw+5TkCuzBkgLS0v3lSM3hJDntFEiUORM11pQ/hKvkhSKZrXW6i69UyXlJQisJxuUEJKAWEqWbWsLeNKQ==", 1235 | "requires": { 1236 | "@babel/parser": "^7.20.15", 1237 | "@vue/compiler-core": "3.3.4", 1238 | "@vue/compiler-dom": "3.3.4", 1239 | "@vue/compiler-ssr": "3.3.4", 1240 | "@vue/reactivity-transform": "3.3.4", 1241 | "@vue/shared": "3.3.4", 1242 | "estree-walker": "^2.0.2", 1243 | "magic-string": "^0.30.0", 1244 | "postcss": "^8.1.10", 1245 | "source-map-js": "^1.0.2" 1246 | } 1247 | }, 1248 | "@vue/compiler-ssr": { 1249 | "version": "3.3.4", 1250 | "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.3.4.tgz", 1251 | "integrity": "sha512-m0v6oKpup2nMSehwA6Uuu+j+wEwcy7QmwMkVNVfrV9P2qE5KshC6RwOCq8fjGS/Eak/uNb8AaWekfiXxbBB6gQ==", 1252 | "requires": { 1253 | "@vue/compiler-dom": "3.3.4", 1254 | "@vue/shared": "3.3.4" 1255 | } 1256 | }, 1257 | "@vue/language-core": { 1258 | "version": "1.8.13", 1259 | "resolved": "https://registry.npmjs.org/@vue/language-core/-/language-core-1.8.13.tgz", 1260 | "integrity": "sha512-nata2fYBZAkl4QJrU+IcArJCMTHt1VP8ePL/Z7eUPC2AF+Cm7Qgo9ksNCPBzZRh1LYjCaSaqV7njqNogwpsMVg==", 1261 | "dev": true, 1262 | "requires": { 1263 | "@volar/language-core": "~1.10.0", 1264 | "@volar/source-map": "~1.10.0", 1265 | "@vue/compiler-dom": "^3.3.0", 1266 | "@vue/reactivity": "^3.3.0", 1267 | "@vue/shared": "^3.3.0", 1268 | "minimatch": "^9.0.0", 1269 | "muggle-string": "^0.3.1", 1270 | "vue-template-compiler": "^2.7.14" 1271 | } 1272 | }, 1273 | "@vue/reactivity": { 1274 | "version": "3.3.4", 1275 | "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.3.4.tgz", 1276 | "integrity": "sha512-kLTDLwd0B1jG08NBF3R5rqULtv/f8x3rOFByTDz4J53ttIQEDmALqKqXY0J+XQeN0aV2FBxY8nJDf88yvOPAqQ==", 1277 | "requires": { 1278 | "@vue/shared": "3.3.4" 1279 | } 1280 | }, 1281 | "@vue/reactivity-transform": { 1282 | "version": "3.3.4", 1283 | "resolved": "https://registry.npmjs.org/@vue/reactivity-transform/-/reactivity-transform-3.3.4.tgz", 1284 | "integrity": "sha512-MXgwjako4nu5WFLAjpBnCj/ieqcjE2aJBINUNQzkZQfzIZA4xn+0fV1tIYBJvvva3N3OvKGofRLvQIwEQPpaXw==", 1285 | "requires": { 1286 | "@babel/parser": "^7.20.15", 1287 | "@vue/compiler-core": "3.3.4", 1288 | "@vue/shared": "3.3.4", 1289 | "estree-walker": "^2.0.2", 1290 | "magic-string": "^0.30.0" 1291 | } 1292 | }, 1293 | "@vue/runtime-core": { 1294 | "version": "3.3.4", 1295 | "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.3.4.tgz", 1296 | "integrity": "sha512-R+bqxMN6pWO7zGI4OMlmvePOdP2c93GsHFM/siJI7O2nxFRzj55pLwkpCedEY+bTMgp5miZ8CxfIZo3S+gFqvA==", 1297 | "requires": { 1298 | "@vue/reactivity": "3.3.4", 1299 | "@vue/shared": "3.3.4" 1300 | } 1301 | }, 1302 | "@vue/runtime-dom": { 1303 | "version": "3.3.4", 1304 | "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.3.4.tgz", 1305 | "integrity": "sha512-Aj5bTJ3u5sFsUckRghsNjVTtxZQ1OyMWCr5dZRAPijF/0Vy4xEoRCwLyHXcj4D0UFbJ4lbx3gPTgg06K/GnPnQ==", 1306 | "requires": { 1307 | "@vue/runtime-core": "3.3.4", 1308 | "@vue/shared": "3.3.4", 1309 | "csstype": "^3.1.1" 1310 | } 1311 | }, 1312 | "@vue/server-renderer": { 1313 | "version": "3.3.4", 1314 | "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.3.4.tgz", 1315 | "integrity": "sha512-Q6jDDzR23ViIb67v+vM1Dqntu+HUexQcsWKhhQa4ARVzxOY2HbC7QRW/ggkDBd5BU+uM1sV6XOAP0b216o34JQ==", 1316 | "requires": { 1317 | "@vue/compiler-ssr": "3.3.4", 1318 | "@vue/shared": "3.3.4" 1319 | } 1320 | }, 1321 | "@vue/shared": { 1322 | "version": "3.3.4", 1323 | "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.3.4.tgz", 1324 | "integrity": "sha512-7OjdcV8vQ74eiz1TZLzZP4JwqM5fA94K6yntPS5Z25r9HDuGNzaGdgvwKYq6S+MxwF0TFRwe50fIR/MYnakdkQ==" 1325 | }, 1326 | "@vue/typescript": { 1327 | "version": "1.8.13", 1328 | "resolved": "https://registry.npmjs.org/@vue/typescript/-/typescript-1.8.13.tgz", 1329 | "integrity": "sha512-ALJjHFqQ3dgZVCI/ogAS/dZ7JEhIi1N0Em5I7uwabY1p9RDRK3odLsycMHyxZRjm5dLI15c07eeBloHiD2Otlg==", 1330 | "dev": true, 1331 | "requires": { 1332 | "@volar/typescript": "~1.10.0", 1333 | "@vue/language-core": "1.8.13" 1334 | } 1335 | }, 1336 | "asynckit": { 1337 | "version": "0.4.0", 1338 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 1339 | "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" 1340 | }, 1341 | "axios": { 1342 | "version": "1.5.0", 1343 | "resolved": "https://registry.npmjs.org/axios/-/axios-1.5.0.tgz", 1344 | "integrity": "sha512-D4DdjDo5CY50Qms0qGQTTw6Q44jl7zRwY7bthds06pUGfChBCTcQs+N743eFWGEd6pRTMd6A+I87aWyFV5wiZQ==", 1345 | "requires": { 1346 | "follow-redirects": "^1.15.0", 1347 | "form-data": "^4.0.0", 1348 | "proxy-from-env": "^1.1.0" 1349 | } 1350 | }, 1351 | "balanced-match": { 1352 | "version": "1.0.2", 1353 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 1354 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 1355 | "dev": true 1356 | }, 1357 | "brace-expansion": { 1358 | "version": "2.0.1", 1359 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", 1360 | "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", 1361 | "dev": true, 1362 | "requires": { 1363 | "balanced-match": "^1.0.0" 1364 | } 1365 | }, 1366 | "combined-stream": { 1367 | "version": "1.0.8", 1368 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", 1369 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", 1370 | "requires": { 1371 | "delayed-stream": "~1.0.0" 1372 | } 1373 | }, 1374 | "csstype": { 1375 | "version": "3.1.2", 1376 | "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", 1377 | "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==" 1378 | }, 1379 | "de-indent": { 1380 | "version": "1.0.2", 1381 | "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", 1382 | "integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==", 1383 | "dev": true 1384 | }, 1385 | "delayed-stream": { 1386 | "version": "1.0.0", 1387 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 1388 | "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" 1389 | }, 1390 | "esbuild": { 1391 | "version": "0.18.20", 1392 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.20.tgz", 1393 | "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==", 1394 | "dev": true, 1395 | "requires": { 1396 | "@esbuild/android-arm": "0.18.20", 1397 | "@esbuild/android-arm64": "0.18.20", 1398 | "@esbuild/android-x64": "0.18.20", 1399 | "@esbuild/darwin-arm64": "0.18.20", 1400 | "@esbuild/darwin-x64": "0.18.20", 1401 | "@esbuild/freebsd-arm64": "0.18.20", 1402 | "@esbuild/freebsd-x64": "0.18.20", 1403 | "@esbuild/linux-arm": "0.18.20", 1404 | "@esbuild/linux-arm64": "0.18.20", 1405 | "@esbuild/linux-ia32": "0.18.20", 1406 | "@esbuild/linux-loong64": "0.18.20", 1407 | "@esbuild/linux-mips64el": "0.18.20", 1408 | "@esbuild/linux-ppc64": "0.18.20", 1409 | "@esbuild/linux-riscv64": "0.18.20", 1410 | "@esbuild/linux-s390x": "0.18.20", 1411 | "@esbuild/linux-x64": "0.18.20", 1412 | "@esbuild/netbsd-x64": "0.18.20", 1413 | "@esbuild/openbsd-x64": "0.18.20", 1414 | "@esbuild/sunos-x64": "0.18.20", 1415 | "@esbuild/win32-arm64": "0.18.20", 1416 | "@esbuild/win32-ia32": "0.18.20", 1417 | "@esbuild/win32-x64": "0.18.20" 1418 | } 1419 | }, 1420 | "estree-walker": { 1421 | "version": "2.0.2", 1422 | "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", 1423 | "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" 1424 | }, 1425 | "follow-redirects": { 1426 | "version": "1.15.3", 1427 | "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz", 1428 | "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==" 1429 | }, 1430 | "form-data": { 1431 | "version": "4.0.0", 1432 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", 1433 | "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", 1434 | "requires": { 1435 | "asynckit": "^0.4.0", 1436 | "combined-stream": "^1.0.8", 1437 | "mime-types": "^2.1.12" 1438 | } 1439 | }, 1440 | "fsevents": { 1441 | "version": "2.3.3", 1442 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 1443 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 1444 | "dev": true, 1445 | "optional": true 1446 | }, 1447 | "he": { 1448 | "version": "1.2.0", 1449 | "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", 1450 | "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", 1451 | "dev": true 1452 | }, 1453 | "lru-cache": { 1454 | "version": "6.0.0", 1455 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 1456 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 1457 | "dev": true, 1458 | "requires": { 1459 | "yallist": "^4.0.0" 1460 | } 1461 | }, 1462 | "magic-string": { 1463 | "version": "0.30.3", 1464 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.3.tgz", 1465 | "integrity": "sha512-B7xGbll2fG/VjP+SWg4sX3JynwIU0mjoTc6MPpKNuIvftk6u6vqhDnk1R80b8C2GBR6ywqy+1DcKBrevBg+bmw==", 1466 | "requires": { 1467 | "@jridgewell/sourcemap-codec": "^1.4.15" 1468 | } 1469 | }, 1470 | "mime-db": { 1471 | "version": "1.52.0", 1472 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", 1473 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" 1474 | }, 1475 | "mime-types": { 1476 | "version": "2.1.35", 1477 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", 1478 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", 1479 | "requires": { 1480 | "mime-db": "1.52.0" 1481 | } 1482 | }, 1483 | "minimatch": { 1484 | "version": "9.0.3", 1485 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", 1486 | "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", 1487 | "dev": true, 1488 | "requires": { 1489 | "brace-expansion": "^2.0.1" 1490 | } 1491 | }, 1492 | "muggle-string": { 1493 | "version": "0.3.1", 1494 | "resolved": "https://registry.npmjs.org/muggle-string/-/muggle-string-0.3.1.tgz", 1495 | "integrity": "sha512-ckmWDJjphvd/FvZawgygcUeQCxzvohjFO5RxTjj4eq8kw359gFF3E1brjfI+viLMxss5JrHTDRHZvu2/tuy0Qg==", 1496 | "dev": true 1497 | }, 1498 | "nanoid": { 1499 | "version": "3.3.6", 1500 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", 1501 | "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==" 1502 | }, 1503 | "picocolors": { 1504 | "version": "1.0.0", 1505 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", 1506 | "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" 1507 | }, 1508 | "postcss": { 1509 | "version": "8.4.30", 1510 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.30.tgz", 1511 | "integrity": "sha512-7ZEao1g4kd68l97aWG/etQKPKq07us0ieSZ2TnFDk11i0ZfDW2AwKHYU8qv4MZKqN2fdBfg+7q0ES06UA73C1g==", 1512 | "requires": { 1513 | "nanoid": "^3.3.6", 1514 | "picocolors": "^1.0.0", 1515 | "source-map-js": "^1.0.2" 1516 | } 1517 | }, 1518 | "proxy-from-env": { 1519 | "version": "1.1.0", 1520 | "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", 1521 | "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" 1522 | }, 1523 | "rollup": { 1524 | "version": "3.29.3", 1525 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.29.3.tgz", 1526 | "integrity": "sha512-T7du6Hum8jOkSWetjRgbwpM6Sy0nECYrYRSmZjayFcOddtKJWU4d17AC3HNUk7HRuqy4p+G7aEZclSHytqUmEg==", 1527 | "dev": true, 1528 | "requires": { 1529 | "fsevents": "~2.3.2" 1530 | } 1531 | }, 1532 | "semver": { 1533 | "version": "7.5.4", 1534 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", 1535 | "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", 1536 | "dev": true, 1537 | "requires": { 1538 | "lru-cache": "^6.0.0" 1539 | } 1540 | }, 1541 | "source-map-js": { 1542 | "version": "1.0.2", 1543 | "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", 1544 | "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==" 1545 | }, 1546 | "typescript": { 1547 | "version": "5.2.2", 1548 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", 1549 | "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", 1550 | "dev": true 1551 | }, 1552 | "vite": { 1553 | "version": "4.4.9", 1554 | "resolved": "https://registry.npmjs.org/vite/-/vite-4.4.9.tgz", 1555 | "integrity": "sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==", 1556 | "dev": true, 1557 | "requires": { 1558 | "esbuild": "^0.18.10", 1559 | "fsevents": "~2.3.2", 1560 | "postcss": "^8.4.27", 1561 | "rollup": "^3.27.1" 1562 | } 1563 | }, 1564 | "vue": { 1565 | "version": "3.3.4", 1566 | "resolved": "https://registry.npmjs.org/vue/-/vue-3.3.4.tgz", 1567 | "integrity": "sha512-VTyEYn3yvIeY1Py0WaYGZsXnz3y5UnGi62GjVEqvEGPl6nxbOrCXbVOTQWBEJUqAyTUk2uJ5JLVnYJ6ZzGbrSw==", 1568 | "requires": { 1569 | "@vue/compiler-dom": "3.3.4", 1570 | "@vue/compiler-sfc": "3.3.4", 1571 | "@vue/runtime-dom": "3.3.4", 1572 | "@vue/server-renderer": "3.3.4", 1573 | "@vue/shared": "3.3.4" 1574 | } 1575 | }, 1576 | "vue-template-compiler": { 1577 | "version": "2.7.14", 1578 | "resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.7.14.tgz", 1579 | "integrity": "sha512-zyA5Y3ArvVG0NacJDkkzJuPQDF8RFeRlzV2vLeSnhSpieO6LK2OVbdLPi5MPPs09Ii+gMO8nY4S3iKQxBxDmWQ==", 1580 | "dev": true, 1581 | "requires": { 1582 | "de-indent": "^1.0.2", 1583 | "he": "^1.2.0" 1584 | } 1585 | }, 1586 | "vue-tsc": { 1587 | "version": "1.8.13", 1588 | "resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-1.8.13.tgz", 1589 | "integrity": "sha512-Hl8zUXPVK2KzPtbXeMCN0CSFkwvD96YOtYt9KvJPG9W8QGcNpGk9KHwPuGMxA8blWXSIli7gtsoC+clICEVdVg==", 1590 | "dev": true, 1591 | "requires": { 1592 | "@vue/language-core": "1.8.13", 1593 | "@vue/typescript": "1.8.13", 1594 | "semver": "^7.3.8" 1595 | } 1596 | }, 1597 | "yallist": { 1598 | "version": "4.0.0", 1599 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 1600 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", 1601 | "dev": true 1602 | } 1603 | } 1604 | } 1605 | -------------------------------------------------------------------------------- /ui/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ui", 3 | "private": true, 4 | "version": "0.0.0", 5 | "type": "module", 6 | "scripts": { 7 | "start": "vite", 8 | "dev": "vite", 9 | "build": "vue-tsc && vite build", 10 | "preview": "vite preview" 11 | }, 12 | "dependencies": { 13 | "axios": "^1.5.0", 14 | "vue": "^3.3.4" 15 | }, 16 | "devDependencies": { 17 | "@vitejs/plugin-basic-ssl": "^1.0.1", 18 | "@vitejs/plugin-vue": "^4.2.3", 19 | "typescript": "^5.2.2", 20 | "vite": "^4.4.5", 21 | "vue-tsc": "^1.8.5" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ui/public/vite.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ui/src/App.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 16 | 17 | 31 | -------------------------------------------------------------------------------- /ui/src/assets/vue.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ui/src/components/HelloWorld.vue: -------------------------------------------------------------------------------- 1 | 70 | 71 | 95 | 96 | 101 | -------------------------------------------------------------------------------- /ui/src/components/ResultsDisplay.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 14 | 15 | 20 | -------------------------------------------------------------------------------- /ui/src/getCookie.ts: -------------------------------------------------------------------------------- 1 | export const getCookie = (cookieName: string) => { 2 | const name = `${cookieName}=`; 3 | const decodedCookie = decodeURIComponent(document.cookie); 4 | const ca = decodedCookie.split(";"); 5 | for (let i = 0; i < ca.length; i += 1) { 6 | let c = ca[i]; 7 | while (c.charAt(0) === " ") { 8 | c = c.substring(1); 9 | } 10 | if (c.indexOf(name) === 0) { 11 | return c.substring(name.length, c.length); 12 | } 13 | } 14 | return ""; 15 | }; 16 | -------------------------------------------------------------------------------- /ui/src/main.ts: -------------------------------------------------------------------------------- 1 | import { createApp } from 'vue' 2 | import './style.css' 3 | import App from './App.vue' 4 | 5 | createApp(App).mount('#app') 6 | -------------------------------------------------------------------------------- /ui/src/style.css: -------------------------------------------------------------------------------- 1 | :root { 2 | font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; 3 | line-height: 1.5; 4 | font-weight: 400; 5 | 6 | color-scheme: light dark; 7 | color: rgba(255, 255, 255, 0.87); 8 | background-color: #242424; 9 | 10 | font-synthesis: none; 11 | text-rendering: optimizeLegibility; 12 | -webkit-font-smoothing: antialiased; 13 | -moz-osx-font-smoothing: grayscale; 14 | -webkit-text-size-adjust: 100%; 15 | } 16 | 17 | a { 18 | font-weight: 500; 19 | color: #646cff; 20 | text-decoration: inherit; 21 | } 22 | a:hover { 23 | color: #535bf2; 24 | } 25 | 26 | body { 27 | margin: 0; 28 | display: flex; 29 | place-items: center; 30 | min-width: 320px; 31 | min-height: 100vh; 32 | } 33 | 34 | h1 { 35 | font-size: 3.2em; 36 | line-height: 1.1; 37 | } 38 | 39 | button { 40 | border-radius: 8px; 41 | border: 1px solid transparent; 42 | padding: 0.6em 1.2em; 43 | font-size: 1em; 44 | font-weight: 500; 45 | font-family: inherit; 46 | background-color: #1a1a1a; 47 | cursor: pointer; 48 | transition: border-color 0.25s; 49 | } 50 | button:hover { 51 | border-color: #646cff; 52 | } 53 | button:focus, 54 | button:focus-visible { 55 | outline: 4px auto -webkit-focus-ring-color; 56 | } 57 | 58 | .card { 59 | padding: 2em; 60 | } 61 | 62 | #app { 63 | max-width: 1280px; 64 | margin: 0 auto; 65 | padding: 2rem; 66 | text-align: center; 67 | } 68 | 69 | @media (prefers-color-scheme: light) { 70 | :root { 71 | color: #213547; 72 | background-color: #ffffff; 73 | } 74 | a:hover { 75 | color: #747bff; 76 | } 77 | button { 78 | background-color: #f9f9f9; 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /ui/src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /ui/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES2020", 4 | "useDefineForClassFields": true, 5 | "module": "ESNext", 6 | "lib": ["ES2020", "DOM", "DOM.Iterable"], 7 | "skipLibCheck": true, 8 | 9 | /* Bundler mode */ 10 | "moduleResolution": "bundler", 11 | "allowImportingTsExtensions": true, 12 | "resolveJsonModule": true, 13 | "isolatedModules": true, 14 | "noEmit": true, 15 | "jsx": "preserve", 16 | 17 | /* Linting */ 18 | "strict": true, 19 | "noUnusedLocals": true, 20 | "noUnusedParameters": true, 21 | "noFallthroughCasesInSwitch": true 22 | }, 23 | "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"], 24 | "references": [{ "path": "./tsconfig.node.json" }] 25 | } 26 | -------------------------------------------------------------------------------- /ui/tsconfig.node.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "composite": true, 4 | "skipLibCheck": true, 5 | "module": "ESNext", 6 | "moduleResolution": "bundler", 7 | "allowSyntheticDefaultImports": true 8 | }, 9 | "include": ["vite.config.ts"] 10 | } 11 | -------------------------------------------------------------------------------- /ui/vite.config.ts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite' 2 | import vue from '@vitejs/plugin-vue' 3 | import fs from 'fs'; 4 | 5 | // https://vitejs.dev/config/ 6 | export default defineConfig({ 7 | plugins: [vue()], 8 | server: { 9 | https: { 10 | key: fs.readFileSync('./certs/dev_localhost.key'), 11 | cert: fs.readFileSync('./certs/dev_localhost.pem'), 12 | }, 13 | port: 4202, 14 | strictPort: true, // exit if port is in use 15 | hmr: { 16 | clientPort: 4202, // point vite websocket connection to vite directly, circumventing .net proxy 17 | }, 18 | }, 19 | optimizeDeps: { 20 | force: true, 21 | }, 22 | build: { 23 | outDir: "../server/wwwroot", 24 | emptyOutDir: true 25 | }, 26 | }) 27 | --------------------------------------------------------------------------------