Add an 'Updated' mode for amendment-disclaimer & fix disclaimer font size in tables

This commit is contained in:
mDuo13
2025-10-06 13:39:41 -07:00
parent 89249a2f0c
commit 317a8ffdfc
6 changed files with 41 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ labels:
[SignerListSetトランザクション][]は、_署名者リスト_自分のアドレスからのトランザクションを承認できるアドレスのセットを定義します。署名者リストには、132のアドレスを含めることができます。このリストには、自分のアドレスを含めることはできず、重複して登録することはできません。リストの _Signer Weight__Quorum_ の設定を使用することで、どのような組み合わせでどれだけの署名が必要かを制御することができます。
_([ExpandedSignerList amendment][]により更新されました。)_
{% amendment-disclaimer name="ExpandedSignerList" mode="updated" /%}
### Signer Weight

View File

@@ -143,6 +143,8 @@ component.amendment-status.requires.1: " "
component.amendment-status.requires.2: が必要です。
component.amendment-status.added.1: " "
component.amendment-status.added.2: により追加されました。
component.amendment-status.updated.1: " "
component.amendment-status.updated.2: により更新されました。
# Amendment tracker translations
amendment.loading: ロード中Amendments...

View File

@@ -226,7 +226,8 @@ function AmendmentBadge(props: { amendment: Amendment }) {
export function AmendmentDisclaimer(props: {
name: string,
compact: boolean
compact: boolean,
mode: string
}) {
const [amendmentStatus, setStatus] = React.useState<Amendment | null>(null)
const [loading, setLoading] = React.useState(true)
@@ -310,6 +311,30 @@ export function AmendmentDisclaimer(props: {
</>
)
}
if (props.mode === "updated") {
return (
<p><em>(
{
amendmentStatus.date ? (
<>
{translate("component.amendment-status.updated.1", "Updated by the ")}{link()}
{translate("component.amendment-status.updated.2", ".")}
{" "}
<AmendmentBadge amendment={amendmentStatus} />
</>
) : (
<>
{translate("component.amendment-status.updates.1", "The ")}{link()}
{translate("component.amendment-status.updates.2", "updates this.")}
{" "}
<AmendmentBadge amendment={amendmentStatus} />
</>
)
}
)</em></p>
)
}
return (
<p><em>(

View File

@@ -233,6 +233,11 @@ export const amendmentDisclaimer: Schema & { tagName: string } = {
type: 'Boolean',
required: false,
default: false
},
mode: {
type: 'String',
required: false,
default: '' // empty string for "Requires ... / Added by ..."
}
},
render: 'AmendmentDisclaimer',

View File

@@ -342,6 +342,12 @@ ul.nav.navbar-nav {
[data-component-name="Markdown/Markdown"] {
--md-table-font-size: 14px;
--md-table-line-height: 1.5;
}
[data-component-name="Markdown/Markdown"] td p {
font-size: var(--md-table-font-size);
line-height: var(--md-table-line-height);
}
@media screen and (min-width: 990px) {

View File

@@ -1,6 +1,4 @@
---
html: multi-signing.html
parent: accounts.html
seo:
description: Use multi-signing for greater security sending transactions.
labels:
@@ -23,7 +21,7 @@ Before you can multi-sign, you must create a list of which addresses can sign fo
The [SignerListSet transaction][] defines a _signer list_, a set of addresses that can authorize transactions from your address. You can include 1 to 32 addresses in a signer list. The list cannot include your address and there can be no duplicate entries. You can control how many signatures are needed, in which combinations, by using the _Signer Weight_ and _Quorum_ settings in the list.
_(Updated by the [ExpandedSignerList amendment][].)_
{% amendment-disclaimer name="ExpandedSignerList" mode="updated" /%}
### Signer Weight