PWA Fundvelo der Caritas.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

NavMenu.razor.g.cs 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  1. #pragma checksum "D:\Work\Caritas\CaritasPWA\Shared\NavMenu.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "1d60d0e8140e16fff6ba108f7aa2a299015a6a5f"
  2. // <auto-generated/>
  3. #pragma warning disable 1591
  4. namespace CaritasPWA.Shared
  5. {
  6. #line hidden
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Linq;
  10. using System.Threading.Tasks;
  11. using Microsoft.AspNetCore.Components;
  12. #nullable restore
  13. #line 1 "D:\Work\Caritas\CaritasPWA\_Imports.razor"
  14. using System.Net.Http;
  15. #line default
  16. #line hidden
  17. #nullable disable
  18. #nullable restore
  19. #line 2 "D:\Work\Caritas\CaritasPWA\_Imports.razor"
  20. using System.Net.Http.Json;
  21. #line default
  22. #line hidden
  23. #nullable disable
  24. #nullable restore
  25. #line 3 "D:\Work\Caritas\CaritasPWA\_Imports.razor"
  26. using Microsoft.AspNetCore.Components.Forms;
  27. #line default
  28. #line hidden
  29. #nullable disable
  30. #nullable restore
  31. #line 4 "D:\Work\Caritas\CaritasPWA\_Imports.razor"
  32. using Microsoft.AspNetCore.Components.Routing;
  33. #line default
  34. #line hidden
  35. #nullable disable
  36. #nullable restore
  37. #line 5 "D:\Work\Caritas\CaritasPWA\_Imports.razor"
  38. using Microsoft.AspNetCore.Components.Web;
  39. #line default
  40. #line hidden
  41. #nullable disable
  42. #nullable restore
  43. #line 6 "D:\Work\Caritas\CaritasPWA\_Imports.razor"
  44. using Microsoft.AspNetCore.Components.WebAssembly.Http;
  45. #line default
  46. #line hidden
  47. #nullable disable
  48. #nullable restore
  49. #line 7 "D:\Work\Caritas\CaritasPWA\_Imports.razor"
  50. using Microsoft.JSInterop;
  51. #line default
  52. #line hidden
  53. #nullable disable
  54. #nullable restore
  55. #line 8 "D:\Work\Caritas\CaritasPWA\_Imports.razor"
  56. using CaritasPWA;
  57. #line default
  58. #line hidden
  59. #nullable disable
  60. #nullable restore
  61. #line 9 "D:\Work\Caritas\CaritasPWA\_Imports.razor"
  62. using CaritasPWA.Shared;
  63. #line default
  64. #line hidden
  65. #nullable disable
  66. #nullable restore
  67. #line 10 "D:\Work\Caritas\CaritasPWA\_Imports.razor"
  68. using MatBlazor;
  69. #line default
  70. #line hidden
  71. #nullable disable
  72. public partial class NavMenu : Microsoft.AspNetCore.Components.ComponentBase
  73. {
  74. #pragma warning disable 1998
  75. protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
  76. {
  77. __builder.OpenComponent<MatBlazor.MatAppBarContainer>(0);
  78. __builder.AddAttribute(1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
  79. __builder2.AddMarkupContent(2, "\r\n ");
  80. __builder2.OpenComponent<MatBlazor.MatAppBar>(3);
  81. __builder2.AddAttribute(4, "Fixed", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.Boolean>(
  82. #nullable restore
  83. #line 2 "D:\Work\Caritas\CaritasPWA\Shared\NavMenu.razor"
  84. true
  85. #line default
  86. #line hidden
  87. #nullable disable
  88. ));
  89. __builder2.AddAttribute(5, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder3) => {
  90. __builder3.AddMarkupContent(6, "\r\n ");
  91. __builder3.OpenComponent<MatBlazor.MatAppBarRow>(7);
  92. __builder3.AddAttribute(8, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder4) => {
  93. __builder4.AddMarkupContent(9, "\r\n ");
  94. __builder4.OpenComponent<MatBlazor.MatAppBarSection>(10);
  95. __builder4.AddAttribute(11, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder5) => {
  96. __builder5.AddMarkupContent(12, "\r\n ");
  97. __builder5.OpenComponent<MatBlazor.MatIconButton>(13);
  98. __builder5.AddAttribute(14, "Icon", "menu");
  99. __builder5.AddAttribute(15, "OnClick", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<Microsoft.AspNetCore.Components.EventCallback<Microsoft.AspNetCore.Components.Web.MouseEventArgs>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
  100. #nullable restore
  101. #line 5 "D:\Work\Caritas\CaritasPWA\Shared\NavMenu.razor"
  102. (e) => ButtonClicked()
  103. #line default
  104. #line hidden
  105. #nullable disable
  106. )));
  107. __builder5.CloseComponent();
  108. __builder5.AddMarkupContent(16, "\r\n ");
  109. __builder5.OpenComponent<MatBlazor.MatAppBarTitle>(17);
  110. __builder5.AddAttribute(18, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder6) => {
  111. __builder6.AddContent(19, "CaritasPWA");
  112. }
  113. ));
  114. __builder5.CloseComponent();
  115. __builder5.AddMarkupContent(20, "\r\n ");
  116. }
  117. ));
  118. __builder4.CloseComponent();
  119. __builder4.AddMarkupContent(21, "\r\n ");
  120. __builder4.OpenComponent<MatBlazor.MatAppBarSection>(22);
  121. __builder4.AddAttribute(23, "Align", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<MatBlazor.MatAppBarSectionAlign>(
  122. #nullable restore
  123. #line 19 "D:\Work\Caritas\CaritasPWA\Shared\NavMenu.razor"
  124. MatAppBarSectionAlign.End
  125. #line default
  126. #line hidden
  127. #nullable disable
  128. ));
  129. __builder4.AddAttribute(24, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder5) => {
  130. __builder5.AddMarkupContent(25, "\r\n ");
  131. __builder5.OpenComponent<Microsoft.AspNetCore.Components.Routing.NavLink>(26);
  132. __builder5.AddAttribute(27, "class", "text-white");
  133. __builder5.AddAttribute(28, "href", "http://blazor.net");
  134. __builder5.AddAttribute(29, "Align",
  135. #nullable restore
  136. #line 20 "D:\Work\Caritas\CaritasPWA\Shared\NavMenu.razor"
  137. MatAppBarSectionAlign.End
  138. #line default
  139. #line hidden
  140. #nullable disable
  141. );
  142. __builder5.AddAttribute(30, "Style", "padding-right:1em");
  143. __builder5.AddAttribute(31, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder6) => {
  144. __builder6.AddContent(32, "About");
  145. }
  146. ));
  147. __builder5.CloseComponent();
  148. __builder5.AddMarkupContent(33, "\r\n ");
  149. }
  150. ));
  151. __builder4.CloseComponent();
  152. __builder4.AddMarkupContent(34, "\r\n ");
  153. }
  154. ));
  155. __builder3.CloseComponent();
  156. __builder3.AddMarkupContent(35, "\r\n ");
  157. }
  158. ));
  159. __builder2.CloseComponent();
  160. __builder2.AddMarkupContent(36, "\r\n ");
  161. __builder2.OpenComponent<MatBlazor.MatAppBarContent>(37);
  162. __builder2.AddAttribute(38, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder3) => {
  163. __builder3.AddMarkupContent(39, "\r\n ");
  164. __builder3.OpenComponent<MatBlazor.MatDrawerContainer>(40);
  165. __builder3.AddAttribute(41, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder4) => {
  166. __builder4.AddMarkupContent(42, "\r\n ");
  167. __builder4.OpenComponent<MatBlazor.MatDrawer>(43);
  168. __builder4.AddAttribute(44, "Mode", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<MatBlazor.MatDrawerMode>(
  169. #nullable restore
  170. #line 26 "D:\Work\Caritas\CaritasPWA\Shared\NavMenu.razor"
  171. MatDrawerMode.Modal
  172. #line default
  173. #line hidden
  174. #nullable disable
  175. ));
  176. __builder4.AddAttribute(45, "Opened", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.Boolean>(
  177. #nullable restore
  178. #line 26 "D:\Work\Caritas\CaritasPWA\Shared\NavMenu.razor"
  179. Opened
  180. #line default
  181. #line hidden
  182. #nullable disable
  183. ));
  184. __builder4.AddAttribute(46, "OpenedChanged", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<Microsoft.AspNetCore.Components.EventCallback<System.Boolean>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<System.Boolean>(this, Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => Opened = __value, Opened))));
  185. __builder4.AddAttribute(47, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder5) => {
  186. __builder5.AddMarkupContent(48, "\r\n ");
  187. __builder5.OpenComponent<MatBlazor.MatList>(49);
  188. __builder5.AddAttribute(50, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder6) => {
  189. __builder6.AddMarkupContent(51, "\r\n ");
  190. __builder6.OpenComponent<MatBlazor.MatListItem>(52);
  191. __builder6.AddAttribute(53, "Class", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.String>(
  192. #nullable restore
  193. #line 28 "D:\Work\Caritas\CaritasPWA\Shared\NavMenu.razor"
  194. (Index == 1)?"bg-primary-color text-white" : ""
  195. #line default
  196. #line hidden
  197. #nullable disable
  198. ));
  199. __builder6.AddAttribute(54, "href", "");
  200. __builder6.AddAttribute(55, "Match", "NavLinkMatch.All");
  201. __builder6.AddAttribute(56, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
  202. #nullable restore
  203. #line 31 "D:\Work\Caritas\CaritasPWA\Shared\NavMenu.razor"
  204. (e) => ButtonClicked(1)
  205. #line default
  206. #line hidden
  207. #nullable disable
  208. ));
  209. __builder6.AddAttribute(57, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder7) => {
  210. __builder7.AddMarkupContent(58, "\r\n ");
  211. __builder7.OpenComponent<MatBlazor.MatIcon>(59);
  212. __builder7.AddAttribute(60, "Icon", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.String>(
  213. #nullable restore
  214. #line 32 "D:\Work\Caritas\CaritasPWA\Shared\NavMenu.razor"
  215. MatIconNames.Apps
  216. #line default
  217. #line hidden
  218. #nullable disable
  219. ));
  220. __builder7.CloseComponent();
  221. __builder7.AddMarkupContent(61, "\r\n ");
  222. __builder7.OpenComponent<MatBlazor.MatListItemText>(62);
  223. __builder7.AddAttribute(63, "Style", "padding-left:0.5em");
  224. __builder7.AddAttribute(64, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder8) => {
  225. __builder8.AddContent(65, "Caritas Dienste");
  226. }
  227. ));
  228. __builder7.CloseComponent();
  229. __builder7.AddMarkupContent(66, "\r\n ");
  230. }
  231. ));
  232. __builder6.CloseComponent();
  233. __builder6.AddMarkupContent(67, "\r\n ");
  234. __builder6.OpenComponent<MatBlazor.MatListItem>(68);
  235. __builder6.AddAttribute(69, "Class", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.String>(
  236. #nullable restore
  237. #line 35 "D:\Work\Caritas\CaritasPWA\Shared\NavMenu.razor"
  238. (Index == 2)?"bg-primary-color text-white" : ""
  239. #line default
  240. #line hidden
  241. #nullable disable
  242. ));
  243. __builder6.AddAttribute(70, "Href", "counter");
  244. __builder6.AddAttribute(71, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
  245. #nullable restore
  246. #line 37 "D:\Work\Caritas\CaritasPWA\Shared\NavMenu.razor"
  247. (e) => ButtonClicked(2)
  248. #line default
  249. #line hidden
  250. #nullable disable
  251. ));
  252. __builder6.AddAttribute(72, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder7) => {
  253. __builder7.AddMarkupContent(73, "\r\n ");
  254. __builder7.OpenComponent<MatBlazor.MatIcon>(74);
  255. __builder7.AddAttribute(75, "Icon", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.String>(
  256. #nullable restore
  257. #line 38 "D:\Work\Caritas\CaritasPWA\Shared\NavMenu.razor"
  258. MatIconNames.Person_outline
  259. #line default
  260. #line hidden
  261. #nullable disable
  262. ));
  263. __builder7.CloseComponent();
  264. __builder7.AddMarkupContent(76, "\r\n ");
  265. __builder7.OpenComponent<MatBlazor.MatListItemText>(77);
  266. __builder7.AddAttribute(78, "Style", "padding-left:0.5em");
  267. __builder7.AddAttribute(79, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder8) => {
  268. __builder8.AddContent(80, "Konto");
  269. }
  270. ));
  271. __builder7.CloseComponent();
  272. __builder7.AddMarkupContent(81, "\r\n ");
  273. }
  274. ));
  275. __builder6.CloseComponent();
  276. __builder6.AddMarkupContent(82, "\r\n ");
  277. __builder6.OpenComponent<MatBlazor.MatListItem>(83);
  278. __builder6.AddAttribute(84, "Class", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.String>(
  279. #nullable restore
  280. #line 41 "D:\Work\Caritas\CaritasPWA\Shared\NavMenu.razor"
  281. (Index == 3)?"bg-primary-color text-white" : ""
  282. #line default
  283. #line hidden
  284. #nullable disable
  285. ));
  286. __builder6.AddAttribute(85, "Href", "fetchdata");
  287. __builder6.AddAttribute(86, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
  288. #nullable restore
  289. #line 43 "D:\Work\Caritas\CaritasPWA\Shared\NavMenu.razor"
  290. (e) => ButtonClicked(3)
  291. #line default
  292. #line hidden
  293. #nullable disable
  294. ));
  295. __builder6.AddAttribute(87, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder7) => {
  296. __builder7.AddMarkupContent(88, "\r\n ");
  297. __builder7.OpenComponent<MatBlazor.MatIcon>(89);
  298. __builder7.AddAttribute(90, "Icon", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.String>(
  299. #nullable restore
  300. #line 44 "D:\Work\Caritas\CaritasPWA\Shared\NavMenu.razor"
  301. MatIconNames.Error_outline
  302. #line default
  303. #line hidden
  304. #nullable disable
  305. ));
  306. __builder7.AddAttribute(91, "Style", "transform: rotate(180deg)");
  307. __builder7.CloseComponent();
  308. __builder7.AddMarkupContent(92, "\r\n ");
  309. __builder7.OpenComponent<MatBlazor.MatListItemText>(93);
  310. __builder7.AddAttribute(94, "Style", "padding-left:0.5em");
  311. __builder7.AddAttribute(95, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder8) => {
  312. __builder8.AddContent(96, "Info");
  313. }
  314. ));
  315. __builder7.CloseComponent();
  316. __builder7.AddMarkupContent(97, "\r\n ");
  317. }
  318. ));
  319. __builder6.CloseComponent();
  320. __builder6.AddMarkupContent(98, "\r\n ");
  321. __builder6.OpenComponent<MatBlazor.MatListItem>(99);
  322. __builder6.AddAttribute(100, "Class", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.String>(
  323. #nullable restore
  324. #line 47 "D:\Work\Caritas\CaritasPWA\Shared\NavMenu.razor"
  325. (Index == 4)?"bg-primary-color text-white" : ""
  326. #line default
  327. #line hidden
  328. #nullable disable
  329. ));
  330. __builder6.AddAttribute(101, "Href", "counter");
  331. __builder6.AddAttribute(102, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
  332. #nullable restore
  333. #line 49 "D:\Work\Caritas\CaritasPWA\Shared\NavMenu.razor"
  334. (e) => ButtonClicked(4)
  335. #line default
  336. #line hidden
  337. #nullable disable
  338. ));
  339. __builder6.AddAttribute(103, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder7) => {
  340. __builder7.AddMarkupContent(104, "\r\n ");
  341. __builder7.OpenComponent<MatBlazor.MatIcon>(105);
  342. __builder7.AddAttribute(106, "Icon", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.String>(
  343. #nullable restore
  344. #line 50 "D:\Work\Caritas\CaritasPWA\Shared\NavMenu.razor"
  345. MatIconNames.Exit_to_app
  346. #line default
  347. #line hidden
  348. #nullable disable
  349. ));
  350. __builder7.CloseComponent();
  351. __builder7.AddMarkupContent(107, "\r\n ");
  352. __builder7.OpenComponent<MatBlazor.MatListItemText>(108);
  353. __builder7.AddAttribute(109, "Style", "padding-left:0.5em");
  354. __builder7.AddAttribute(110, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder8) => {
  355. __builder8.AddContent(111, "Logout");
  356. }
  357. ));
  358. __builder7.CloseComponent();
  359. __builder7.AddMarkupContent(112, "\r\n ");
  360. }
  361. ));
  362. __builder6.CloseComponent();
  363. __builder6.AddMarkupContent(113, "\r\n ");
  364. }
  365. ));
  366. __builder5.CloseComponent();
  367. __builder5.AddMarkupContent(114, "\r\n ");
  368. }
  369. ));
  370. __builder4.CloseComponent();
  371. __builder4.AddMarkupContent(115, "\r\n ");
  372. }
  373. ));
  374. __builder3.CloseComponent();
  375. __builder3.AddMarkupContent(116, "\r\n\r\n ");
  376. }
  377. ));
  378. __builder2.CloseComponent();
  379. __builder2.AddMarkupContent(117, "\r\n");
  380. }
  381. ));
  382. __builder.CloseComponent();
  383. }
  384. #pragma warning restore 1998
  385. #nullable restore
  386. #line 62 "D:\Work\Caritas\CaritasPWA\Shared\NavMenu.razor"
  387. bool Opened = false;
  388. int Index = 0;
  389. void ButtonClicked() {
  390. Opened = !Opened;
  391. }
  392. void ButtonClicked(int _Index) {
  393. Index = _Index;
  394. ButtonClicked();
  395. }
  396. #line default
  397. #line hidden
  398. #nullable disable
  399. }
  400. }
  401. #pragma warning restore 1591