This file contains 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
user nginx nginx; | |
worker_processes 2; | |
error_log stderr warn; | |
events { worker_connections 4096; } | |
http { | |
include /etc/nginx/mime.types; | |
server_tokens off; | |
client_max_body_size 32m; | |
proxy_buffer_size 128k; |
This file contains 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
nginx: | |
image: nginx:latest | |
container_name: devqa_nginx | |
restart: unless-stopped | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- ./nginx/nginx.conf:/etc/nginx/nginx.conf | |
- /etc/letsencrypt:/etc/letsencrypt |
This file contains 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
user nginx nginx; | |
worker_processes 2; | |
error_log stderr warn; | |
events { worker_connections 4096; } | |
http { | |
include /etc/nginx/mime.types; | |
server_tokens off; | |
client_max_body_size 32m; | |
proxy_buffer_size 128k; |
This file contains 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
router.onError(error => { | |
console.error(error); | |
Vue.prototype.$log.error('Failure Reason: ', error.message, error); | |
if (/ChunkLoadError:.*failed./i.test(error.message)) { | |
Vue.prototype.$log.error('Reloading Window 1'); | |
window.location.reload(); | |
} | |
else if (/Loading.*chunk.*failed./i.test(error.message)) { | |
Vue.prototype.$log.error('Reloading Window 2'); | |
window.location.reload(); |
This file contains 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
{ | |
path: '/testURL', | |
name: 'TestModule', | |
component: () => import(/* webpackChunkName: "testOneView" */ '@/views/TestModuleOneView.vue'), | |
meta: { requiresAuth: false }, | |
}, |
This file contains 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
@Slf4j | |
public class FluxTest { | |
@Test | |
public void test() { | |
Flux<String> b = Flux.just("Bob cat", "is in the ", "party").delayElements(Duration.ofSeconds(2)); | |
Flux.first(b) |
This file contains 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
import Vue from 'vue'; | |
declare let google: any | |
export default class GooglePayUtils extends Vue { | |
name = 'GooglePayUtils: '; | |
googlePayURL = 'https://pay.google.com/gp/p/js/pay.js'; | |
private static _instance: GooglePayUtils; | |
private constructor() { |
This file contains 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> | |
<v-container fluid> | |
<v-tabs | |
v-model="tab" | |
centered | |
dark | |
icons-and-text | |
background-color="orange accent-3" | |
next-icon="mdi-arrow-right-bold-box-outline" | |
prev-icon="mdi-arrow-left-bold-box-outline" |
This file contains 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
workbox.setConfig({ debug: `${process.env.VUE_APP_SW_DEBUG}` }); | |
workbox.core.setCacheNameDetails({ | |
// set the default cache name prefix. each domain should be unique to stop clashes | |
// this is used for runtime and precaching only | |
prefix: 'test-me', | |
}); | |
workbox.routing.registerRoute( |
This file contains 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 interface PublisherApi { | |
@RequestMapping(value = "/publisher", method = RequestMethod.POST, consumes = {MediaType.MULTIPART_FORM_DATA_VALUE}) | |
default ResponseEntity<Void> someCreatemethod( | |
@RequestPart("pictuures_1") MultipartFile[] pictures1, | |
@RequestPart("pictures_2") List<MultipartFile> pictures2, @RequestPart("publisher") JavaObject publisher) throws URISyntaxException, Exception { | |
// Debuuger Point. | |
System.out.println(pictures1.length +" -- "+ pictures2.size); |
NewerOlder