You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by "Winterspringkle (via GitHub)" <gi...@apache.org> on 2023/04/24 13:53:55 UTC
[GitHub] [incubator-kvrocks-website] Winterspringkle opened a new pull request, #95: Add code-block and chart
Winterspringkle opened a new pull request, #95:
URL: https://github.com/apache/incubator-kvrocks-website/pull/95


Please fill the code block with demo. @git-hulk
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-kvrocks-website] git-hulk commented on pull request #95: Add code-block and chart
Posted by "git-hulk (via GitHub)" <gi...@apache.org>.
git-hulk commented on PR #95:
URL: https://github.com/apache/incubator-kvrocks-website/pull/95#issuecomment-1528780435
@Winterspringkle Can use below client code samples:
Java:
```java
package org.example;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
JedisPool pool = new JedisPool("127.0.0.1", 6666);
try (Jedis jedis = pool.getResource()) {
jedis.set("username", "kvrocks");
System.out.println(jedis.get("username"));
}
```
Go
```go
import (
"context"
"fmt"
"github.com/redis/go-redis/v9"
)
client := redis.NewClient(&redis.Options{
Addr: "localhost:6666",
})
err := client.Set(ctx, "username", "kvrocks", 0).Err()
if err != nil {
panic(err)
}
val, err := client.Get(ctx, "username").Result()
if err != nil {
panic(err)
}
fmt.Println("username", val)
```
Python
```python
r = redis.Redis(host='localhost', port=6666, decode_responses=True)
r.set('username', 'kvrocks')
# True
r.get('username')
# kvrocks
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-kvrocks-website] PragmaTwice merged pull request #95: Add code-block and chart
Posted by "PragmaTwice (via GitHub)" <gi...@apache.org>.
PragmaTwice merged PR #95:
URL: https://github.com/apache/incubator-kvrocks-website/pull/95
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-kvrocks-website] git-hulk commented on pull request #95: Add code-block and chart
Posted by "git-hulk (via GitHub)" <gi...@apache.org>.
git-hulk commented on PR #95:
URL: https://github.com/apache/incubator-kvrocks-website/pull/95#issuecomment-1520206731
Cool, thanks for your efforts. I will take a look later.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-kvrocks-website] Winterspringkle commented on pull request #95: Add code-block and chart
Posted by "Winterspringkle (via GitHub)" <gi...@apache.org>.
Winterspringkle commented on PR #95:
URL: https://github.com/apache/incubator-kvrocks-website/pull/95#issuecomment-1525679928
@PragmaTwice Antd, E-charts and ACE-coder are added in package list. The yarn.lock is updated in this version.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-kvrocks-website] git-hulk commented on pull request #95: Add code-block and chart
Posted by "git-hulk (via GitHub)" <gi...@apache.org>.
git-hulk commented on PR #95:
URL: https://github.com/apache/incubator-kvrocks-website/pull/95#issuecomment-1537996140
> @git-hulk Could you confirm the redis command coverage rate in the pie chart?
Sure, the Redis commands may be added or deleted in different versions, so I think it makes no sense to calculate the percentage of supported commands. How about the supported data structures(not including the Redis module) and core features like Lua/Transaction?
If yes, Redis Core supports String/Hash/ZSet/List/Set/HyperLogLog/Lua/Transaction, and Kvrocks now supports String/Hash/ZSet/List/Set/Lua/Transaction, so we can say the supported features is
88.5%, and 12.5% are doing.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-kvrocks-website] Winterspringkle commented on pull request #95: Add code-block and chart
Posted by "Winterspringkle (via GitHub)" <gi...@apache.org>.
Winterspringkle commented on PR #95:
URL: https://github.com/apache/incubator-kvrocks-website/pull/95#issuecomment-1537721065
@PragmaTwice Sorry for previous centralized submission.s This time the CI error is solved in local environment.

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-kvrocks-website] Winterspringkle commented on pull request #95: Add code-block and chart
Posted by "Winterspringkle (via GitHub)" <gi...@apache.org>.
Winterspringkle commented on PR #95:
URL: https://github.com/apache/incubator-kvrocks-website/pull/95#issuecomment-1537901509
@PragmaTwice All checks have passed and please check the effect of code block and charts.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-kvrocks-website] PragmaTwice commented on pull request #95: Add code-block and chart
Posted by "PragmaTwice (via GitHub)" <gi...@apache.org>.
PragmaTwice commented on PR #95:
URL: https://github.com/apache/incubator-kvrocks-website/pull/95#issuecomment-1536074315
I think you can try the command in your local, and push the code after the yarn install command successfully executed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-kvrocks-website] PragmaTwice commented on pull request #95: Add code-block and chart
Posted by "PragmaTwice (via GitHub)" <gi...@apache.org>.
PragmaTwice commented on PR #95:
URL: https://github.com/apache/incubator-kvrocks-website/pull/95#issuecomment-1528677557
BTW the CI still failed due to the lockfile issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-kvrocks-website] PragmaTwice commented on a diff in pull request #95: Add code-block and chart
Posted by "PragmaTwice (via GitHub)" <gi...@apache.org>.
PragmaTwice commented on code in PR #95:
URL: https://github.com/apache/incubator-kvrocks-website/pull/95#discussion_r1187203761
##########
src/components/HomepageFeatures/index.tsx:
##########
@@ -61,20 +70,290 @@ function Feature({imgPath,title, description}: FeatureItem) {
);
}
-export default function HomepageFeatures(): JSX.Element {
+export function PieChartRight(): JSX.Element {
+ useEffect(() => {
+ var myChart_obj=document.getElementById("PieChartRight")
+ if (myChart_obj != null && myChart_obj != undefined){
+ echarts.dispose(document.getElementById("PieChartRight"))
+ }
+ var myChart = echarts.init(document.getElementById("PieChartRight"));
+ myChart.setOption({
+ title: {
+ text: 'Supported Commands',
+ left: 'center'
+ },
+ tooltip: {
+ trigger: 'item',
+
+ },
+ legend: {
+ orient: 'vertical',
+ left: 'right'
+ },
+ series: [
+ {
+ name: 'Access From',
+ type: 'pie',
+ radius: '75%',
+ data: [
+ { value: 870, name: 'Supported ',itemStyle: {color: 'rgb(255,0,102)'} },
+ { value: 100, name: 'Todo',itemStyle: {color: 'rgb(153,0,255)'} },
+ { value: 30, name: 'Doing',itemStyle: {color: 'rgb(246,108,104)'} }
Review Comment:
```suggestion
{ value: 875, name: 'Supported ',itemStyle: {color: 'rgb(255,0,102)'} },
{ value: 125, name: 'TODO',itemStyle: {color: 'rgb(153,0,255)'} },
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-kvrocks-website] Winterspringkle commented on pull request #95: Add code-block and chart
Posted by "Winterspringkle (via GitHub)" <gi...@apache.org>.
Winterspringkle commented on PR #95:
URL: https://github.com/apache/incubator-kvrocks-website/pull/95#issuecomment-1538009656
Of cource, I will modify the data according to suggested change.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-kvrocks-website] Winterspringkle commented on pull request #95: Add code-block and chart
Posted by "Winterspringkle (via GitHub)" <gi...@apache.org>.
Winterspringkle commented on PR #95:
URL: https://github.com/apache/incubator-kvrocks-website/pull/95#issuecomment-1537723972
I will check build error latter.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-kvrocks-website] PragmaTwice commented on pull request #95: Add code-block and chart
Posted by "PragmaTwice (via GitHub)" <gi...@apache.org>.
PragmaTwice commented on PR #95:
URL: https://github.com/apache/incubator-kvrocks-website/pull/95#issuecomment-1520253899
The CI failed. Could you take a look to it? Seems the lockfile is modified unexpectedly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-kvrocks-website] PragmaTwice commented on pull request #95: Add code-block and chart
Posted by "PragmaTwice (via GitHub)" <gi...@apache.org>.
PragmaTwice commented on PR #95:
URL: https://github.com/apache/incubator-kvrocks-website/pull/95#issuecomment-1539319597
Thanks for your contribution!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-kvrocks-website] PragmaTwice commented on pull request #95: Add code-block and chart
Posted by "PragmaTwice (via GitHub)" <gi...@apache.org>.
PragmaTwice commented on PR #95:
URL: https://github.com/apache/incubator-kvrocks-website/pull/95#issuecomment-1537951841
@git-hulk Could you confirm the redis command coverage rate in the pie chart?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-kvrocks-website] PragmaTwice commented on pull request #95: Add code-block and chart
Posted by "PragmaTwice (via GitHub)" <gi...@apache.org>.
PragmaTwice commented on PR #95:
URL: https://github.com/apache/incubator-kvrocks-website/pull/95#issuecomment-1538013303
"doing" is a weird word, both TODO or WIP is ok to me.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-kvrocks-website] git-hulk commented on pull request #95: Add code-block and chart
Posted by "git-hulk (via GitHub)" <gi...@apache.org>.
git-hulk commented on PR #95:
URL: https://github.com/apache/incubator-kvrocks-website/pull/95#issuecomment-1528678744
> @git-hulk Is there any client code for demonstration in the website?
I can add those client demos today.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-kvrocks-website] PragmaTwice commented on pull request #95: Add code-block and chart
Posted by "PragmaTwice (via GitHub)" <gi...@apache.org>.
PragmaTwice commented on PR #95:
URL: https://github.com/apache/incubator-kvrocks-website/pull/95#issuecomment-1528676646
@git-hulk Is there any client code for demonstration in the website?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org