Create a configuration in your vscode settings.json file:
{
"xlog.handle": "hyoban",
"xlog.post-folder": "posts",
"xlog.token": "your-token"
}
Caution
Do not commit your token to your repository. You should put it in both your user settings and your workspace settings.(In VSCode, click on the gear icon in the bottom left corner and navigate to Settings. Searching for 'xlog' will allow you to find both the user settings and workspace settings.)
To get your token, go to your xLog dashboard, open developer tools (F12), and run the following code in console:
JSON.parse(localStorage.getItem("connect-kit:account")).state.wallet.siwe.token;
Note
Read more: 技术折腾 xLog 2 深入理解 xlog 的鉴权
- download your posts
- create/update a post by right-clicking your markdown file.
- upload any file to ipfs by right-clicking your file.