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
export const environment = { | |
apiBackendUrl: window["env"].API_BACKEND_URL, | |
externalIntegrationUrl: window["env"].EXTERNAL_INTEGRATION_URL | |
} |
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
import { environment } from 'environment' | |
. . . | |
fetch(environment.apiBackendUrl + ‘/path’) | |
.then(response => response.json()) | |
.then(data => console.log(data)); | |
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
architect": { | |
"build": { | |
"builder": "@angular-devkit/build-angular:browser", | |
"options": { | |
"assets": [ | |
"src/favicon.ico", | |
"src/assets" ] | |
. . . | |
], |
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
const CopyWebpackPlugin = require('copy-webpack-plugin'); | |
module.exports = env => { | |
return { | |
module: { | |
. . . }, | |
plugins: [ | |
. . . | |
new CopyWebpackPlugin([ { from: 'src/assets, to: assets } ]) |
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
(function (window) { | |
window["env"] = window["env"] || {}; | |
window["env"].API_BACKEND_URL = "${ENV_API_BACKEND_URL}"; | |
window["env"].EXTERNAL_INTEGRATION_URL = "${ENV_EXTERNAL_INTEGRATION_URL}"; | |
})(this) |
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
import com.google.iot.cbor.CborMap; | |
import com.google.zxing.*; | |
import com.google.zxing.client.j2se.BufferedImageLuminanceSource; | |
import com.google.zxing.common.HybridBinarizer; | |
// .... | |
File file = new File("C:\\workspace_private\\green_pass\\src\\main\\resources\\green-pass.jpg"); | |
BufferedImage bufferedImage = ImageIO.read(file); | |
LuminanceSource source = new BufferedImageLuminanceSource(bufferedImage); |
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
import nl.minvws.encoding.Base45; | |
// .... | |
String withoutPrefix = text.substring(4); | |
byte[] bytecompressed = Base45.getDecoder().decode(withoutPrefix); | |
// .... |
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
import java.io.ByteArrayOutputStream; | |
import java.util.zip.Inflater; | |
// .... | |
Inflater inflater = new Inflater(); | |
inflater.setInput(bytecompressed); | |
ByteArrayOutputStream outputStream = new ByteArrayOutputStream(bytecompressed.length); | |
byte[] buffer = new byte[BUFFER_SIZE]; | |
while (!inflater.finished()) { |
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
import COSE.Encrypt0Message; | |
import COSE.Message; | |
import com.google.iot.cbor.CborMap; | |
// .. | |
Message a = Encrypt0Message.DecodeFromBytes(outputStream.toByteArray()); | |
CborMap cborMap = CborMap.createFromCborByteArray(a.GetContent()); | |
System.out.println(cborMap.toString(2)); | |
// .. |
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
{ | |
"4":1683849600, | |
"6":1623691577, | |
"1":"US", | |
"-260":{ | |
"1":{ | |
"v":[ | |
{ | |
"dn":1, | |
"ma":"ORG-200030215", |