Skip to content

Commit

Permalink
Add components Highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
scottafk committed Mar 19, 2024
1 parent 032655e commit 714c824
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 19 deletions.
31 changes: 12 additions & 19 deletions docs/concepts/about-the-platform.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,7 @@
- [CLB creation](#clb-creation)
- [CLB usage](#clb-usage)

export const Highlight = ({children}) => (
<span
style={{
borderRadius: '2px',
color: 'red',
padding: '0.2rem',
}}>
{children}
</span>
);
import Highlight from '@site/src/components/Highlight';

## Features {#features}

Expand All @@ -47,10 +38,11 @@ existing blockchain platforms:
environment called **ecosystem**. Each ecosystem has its own membership rules
that are initially established by the creator;

- Ecosystem activities, such as the data involved in <Highlight>database
table</Highlight> records or updates, are based on **registers** created with
**smart contracts**. In most other blockchain platforms, activities are based
on transaction exchange between accounts;
- Ecosystem activities, such as the data involved in
<Highlight color="red">database table</Highlight> records or updates, are
based on **registers** created with **smart contracts**. In most other
blockchain platforms, activities are based on transaction exchange between
accounts;

- The access to **registers** and the control of relationships between ecosystem
members are managed by a set of rules called **smart laws**.
Expand Down Expand Up @@ -266,11 +258,12 @@ The IDE mainly includes the following parts:
An application is a collection of elements such as database tables, smart
contracts, and user pages with access rights for configuration. The ecosystem to
which the application element belongs is indicated by the prefix in the element
name, such as <Highlight>@1ElementName</Highlight>, where the ecosystem ID is
indicated by the number <Highlight>1</Highlight> after the
<Highlight>@</Highlight> symbol. When using application elements in the current
ecosystem, the prefix <Highlight>@1</Highlight> can be omitted. These
applications can perform useful functions or implement various services.
name, such as <Highlight color="red">@1ElementName</Highlight>, where the
ecosystem ID is indicated by the number <Highlight color="red">1</Highlight>
after the <Highlight color="red">@</Highlight> symbol. When using application
elements in the current ecosystem, the prefix
<Highlight color="red">@1</Highlight> can be omitted. These applications can
perform useful functions or implement various services.

### Tables {#tables}

Expand Down
15 changes: 15 additions & 0 deletions src/components/Highlight.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from "react";

export default function Highlight({ children, color }) {
return (
<span
style={{
borderRadius: "2px",
color: color,
padding: "0.2rem",
}}
>
{children}
</span>
);
}

0 comments on commit 714c824

Please sign in to comment.