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> | |
<template if:true={open}> | |
<div> | |
<section role="dialog" tabindex="-1" class="slds-modal slds-fade-in-open"> | |
<div class="slds-modal__container"> | |
<header class="slds-modal__header"> | |
<lightning-button-icon class="slds-modal__close" icon-name="utility:close" onclick={closeModal}></lightning-button-icon> | |
<h2>{title}</h2> | |
</header> | |
<div class="slds-modal__content slds-var-p-around_medium"> |
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 { LightningElement, wire } from 'lwc'; | |
import getContactList from '@salesforce/apex/ContactController.getContactList'; | |
import { ShowToastEvent } from 'lightning/platformShowToastEvent'; | |
const columns = [ | |
{ label: 'First Name', fieldName: 'FirstName' }, | |
{ label: 'Last Name', fieldName: 'LastName' }, | |
{ label: 'Title', fieldName: 'Title' }, | |
{ label: 'Phone', fieldName: 'Phone', type: 'phone' }, | |
{ label: 'Email', fieldName: 'Email', type: 'email' } |
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> | |
<template if:true={contact}> | |
<lightning-datatable key-field="Id" | |
data={contact} | |
columns={columns}> | |
</lightning-datatable> | |
</template> | |
</template> |
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
.lgc-bg { | |
background-color: rgb(242, 242, 242); | |
} | |
.slds-spinner_container { | |
top: 50% !important; | |
bottom: 50% !important; | |
} |
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 class ObjectRecogRequest { | |
public list<request> requests{get;set;} | |
public class request{ | |
public image image{get;set;} | |
public list<feature> features{get;set;} | |
} | |
public class image{ | |
public Blob content{get;set;} | |
} |
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
.area | |
{ | |
pointer-events:none; | |
} |
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 class ImageMapController { | |
@auraenabled(cacheable=true) | |
public static List<Image__c> getAllImages() | |
{ | |
return [select id,name from Image__c]; | |
} | |
@auraenabled(cacheable=true) | |
public static ImageResponse getImage(string id) |
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
.lgc-bg { | |
background-color: rgb(242, 242, 242); | |
} | |
.slds-spinner_container { | |
top: 50% !important; | |
bottom: 50% !important; | |
} |
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 class LogoRecognizer { | |
public static string getAccessToken() | |
{ | |
GoogleAuthSetting__mdt mapping = | |
[SELECT AccessToken__c, Label FROM GoogleAuthSetting__mdt WHERE Label='Fitness' and DeveloperName='Fitness']; | |
return mapping.AccessToken__c; | |
} | |
@auraenabled(cacheable=true) |
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> | |
<template if:true={imageUrl}> | |
<iframe src={imageUrl}></iframe> | |
</template> | |
</template> |
NewerOlder