Skip to content

Commit 363d01b

Browse files
committed
Merge remote-tracking branch 'origin/feature/advance-nft' into feature/advance-nft
2 parents fcc5219 + d7426c1 commit 363d01b

File tree

12 files changed

+226
-21
lines changed

12 files changed

+226
-21
lines changed

.env.example

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
TYPESENSE_COLLECTION_NAME=
2-
TYPESENSE_SERVER_HOST=
3-
TYPESENSE_SEARCH_ONLY_APIKEY=
1+
FEEDBACK_CONTENT_SET_ID=

.github/workflows/pr.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,5 @@ jobs:
3232
- name: create env file
3333
run: |
3434
touch .env
35-
echo TYPESENSE_COLLECTION_NAME="test-collection" >> .env
36-
echo TYPESENSE_SERVER_HOST="test-host" >> .env
37-
echo TYPESENSE_SEARCH_ONLY_APIKEY="test-api-key" >> .env
35+
echo FEEDBACK_CONTENT_SET_ID=${{ vars.FEEDBACK_CONTENT_SET_ID }} >> .env
3836
- run: npm run build

.github/workflows/s3.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ jobs:
2222
- name: create env file
2323
run: |
2424
touch .env
25-
echo TYPESENSE_COLLECTION_NAME=${{ vars.TYPESENSE_COLLECTION_NAME }} >> .env
26-
echo TYPESENSE_SERVER_HOST=${{ vars.TYPESENSE_SERVER_HOST }} >> .env
27-
echo TYPESENSE_SEARCH_ONLY_APIKEY=${{ vars.TYPESENSE_SEARCH_ONLY_APIKEY }} >> .env
25+
echo FEEDBACK_CONTENT_SET_ID=${{ vars.FEEDBACK_CONTENT_SET_ID }} >> .env
2826
- run: npm run build
2927

3028
- name: Configure AWS Credentials

docs/quick-start/advance-tutorials/_setup.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ import TabItem from '@theme/TabItem';
77
- Basic knowledge of terminal commands
88
- **IDE** - Install [VS Code](https://code.visualstudio.com/)
99

10+
**Note for Apple Silicon users:**
11+
12+
Ensure that Rosetta is installed, if it is not, use the following command:
13+
14+
```bash title="Terminal"
15+
softwareupdate --install-rosetta
16+
```
17+
1018
**Install Required Packages**
1119

1220
- [Install dotnet 8.0.x SDK](https://dotnet.microsoft.com/en-us/download/dotnet/8.0)

docs/quick-start/advance-tutorials/nft-indexer/index.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
---
2-
sidebar_position: 5
2+
sidebar_position: 1
3+
title: NFT AeIndexer
4+
description: Advance featured AeIndexer application
35
---
4-
# NFT AeIndexer
6+
# NFT dApp with AeIndexer
57

68
**Description**: This application demonstrates how to maintain account balances and transfer records by indexing aelf's NFT issued data.
79

@@ -183,7 +185,7 @@ public class NFTTransferredProcessor : LogEventProcessorBase<Issued>, ITransient
183185
}
184186
```
185187

186-
- Add files AccountDto.cs, TransferRecordDto.cs, GetAccountInput.cs, GetTransferRecordInput.cs to the directory src/nftIndexer/GraphQL.
188+
- Add files `AccountDto.cs`, `TransferRecordDto.cs`, `GetAccountInput.cs`, `GetTransferRecordInput.cs` to the directory `src/nftIndexer/GraphQL`.
187189

188190
```csharp title="AccountDto.cs"
189191
using AeFinder.Sdk.Dtos;
@@ -237,7 +239,7 @@ public class GetTransferRecordInput
237239
}
238240
```
239241

240-
- Modify src/nftIndexer/GraphQL/Query.cs to add query logic.
242+
- Modify `src/nftIndexer/GraphQL/Query.cs` to add query logic.
241243

242244
```csharp title="Query.cs"
243245
using AeFinder.Sdk;
@@ -301,7 +303,7 @@ public class Query
301303

302304
- Register log event processor
303305

304-
Modify src/nftIndexer/nftIndexerModule.cs to register NFTTransferredProcessor.
306+
Modify `src/nftIndexer/nftIndexerModule.cs` to register NFTTransferredProcessor.
305307

306308
```csharp title="nftIndexerModule.cs"
307309
using AeFinder.Sdk.Processor;
@@ -404,4 +406,4 @@ query{
404406
}
405407
}
406408
}
407-
}
409+
}

docs/quick-start/developers/_setup.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ import TabItem from '@theme/TabItem';
77
- Basic knowledge of terminal commands
88
- **IDE** - Install [VS Code](https://code.visualstudio.com/)
99

10+
**Note for Apple Silicon users:**
11+
12+
Ensure that Rosetta is installed, if it is not, use the following command:
13+
14+
```bash title="Terminal"
15+
softwareupdate --install-rosetta
16+
```
17+
1018
**Install Required Packages**
1119

1220
- [Install dotnet 8.0.x SDK](https://dotnet.microsoft.com/en-us/download/dotnet/8.0)

docusaurus.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ const config: Config = {
110110
indexName: "aelf",
111111
},
112112
} satisfies Preset.ThemeConfig,
113+
customFields: {
114+
FEEDBACK_CONTENT_SET_ID: process.env.FEEDBACK_CONTENT_SET_ID || "",
115+
},
113116
stylesheets: [
114117
{
115118
href: "/katex/katex.min.css",

package-lock.json

Lines changed: 22 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"dependencies": {
1818
"@docusaurus/core": "3.4.0",
1919
"@docusaurus/preset-classic": "3.4.0",
20+
"@feelback/react": "^0.3.4",
2021
"@mdx-js/react": "^3.0.0",
2122
"@sinm/react-file-tree": "^1.1.1",
2223
"chaingpt-component": "^0.2.0-beta.3",

src/css/custom.css

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,41 @@
7070
.mobile-only {
7171
display: none;
7272
}
73+
}
74+
75+
/*
76+
Feedback widget CSS customization
77+
https://www.feelback.dev/docs/guides/stripe-like-documentation-feedback-for-docusaurus/
78+
*/
79+
@import "@feelback/react/styles/feelback.css";
80+
81+
.feedback-component{
82+
margin-top: 2rem;
83+
}
84+
85+
.feedback-component .feelback-container .feelback-buttons{
86+
gap: 10px;
87+
}
88+
89+
.feedback-component .feelback-container .feelback-btn {
90+
background-color: var(--ifm-color-primary);
91+
color: white;
92+
height: 37px;
93+
padding-inline: 15px;
94+
border-radius: 7px;
95+
}
96+
97+
.feedback-component .feelback-container .feelback-btn:hover{
98+
background-color: var(--ifm-color-primary-dark);
99+
100+
}
101+
102+
.feedback-component .feelback-container textarea {
103+
border: 1px solid var(--ifm-color-primary-lightest);
104+
border-radius: 10px;
105+
padding: 0.7rem;
106+
}
107+
108+
.feedback-component .feelback-radio-side label{
109+
font-weight: 600;
73110
}

0 commit comments

Comments
 (0)