From 05f7867df8764b146ccd69988e7d3e5f95388f6d Mon Sep 17 00:00:00 2001 From: LiLittleCat Date: Sun, 7 May 2023 22:57:30 +0800 Subject: [PATCH] Add: Features --- data/features.json | 11 +++++++ data/websites.json | 6 ++++ pom.xml | 21 +++++-------- .../java/com.lilittlecat/app/Features.java | 30 +++++++++++++++++++ 4 files changed, 55 insertions(+), 13 deletions(-) create mode 100644 data/features.json create mode 100644 data/websites.json create mode 100644 src/main/java/com.lilittlecat/app/Features.java diff --git a/data/features.json b/data/features.json new file mode 100644 index 0000000..e087348 --- /dev/null +++ b/data/features.json @@ -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 +} \ No newline at end of file diff --git a/data/websites.json b/data/websites.json new file mode 100644 index 0000000..0a51ba1 --- /dev/null +++ b/data/websites.json @@ -0,0 +1,6 @@ +{ + "websites": { + "normal": [], + "abnormal": [] + } +} \ No newline at end of file diff --git a/pom.xml b/pom.xml index fe3e6a1..b25ff20 100644 --- a/pom.xml +++ b/pom.xml @@ -32,20 +32,15 @@ provided - org.freemarker - freemarker - 2.3.32 + org.seleniumhq.selenium + selenium-java + 4.9.0 + + + org.seleniumhq.selenium + selenium-grid + 4.9.0 - - - - - - - - - - org.junit.jupiter junit-jupiter-engine diff --git a/src/main/java/com.lilittlecat/app/Features.java b/src/main/java/com.lilittlecat/app/Features.java new file mode 100644 index 0000000..5066b35 --- /dev/null +++ b/src/main/java/com.lilittlecat/app/Features.java @@ -0,0 +1,30 @@ +package com.lilittlecat.app; + +import lombok.Getter; + +/** + * @author LiLittleCat + * @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; + } + +}