├── .gitignore ├── LICENSE ├── README.md ├── docs └── jetstream.png └── src ├── .dockerignore ├── NatsViewer.Client ├── Dockerfile ├── NatsMonitorClient.cs ├── NatsViewer.Client.csproj ├── Pages │ └── Counter.razor ├── Program.cs ├── _Imports.razor └── wwwroot │ ├── appsettings.Development.json │ └── appsettings.json ├── NatsViewer.sln ├── NatsViewer ├── Components │ ├── App.razor │ ├── Layout │ │ ├── MainLayout.razor │ │ ├── MainLayout.razor.css │ │ ├── NavMenu.razor │ │ └── NavMenu.razor.css │ ├── Pages │ │ ├── Error.razor │ │ ├── Home.razor │ │ └── JetStream.razor │ ├── Routes.razor │ └── _Imports.razor ├── Dockerfile ├── NatsViewer.csproj ├── Program.cs ├── Properties │ └── launchSettings.json ├── appsettings.Development.json ├── appsettings.json └── wwwroot │ ├── app.css │ ├── favicon.png │ └── inter │ ├── Inter-Black.woff2 │ ├── Inter-BlackItalic.woff2 │ ├── Inter-Bold.woff2 │ ├── Inter-BoldItalic.woff2 │ ├── Inter-ExtraBold.woff2 │ ├── Inter-ExtraBoldItalic.woff2 │ ├── Inter-ExtraLight.woff2 │ ├── Inter-ExtraLightItalic.woff2 │ ├── Inter-Italic.woff2 │ ├── Inter-Light.woff2 │ ├── Inter-LightItalic.woff2 │ ├── Inter-Medium.woff2 │ ├── Inter-MediumItalic.woff2 │ ├── Inter-Regular.woff2 │ ├── Inter-SemiBold.woff2 │ ├── Inter-SemiBoldItalic.woff2 │ ├── Inter-Thin.woff2 │ ├── Inter-ThinItalic.woff2 │ ├── InterDisplay-Black.woff2 │ ├── InterDisplay-BlackItalic.woff2 │ ├── InterDisplay-Bold.woff2 │ ├── InterDisplay-BoldItalic.woff2 │ ├── InterDisplay-ExtraBold.woff2 │ ├── InterDisplay-ExtraBoldItalic.woff2 │ ├── InterDisplay-ExtraLight.woff2 │ ├── InterDisplay-ExtraLightItalic.woff2 │ ├── InterDisplay-Italic.woff2 │ ├── InterDisplay-Light.woff2 │ ├── InterDisplay-LightItalic.woff2 │ ├── InterDisplay-Medium.woff2 │ ├── InterDisplay-MediumItalic.woff2 │ ├── InterDisplay-Regular.woff2 │ ├── InterDisplay-SemiBold.woff2 │ ├── InterDisplay-SemiBoldItalic.woff2 │ ├── InterDisplay-Thin.woff2 │ ├── InterDisplay-ThinItalic.woff2 │ ├── InterVariable-Italic.woff2 │ ├── InterVariable.woff2 │ └── inter.css └── docker-compose.yml /.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 | .DS_Store 6 | .idea 7 | # User-specific files 8 | *.rsuser 9 | *.suo 10 | *.user 11 | *.userosscache 12 | *.sln.docstates 13 | 14 | # User-specific files (MonoDevelop/Xamarin Studio) 15 | *.userprefs 16 | 17 | # Mono auto generated files 18 | mono_crash.* 19 | 20 | # Build results 21 | [Dd]ebug/ 22 | [Dd]ebugPublic/ 23 | [Rr]elease/ 24 | [Rr]eleases/ 25 | x64/ 26 | x86/ 27 | [Ww][Ii][Nn]32/ 28 | [Aa][Rr][Mm]/ 29 | [Aa][Rr][Mm]64/ 30 | bld/ 31 | [Bb]in/ 32 | [Oo]bj/ 33 | [Ll]og/ 34 | [Ll]ogs/ 35 | 36 | # Visual Studio 2015/2017 cache/options directory 37 | .vs/ 38 | # Uncomment if you have tasks that create the project's static files in wwwroot 39 | #wwwroot/ 40 | 41 | # Visual Studio 2017 auto generated files 42 | Generated\ Files/ 43 | 44 | # MSTest test Results 45 | [Tt]est[Rr]esult*/ 46 | [Bb]uild[Ll]og.* 47 | 48 | # NUnit 49 | *.VisualState.xml 50 | TestResult.xml 51 | nunit-*.xml 52 | 53 | # Build Results of an ATL Project 54 | [Dd]ebugPS/ 55 | [Rr]eleasePS/ 56 | dlldata.c 57 | 58 | # Benchmark Results 59 | BenchmarkDotNet.Artifacts/ 60 | 61 | # .NET Core 62 | project.lock.json 63 | project.fragment.lock.json 64 | artifacts/ 65 | 66 | # ASP.NET Scaffolding 67 | ScaffoldingReadMe.txt 68 | 69 | # StyleCop 70 | StyleCopReport.xml 71 | 72 | # Files built by Visual Studio 73 | *_i.c 74 | *_p.c 75 | *_h.h 76 | *.ilk 77 | *.meta 78 | *.obj 79 | *.iobj 80 | *.pch 81 | *.pdb 82 | *.ipdb 83 | *.pgc 84 | *.pgd 85 | *.rsp 86 | *.sbr 87 | *.tlb 88 | *.tli 89 | *.tlh 90 | *.tmp 91 | *.tmp_proj 92 | *_wpftmp.csproj 93 | *.log 94 | *.tlog 95 | *.vspscc 96 | *.vssscc 97 | .builds 98 | *.pidb 99 | *.svclog 100 | *.scc 101 | 102 | # Chutzpah Test files 103 | _Chutzpah* 104 | 105 | # Visual C++ cache files 106 | ipch/ 107 | *.aps 108 | *.ncb 109 | *.opendb 110 | *.opensdf 111 | *.sdf 112 | *.cachefile 113 | *.VC.db 114 | *.VC.VC.opendb 115 | 116 | # Visual Studio profiler 117 | *.psess 118 | *.vsp 119 | *.vspx 120 | *.sap 121 | 122 | # Visual Studio Trace Files 123 | *.e2e 124 | 125 | # TFS 2012 Local Workspace 126 | $tf/ 127 | 128 | # Guidance Automation Toolkit 129 | *.gpState 130 | 131 | # ReSharper is a .NET coding add-in 132 | _ReSharper*/ 133 | *.[Rr]e[Ss]harper 134 | *.DotSettings.user 135 | 136 | # TeamCity is a build add-in 137 | _TeamCity* 138 | 139 | # DotCover is a Code Coverage Tool 140 | *.dotCover 141 | 142 | # AxoCover is a Code Coverage Tool 143 | .axoCover/* 144 | !.axoCover/settings.json 145 | 146 | # Coverlet is a free, cross platform Code Coverage Tool 147 | coverage*.json 148 | coverage*.xml 149 | coverage*.info 150 | 151 | # Visual Studio code coverage results 152 | *.coverage 153 | *.coveragexml 154 | 155 | # NCrunch 156 | _NCrunch_* 157 | .*crunch*.local.xml 158 | nCrunchTemp_* 159 | 160 | # MightyMoose 161 | *.mm.* 162 | AutoTest.Net/ 163 | 164 | # Web workbench (sass) 165 | .sass-cache/ 166 | 167 | # Installshield output folder 168 | [Ee]xpress/ 169 | 170 | # DocProject is a documentation generator add-in 171 | DocProject/buildhelp/ 172 | DocProject/Help/*.HxT 173 | DocProject/Help/*.HxC 174 | DocProject/Help/*.hhc 175 | DocProject/Help/*.hhk 176 | DocProject/Help/*.hhp 177 | DocProject/Help/Html2 178 | DocProject/Help/html 179 | 180 | # Click-Once directory 181 | publish/ 182 | 183 | # Publish Web Output 184 | *.[Pp]ublish.xml 185 | *.azurePubxml 186 | # Note: Comment the next line if you want to checkin your web deploy settings, 187 | # but database connection strings (with potential passwords) will be unencrypted 188 | *.pubxml 189 | *.publishproj 190 | 191 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 192 | # checkin your Azure Web App publish settings, but sensitive information contained 193 | # in these scripts will be unencrypted 194 | PublishScripts/ 195 | 196 | # NuGet Packages 197 | *.nupkg 198 | # NuGet Symbol Packages 199 | *.snupkg 200 | # The packages folder can be ignored because of Package Restore 201 | **/[Pp]ackages/* 202 | # except build/, which is used as an MSBuild target. 203 | !**/[Pp]ackages/build/ 204 | # Uncomment if necessary however generally it will be regenerated when needed 205 | #!**/[Pp]ackages/repositories.config 206 | # NuGet v3's project.json files produces more ignorable files 207 | *.nuget.props 208 | *.nuget.targets 209 | 210 | # Microsoft Azure Build Output 211 | csx/ 212 | *.build.csdef 213 | 214 | # Microsoft Azure Emulator 215 | ecf/ 216 | rcf/ 217 | 218 | # Windows Store app package directories and files 219 | AppPackages/ 220 | BundleArtifacts/ 221 | Package.StoreAssociation.xml 222 | _pkginfo.txt 223 | *.appx 224 | *.appxbundle 225 | *.appxupload 226 | 227 | # Visual Studio cache files 228 | # files ending in .cache can be ignored 229 | *.[Cc]ache 230 | # but keep track of directories ending in .cache 231 | !?*.[Cc]ache/ 232 | 233 | # Others 234 | ClientBin/ 235 | ~$* 236 | *~ 237 | *.dbmdl 238 | *.dbproj.schemaview 239 | *.jfm 240 | *.pfx 241 | *.publishsettings 242 | orleans.codegen.cs 243 | 244 | # Including strong name files can present a security risk 245 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 246 | #*.snk 247 | 248 | # Since there are multiple workflows, uncomment next line to ignore bower_components 249 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 250 | #bower_components/ 251 | 252 | # RIA/Silverlight projects 253 | Generated_Code/ 254 | 255 | # Backup & report files from converting an old project file 256 | # to a newer Visual Studio version. Backup files are not needed, 257 | # because we have git ;-) 258 | _UpgradeReport_Files/ 259 | Backup*/ 260 | UpgradeLog*.XML 261 | UpgradeLog*.htm 262 | ServiceFabricBackup/ 263 | *.rptproj.bak 264 | 265 | # SQL Server files 266 | *.mdf 267 | *.ldf 268 | *.ndf 269 | 270 | # Business Intelligence projects 271 | *.rdl.data 272 | *.bim.layout 273 | *.bim_*.settings 274 | *.rptproj.rsuser 275 | *- [Bb]ackup.rdl 276 | *- [Bb]ackup ([0-9]).rdl 277 | *- [Bb]ackup ([0-9][0-9]).rdl 278 | 279 | # Microsoft Fakes 280 | FakesAssemblies/ 281 | 282 | # GhostDoc plugin setting file 283 | *.GhostDoc.xml 284 | 285 | # Node.js Tools for Visual Studio 286 | .ntvs_analysis.dat 287 | node_modules/ 288 | 289 | # Visual Studio 6 build log 290 | *.plg 291 | 292 | # Visual Studio 6 workspace options file 293 | *.opt 294 | 295 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 296 | *.vbw 297 | 298 | # Visual Studio 6 auto-generated project file (contains which files were open etc.) 299 | *.vbp 300 | 301 | # Visual Studio 6 workspace and project file (working project files containing files to include in project) 302 | *.dsw 303 | *.dsp 304 | 305 | # Visual Studio 6 technical files 306 | *.ncb 307 | *.aps 308 | 309 | # Visual Studio LightSwitch build output 310 | **/*.HTMLClient/GeneratedArtifacts 311 | **/*.DesktopClient/GeneratedArtifacts 312 | **/*.DesktopClient/ModelManifest.xml 313 | **/*.Server/GeneratedArtifacts 314 | **/*.Server/ModelManifest.xml 315 | _Pvt_Extensions 316 | 317 | # Paket dependency manager 318 | .paket/paket.exe 319 | paket-files/ 320 | 321 | # FAKE - F# Make 322 | .fake/ 323 | 324 | # CodeRush personal settings 325 | .cr/personal 326 | 327 | # Python Tools for Visual Studio (PTVS) 328 | __pycache__/ 329 | *.pyc 330 | 331 | # Cake - Uncomment if you are using it 332 | # tools/** 333 | # !tools/packages.config 334 | 335 | # Tabs Studio 336 | *.tss 337 | 338 | # Telerik's JustMock configuration file 339 | *.jmconfig 340 | 341 | # BizTalk build output 342 | *.btp.cs 343 | *.btm.cs 344 | *.odx.cs 345 | *.xsd.cs 346 | 347 | # OpenCover UI analysis results 348 | OpenCover/ 349 | 350 | # Azure Stream Analytics local run output 351 | ASALocalRun/ 352 | 353 | # MSBuild Binary and Structured Log 354 | *.binlog 355 | 356 | # NVidia Nsight GPU debugger configuration file 357 | *.nvuser 358 | 359 | # MFractors (Xamarin productivity tool) working folder 360 | .mfractor/ 361 | 362 | # Local History for Visual Studio 363 | .localhistory/ 364 | 365 | # Visual Studio History (VSHistory) files 366 | .vshistory/ 367 | 368 | # BeatPulse healthcheck temp database 369 | healthchecksdb 370 | 371 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 372 | MigrationBackup/ 373 | 374 | # Ionide (cross platform F# VS Code tools) working folder 375 | .ionide/ 376 | 377 | # Fody - auto-generated XML schema 378 | FodyWeavers.xsd 379 | 380 | # VS Code files for those working on multiple tools 381 | .vscode/* 382 | !.vscode/settings.json 383 | !.vscode/tasks.json 384 | !.vscode/launch.json 385 | !.vscode/extensions.json 386 | *.code-workspace 387 | 388 | # Local History for Visual Studio Code 389 | .history/ 390 | 391 | # Windows Installer files from build outputs 392 | *.cab 393 | *.msi 394 | *.msix 395 | *.msm 396 | *.msp 397 | 398 | # JetBrains Rider 399 | *.sln.iml 400 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # nats-viewer 2 | Simple NATS JetStream UI 3 | 4 | ![](docs/jetstream.png) 5 | -------------------------------------------------------------------------------- /docs/jetstream.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/docs/jetstream.png -------------------------------------------------------------------------------- /src/.dockerignore: -------------------------------------------------------------------------------- 1 | **/.dockerignore 2 | **/.env 3 | **/.git 4 | **/.gitignore 5 | **/.project 6 | **/.settings 7 | **/.toolstarget 8 | **/.vs 9 | **/.vscode 10 | **/.idea 11 | **/*.*proj.user 12 | **/*.dbmdl 13 | **/*.jfm 14 | **/azds.yaml 15 | **/bin 16 | **/charts 17 | **/docker-compose* 18 | **/Dockerfile* 19 | **/node_modules 20 | **/npm-debug.log 21 | **/obj 22 | **/secrets.dev.yaml 23 | **/values.dev.yaml 24 | LICENSE 25 | README.md -------------------------------------------------------------------------------- /src/NatsViewer.Client/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base 2 | USER $APP_UID 3 | WORKDIR /app 4 | EXPOSE 8080 5 | EXPOSE 8081 6 | 7 | FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build 8 | ARG BUILD_CONFIGURATION=Release 9 | WORKDIR /src 10 | COPY ["BlazorApp1/BlazorApp1.Client/BlazorApp1.Client.csproj", "BlazorApp1/BlazorApp1.Client/"] 11 | RUN dotnet restore "BlazorApp1/BlazorApp1.Client/BlazorApp1.Client.csproj" 12 | COPY . . 13 | WORKDIR "/src/BlazorApp1/BlazorApp1.Client" 14 | RUN dotnet build "BlazorApp1.Client.csproj" -c $BUILD_CONFIGURATION -o /app/build 15 | 16 | FROM build AS publish 17 | ARG BUILD_CONFIGURATION=Release 18 | RUN dotnet publish "BlazorApp1.Client.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false 19 | 20 | FROM base AS final 21 | WORKDIR /app 22 | COPY --from=publish /app/publish . 23 | ENTRYPOINT ["dotnet", "BlazorApp1.Client.dll"] 24 | -------------------------------------------------------------------------------- /src/NatsViewer.Client/NatsMonitorClient.cs: -------------------------------------------------------------------------------- 1 | using System.Net.Http.Json; 2 | using System.Text.Json.Serialization; 3 | 4 | namespace NatsViewer.Client; 5 | 6 | public class NatsMonitorClient(ILogger log, HttpClient client) 7 | { 8 | public async Task HealthCheck() 9 | { 10 | try 11 | { 12 | var response = await client.GetAsync("/healthz"); 13 | return new HealthCheckResult 14 | { 15 | Healthy = response.IsSuccessStatusCode 16 | }; 17 | } 18 | catch (Exception ex) 19 | { 20 | log.LogError(ex, "Failed to health check"); 21 | return new HealthCheckResult 22 | { 23 | Healthy = false 24 | }; 25 | } 26 | } 27 | 28 | public async Task GetServerInfo() 29 | { 30 | try 31 | { 32 | return await client.GetFromJsonAsync("/varz"); 33 | } 34 | catch (Exception ex) 35 | { 36 | log.LogError(ex, "Failed to get server info"); 37 | return null; 38 | } 39 | } 40 | 41 | public async Task GetExpandedJetStreamInfo() 42 | { 43 | try 44 | { 45 | return await client.GetFromJsonAsync("/jsz?consumers=true"); 46 | } 47 | catch (Exception ex) 48 | { 49 | log.LogError(ex, "Failed to get expanded jetstream info"); 50 | return null; 51 | } 52 | } 53 | } 54 | 55 | public record HealthCheckResult 56 | { 57 | public bool Healthy { get; set; } 58 | } 59 | public record ServerInfo 60 | { 61 | [JsonPropertyName("server_id")] 62 | public string? ServerId { get; init; } 63 | 64 | [JsonPropertyName("server_name")] 65 | public string? ServerName { get; init; } 66 | 67 | [JsonPropertyName("version")] 68 | public string? Version { get; init; } 69 | 70 | [JsonPropertyName("proto")] 71 | public int Proto { get; init; } 72 | 73 | [JsonPropertyName("git_commit")] 74 | public string? GitCommit { get; init; } 75 | 76 | [JsonPropertyName("go")] 77 | public string? Go { get; init; } 78 | 79 | [JsonPropertyName("host")] 80 | public string? Host { get; init; } 81 | 82 | [JsonPropertyName("port")] 83 | public int Port { get; init; } 84 | 85 | [JsonPropertyName("max_connections")] 86 | public int MaxConnections { get; init; } 87 | 88 | [JsonPropertyName("ping_interval")] 89 | public long PingInterval { get; init; } 90 | 91 | [JsonPropertyName("ping_max")] 92 | public int PingMax { get; init; } 93 | 94 | [JsonPropertyName("http_host")] 95 | public string? HttpHost { get; init; } 96 | 97 | [JsonPropertyName("http_port")] 98 | public int HttpPort { get; init; } 99 | 100 | [JsonPropertyName("http_base_path")] 101 | public string? HttpBasePath { get; init; } 102 | 103 | [JsonPropertyName("https_port")] 104 | public int HttpsPort { get; init; } 105 | 106 | [JsonPropertyName("auth_timeout")] 107 | public int AuthTimeout { get; init; } 108 | 109 | [JsonPropertyName("max_control_line")] 110 | public int MaxControlLine { get; init; } 111 | 112 | [JsonPropertyName("max_payload")] 113 | public int MaxPayload { get; init; } 114 | 115 | [JsonPropertyName("max_pending")] 116 | public int MaxPending { get; init; } 117 | 118 | [JsonPropertyName("jetstream")] 119 | public JetStreamInfo? JetStream { get; init; } 120 | 121 | [JsonPropertyName("tls_timeout")] 122 | public int TlsTimeout { get; init; } 123 | 124 | [JsonPropertyName("write_deadline")] 125 | public long WriteDeadline { get; init; } 126 | 127 | [JsonPropertyName("start")] 128 | public string? Start { get; init; } 129 | 130 | [JsonPropertyName("now")] 131 | public string? Now { get; init; } 132 | 133 | [JsonPropertyName("uptime")] 134 | public string? Uptime { get; init; } 135 | 136 | [JsonPropertyName("mem")] 137 | public int Mem { get; init; } 138 | 139 | [JsonPropertyName("cores")] 140 | public int Cores { get; init; } 141 | 142 | [JsonPropertyName("gomaxprocs")] 143 | public int Gomaxprocs { get; init; } 144 | 145 | [JsonPropertyName("cpu")] 146 | public int Cpu { get; init; } 147 | 148 | [JsonPropertyName("connections")] 149 | public int Connections { get; init; } 150 | 151 | [JsonPropertyName("total_connections")] 152 | public int TotalConnections { get; init; } 153 | 154 | [JsonPropertyName("routes")] 155 | public int Routes { get; init; } 156 | 157 | [JsonPropertyName("remotes")] 158 | public int Remotes { get; init; } 159 | 160 | [JsonPropertyName("leafnodes")] 161 | public int Leafnodes { get; init; } 162 | 163 | [JsonPropertyName("in_msgs")] 164 | public int InMsgs { get; init; } 165 | 166 | [JsonPropertyName("out_msgs")] 167 | public int OutMsgs { get; init; } 168 | 169 | [JsonPropertyName("in_bytes")] 170 | public int InBytes { get; init; } 171 | 172 | [JsonPropertyName("out_bytes")] 173 | public int OutBytes { get; init; } 174 | 175 | [JsonPropertyName("slow_consumers")] 176 | public int SlowConsumers { get; init; } 177 | 178 | [JsonPropertyName("subscriptions")] 179 | public int Subscriptions { get; init; } 180 | 181 | [JsonPropertyName("http_req_stats")] 182 | public Dictionary? HttpReqStats { get; init; } 183 | 184 | [JsonPropertyName("config_load_time")] 185 | public string? ConfigLoadTime { get; init; } 186 | 187 | [JsonPropertyName("system_account")] 188 | public string? SystemAccount { get; init; } 189 | 190 | [JsonPropertyName("slow_consumer_stats")] 191 | public SlowConsumerStats? SlowConsumerStats { get; init; } 192 | } 193 | 194 | public record JetStreamInfo 195 | { 196 | [JsonPropertyName("config")] 197 | public JetStreamConfig? Config { get; init; } 198 | 199 | [JsonPropertyName("stats")] 200 | public JetStreamStats? Stats { get; init; } 201 | } 202 | public record JetStreamConfig 203 | { 204 | [JsonPropertyName("max_memory")] 205 | public long MaxMemory { get; init; } 206 | 207 | [JsonPropertyName("max_storage")] 208 | public long MaxStorage { get; init; } 209 | 210 | [JsonPropertyName("store_dir")] 211 | public string? StoreDir { get; init; } 212 | 213 | [JsonPropertyName("sync_interval")] 214 | public long SyncInterval { get; init; } 215 | } 216 | 217 | public record JetStreamStats 218 | { 219 | [JsonPropertyName("memory")] 220 | public int Memory { get; init; } 221 | 222 | [JsonPropertyName("storage")] 223 | public int Storage { get; init; } 224 | 225 | [JsonPropertyName("reserved_memory")] 226 | public int ReservedMemory { get; init; } 227 | 228 | [JsonPropertyName("reserved_storage")] 229 | public int ReservedStorage { get; init; } 230 | 231 | [JsonPropertyName("accounts")] 232 | public int Accounts { get; init; } 233 | 234 | [JsonPropertyName("ha_assets")] 235 | public int HaAssets { get; init; } 236 | 237 | [JsonPropertyName("api")] 238 | public ApiStats? Api { get; init; } 239 | } 240 | 241 | public record ApiStats 242 | { 243 | [JsonPropertyName("total")] 244 | public int Total { get; init; } 245 | 246 | [JsonPropertyName("errors")] 247 | public int Errors { get; init; } 248 | } 249 | 250 | public record SlowConsumerStats 251 | { 252 | [JsonPropertyName("clients")] 253 | public int Clients { get; init; } 254 | 255 | [JsonPropertyName("routes")] 256 | public int Routes { get; init; } 257 | 258 | [JsonPropertyName("gateways")] 259 | public int Gateways { get; init; } 260 | 261 | [JsonPropertyName("leafs")] 262 | public int Leafs { get; init; } 263 | } 264 | 265 | public record ExpandedJetStreamInfo( 266 | [property: JsonPropertyName("server_id")] string ServerId, 267 | [property: JsonPropertyName("now")] DateTime Now, 268 | [property: JsonPropertyName("config")] JetStreamConfig Config, 269 | [property: JsonPropertyName("memory")] long Memory, 270 | [property: JsonPropertyName("storage")] long Storage, 271 | [property: JsonPropertyName("reserved_memory")] long ReservedMemory, 272 | [property: JsonPropertyName("reserved_storage")] long ReservedStorage, 273 | [property: JsonPropertyName("accounts")] long Accounts, 274 | [property: JsonPropertyName("ha_assets")] long HaAssets, 275 | [property: JsonPropertyName("api")] Api Api, 276 | [property: JsonPropertyName("streams")] long Streams, 277 | [property: JsonPropertyName("consumers")] long Consumers, 278 | [property: JsonPropertyName("messages")] long Messages, 279 | [property: JsonPropertyName("bytes")] long Bytes, 280 | [property: JsonPropertyName("account_details")] List AccountDetails 281 | ); 282 | 283 | public record Api( 284 | [property: JsonPropertyName("total")] long Total, 285 | [property: JsonPropertyName("errors")] long Errors 286 | ); 287 | 288 | public record AccountDetail( 289 | [property: JsonPropertyName("name")] string Name, 290 | [property: JsonPropertyName("id")] string Id, 291 | [property: JsonPropertyName("memory")] long Memory, 292 | [property: JsonPropertyName("storage")] long Storage, 293 | [property: JsonPropertyName("reserved_memory")] Int128 ReservedMemory, 294 | [property: JsonPropertyName("reserved_storage")] Int128 ReservedStorage, 295 | [property: JsonPropertyName("accounts")] long Accounts, 296 | [property: JsonPropertyName("ha_assets")] long HaAssets, 297 | [property: JsonPropertyName("api")] Api Api, 298 | [property: JsonPropertyName("stream_detail")] List StreamDetail 299 | ); 300 | 301 | public record StreamDetail( 302 | [property: JsonPropertyName("name")] string Name, 303 | [property: JsonPropertyName("created")] DateTime Created, 304 | [property: JsonPropertyName("cluster")] Cluster Cluster, 305 | [property: JsonPropertyName("state")] State State, 306 | [property: JsonPropertyName("consumer_detail")] List? ConsumerDetail 307 | ); 308 | 309 | public record Cluster( 310 | [property: JsonPropertyName("leader")] string Leader 311 | ); 312 | 313 | public record State( 314 | [property: JsonPropertyName("messages")] long Messages, 315 | [property: JsonPropertyName("bytes")] long Bytes, 316 | [property: JsonPropertyName("first_seq")] long FirstSeq, 317 | [property: JsonPropertyName("first_ts")] DateTime FirstTs, 318 | [property: JsonPropertyName("last_seq")] long LastSeq, 319 | [property: JsonPropertyName("last_ts")] DateTime? LastTs, 320 | [property: JsonPropertyName("consumer_count")] long ConsumerCount, 321 | [property: JsonPropertyName("num_subjects")] long NumSubjects 322 | ); 323 | 324 | public record ConsumerDetail( 325 | [property: JsonPropertyName("stream_name")] string StreamName, 326 | [property: JsonPropertyName("name")] string Name, 327 | [property: JsonPropertyName("created")] DateTime Created, 328 | [property: JsonPropertyName("delivered")] Delivered Delivered, 329 | [property: JsonPropertyName("ack_floor")] AckFloor AckFloor, 330 | [property: JsonPropertyName("num_ack_pending")] long NumAckPending, 331 | [property: JsonPropertyName("num_redelivered")] long NumRedelivered, 332 | [property: JsonPropertyName("num_waiting")] long NumWaiting, 333 | [property: JsonPropertyName("num_pending")] long NumPending, 334 | [property: JsonPropertyName("ts")] DateTime? Ts 335 | ); 336 | 337 | public record Delivered( 338 | [property: JsonPropertyName("consumer_seq")] long ConsumerSeq, 339 | [property: JsonPropertyName("stream_seq")] long StreamSeq, 340 | [property: JsonPropertyName("last_active")] DateTime? LastActive 341 | ); 342 | 343 | public record AckFloor( 344 | [property: JsonPropertyName("consumer_seq")] long ConsumerSeq, 345 | [property: JsonPropertyName("stream_seq")] long StreamSeq, 346 | [property: JsonPropertyName("last_active")] DateTime? LastActive 347 | ); -------------------------------------------------------------------------------- /src/NatsViewer.Client/NatsViewer.Client.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | enable 6 | enable 7 | Preview 8 | Nullable 9 | true 10 | Default 11 | Linux 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | .dockerignore 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/NatsViewer.Client/Pages/Counter.razor: -------------------------------------------------------------------------------- 1 | @page "/counter" 2 | @rendermode InteractiveAuto 3 | 4 | Counter 5 | 6 |

