Skip to content

Commit

Permalink
Merge branch 'master' into react-v18
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlyp committed Jun 30, 2023
2 parents 62248e9 + 8778cb4 commit d101a5e
Show file tree
Hide file tree
Showing 124 changed files with 1,216 additions and 505 deletions.
1 change: 0 additions & 1 deletion .yarncahce/v6/.tmp/5d8efc829b465332f7e452d93a85c4bc
Submodule 5d8efc829b465332f7e452d93a85c4bc deleted from 6a024e
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ const LoadingPage = ({ onShowOnboardingTutorial }) => {
"tickets",
"staking",
"lifecycle",
"consensusVoting",
"blocks",
"identity"
"consensusVoting"
].map((name) => (
<TutorialOverview
{...{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
}

.image.v180 {
background-image: var(--release-image-v170);
background-image: var(--release-image-v180);
}

@media (--bg-viewport) {
Expand Down
4 changes: 1 addition & 3 deletions app/components/views/SettingsPage/SettingsPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { CloseWalletModalButton } from "buttons";
import { TabbedPage, TitleHeader, DescriptionHeader } from "layout";
import LinksTab from "./LinksTab";
import LogsTab from "./LogsTab";
// import TutorialsTab from "./TutorialsTab";
import TutorialsTab from "./TutorialsTab";
import ConnectivitySettingsTab from "./ConnectivitySettingsTab";
import GeneralSettingsTab from "./GeneralSettingsTab";
import PrivacyandSecuritySettingsTab from "./PrivacyandSecuritySettingsTab";
Expand Down Expand Up @@ -91,14 +91,12 @@ const SettingsPage = () => {
header: SettingsTabHeader,
label: <T id="settings.tab.sources" m="Sources" />
},
/*
{
path: "/settings/tutorials",
content: TutorialsTab,
header: SettingsTabHeader,
label: <T id="settings.tab.tutorials" m="Tutorials" />
},
*/
{
path: "/settings/logs",
content: LogsTab,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ const TutorialsTab = () => {
"tickets",
"staking",
"lifecycle",
"consensusVoting",
"blocks",
"identity"
"consensusVoting"
].map((name) => (
<TutorialOverview
{...{
Expand Down
93 changes: 36 additions & 57 deletions app/components/views/SettingsPage/TutorialsTab/helpers/tutorials.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const tutorials = {};

tutorials.decredIntro = {
title: "Decred Intro",
desc: "Small description of the tutorial in 1-2 sentences. Small description of the tutorial in 1-2 sentences. ", // TODO
desc: "Learn how and why Decred was created.", // TODO
thumbnailImage: "decredIntroThumb",
slides: [
{
Expand All @@ -23,7 +23,7 @@ tutorials.decredIntro = {
title: (
<T
id="tutorials.decredIntro.title2"
m="Governance systems empower its community"
m="Governance systems empower its community of stakeholders."
/>
),
images: ["decredIntroSlideImage2-1", "decredIntroSlideImage2-2"]
Expand All @@ -33,27 +33,29 @@ tutorials.decredIntro = {

tutorials.ln = {
title: "What is Lightning Network?",
desc: "Small description of the tutorial in 1-2 sentences. Small description of the tutorial in 1-2 sentences. ", // TODO
desc: "Learn how we've the basics of Lightning Network, our 2nd layer implementation for super fast transactions.", // TODO
thumbnailImage: "lnThumb",
slides: [
{
label: <T id="tutorials.ln.label1" m="Backup" />,
label: <T id="tutorials.ln.label1" m="Important" />,
doc: "LNWalletCreationWarningPage01",
title: (
<T
id="tutorials.ln.title1"
m="Backup data is needed in addition to wallet seed."
m="Import information to avoid lose of funds:"
/>
),
images: ["LNSlideImage1"]
},
{
label: <T id="tutorials.ln.label6" m="Lightning is a Layer 2 Network" />,
label: (
<T id="tutorials.ln.label6" m="Lightning is a 2nd Layer Network" />
),
doc: "LNWalletCreationWarningPage06",
title: (
<T
id="tutorials.ln.title6"
m="Lightning Network is a layer 2 network on top of the Decred blockchain, designed to facilitate micropayments more efficiently."
m="Lightning Network is a 2nd layer network on top of the Decred blockchain, designed to facilitate micropayments more efficiently."
/>
),
images: ["LNSlideImage2"]
Expand Down Expand Up @@ -107,7 +109,7 @@ tutorials.ln = {

tutorials.consensusCode = {
title: "Consensus Code",
desc: "Small description of decredIntroThumbthe tutorial in 1-2 sentences. Small description of the tutorial in 1-2 sentences. ", // TODO
desc: "For most coins, consensus code does not allow for orderly upgrades. Decred's voting system allows for smooth upgrades that are easily understood by everyone.", // TODO
thumbnailImage: "consensusCodeThumb",
slides: [
{
Expand All @@ -123,23 +125,19 @@ tutorials.consensusCode = {

tutorials.powPos = {
title: "Hybrid PoW/PoS",
desc: "Small description of the tutorial in 1-2 sentences. Small description of the tutorial in 1-2 sentences. ", // TODO
desc: "With a hybrid system, we've taken the best of both PoW and PoS to obtain fair and secure block creation.", // TODO
thumbnailImage: "powPosThumb",
slides: [
{
label: <T id="tutorials.powPos.label1" m="POW" />, // TODO
label: <T id="tutorials.powPos.label1" m="PoW" />, // TODO
doc: "PowPosPage01",
title: (
<T id="tutorials.powPos.title1" m="1 CPU, 1 Vote – Proof-of-Work" />
),
title: <T id="tutorials.powPos.title1" m="Proof-of-Work" />,
images: ["powPosSlideImage1"]
},
{
label: <T id="tutorials.powPos.label2" m="POS" />, // TODO
label: <T id="tutorials.powPos.label2" m="PoS" />, // TODO
doc: "PowPosPage02",
title: (
<T id="tutorials.powPos.title2" m="1 Coin, 1 Vote – Proof-Of Stake" />
),
title: <T id="tutorials.powPos.title2" m="Proof-of-Stake" />,
images: ["powPosSlideImage2"]
},
{
Expand All @@ -158,28 +156,24 @@ tutorials.powPos = {

tutorials.tickets = {
title: "Staking and Tickets",
desc: "Small description of the tutorial in 1-2 sentences. Small description of the tutorial in 1-2 sentences. ", // TODO
desc: "Typically staking can be complicated, with tickets and votes it's easy to understand and see how your hard-earned DCR is being put to use.", // TODO
thumbnailImage: "ticketsThumb",
slides: [
{
label: <T id="tutorials.tickets.label1" m="Time-locking coins" />, // TODO
label: <T id="tutorials.tickets.label1" m="Buying tickets" />, // TODO
doc: "TicketsPage01",
title: (
<T
id="tutorials.tickets.title1"
m="Tickets are created by time-locking coins"
m="Tickets can be purchased to participate in the PoS system."
/>
),
images: ["ticketsSlideImage1"]
},
{
label: (
<T id="tutorials.tickets.label2" m="Tickets have multiple functions" />
), // TODO
label: <T id="tutorials.tickets.label2" m="Tickets have multiple uses" />, // TODO
doc: "TicketsPage02",
title: (
<T id="tutorials.tickets.title2" m="Tickets have multiple functions" />
),
title: <T id="tutorials.tickets.title2" m="Tickets have multiple uses" />,
images: ["ticketsSlideImage2-1", "ticketsSlideImage2-2"]
},
{
Expand All @@ -193,13 +187,13 @@ tutorials.tickets = {

tutorials.staking = {
title: "Core Functions of Staking",
desc: "Small description of the tutorial in 1-2 sentences. Small description of the tutorial in 1-2 sentences. ", // TODO
desc: "Learn about the core functions of staking and how your votes lead to real changes.", // TODO
thumbnailImage: "stakingThumb",
slides: [
{
label: <T id="tutorials.staking.label1" m="New block creation" />, // TODO
label: <T id="tutorials.staking.label1" m="Previous Block Validation" />, // TODO
doc: "StakingPage01",
title: <T id="tutorials.staking.title1" m="New block creation" />,
title: <T id="tutorials.staking.title1" m="Previous Block Validation" />,
images: ["stakingSlideImage1"]
},
{
Expand Down Expand Up @@ -228,30 +222,19 @@ tutorials.staking = {

tutorials.lifecycle = {
title: "Ticket Lifecycle",
desc: "Small description of the tutorial in 1-2 sentences. Small description of the tutorial in 1-2 sentences. ", // TODO
desc: "Learn all about how a ticket is created, consumed and the rewards for voting.", // TODO
thumbnailImage: "lifecycleThumb",
slides: [
{
label: (
<T id="tutorials.lifecycle.label1" m="Proof-of-Stake, Block Rewards" />
), // TODO
label: <T id="tutorials.lifecycle.label1" m="Tickets to real rewards" />, // TODO
doc: "LifecyclePage01",
title: (
<T id="tutorials.lifecycle.title1" m="Proof-of-Stake, Block Rewards" />
),
title: <T id="tutorials.lifecycle.title1" m="Tickets to real rewards" />,
images: ["lifecycleSlideImage1-1", "lifecycleSlideImage1-2"]
},
{
label: (
<T id="tutorials.lifecycle.label2" m="Ticket's different states" />
), // TODO
label: <T id="tutorials.lifecycle.label2" m="Ticket's Lifecycle" />, // TODO
doc: "LifecyclePage02",
title: (
<T
id="tutorials.lifecycle.title2"
m="Ticket goes through different states in their lifecycle"
/>
),
title: <T id="tutorials.lifecycle.label2" m="Ticket's Lifecycle" />,
images: ["lifecycleSlideImage2"]
},
{
Expand All @@ -278,13 +261,9 @@ tutorials.lifecycle = {
]
},
{
label: (
<T id="tutorials.lifecycle.label6" m="“When Something Went Wrong”" />
), // TODO
label: <T id="tutorials.lifecycle.label6" m="Missed or Expired" />, // TODO
doc: "LifecyclePage06",
title: (
<T id="tutorials.lifecycle.title6" m="“When Something Went Wrong”" />
),
title: <T id="tutorials.lifecycle.title6" m="Missed or Expired" />,
images: [
"lifecycleSlideImage6-1",
"lifecycleSlideImage6-2",
Expand All @@ -296,7 +275,7 @@ tutorials.lifecycle = {

tutorials.consensusVoting = {
title: "Consensus Voting",
desc: "Small description of the tutorial in 1-2 sentences. Small description of the tutorial in 1-2 sentences. ", // TODO
desc: "Learn all about how the consensus vote takes place and how your votes are tabulated.", // TODO
thumbnailImage: "consensusVotingThumb",
slides: [
{
Expand Down Expand Up @@ -330,15 +309,15 @@ tutorials.consensusVoting = {
images: ["consensusVotingSlideImage5"]
},
{
label: <T id="tutorials.consensusVoting.label6" m="Ticket Lifecycle" />, // TODO
label: <T id="tutorials.consensusVoting.label6" m="Outcomes" />, // TODO
doc: "ConsensusVotingPage06",
title: <T id="tutorials.consensusVoting.title6" m="Ticket Lifecycle" />,
title: <T id="tutorials.consensusVoting.title6" m="Outcomes" />,
images: ["consensusVotingSlideImage6"]
},
{
label: <T id="tutorials.consensusVoting.label7" m="Approval" />, // TODO
label: <T id="tutorials.consensusVoting.label7" m="Conclusion" />, // TODO
doc: "ConsensusVotingPage07",
title: <T id="tutorials.consensusVoting.title7" m="Approval" />,
title: <T id="tutorials.consensusVoting.title7" m="Conclusion" />,
images: ["consensusVotingSlideImage7"]
}
]
Expand Down Expand Up @@ -388,7 +367,7 @@ tutorials.blocks = {

tutorials.identity = {
title: "Identity (Pi/CMS)",
desc: "Small description of the tutorial in 1-2 sentences. Small description of the tutorial in 1-2 sentences. ", // TODO
desc: "", // TODO
slides: [
{
label: <T id="tutorials.identity.label1" m="Back-up your ID" />, // TODO
Expand Down
13 changes: 13 additions & 0 deletions app/i18n/docs/ar/DexNotes/DexNotes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
مرحبًا بكم في منصة المبادلات اللامركزية لديكريد!

على الرغم من أن منصة المبادلات اللامركزية لديكريد تبدو وكأنها منصة مبادلات عادية، إلا أن هناك اختلافات مهمة. يرجى قراءة النقاط البارزة والإشعارات المهمة على https://github.com/decred/dcrdex/blob/master/docs/release-notes/release-notes-0.2.0.md.

لا يتم تسوية التداولات على الفور. تحدث التسوية على السلسلة، وتتطلب تأكيدات كتل متعددة. اعتمادًا على ظروف الشبكة، قد يستغرق ذلك ساعات. يجب أن يظل برنامج DEX والمحافظ الخارجية مثل bitcoind قيد التشغيل حتى تتم تسوية تداولاتك بالكامل أو استردادها.

يجب أن تظل متصلاً بالإنترنت طوال مدة تسوية التداول. يعد فقدان الاتصال لعدة دقائق أمرًا مقبولًا بشكل عام، ولكن قد يتسبب وقت التوقف الطويل في إلغاء المقايضة (إجبارها على رد الأموال) وإلغاء طلباتك المحجوزة. لا يؤدي فقدان اتصالك بخادم DEX إلى تعريض الأموال للخطر. إذا كنت بحاجة إلى إعادة تشغيل برنامج DEX، فتأكد من تسجيل الدخول مرة أخرى على الفور.

ابدأ دائمًا بالمحافظ الخارجية أولاً، ثم قم بإيقاف تشغيلها عند الانتهاء.

أثناء المبادلة، إذا فشلت أنت أو الطرف المقابل في التصرف لأي سبب من الأسباب، فقد يتم إبطال المطابقة بعد انقضاء المهلة. إذا كان لديك مثل هذه المطابقة التي تم إبطالها، فاحتفظ ببرنامج DEX والمحافظ قيد التشغيل حتى تكتمل عمليات استرداد الأموال. يمكن أن يصل هذا إلى 20 ساعة اعتمادًا على ما إذا كنت صانعًا أو آخذًا.

للحصول على الدعم، يرجى زيارة [غرفة دردشة #dex على الماتريكس](https://matrix.to/#/!mlRZqBtfWHrcmgdTWB:decred.org?via=decred.org&via=matrix.org&via=planetdecred.org).
9 changes: 9 additions & 0 deletions app/i18n/docs/ar/GetStarted/TutorialPage01.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ما هي سلسلة كتل ديكريد؟

يوجد في قلب ديكريد قائمة متزايدة باستمرار من السجلات المشتركة عالميًا عبر سجل لامركزي؛ هذه هي سلسلة كتل ديكريد.

تحتفظ سلسلة الكتل بجميع بيانات معاملات ديكريد وتستخدم **نظام إثبات الحصة (PoS)/إثبات العمل (PoW)** للتحقق من صحة المعاملات والحفاظ على أمن الشبكة.

يخفف هذا النظام الهجين من نقاط الضعف التي يعاني منها إثبات الحصة و إثبات العمل بشكل فردي. وعلاوة على ذلك، فإنه يشكل حجر الزاوية **للحوكمة الذكية** للمشروع.

تساعد المشاركة الواسعة في **التحصيص (PoS)** و **التعدين (PoW)** على حماية حيادية الشبكة ومكافأة المشاركين بوحدات ديكريد التي تم إنشاؤها حديثًا من مكافأة الكتلة.
9 changes: 9 additions & 0 deletions app/i18n/docs/ar/GetStarted/TutorialPage02.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ما هي المحفظة؟

**المحفظة هي أداة للتفاعل مع سلسلة الكتل واستخدام ديكريد كعملة**. يمكنك استخدامها لإرسال أموال ديكريد واستلامها، كسجل شخصي لتسجيل معاملاتك والمشاركة في التحصيص (إثبات الحصة).

يتم إنشاء المحافظ بطريقة حتمية بواسطة مفتاح أساسي. بذرة مختزلة هي قائمة من **33 كلمة** يمكن كتابتها بسهولة على قطعة من الورق لنسخها احتياطيا.

**تعمل البذرة كمفتاح رئيسي** تخزن جميع المعلومات اللازمة لإعادة إنشاء المحفظة في أي وقت حتى لو تم نسيان عبارة المرور المشفرة أو تم تدمير المحفظة. يمكن أيضًا استخدام البذرة لتصدير محفظتك إلى محافظ اخرى لديكريد.

**قد يؤدي الفشل في الحفاظ على خصوصية مفتاح البذرة الخاصة بك إلى سرقة محفظتك بالكامل. لا ينبغي تحت أي ظرف من الظروف الكشف عنها لشخص آخر.**
15 changes: 15 additions & 0 deletions app/i18n/docs/ar/GetStarted/TutorialPage03.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# التحصيص والحوكمة

المشاركة في التحصيص (إثبات الحصة) مفتوح للجميع ويتطلب القفل الزمني لجزء من وحدات ديكريد الخاصة بك مقابل التذاكر. هنالك هدفين من هذه التذاكر:

- أولا أنها تؤدي وظيفة تلقائية للتصويت على صلاحية الكتل الجديدة.

- ثانيًا، فهي تمنح الحق في المشاركة في عمليات صنع القرار التي تحدد مستقبل ديكريد.

عملية التحصيص هي في الأساس يانصيب، حيث يتم اختيار التذاكر للتصويت بشكل عشوائي. يُعيد التصويت الناجح للمشارك التكلفة الأصلية للتذكرة وجزءًا من مكافأة الكتلة كأرباح بوحدات ديكريد التي تم إنشاؤها حديثًا.

في حالة عدم التصويت (احتمال 0.5٪)، يتم إرجاع التكلفة الأصلية للتذكرة بأمان دون المكافأة. متوسط الوقت لتصويت التذكرة هو 28 يومًا و يصل الحد الأقصى إلى 142 يومًا.

**يشجع التحصيص على الاستثمار طويل الأجل في ديكريد**. بحيث يتم منح المشاركين
صوتًا حقيقيًا في عملية صنع القرار ويتم مكافأتهم على المشاركة في
إدارة المشروع.
12 changes: 12 additions & 0 deletions app/i18n/docs/ar/GetStarted/TutorialPage04.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# نصائح السلامة

**أنت وحدك المسؤول عن أمنك**. احتفظ دائمًا بمفتاح البذرة وكلمة المرور في أمان. إذا فقدتهم، فلن يتمكن أي شخص آخر من استعادتهم.

قم بعمل نسخة احتياطية من مفتاح البذرة وكلمة المرور. لا تخزنه على جهاز الكمبيوتر الخاص بك، وبدلاً من ذلك قم بتدوينه أو طباعته على قطعة من الورق أو حفظه في محرك أقراص USB.

لا تخزن مفتاح البذرة في تخزين سحابي أو خدمة كلمة مرور. إذا تعرض حسابك للخطر، فقد تتعرض أموالك للخطر.

لا تدخل مفتاح البذرة إلى أي موقع ويب. لا أحد يستطيع عكس أو إلغاء أو استرداد المعاملات إذا تم اختراق محفظتك.

**عندما لا يبدو شيء ما صحيحًا أو لا تفهمه، اطرح الأسئلة
وقم بأبحاثك الخاصة. تجنب اتخاذ قرار بناء على الخوف.**
13 changes: 13 additions & 0 deletions app/i18n/docs/ar/InfoModals/BalanceOverview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# معلومات الرصيد

**الإجمالي** هذا هو إجمالي الرصيد الذي يتحكم فيه هذا الحساب حاليًا.

**الرصيد القابل للإنفاق** الرصيد القابل للإنفاق/المتاح لهذا الحساب.

**مغلق بالتذاكر** هذا هو الرصيد الذي تم قفله حاليًا بواسطة تذاكر هذا الحساب. بمجرد التصويت على التذاكر أو إبطالها، سيتم فتح هذه الأموال.

**سلطة التصويت** يوضح هذا الرصيد المبلغ الإجمالي الذي يتمتع به هذا الحساب بسلطة التصويت. على سبيل المثال، إذا كنت تستخدم محفظة التصويت فقط، فسيظهر ذلك المبلغ الإجمالي الذي يتم التحكم فيه.

**المكافآت غير الناضجة** هذه هي مكافآت المعاملات الأولية التي تنضج حاليًا (من مكافأة التعدين PoW على سبيل المثال).

**مكافآت التحصيص غير الناضجة** يُظهر هذا الرصيد مكافآت التحصيص الحالية وعمليات الإسترجاع التي تنتظر النضوج (256 كتلة على الشبكة الرئيسية). "
Loading

0 comments on commit d101a5e

Please sign in to comment.