This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="collapsible-open-close-events"> | |
<ul md-collapsible="on-open.call: collapsibleOpen($event); on-close.call: collapsibleClose($event)"> | |
<li ref="firstSection"> | |
<div class="collapsible-header"><i class="mdi-image-filter-drama"></i>First<span md-badge data-badge-caption="opens">${firstSection.openCount || 0}</span><span md-badge data-badge-caption="closes">${firstSection.closeCount || 0}</span></div> | |
<div class="collapsible-body"><p>Lorem ipsum dolor sit amet.</p></div> | |
</li> | |
<li ref="secondSection"> | |
<div class="collapsible-header"><i class="mdi-maps-place"></i>Second<span md-badge data-badge-caption="opens">${secondSection.openCount || 0}</span><span md-badge data-badge-caption="closes">${secondSection.closeCount || 0}</span></div> | |
<div class="collapsible-body"><p>Lorem ipsum dolor sit amet.</p></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<ul class="collection"> | |
<li class="collection-item">Sent</li> | |
<li class="collection-item">Inbox<span md-badge="is-new: true;">3</span></li> | |
<li class="collection-item">Spam<span show.bind="spamCount > 0" class="yellow black-text" md-badge="is-new: true; caption.bind: spamCaption">${spamCount}</span></li> | |
</ul> | |
</div> | |
<div class="actions"> | |
<hr /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class TaskExtensions | |
{ | |
private static Action<Task> IgnorerContinuationAction = IgnorerContinuation; | |
public static void Ignore(this Task task) | |
{ | |
if (task.IsCompleted) | |
{ | |
var exception = task.Exception; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal sealed class BigIntegerBase64JsonConverter : JsonConverter<BigInteger> | |
{ | |
public override BigInteger Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) | |
{ | |
var bigIntegerBytes = reader.GetBytesFromBase64(); | |
return new BigInteger(bigIntegerBytes); | |
} | |
public override void Write(Utf8JsonWriter writer, BigInteger value, JsonSerializerOptions options) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
public class RestClientConfig { | |
@Bean | |
public RestClient myRestClient(final RestClient.Builder restClientBuilder) { | |
final var httpClient = HttpClient | |
.newBuilder() | |
.version(HttpClient.Version.HTTP_2) | |
.executor(Executors.newVirtualThreadPerTaskExecutor()) | |
.build(); |
OlderNewer