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 CheckWeather { | |
| @InvocableMethod( | |
| label='Check Weather' | |
| description='Check weather at Coral Cloud Resorts at a specific date' | |
| ) | |
| public static List<WeatherResponse> getWeather( | |
| List<WeatherRequest> requests | |
| ) { | |
| // Retrieve the date for which we want to check the weather | |
| Datetime dateToCheck = (Datetime) requests[0].dateToCheck; |
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
| <template> | |
| <div | |
| class="slds-var-m-around_medium slds-grid slds-grid_vertical slds-box slds-theme_default"> | |
| <h1><font size="3"><b>Housing Market Dashboard</b></font> | |
| </h1> | |
| <!-- Chat messages container --> | |
| <div | |
| class="slds-scrollable_y" | |
| style="height: 440px" | |
| lwc:ref="chatContainer" |
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
| :host { | |
| /* Custom CSS variables for reusing style in this component and child components */ | |
| --primary-color: #00373e; | |
| /* Text styling hooks */ | |
| --slds-g-color-neutral-base-10: var(--primary-color); | |
| --slds-g-color-neutral-base-30: var(--primary-color); | |
| /* Border styling hooks */ | |
| --slds-g-color-border-base-1: var(--primary-color); |
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 PersonalizedGuestExperiences { | |
| // Make this method available for grounding | |
| // the Generate_Personalized_Schedule prompt template | |
| @InvocableMethod | |
| public static List<Response> getSessions(List<Request> requests) { | |
| Request input = requests[0]; | |
| Contact contact = input.myContact; | |
| List<Session__c> sessions = |
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> | |
| <base href="" > | |
| <meta charset="utf-8"/> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
| <meta name="description" content="%%description%%"/> | |
| <!-- Bootstrap CSS --> | |
| <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous"> | |
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 CommonUtil { | |
| /** | |
| * ランダム値取得 | |
| */ | |
| public static Integer getRandomNumber(Integer upperLimit) { | |
| if (upperLimit == null || upperLimit <= 0) { | |
| return 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
| <apex:page showHeader="true"> | |
| <apex:slds /> | |
| <div xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | |
| <div class="slds-m-around--Large"> | |
| <a class="slds-button slds-button--brand" > | |
| <svg class="slds-button__icon slds-button__icon--left" aria-hidden="true"> | |
| <use xlink:href="{!URLFOR($Asset.SLDS, '/assets/icons/utility-sprite/svg/symbols.svg#edit')}"></use> | |
| </svg>編集 | |
| </a> | |
| </div> |
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
| <apex:page showHeader="true" standardStylesheets="true"> | |
| <apex:slds /> | |
| <div class="demo-only" style="height:240px;"> | |
| <div class="slds-scrollable--x"> | |
| <div class="slds-grid slds-grid--overflow"> | |
| <div class="slds-col"> | |
| <p>Sit nulla est ex deserunt exercitation anim occaecat. Nostrud ullamco deserunt aute id consequat veniam incididunt duis in sint irure nisi. Mollit officia cillum Lorem ullamco minim nostrud elit officia tempor esse quis.</p> | |
| </div> | |
| <div class="slds-col"> | |
| <p>Sit nulla est ex deserunt exercitation anim occaecat. Nostrud ullamco deserunt aute id consequat veniam incididunt duis in sint irure nisi. Mollit officia cillum Lorem ullamco minim nostrud elit officia tempor esse quis.</p> |
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
| <apex:page showHeader="true" sidebar="true"> | |
| <apex:slds rendered="true" /> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
| <script src="https://ajaxzip3.github.io/ajaxzip3.js" charset="UTF-8"></script> | |
| <style> | |
| .postal-code-input { | |
| width: 200px !important; | |
| } | |
| </style> | |
| <div class="slds"> |
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 with sharing class UserWebService { | |
| WebService static String changeLanguage() { | |
| try { | |
| // ログインユーザの情報取得 | |
| User user = getLoginUserInfo(); | |
| // 現在の言語の判定と変更後の言語をセット | |
| user = setUserLanguage(user); | |
| // 更新 | |
| update user; |
NewerOlder