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
| |
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
| public class Pokemon { | |
| public Integer count; | |
| public String next; | |
| public String previous; | |
| public List<Results> results; | |
| public class Results { | |
| public String name; | |
| public String url; | |
| } | |
| public static Pokemon parse(String json) { |
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
| public class Pokemon { | |
| public Integer count; | |
| public String next; | |
| public String previous; | |
| public List<Results> results; | |
| public class Results { | |
| public String name; | |
| public String url; | |
| } | |
| public static Pokemon parse(String json) { |
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
| global class ReportPickListValues extends VisualEditor.DynamicPickList{ | |
| global override VisualEditor.DataRow getDefaultValue(){ | |
| VisualEditor.DataRow defaultValue = new VisualEditor.DataRow('select report','select report'); | |
| return defaultValue; | |
| } | |
| global override VisualEditor.DynamicPickListRows getValues() { | |
| Report[] theReports = [SELECT Name From Report]; |
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
| /** | |
| * @description : used for interfacing with the Reports API and Report class to get information from reports to display in a lightning component | |
| * currently used with our Account Lightning Detail page to get bid history information displayable on the Account | |
| * USED WITH PERMISSION FROM LICENSE IN REPO FOR 2015 VERSION | |
| * @author : clay b | |
| * @group : reports | |
| * @last modified on : 11-07-2021 | |
| * @last modified by : sfdc cb | |
| * Modifications Log | |
| * Ver Date Author Modification |
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
| IMAGE("https://quickchart.io/chart?c={type:'sparkline',data:{datasets:[{data:["& TEXT($CustomMetadata.Sparklnes__mdt.SparklinesObject.Month1Volume__c)&","&TEXT($CustomMetadata.Sparklnes__mdt.SparklinesObject.Month2Volume__c)&","&TEXT($CustomMetadata.Sparklnes__mdt.SparklinesObject.Month3Volume__c)&","&TEXT($CustomMetadata.Sparklnes__mdt.SparklinesObject.Month4Volume__c)&","&TEXT($CustomMetadata.Sparklnes__mdt.SparklinesObject.Month5Volume__c)&","&TEXT($CustomMetadata.Sparklnes__mdt.SparklinesObject.Month6Volume__c) &","&TEXT($CustomMetadata.Sparklnes__mdt.SparklinesObject.Month7Volume__c)&","&TEXT($CustomMetadata.Sparklnes__mdt.SparklinesObject.Month8Volume__c)&","& TEXT($CustomMetadata.Sparklnes__mdt.SparklinesObject.Month9Volume__c)&","&TEXT($CustomMetadata.Sparklnes__mdt.SparklinesObject.Month10Volume__c)&","& TEXT($CustomMetadata.Sparklnes__mdt.SparklinesObject.Month11Volume__c)&","&TEXT($CustomMetadata.Sparklnes__mdt.SparklinesObject.Month12Volume__c)&","& "]}]}}","") |
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
| public with sharing class seoBoss_API_WordpressService{ | |
| public static String username = 'replace_with_username'; | |
| public static String password = 'replace_with_password'; | |
| public static Blob headerValue = Blob.valueOf(username + ':' + password); | |
| public static String authorizationHeader = 'Basic ' + EncodingUtil.base64Encode(headerValue); | |
| public static Map<String, String> headers = new Map<String, String>{ 'Authorization' => authorizationHeader }; | |
| public static String theSiteURL = 'https://sfdcboss.com/index.php/wp-json/wp/v2/'; | |
| public static String saveMediaInLibrary(String imageURL, String keyword){ | |
| String theExtension = imageURL.right(3); |
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
| // | |
| //Generated by AdminBooster | |
| // | |
| public class GoogleAPI_PageSpeedInsights_resp{ | |
| @AuraEnabled public String analysisUTCTimestamp; | |
| @AuraEnabled public String captchaResult; |
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
| public with sharing class GoogleAPIService { | |
| @AuraEnabled | |
| public static String sendPayloadToApex(String theData) { | |
| GoogleAPI_PageSpeedInsights_resp res = GoogleAPI_PageSpeedInsights_resp.parse( | |
| theData | |
| ); | |
| return JSON.serialize(res); | |
| } | |
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 { LightningElement, api, track } from 'lwc'; | |
| import parseMetaDetails from '@salesforce/apex/seoBoss_API_HTTPUtils.parseMetaDetails'; | |
| //c/avonniBlockquoteimport doGoogleSearchConsoleCallout from '@salesforce/apex/GoogleAPIService.doGoogleSearchConsoleCallout'; | |
| //import doLegacyGoogleSearchConsoleCallout from '@salesforce/apex/GoogleAPI_SearchConsole.getSiteData'; | |
| import sendPayloadToApex from '@salesforce/apex/GoogleAPIService.sendPayloadToApex'; | |
| export default class SeoBoss_siteInfo extends LightningElement { | |
| @api theMetaDetails = ''; | |
| @api theTitle = ''; | |
| @api theDescription = ''; |