Counter

7 | 8 |

Current count: @currentCount

9 | 10 | 11 | 12 | @code { 13 | private int currentCount = 0; 14 | 15 | private void IncrementCount() 16 | { 17 | currentCount++; 18 | } 19 | 20 | } -------------------------------------------------------------------------------- /src/NatsViewer.Client/Program.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Components.WebAssembly.Hosting; 2 | 3 | var builder = WebAssemblyHostBuilder.CreateDefault(args); 4 | 5 | await builder.Build().RunAsync(); -------------------------------------------------------------------------------- /src/NatsViewer.Client/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using System.Net.Http 2 | @using System.Net.Http.Json 3 | @using Microsoft.AspNetCore.Components.Forms 4 | @using Microsoft.AspNetCore.Components.Routing 5 | @using Microsoft.AspNetCore.Components.Web 6 | @using static Microsoft.AspNetCore.Components.Web.RenderMode 7 | @using Microsoft.AspNetCore.Components.Web.Virtualization 8 | @using Microsoft.JSInterop 9 | @using NatsViewer.Client -------------------------------------------------------------------------------- /src/NatsViewer.Client/wwwroot/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/NatsViewer.Client/wwwroot/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/NatsViewer.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NatsViewer", "NatsViewer\NatsViewer.csproj", "{9DE5565F-B1CA-49C8-986E-5338A3604F67}" 4 | EndProject 5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NatsViewer.Client", "NatsViewer.Client\NatsViewer.Client.csproj", "{6FCA2517-5D96-4969-A7DA-7CB81F8E57A2}" 6 | EndProject 7 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{31DBAD26-D276-4A30-B9D5-79CA38B36116}" 8 | ProjectSection(SolutionItems) = preProject 9 | docker-compose.yml = docker-compose.yml 10 | EndProjectSection 11 | EndProject 12 | Global 13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 14 | Debug|Any CPU = Debug|Any CPU 15 | Release|Any CPU = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 18 | {9DE5565F-B1CA-49C8-986E-5338A3604F67}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 19 | {9DE5565F-B1CA-49C8-986E-5338A3604F67}.Debug|Any CPU.Build.0 = Debug|Any CPU 20 | {9DE5565F-B1CA-49C8-986E-5338A3604F67}.Release|Any CPU.ActiveCfg = Release|Any CPU 21 | {9DE5565F-B1CA-49C8-986E-5338A3604F67}.Release|Any CPU.Build.0 = Release|Any CPU 22 | {6FCA2517-5D96-4969-A7DA-7CB81F8E57A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 23 | {6FCA2517-5D96-4969-A7DA-7CB81F8E57A2}.Debug|Any CPU.Build.0 = Debug|Any CPU 24 | {6FCA2517-5D96-4969-A7DA-7CB81F8E57A2}.Release|Any CPU.ActiveCfg = Release|Any CPU 25 | {6FCA2517-5D96-4969-A7DA-7CB81F8E57A2}.Release|Any CPU.Build.0 = Release|Any CPU 26 | EndGlobalSection 27 | EndGlobal 28 | -------------------------------------------------------------------------------- /src/NatsViewer/Components/App.razor: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /src/NatsViewer/Components/Layout/MainLayout.razor: -------------------------------------------------------------------------------- 1 | @inherits LayoutComponentBase 2 | 3 | 4 | Overview 5 | JetStream 6 | 7 |
8 |
9 | @Body 10 |
11 |
12 | 13 | @*
*@ 14 | @* An unhandled error has occurred. *@ 15 | @* Reload *@ 16 | @* 🗙 *@ 17 | @*
*@ -------------------------------------------------------------------------------- /src/NatsViewer/Components/Layout/MainLayout.razor.css: -------------------------------------------------------------------------------- 1 | .page { 2 | position: relative; 3 | display: flex; 4 | flex-direction: column; 5 | } 6 | 7 | main { 8 | flex: 1; 9 | } 10 | 11 | .sidebar { 12 | background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%); 13 | } 14 | 15 | .top-row { 16 | background-color: #f7f7f7; 17 | border-bottom: 1px solid #d6d5d5; 18 | justify-content: flex-end; 19 | height: 3.5rem; 20 | display: flex; 21 | align-items: center; 22 | } 23 | 24 | .top-row ::deep a, .top-row ::deep .btn-link { 25 | white-space: nowrap; 26 | margin-left: 1.5rem; 27 | text-decoration: none; 28 | } 29 | 30 | .top-row ::deep a:hover, .top-row ::deep .btn-link:hover { 31 | text-decoration: underline; 32 | } 33 | 34 | .top-row ::deep a:first-child { 35 | overflow: hidden; 36 | text-overflow: ellipsis; 37 | } 38 | 39 | @media (max-width: 640.98px) { 40 | .top-row { 41 | justify-content: space-between; 42 | } 43 | 44 | .top-row ::deep a, .top-row ::deep .btn-link { 45 | margin-left: 0; 46 | } 47 | } 48 | 49 | @media (min-width: 641px) { 50 | .page { 51 | flex-direction: row; 52 | } 53 | 54 | .sidebar { 55 | width: 250px; 56 | height: 100vh; 57 | position: sticky; 58 | top: 0; 59 | } 60 | 61 | .top-row { 62 | position: sticky; 63 | top: 0; 64 | z-index: 1; 65 | } 66 | 67 | .top-row.auth ::deep a:first-child { 68 | flex: 1; 69 | text-align: right; 70 | width: 0; 71 | } 72 | 73 | .top-row, article { 74 | padding-left: 2rem !important; 75 | padding-right: 1.5rem !important; 76 | } 77 | } 78 | 79 | #blazor-error-ui { 80 | background: lightyellow; 81 | bottom: 0; 82 | box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); 83 | display: none; 84 | left: 0; 85 | padding: 0.6rem 1.25rem 0.7rem 1.25rem; 86 | position: fixed; 87 | width: 100%; 88 | z-index: 1000; 89 | } 90 | 91 | #blazor-error-ui .dismiss { 92 | cursor: pointer; 93 | position: absolute; 94 | right: 0.75rem; 95 | top: 0.5rem; 96 | } 97 | -------------------------------------------------------------------------------- /src/NatsViewer/Components/Layout/NavMenu.razor: -------------------------------------------------------------------------------- 1 |  6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/NatsViewer/Components/Layout/NavMenu.razor.css: -------------------------------------------------------------------------------- 1 | .navbar-toggler { 2 | appearance: none; 3 | cursor: pointer; 4 | width: 3.5rem; 5 | height: 2.5rem; 6 | color: white; 7 | position: absolute; 8 | top: 0.5rem; 9 | right: 1rem; 10 | border: 1px solid rgba(255, 255, 255, 0.1); 11 | background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1); 12 | } 13 | 14 | .navbar-toggler:checked { 15 | background-color: rgba(255, 255, 255, 0.5); 16 | } 17 | 18 | .top-row { 19 | height: 3.5rem; 20 | background-color: rgba(0,0,0,0.4); 21 | } 22 | 23 | .navbar-brand { 24 | font-size: 1.1rem; 25 | } 26 | 27 | .bi { 28 | display: inline-block; 29 | position: relative; 30 | width: 1.25rem; 31 | height: 1.25rem; 32 | margin-right: 0.75rem; 33 | top: -1px; 34 | background-size: cover; 35 | } 36 | 37 | .bi-house-door-fill-nav-menu { 38 | background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E"); 39 | } 40 | 41 | .bi-plus-square-fill-nav-menu { 42 | background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E"); 43 | } 44 | 45 | .bi-list-nested-nav-menu { 46 | background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E"); 47 | } 48 | 49 | .nav-item { 50 | font-size: 0.9rem; 51 | padding-bottom: 0.5rem; 52 | } 53 | 54 | .nav-item:first-of-type { 55 | padding-top: 1rem; 56 | } 57 | 58 | .nav-item:last-of-type { 59 | padding-bottom: 1rem; 60 | } 61 | 62 | .nav-item ::deep .nav-link { 63 | color: #d7d7d7; 64 | background: none; 65 | border: none; 66 | border-radius: 4px; 67 | height: 3rem; 68 | display: flex; 69 | align-items: center; 70 | line-height: 3rem; 71 | width: 100%; 72 | } 73 | 74 | .nav-item ::deep a.active { 75 | background-color: rgba(255,255,255,0.37); 76 | color: white; 77 | } 78 | 79 | .nav-item ::deep .nav-link:hover { 80 | background-color: rgba(255,255,255,0.1); 81 | color: white; 82 | } 83 | 84 | .nav-scrollable { 85 | display: none; 86 | } 87 | 88 | .navbar-toggler:checked ~ .nav-scrollable { 89 | display: block; 90 | } 91 | 92 | @media (min-width: 641px) { 93 | .navbar-toggler { 94 | display: none; 95 | } 96 | 97 | .nav-scrollable { 98 | /* Never collapse the sidebar for wide screens */ 99 | display: block; 100 | 101 | /* Allow sidebar to scroll for tall menus */ 102 | height: calc(100vh - 3.5rem); 103 | overflow-y: auto; 104 | } 105 | } 106 | -------------------------------------------------------------------------------- /src/NatsViewer/Components/Pages/Error.razor: -------------------------------------------------------------------------------- 1 | @page "/Error" 2 | @using System.Diagnostics 3 | 4 | Error 5 | 6 |

Error.

7 |

An error occurred while processing your request.

8 | 9 | @if (ShowRequestId) 10 | { 11 |

12 | Request ID: @RequestId 13 |

14 | } 15 | 16 |

Development Mode

17 |

18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |

20 |

21 | The Development environment shouldn't be enabled for deployed applications. 22 | It can result in displaying sensitive information from exceptions to end users. 23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 24 | and restarting the app. 25 |

26 | 27 | @code{ 28 | [CascadingParameter] private HttpContext? HttpContext { get; set; } 29 | 30 | private string? RequestId { get; set; } 31 | private bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 32 | 33 | protected override void OnInitialized() => 34 | RequestId = Activity.Current?.Id ?? HttpContext?.TraceIdentifier; 35 | 36 | } -------------------------------------------------------------------------------- /src/NatsViewer/Components/Pages/Home.razor: -------------------------------------------------------------------------------- 1 | @page "/" 2 | @using Humanizer 3 | @inject NatsMonitorClient Client 4 | 5 | Overview 6 | Overview 7 | 8 | @if (HealthCheckResult?.Healthy == false) 9 | { 10 | NATS server unavailable. Is your service running? 11 | } 12 |
13 | 14 |
15 | Server ID 16 | @ServerInfo?.ServerId 17 |
18 |
19 | Server Name 20 | @ServerInfo?.ServerName 21 |
22 |
23 |
24 |
25 | Version 26 | @ServerInfo?.Version 27 |
28 |
29 | Proto 30 | @ServerInfo?.Proto 31 |
32 |
33 | Git Commit 34 | @ServerInfo?.GitCommit 35 |
36 |
37 | Go 38 | @ServerInfo?.Go 39 |
40 |
41 | Host 42 | @ServerInfo?.Host 43 |
44 |
45 | Port 46 | @ServerInfo?.Port 47 |
48 |
49 | Max Connections 50 | @ServerInfo?.MaxConnections 51 |
52 |
53 | Ping Interval 54 | @ServerInfo?.PingInterval 55 |
56 |
57 | Ping Max 58 | @ServerInfo?.PingMax 59 |
60 |
61 | HTTP Host 62 | @ServerInfo?.HttpHost 63 |
64 |
65 | HTTP Port 66 | @ServerInfo?.HttpPort 67 |
68 |
69 | HTTP Base Path 70 | @ServerInfo?.HttpBasePath 71 |
72 |
73 | HTTPS Port 74 | @ServerInfo?.HttpsPort 75 |
76 |
77 | Auth Timeout 78 | @ServerInfo?.AuthTimeout 79 |
80 |
81 | Max Control Line 82 | @ServerInfo?.MaxControlLine 83 |
84 |
85 | Max Payload 86 | @ServerInfo?.MaxPayload 87 |
88 |
89 | Max Pending 90 | @ServerInfo?.MaxPending 91 |
92 |
93 | TLS Timeout 94 | @ServerInfo?.TlsTimeout 95 |
96 |
97 | Write Deadline 98 | @ServerInfo?.WriteDeadline 99 |
100 |
101 | Start 102 | @ServerInfo?.Start 103 |
104 |
105 | Now 106 | @ServerInfo?.Now 107 |
108 |
109 |
110 |
111 | Uptime 112 | @ServerInfo?.Uptime 113 |
114 |
115 | Memory 116 | @ServerInfo?.Mem 117 |
118 |
119 | Cores 120 | @ServerInfo?.Cores 121 |
122 |
123 | Go Max Procs 124 | @ServerInfo?.Gomaxprocs 125 |
126 |
127 | CPU 128 | @ServerInfo?.Cpu 129 |
130 |
131 | Connections 132 | @ServerInfo?.Connections 133 |
134 |
135 | Total Connections 136 | @ServerInfo?.TotalConnections 137 |
138 |
139 | Routes 140 | @ServerInfo?.Routes 141 |
142 |
143 | Remotes 144 | @ServerInfo?.Remotes 145 |
146 |
147 | Leaf Nodes 148 | @ServerInfo?.Leafnodes 149 |
150 |
151 | In Messages 152 | @ServerInfo?.InMsgs 153 |
154 |
155 | Out Messages 156 | @ServerInfo?.OutMsgs 157 |
158 |
159 | In Bytes 160 | @ServerInfo?.InBytes 161 |
162 |
163 | Out Bytes 164 | @ServerInfo?.OutBytes 165 |
166 |
167 | Slow Consumers 168 | @ServerInfo?.SlowConsumers 169 |
170 |
171 | Subscriptions 172 | @ServerInfo?.Subscriptions 173 |
174 |
175 | Config Load Time 176 | @ServerInfo?.ConfigLoadTime 177 |
178 |
179 | System Account 180 | @ServerInfo?.SystemAccount 181 |
182 |
183 |
184 |
185 |
186 | 187 |
188 |
189 |
190 | Max Memory 191 | @ServerInfo?.JetStream?.Config?.MaxMemory.Kilobytes() 192 |
193 |
194 | Max Storage 195 | @ServerInfo?.JetStream?.Config?.MaxStorage.Kilobytes() 196 |
197 |
198 | Store Dir 199 | @ServerInfo?.JetStream?.Config?.StoreDir 200 |
201 |
202 | Sync Interval 203 | @ServerInfo?.JetStream?.Config?.SyncInterval 204 |
205 |
206 |
207 |
208 | Memory 209 | @ServerInfo?.JetStream?.Stats?.Memory.Kilobytes() 210 |
211 |
212 | Storage 213 | @ServerInfo?.JetStream?.Stats?.Storage.Kilobytes() 214 |
215 |
216 | Reserved Memory 217 | @ServerInfo?.JetStream?.Stats?.ReservedMemory.Kilobytes() 218 |
219 |
220 | Reserved Storage 221 | @ServerInfo?.JetStream?.Stats?.ReservedStorage.Kilobytes() 222 |
223 |
224 | Accounts 225 | @ServerInfo?.JetStream?.Stats?.Accounts 226 |
227 |
228 | HA Assets 229 | @ServerInfo?.JetStream?.Stats?.HaAssets 230 |
231 |
232 |
233 |
234 | 235 | 236 |
237 | Total 238 | @ServerInfo?.JetStream?.Stats?.Api?.Total 239 |
240 |
241 | Errors 242 | @ServerInfo?.JetStream?.Stats?.Api?.Errors 243 |
244 |
245 | 246 | 247 |
248 | Clients 249 | @ServerInfo?.SlowConsumerStats?.Clients 250 |
251 |
252 | Routes 253 | @ServerInfo?.SlowConsumerStats?.Routes 254 |
255 |
256 | Gateways 257 | @ServerInfo?.SlowConsumerStats?.Gateways 258 |
259 |
260 | Leafs 261 | @ServerInfo?.SlowConsumerStats?.Leafs 262 |
263 |
264 |
265 |
266 | 267 | @code { 268 | private HealthCheckResult? HealthCheckResult { get; set; } 269 | private ServerInfo? ServerInfo { get; set; } 270 | 271 | protected override async Task OnInitializedAsync() 272 | { 273 | ServerInfo = await Client.GetServerInfo(); 274 | HealthCheckResult = await Client.HealthCheck(); 275 | // await using var nats = new NatsConnection(); 276 | // var js = new NatsJSContext(nats); 277 | // 278 | // await js.CreateStreamAsync(new StreamConfig(name: "orders", subjects: new[] { "orders.>" })); 279 | // 280 | // var consumer = await js.CreateOrderedConsumerAsync("HOSTING"); 281 | // consumer.ConsumeAsync(null, null, CancellationToken.None); 282 | } 283 | 284 | } -------------------------------------------------------------------------------- /src/NatsViewer/Components/Pages/JetStream.razor: -------------------------------------------------------------------------------- 1 | @page "/JetStream" 2 | @using Humanizer 3 | @inject NatsMonitorClient Client 4 | @rendermode InteractiveServer 5 | JetStream Monitoring 6 | JetStream Monitoring 7 | @if (HealthCheckResult?.Healthy == false) 8 | { 9 | NATS server unavailable. Is your service running? 10 | } 11 |
12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | @foreach (var stream in (Model?.AccountDetails ?? []).SelectMany(p => p.StreamDetail).OrderByDescending(p => p.State.LastTs)) 30 | { 31 | 32 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | } 45 | 46 |
ClusterStreamConsumersMessagesSubjectsFirst SeqLast SeqLast TsCreated
33 | @stream.Cluster.Leader 34 | @stream.Name@stream.State.ConsumerCount@stream.State.Messages@stream.State.NumSubjects@stream.State.FirstSeq@stream.State.LastSeq@stream.State.LastTs.Humanize()@stream.Created.Humanize()
47 |
48 | 49 | @if (SelectedStream is not null) 50 | { 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | @foreach (var consumer in (SelectedStream.ConsumerDetail ?? []).OrderBy(p => p.Name)) 66 | { 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | } 78 | 79 |
NameStreamPendingAckRedeliveredWaitingCreatedLast Ts
@consumer.Name@consumer.StreamName@consumer.NumPending@consumer.NumAckPending@consumer.NumRedelivered@consumer.NumWaiting@consumer.Created.Humanize()@consumer.Ts.Humanize()
80 | } 81 |
82 |
83 |
84 | 85 |
86 | Server ID 87 | @Model?.ServerId 88 |
89 |
90 | Memory 91 | @Model?.Memory.Kilobytes() 92 |
93 |
94 | Storage 95 | @Model?.Storage.Kilobytes() 96 |
97 |
98 | Reserved Memory 99 | @Model?.ReservedMemory.Kilobytes() 100 |
101 |
102 | Reserved Storage 103 | @Model?.ReservedStorage.Kilobytes() 104 |
105 |
106 | Accounts 107 | @Model?.Accounts 108 |
109 |
110 | HA Assets 111 | @Model?.HaAssets 112 |
113 |
114 | API Total 115 | @Model?.Api?.Total 116 |
117 |
118 | API Errors 119 | @Model?.Api?.Errors 120 |
121 | 122 |
123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | @foreach (var account in Model?.AccountDetails ?? []) 140 | { 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | } 152 | 153 |
NameIdMemoryStorageAccountsHA AssetsAPI TotalAPI Errors
@account.Name@account.Id@account.Memory.Kilobytes()@account.Storage.Kilobytes()@account.Accounts@account.HaAssets@account.Api.Total@account.Api.Errors
154 |
155 |
156 |
157 | 158 | @code { 159 | private HealthCheckResult? HealthCheckResult { get; set; } 160 | private ExpandedJetStreamInfo? Model { get; set; } 161 | private StreamDetail? SelectedStream { get; set; } 162 | 163 | protected override async Task OnInitializedAsync() 164 | { 165 | Model = await Client.GetExpandedJetStreamInfo(); 166 | HealthCheckResult = await Client.HealthCheck(); 167 | } 168 | 169 | } -------------------------------------------------------------------------------- /src/NatsViewer/Components/Routes.razor: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/NatsViewer/Components/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using System.Net.Http 2 | @using System.Net.Http.Json 3 | @using Microsoft.AspNetCore.Components.Forms 4 | @using Microsoft.AspNetCore.Components.Routing 5 | @using Microsoft.AspNetCore.Components.Web 6 | @using static Microsoft.AspNetCore.Components.Web.RenderMode 7 | @using Microsoft.AspNetCore.Components.Web.Virtualization 8 | @using Microsoft.JSInterop 9 | @using NatsViewer 10 | @using NatsViewer.Client 11 | @using NatsViewer.Components 12 | 13 | @using Pure.Blazor.Components 14 | @using Pure.Blazor.Components.Buttons 15 | @using Pure.Blazor.Components.Common 16 | @using Pure.Blazor.Components.Banners 17 | @using Pure.Blazor.Components.Dialogs 18 | @using Pure.Blazor.Components.Forms 19 | @using Pure.Blazor.Components.Layout 20 | @using Pure.Blazor.Components.Icons 21 | @using Pure.Blazor.Components.Essentials 22 | @using Pure.Blazor.Components.Feedback 23 | @using Pure.Blazor.Components.Navigation -------------------------------------------------------------------------------- /src/NatsViewer/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base 2 | USER $APP_UID 3 | WORKDIR /app 4 | EXPOSE 8080 5 | EXPOSE 8081 6 | 7 | FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build 8 | ARG BUILD_CONFIGURATION=Release 9 | WORKDIR /src 10 | COPY ["BlazorApp1/BlazorApp1/BlazorApp1.csproj", "BlazorApp1/BlazorApp1/"] 11 | COPY ["BlazorApp1/BlazorApp1.Client/BlazorApp1.Client.csproj", "BlazorApp1/BlazorApp1.Client/"] 12 | RUN dotnet restore "BlazorApp1/BlazorApp1/BlazorApp1.csproj" 13 | COPY . . 14 | WORKDIR "/src/BlazorApp1/BlazorApp1" 15 | RUN dotnet build "BlazorApp1.csproj" -c $BUILD_CONFIGURATION -o /app/build 16 | 17 | FROM build AS publish 18 | ARG BUILD_CONFIGURATION=Release 19 | RUN dotnet publish "BlazorApp1.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false 20 | 21 | FROM base AS final 22 | WORKDIR /app 23 | COPY --from=publish /app/publish . 24 | ENTRYPOINT ["dotnet", "BlazorApp1.dll"] 25 | -------------------------------------------------------------------------------- /src/NatsViewer/NatsViewer.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | enable 6 | Preview 7 | Nullable 8 | enable 9 | Linux 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | .dockerignore 22 | 23 | 24 | 25 | 26 | <_ContentIncludedByDefault Remove="wwwroot\bootstrap\bootstrap.min.css" /> 27 | <_ContentIncludedByDefault Remove="wwwroot\bootstrap\bootstrap.min.css.map" /> 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /src/NatsViewer/Program.cs: -------------------------------------------------------------------------------- 1 | using NatsViewer.Client; 2 | using NatsViewer.Components; 3 | 4 | var builder = WebApplication.CreateBuilder(args); 5 | 6 | // Add services to the container. 7 | builder.Services.AddRazorComponents() 8 | .AddInteractiveServerComponents() 9 | .AddInteractiveWebAssemblyComponents(); 10 | 11 | builder.Services.AddHttpClient(c => 12 | { 13 | c.BaseAddress = new Uri("http://localhost:8222"); 14 | }); 15 | 16 | var app = builder.Build(); 17 | 18 | // Configure the HTTP request pipeline. 19 | if (app.Environment.IsDevelopment()) 20 | { 21 | app.UseWebAssemblyDebugging(); 22 | } 23 | else 24 | { 25 | app.UseExceptionHandler("/Error", createScopeForErrors: true); 26 | // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. 27 | app.UseHsts(); 28 | } 29 | 30 | app.UseHttpsRedirection(); 31 | 32 | app.UseStaticFiles(); 33 | app.UseAntiforgery(); 34 | 35 | app.MapRazorComponents() 36 | .AddInteractiveServerRenderMode() 37 | .AddInteractiveWebAssemblyRenderMode() 38 | .AddAdditionalAssemblies(typeof(NatsViewer.Client._Imports).Assembly); 39 | 40 | app.Run(); -------------------------------------------------------------------------------- /src/NatsViewer/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/launchsettings.json", 3 | "iisSettings": { 4 | "windowsAuthentication": false, 5 | "anonymousAuthentication": true, 6 | "iisExpress": { 7 | "applicationUrl": "http://localhost:27873", 8 | "sslPort": 44385 9 | } 10 | }, 11 | "profiles": { 12 | "NatsViewer": { 13 | "commandName": "Project", 14 | "dotnetRunMessages": true, 15 | "launchBrowser": false, 16 | "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", 17 | "applicationUrl": "https://localhost:7063", 18 | "environmentVariables": { 19 | "ASPNETCORE_ENVIRONMENT": "Development" 20 | } 21 | }, 22 | "IIS Express": { 23 | "commandName": "IISExpress", 24 | "launchBrowser": true, 25 | "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", 26 | "environmentVariables": { 27 | "ASPNETCORE_ENVIRONMENT": "Development" 28 | } 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/NatsViewer/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/NatsViewer/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*" 9 | } 10 | -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/app.css: -------------------------------------------------------------------------------- 1 | .blazor-error-boundary { 2 | background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121; 3 | padding: 1rem 1rem 1rem 3.7rem; 4 | color: white; 5 | } 6 | 7 | .blazor-error-boundary::after { 8 | content: "An error has occurred." 9 | } -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/favicon.png -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/Inter-Black.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/Inter-Black.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/Inter-BlackItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/Inter-BlackItalic.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/Inter-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/Inter-Bold.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/Inter-BoldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/Inter-BoldItalic.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/Inter-ExtraBold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/Inter-ExtraBold.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/Inter-ExtraBoldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/Inter-ExtraBoldItalic.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/Inter-ExtraLight.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/Inter-ExtraLight.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/Inter-ExtraLightItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/Inter-ExtraLightItalic.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/Inter-Italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/Inter-Italic.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/Inter-Light.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/Inter-Light.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/Inter-LightItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/Inter-LightItalic.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/Inter-Medium.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/Inter-Medium.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/Inter-MediumItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/Inter-MediumItalic.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/Inter-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/Inter-Regular.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/Inter-SemiBold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/Inter-SemiBold.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/Inter-SemiBoldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/Inter-SemiBoldItalic.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/Inter-Thin.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/Inter-Thin.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/Inter-ThinItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/Inter-ThinItalic.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/InterDisplay-Black.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/InterDisplay-Black.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/InterDisplay-BlackItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/InterDisplay-BlackItalic.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/InterDisplay-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/InterDisplay-Bold.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/InterDisplay-BoldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/InterDisplay-BoldItalic.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/InterDisplay-ExtraBold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/InterDisplay-ExtraBold.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/InterDisplay-ExtraBoldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/InterDisplay-ExtraBoldItalic.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/InterDisplay-ExtraLight.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/InterDisplay-ExtraLight.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/InterDisplay-ExtraLightItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/InterDisplay-ExtraLightItalic.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/InterDisplay-Italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/InterDisplay-Italic.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/InterDisplay-Light.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/InterDisplay-Light.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/InterDisplay-LightItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/InterDisplay-LightItalic.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/InterDisplay-Medium.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/InterDisplay-Medium.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/InterDisplay-MediumItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/InterDisplay-MediumItalic.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/InterDisplay-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/InterDisplay-Regular.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/InterDisplay-SemiBold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/InterDisplay-SemiBold.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/InterDisplay-SemiBoldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/InterDisplay-SemiBoldItalic.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/InterDisplay-Thin.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/InterDisplay-Thin.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/InterDisplay-ThinItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/InterDisplay-ThinItalic.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/InterVariable-Italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/InterVariable-Italic.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/InterVariable.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureblazor/nats-viewer/84381d3b8f734e73780b96908d31d733facd4398/src/NatsViewer/wwwroot/inter/InterVariable.woff2 -------------------------------------------------------------------------------- /src/NatsViewer/wwwroot/inter/inter.css: -------------------------------------------------------------------------------- 1 | /* Variable fonts usage: 2 | :root { font-family: "Inter", sans-serif; } 3 | @supports (font-variation-settings: normal) { 4 | :root { font-family: "InterVariable", sans-serif; font-optical-sizing: auto; } 5 | } */ 6 | @font-face { 7 | font-family: InterVariable; 8 | font-style: normal; 9 | font-weight: 100 900; 10 | font-display: swap; 11 | src: url("InterVariable.woff2") format("woff2"); 12 | } 13 | @font-face { 14 | font-family: InterVariable; 15 | font-style: italic; 16 | font-weight: 100 900; 17 | font-display: swap; 18 | src: url("InterVariable-Italic.woff2") format("woff2"); 19 | } 20 | 21 | /* static fonts */ 22 | @font-face { font-family: "Inter"; font-style: normal; font-weight: 100; font-display: swap; src: url("Inter-Thin.woff2") format("woff2"); } 23 | @font-face { font-family: "Inter"; font-style: italic; font-weight: 100; font-display: swap; src: url("Inter-ThinItalic.woff2") format("woff2"); } 24 | @font-face { font-family: "Inter"; font-style: normal; font-weight: 200; font-display: swap; src: url("Inter-ExtraLight.woff2") format("woff2"); } 25 | @font-face { font-family: "Inter"; font-style: italic; font-weight: 200; font-display: swap; src: url("Inter-ExtraLightItalic.woff2") format("woff2"); } 26 | @font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("Inter-Light.woff2") format("woff2"); } 27 | @font-face { font-family: "Inter"; font-style: italic; font-weight: 300; font-display: swap; src: url("Inter-LightItalic.woff2") format("woff2"); } 28 | @font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("Inter-Regular.woff2") format("woff2"); } 29 | @font-face { font-family: "Inter"; font-style: italic; font-weight: 400; font-display: swap; src: url("Inter-Italic.woff2") format("woff2"); } 30 | @font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("Inter-Medium.woff2") format("woff2"); } 31 | @font-face { font-family: "Inter"; font-style: italic; font-weight: 500; font-display: swap; src: url("Inter-MediumItalic.woff2") format("woff2"); } 32 | @font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("Inter-SemiBold.woff2") format("woff2"); } 33 | @font-face { font-family: "Inter"; font-style: italic; font-weight: 600; font-display: swap; src: url("Inter-SemiBoldItalic.woff2") format("woff2"); } 34 | @font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("Inter-Bold.woff2") format("woff2"); } 35 | @font-face { font-family: "Inter"; font-style: italic; font-weight: 700; font-display: swap; src: url("Inter-BoldItalic.woff2") format("woff2"); } 36 | @font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("Inter-ExtraBold.woff2") format("woff2"); } 37 | @font-face { font-family: "Inter"; font-style: italic; font-weight: 800; font-display: swap; src: url("Inter-ExtraBoldItalic.woff2") format("woff2"); } 38 | @font-face { font-family: "Inter"; font-style: normal; font-weight: 900; font-display: swap; src: url("Inter-Black.woff2") format("woff2"); } 39 | @font-face { font-family: "Inter"; font-style: italic; font-weight: 900; font-display: swap; src: url("Inter-BlackItalic.woff2") format("woff2"); } 40 | @font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 100; font-display: swap; src: url("InterDisplay-Thin.woff2") format("woff2"); } 41 | @font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 100; font-display: swap; src: url("InterDisplay-ThinItalic.woff2") format("woff2"); } 42 | @font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 200; font-display: swap; src: url("InterDisplay-ExtraLight.woff2") format("woff2"); } 43 | @font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 200; font-display: swap; src: url("InterDisplay-ExtraLightItalic.woff2") format("woff2"); } 44 | @font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 300; font-display: swap; src: url("InterDisplay-Light.woff2") format("woff2"); } 45 | @font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 300; font-display: swap; src: url("InterDisplay-LightItalic.woff2") format("woff2"); } 46 | @font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 400; font-display: swap; src: url("InterDisplay-Regular.woff2") format("woff2"); } 47 | @font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 400; font-display: swap; src: url("InterDisplay-Italic.woff2") format("woff2"); } 48 | @font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 500; font-display: swap; src: url("InterDisplay-Medium.woff2") format("woff2"); } 49 | @font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 500; font-display: swap; src: url("InterDisplay-MediumItalic.woff2") format("woff2"); } 50 | @font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 600; font-display: swap; src: url("InterDisplay-SemiBold.woff2") format("woff2"); } 51 | @font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 600; font-display: swap; src: url("InterDisplay-SemiBoldItalic.woff2") format("woff2"); } 52 | @font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 700; font-display: swap; src: url("InterDisplay-Bold.woff2") format("woff2"); } 53 | @font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 700; font-display: swap; src: url("InterDisplay-BoldItalic.woff2") format("woff2"); } 54 | @font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 800; font-display: swap; src: url("InterDisplay-ExtraBold.woff2") format("woff2"); } 55 | @font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 800; font-display: swap; src: url("InterDisplay-ExtraBoldItalic.woff2") format("woff2"); } 56 | @font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 900; font-display: swap; src: url("InterDisplay-Black.woff2") format("woff2"); } 57 | @font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 900; font-display: swap; src: url("InterDisplay-BlackItalic.woff2") format("woff2"); } 58 | -------------------------------------------------------------------------------- /src/docker-compose.yml: -------------------------------------------------------------------------------- 1 | services: 2 | blazorapp1: 3 | image: blazorapp1 4 | build: 5 | context: . 6 | dockerfile: BlazorApp1/BlazorApp1/Dockerfile 7 | 8 | blazorapp1.client: 9 | image: blazorapp1.client 10 | build: 11 | context: . 12 | dockerfile: BlazorApp1/BlazorApp1.Client/Dockerfile 13 | --------------------------------------------------------------------------------