Add: Features

pull/206/head
LiLittleCat 2 years ago
parent e1290f02be
commit 05f7867df8
  1. 11
      data/features.json
  2. 6
      data/websites.json
  3. 21
      pom.xml
  4. 30
      src/main/java/com.lilittlecat/app/Features.java

@ -0,0 +1,11 @@
{
"free": 2,
"free_quota": 1,
"gpt4_supported": 0.5,
"more_than_chat": 0.5,
"login_required": -1,
"vpn_required": -1,
"api_key_required": -1,
"follow_on_wechat_required": -1,
"community_recommendation": 0.5
}

@ -0,0 +1,6 @@
{
"websites": {
"normal": [],
"abnormal": []
}
}

@ -32,20 +32,15 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
<version>2.3.32</version>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>4.9.0</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-grid</artifactId>
<version>4.9.0</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.seleniumhq.selenium</groupId>-->
<!-- <artifactId>selenium-java</artifactId>-->
<!-- <version>4.9.0</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.seleniumhq.selenium</groupId>-->
<!-- <artifactId>selenium-grid</artifactId>-->
<!-- <version>4.9.0</version>-->
<!-- </dependency>-->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>

@ -0,0 +1,30 @@
package com.lilittlecat.app;
import lombok.Getter;
/**
* @author <a href="https://github.com/LiLittleCat">LiLittleCat</a>
* @since 2023/5/7
*/
@Getter
public enum Features {
FREE("free", "🆓", 2f),
FREE_QUOTA("free_quota", "🔓", 1f),
GPT4_SUPPORTED("gpt4_supported", "🧠", 0.5f),
MORE_THAN_CHAT("more_than_chat", "💬", 0.5f),
LOGIN_REQUIRED("login_required", "🔒", -1f),
VPN_REQUIRED("vpn_required", "🌐", -1f),
API_KEY_REQUIRED("api_key_required", "🔑", -1f),
FOLLOW_ON_WECHAT_REQUIRED("follow_on_wechat_required", "👀", -1f),
COMMUNITY_RECOMMENDATION("community_recommendation", "🌟", 0.5f);;
private final String value;
private final String label;
private final Float score;
Features(String value, String label, Float score) {
this.value = value;
this.label = label;
this.score = score;
}
}
Loading…
Cancel
Save