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
FEAAS.External.registerComponent(MyByocComponent, { | |
name: 'MyByocComponent', | |
properties: { | |
title: { | |
type: 'string', | |
}, | |
columnsCount: { | |
type: 'number', | |
}, | |
}, |
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
jss scaffold 'src/byoc/ByocPromo' --byoc |
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
jss scaffold src/byoc/MyByocComponent --byoc |
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
{ | |
"url": "https://www.kayee.nl", | |
"url-text": "Check out Kayee.nl", | |
"image-url": "http://xmcloudcm.localhost/-/media/Project/Kayee/shared/kayee-blogpost-15x-sitecore-mvp-award-2024.png?h=1116&iar=0&w=2000&hash=E2C0DDB5A74094A79E34C2321845F27C", | |
"text": "This is a BYOC Promo" | |
} |
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 './ByocPromo'; |
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 React from 'react'; | |
import * as FEAAS from '@sitecore-feaas/clientside/react'; | |
interface ByocPromoProps { | |
imageUrl: string; | |
text: string; | |
url: string; | |
urlText: string; | |
} |
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
account - e900 | |
account-edit-outline - e901 | |
account-filled - e902 | |
account-lock-outline - e903 | |
account-off-outline - e904 | |
add-spacing-bottom - e905 | |
add-spacing-sides - e906 | |
add-spacing-top - e907 | |
advanced-controls - e908 | |
alert-circle - e909 |
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
using System; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
namespace KayeeDictionaryServiceDemo.Services.Dictionary.Models | |
{ | |
public class DictionaryModel | |
{ | |
private readonly Lazy<Task<Dictionary<string, string>>> _dictionaryDataTask; |
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
@using KayeeDictionaryServiceDemo.Services.Dictionary.Models | |
@model ContentBlock | |
@inject IServiceProvider ServiceProvider | |
@{ | |
bool isReuse = ViewBag.IsReuse ?? false; | |
var dictionaryModel = new DictionaryModel(ServiceProvider); | |
} | |
<h1>Here are translations from Dictionary Items:</h1> |