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
| dependencies: { | |
| "react": "^16.13.1", | |
| "x-a": "1.4.3", | |
| "x-b": "3.2.0", | |
| "x-c": "2.1.0", | |
| "x-d": "2.2.8", | |
| "x-e": "2.5.19", | |
| "x-api": "3.5.5", | |
| } |
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
| peerDependencies: { | |
| "react": "^16.13.1", | |
| "x-e": "^2.5.3", | |
| "x-api": "^3.0.0" | |
| } |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script> | |
| function init() { | |
| document.getElementById("abc").api = ...; | |
| } | |
| </script> | |
| </head> |
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
| /* eslint-env browser */ | |
| import React from "react"; | |
| import ReactDOM from "react-dom"; | |
| import EmployeeSearchForm from "./employeeSearchForm"; // React implementation of the Employee Search Form micro front-end. | |
| class BusinessSolutionEmployeeSearchFormCustomElement extends HTMLElement { | |
| connectedCallback() { | |
| this.render(); |
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
| /* eslint-env browser */ | |
| import React from "react"; | |
| import ReactDOM from "react-dom"; | |
| import EmployeeSearchForm from "./employeeSearchForm"; // React implementation of the Employee Search Form micro front-end. | |
| class BusinessSolutionEmployeeSearchFormCustomElement extends HTMLElement { | |
| connectedCallback() { | |
| this.render(); |
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
| /* eslint-env browser */ | |
| class BusinessSolutionEmployeeSearchForm extends HTMLElement { | |
| connectedCallback() { | |
| this.render(); | |
| } | |
| set api(val) { | |
| this._api = val; |
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
| var tokens = await _identityRepository.tokens; | |
| var graphqlEndpoint = "https://xxxxxxxxxxxxxxxxxxxxxxxxxx.appsync-api.us-east-1.amazonaws.com"; | |
| var graphqlQuery = """ | |
| query listPets { | |
| listPets { | |
| id | |
| price | |
| type | |
| } | |
| } |
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
| var credentials = await _identityRepository.credentials; | |
| var graphqlEndpoint = "https://xxxxxxxxxxxxxxxxxxxxxxxxxx.appsync-api.us-east-1.amazonaws.com"; | |
| var graphqlQuery = """ | |
| query listPets { | |
| listPets { | |
| id | |
| price | |
| type | |
| } | |
| } |
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 React, {useEffect, useState} from 'react'; | |
| import logo from './logo.svg'; | |
| import './App.css'; | |
| let region = 'us-east-1'; | |
| let userPoolName = 'mybfff'; | |
| let userPoolId = 'us-east-1_xxxxxxxxx'; | |
| let userPoolAppClientId = 'xxxxxxxxxxxxxxxxxxxxxxxxxx'; | |
| let identityPoolId = 'us-east-1:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'; | |
| let cognitoIdentityPoolUrl = 'https://cognito-identity.us-east-1.amazonaws.com'; |
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
| exports.requestTemplate = { | |
| "version": "2018-05-29", | |
| "statements": [ | |
| "select * from Pets" | |
| ] | |
| }; | |
| exports.responseTemplate = ` | |
| $utils.toJson($utils.rds.toJsonObject($ctx.result)[0]) | |
| `.trim(); |
NewerOlder