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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Creating Custom Controls in SAPUI5 Demo</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<script id="sap-ui-bootstrap" type="text/javascript" src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js" data-sap-ui-theme="sap_bluecrystal" data-sap-ui-libs="sap.ui.commons"> | |
</script> |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/> | |
<!-- | |
Created using JS Bin | |
http://jsbin.com | |
Copyright (c) 2015 by michadelic (http://jsbin.com/tebef/1/edit) |
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
const compressGraphqlDocument = graphqlDocument => | |
graphqlDocument | |
.replace(/#.*\n/g, '') | |
.replace(/[\s|,]*\n+[\s|,]*/g, ' ') | |
.replace(/:\s/g, ':') | |
.replace(/,\s/g, ',') | |
.replace(/\)\s\{/g, '){') | |
.replace(/\}\s/g, '}') | |
.replace(/\{\s/g, '{') | |
.replace(/\s\}/g, '}') |
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
{ | |
"editor.fontFamily": "OperatorMonoSSmLig-Light", | |
"explorer.confirmDelete": false, | |
"editor.fontLigatures": true, | |
"terminal.integrated.fontSize": 13, | |
"editor.renderIndentGuides": false, | |
"workbench.activityBar.visible": true, | |
"editor.lineHeight": 27, | |
"workbench.editorAssociations": [ | |
{ |
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
// Client Side, React component | |
import { GOOGLE_RECAPTCHA_URL } from '../../../common/constants'; | |
import { INVALID_CAPTCHA_PROVIDED } from '../../utils/constants'; | |
import { MyWindow } from '../../../common/types/global'; | |
import React from 'react'; | |
import { RecaptchaResponse } from '../../../common/types/thirdParty'; | |
import { SignupFormWithCaptcha } from '../../../common/types/signup'; | |
const onRecaptchaScriptLoad = (): void => { |
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
const todo = (state, action) => { | |
if (!state) { | |
return []; | |
} else if (action.type === "ADD_TODO") { | |
return [...state, action.payload]; | |
} else { | |
return state; | |
} | |
}; |
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
const addTodo = { type: 'ADD_TODO', payload: 'Buy a pencil' }; |
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
const store = (reducer) => { | |
let state = []; // Can be an object as well | |
let listeners = []; | |
const dispatch = (action) => { | |
state = reducer(state, action); | |
listeners.forEach((listener) => listener(state)); | |
}; | |
const subscribe = (listener) => { |
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
const domainList = [ | |
{ | |
id: 1, | |
details: { | |
name: 'nytimes.com', | |
valid: true, | |
}, | |
}, | |
{ | |
id: 2, |
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
const urlList = domainList.map((item) => { | |
const domain = item.details.name; | |
const httpsUrl = `https://${domain}?callback=true`; | |
return httpsUrl; | |
}); |
OlderNewer