From 6a860a435dab57cef51ed0cfe509084383333700 Mon Sep 17 00:00:00 2001 From: Jason-Wanxt Date: Fri, 22 Nov 2024 22:12:03 +0800 Subject: [PATCH 1/3] reorder title --- src/data/routes.ts | 76 +++++++++++++++++++++++----------------------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/src/data/routes.ts b/src/data/routes.ts index 5b65049..f95d918 100644 --- a/src/data/routes.ts +++ b/src/data/routes.ts @@ -19,11 +19,6 @@ export const basicExamples = [ title: 'Hello World', description: 'Learn how to use the console output', }, - { - route: '/basic_examples/bytes_in_bytes_out', - title: 'Bytes In, Bytes Out', - description: 'Learn about the basic entrypoint model', - }, { route: '/basic_examples/first_app', title: 'First App', @@ -45,21 +40,36 @@ export const basicExamples = [ title: 'Constants', description: 'How to define constant values in your contract', }, + { + route: '/basic_examples/arrays', + title: 'Arrays', + description: 'A simple arrays example in stylus', + }, + { + route: '/basic_examples/function', + title: 'Functions', + description: 'Learn about function parameters, return types, and visibility', + }, + { + route: '/basic_examples/bytes_in_bytes_out', + title: 'Bytes In, Bytes Out', + description: 'Learn about the basic entrypoint model', + }, { route: '/basic_examples/events', title: 'Events', description: 'Log public events to the blockchain', }, - { - route: '/basic_examples/call', - title: 'Call', - description: 'Call other contracts on Rust Stylus smart contracts', - }, { route: '/basic_examples/errors', title: 'Errors', description: 'Errors on Stylus Rust smart contracts', }, + { + route: '/basic_examples/call', + title: 'Call', + description: 'Call other contracts on Rust Stylus smart contracts', + }, { route: "/basic_examples/sending_ether", title: "Sending Ether", @@ -71,10 +81,22 @@ export const basicExamples = [ description: "Compute the encoded function selector of a contract's function", }, { - route: "/basic_examples/verify_signature", - title: "Verifying Signature", + route: "/basic_examples/abi_encode", + title: "ABI Encode", description: - "An explanation of how to verify a signature signed off chain.", + "A simple solidity ABI encode and decode example", + }, + { + route: "/basic_examples/abi_decode", + title: "ABI Decode", + description: + "A simple solidity ABI encode and decode example", + }, + { + route: "/basic_examples/hashing", + title: "Hashing with keccak256", + description: + "A simple solidity ABI encode and decode example", }, { route: "/basic_examples/inheritance", @@ -97,32 +119,10 @@ export const basicExamples = [ description: "Accesing VM affordances in the Stylus Rust SDK", }, { - route: "/basic_examples/abi_encode", - title: "ABI Encode", - description: - "A simple solidity ABI encode and decode example", - }, - { - route: "/basic_examples/abi_decode", - title: "ABI Decode", - description: - "A simple solidity ABI encode and decode example", - }, - { - route: "/basic_examples/hashing", - title: "Hashing with keccak256", + route: "/basic_examples/verify_signature", + title: "Verifying Signature", description: - "A simple solidity ABI encode and decode example", - }, - { - route: '/basic_examples/function', - title: 'Functions', - description: 'Learn about function parameters, return types, and visibility', - }, - { - route: '/basic_examples/arrays', - title: 'Arrays', - description: 'A simple arrays example in stylus', + "An explanation of how to verify a signature signed off chain.", }, ]; From 3644033daa3cc717164e64c69613b5d6ce91e9c4 Mon Sep 17 00:00:00 2001 From: Jason-W123 <147362502+Jason-W123@users.noreply.github.com> Date: Mon, 13 Jan 2025 15:40:42 +0800 Subject: [PATCH 2/3] Update routes.ts --- src/data/routes.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/data/routes.ts b/src/data/routes.ts index d6c3a25..066f072 100644 --- a/src/data/routes.ts +++ b/src/data/routes.ts @@ -94,19 +94,19 @@ export const basicExamples = [ route: "/basic_examples/abi_encode", title: "ABI Encode", description: - "A simple solidity ABI encode and decode example", + "A simple solidity ABI encode example", }, { route: "/basic_examples/abi_decode", title: "ABI Decode", description: - "A simple solidity ABI encode and decode example", + "A simple solidity ABI decode example", }, { route: "/basic_examples/hashing", title: "Hashing with keccak256", description: - "A simple solidity ABI encode and decode example", + "A simple solidity keccak256 hashing example", }, { route: "/basic_examples/inheritance", From ba467477d15239c666d3c7d32c6d70944c0432df Mon Sep 17 00:00:00 2001 From: Jason-W123 <147362502+Jason-W123@users.noreply.github.com> Date: Mon, 13 Jan 2025 15:42:40 +0800 Subject: [PATCH 3/3] Update routes.ts --- src/data/routes.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/data/routes.ts b/src/data/routes.ts index 066f072..82cee3c 100644 --- a/src/data/routes.ts +++ b/src/data/routes.ts @@ -135,11 +135,6 @@ export const basicExamples = [ "An explanation of how to verify a signature signed off chain.", }, - { - route: '/basic_examples/function', - title: 'Functions', - description: 'Learn about function parameters, return types, and visibility', - }, ]; export const applications = [