Vuetify Component
- Follow Vuetify / Material Design look and feel
- Compatible with Vuetify, light/dark theme.
- Follow Vuetify conventions, naming, props, events, etc.
import groovy.json.JsonSlurper | |
import groovy.json.JsonOutput | |
def jsonSlurper = new JsonSlurper() | |
def secrets = jsonSlurper.parse(new File(args[1] ?: "secrets.json")).clients.inject([:]) { map, c -> map[c.client] = c.secret; map } | |
def realm = jsonSlurper.parse(new File(args[0])) | |
for(client in realm.clients) { | |
if(secrets[client.clientId]) { |
@Grab('io.minio:minio:6.0.8') | |
import io.minio.MinioClient | |
def serviceUrl = "https://minioserver:9000" | |
def accessKey = "*****" | |
def secretKey = "*****" | |
def bucketName = "groovy-test" | |
def client = new MinioClient(serviceUrl, accessKey, secretKey) |
import org.apache.commons.logging.Log; | |
import org.apache.commons.logging.LogFactory; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; | |
import org.springframework.boot.autoconfigure.security.oauth2.resource.JwtAccessTokenConverterConfigurer; | |
import org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerProperties; | |
import org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerTokenServicesConfiguration; | |
import org.springframework.cloud.client.ServiceInstance; | |
import org.springframework.cloud.client.loadbalancer.LoadBalancerClient; |
import com.fasterxml.jackson.core.JsonParser; | |
import com.fasterxml.jackson.core.JsonProcessingException; | |
import com.fasterxml.jackson.databind.DeserializationContext; | |
import com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer; | |
import com.fasterxml.jackson.databind.module.SimpleModule; | |
import org.springframework.stereotype.Component; | |
import java.io.IOException; | |
@Component |
import groovy.transform.CompileStatic | |
import org.springframework.beans.factory.annotation.Autowired | |
import reactor.Environment | |
import reactor.bus.Event | |
import reactor.bus.EventBus | |
import reactor.bus.registry.Registration | |
import reactor.bus.registry.Registry | |
import reactor.bus.selector.Selector | |
import reactor.bus.selector.Selectors | |
import reactor.rx.Promise |