Skip to content

Commit

Permalink
93: Add review ai icons
Browse files Browse the repository at this point in the history
  • Loading branch information
JICA98 committed Aug 30, 2024
1 parent aff9a26 commit 8efc8ab
Show file tree
Hide file tree
Showing 26 changed files with 97 additions and 100 deletions.
4 changes: 2 additions & 2 deletions dal-rust-api/src/cache_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ pub struct CacheService {
}

impl CacheService {
async fn get_connection(&self) -> redis::aio::Connection {
async fn get_connection(&self) -> redis::aio::MultiplexedConnection {
let client = redis::Client::open(self.config.secrets.rediscloud_url.to_string()).unwrap();
return client.get_async_connection().await.unwrap();
return client.get_multiplexed_async_connection().await.unwrap();
}

pub async fn get_by_id<T: DeserializeOwned + Clone>(
Expand Down
7 changes: 5 additions & 2 deletions dal-rust-api/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ async fn main() {
let config = Config::init();
let app = routes::setup_app(config).await;

println!("Server started at http://localhost:8001");
let listener = tokio::net::TcpListener::bind("0.0.0.0:8001").await.unwrap();
let port = std::env::var("PORT").unwrap_or_else(|_| "8001".to_string());
let addr = format!("0.0.0.0:{}", port);

println!("Server started at http://{}", addr);
let listener = tokio::net::TcpListener::bind(addr).await.unwrap();
axum::serve(listener, app).await.unwrap();
}
1 change: 1 addition & 0 deletions lib/generated/intl/messages_ar_EG.dart
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ class MessageLookup extends MessageLookupByLibrary {
"Gender_desc": MessageLookupByLibrary.simpleMessage("لا تهتم افتراضيا"),
"Generate_Other_charts":
MessageLookupByLibrary.simpleMessage("إنشاء مخططات أخرى"),
"Generating": MessageLookupByLibrary.simpleMessage("توليد"),
"Generating_Review_Summary":
MessageLookupByLibrary.simpleMessage("إنشاء ملخص المراجعة"),
"Genre": MessageLookupByLibrary.simpleMessage("النوع"),
Expand Down
1 change: 1 addition & 0 deletions lib/generated/intl/messages_de_DE.dart
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ class MessageLookup extends MessageLookupByLibrary {
"Kümmere mich nicht standardmäßig"),
"Generate_Other_charts":
MessageLookupByLibrary.simpleMessage("Andere Diagramme generieren"),
"Generating": MessageLookupByLibrary.simpleMessage("Generieren"),
"Generating_Review_Summary": MessageLookupByLibrary.simpleMessage(
"Zusammenfassung der Rezension erstellen"),
"Genre": MessageLookupByLibrary.simpleMessage("Genre"),
Expand Down
1 change: 1 addition & 0 deletions lib/generated/intl/messages_en_US.dart
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("Don\'t care by default"),
"Generate_Other_charts":
MessageLookupByLibrary.simpleMessage("Generate Other charts"),
"Generating": MessageLookupByLibrary.simpleMessage("Generating"),
"Generating_Review_Summary":
MessageLookupByLibrary.simpleMessage("Generating Review Summary"),
"Genre": MessageLookupByLibrary.simpleMessage("Genre"),
Expand Down
1 change: 1 addition & 0 deletions lib/generated/intl/messages_es_ES.dart
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("No importa por defecto"),
"Generate_Other_charts":
MessageLookupByLibrary.simpleMessage("Generar otros gráficos"),
"Generating": MessageLookupByLibrary.simpleMessage("generando"),
"Generating_Review_Summary": MessageLookupByLibrary.simpleMessage(
"Generando resumen de revisión"),
"Genre": MessageLookupByLibrary.simpleMessage("Género"),
Expand Down
1 change: 1 addition & 0 deletions lib/generated/intl/messages_fr_FR.dart
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ class MessageLookup extends MessageLookupByLibrary {
"Ne vous souciez pas par défaut"),
"Generate_Other_charts": MessageLookupByLibrary.simpleMessage(
"Générer d\'autres graphiques"),
"Generating": MessageLookupByLibrary.simpleMessage("Générateur"),
"Generating_Review_Summary": MessageLookupByLibrary.simpleMessage(
"Génération du résumé des avis"),
"Genre": MessageLookupByLibrary.simpleMessage("Genre"),
Expand Down
1 change: 1 addition & 0 deletions lib/generated/intl/messages_id_ID.dart
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("Tidak peduli secara default"),
"Generate_Other_charts":
MessageLookupByLibrary.simpleMessage("Hasilkan grafik lainnya"),
"Generating": MessageLookupByLibrary.simpleMessage("Menghasilkan"),
"Generating_Review_Summary": MessageLookupByLibrary.simpleMessage(
"Menghasilkan Ringkasan Tinjauan"),
"Genre": MessageLookupByLibrary.simpleMessage("Genre"),
Expand Down
1 change: 1 addition & 0 deletions lib/generated/intl/messages_ja.dart
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ class MessageLookup extends MessageLookupByLibrary {
"Gender_desc": MessageLookupByLibrary.simpleMessage("デフォルトで気にしないでください"),
"Generate_Other_charts":
MessageLookupByLibrary.simpleMessage("他のチャートを生成する"),
"Generating": MessageLookupByLibrary.simpleMessage("生成中"),
"Generating_Review_Summary":
MessageLookupByLibrary.simpleMessage("レビュー概要の生成"),
"Genre": MessageLookupByLibrary.simpleMessage("ジャンル"),
Expand Down
1 change: 1 addition & 0 deletions lib/generated/intl/messages_ko_KR.dart
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ class MessageLookup extends MessageLookupByLibrary {
"Gender_desc": MessageLookupByLibrary.simpleMessage("기본적으로 상관 없어"),
"Generate_Other_charts":
MessageLookupByLibrary.simpleMessage("다른 차트 생성"),
"Generating": MessageLookupByLibrary.simpleMessage("생성 중"),
"Generating_Review_Summary":
MessageLookupByLibrary.simpleMessage("리뷰 요약 생성 중"),
"Genre": MessageLookupByLibrary.simpleMessage("장르"),
Expand Down
1 change: 1 addition & 0 deletions lib/generated/intl/messages_pt_BR.dart
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("Não se importa por padrão"),
"Generate_Other_charts":
MessageLookupByLibrary.simpleMessage("Gerar outros gráficos"),
"Generating": MessageLookupByLibrary.simpleMessage("Gerando"),
"Generating_Review_Summary":
MessageLookupByLibrary.simpleMessage("Gerando Resumo de Revisão"),
"Genre": MessageLookupByLibrary.simpleMessage("Gênero"),
Expand Down
1 change: 1 addition & 0 deletions lib/generated/intl/messages_ru_RU.dart
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("Плевать по умолчанию"),
"Generate_Other_charts":
MessageLookupByLibrary.simpleMessage("Создать другие диаграммы"),
"Generating": MessageLookupByLibrary.simpleMessage("Создание"),
"Generating_Review_Summary":
MessageLookupByLibrary.simpleMessage("Создание сводки обзора"),
"Genre": MessageLookupByLibrary.simpleMessage("Жанр"),
Expand Down
1 change: 1 addition & 0 deletions lib/generated/intl/messages_tr_TR.dart
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("Varsayılan olarak umursama"),
"Generate_Other_charts":
MessageLookupByLibrary.simpleMessage("Diğer grafikler oluştur"),
"Generating": MessageLookupByLibrary.simpleMessage("Üretiliyor"),
"Generating_Review_Summary": MessageLookupByLibrary.simpleMessage(
"İnceleme Özeti Oluşturuluyor"),
"Genre": MessageLookupByLibrary.simpleMessage("Tür"),
Expand Down
10 changes: 10 additions & 0 deletions lib/generated/l10n.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion lib/l10n/intl_ar_EG.arb
Original file line number Diff line number Diff line change
Expand Up @@ -952,5 +952,6 @@
"Cons": "\u0633\u0644\u0628\u064a\u0627\u062a",
"Verdict": "\u0627\u0644\u062d\u0643\u0645",
"Review_Summary_Desc": "\u064a\u062a\u0645 \u0625\u0646\u0634\u0627\u0621 \u062d\u0643\u0645 \u0627\u0644\u0645\u0631\u0627\u062c\u0639\u0629 \u0628\u0648\u0627\u0633\u0637\u0629 \u0627\u0644\u0630\u0643\u0627\u0621 \u0627\u0644\u0627\u0635\u0637\u0646\u0627\u0639\u064a \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u0645\u0631\u0627\u062c\u0639\u0627\u062a \u0627\u0644\u062a\u0627\u0644\u064a\u0629 \u0648\u0642\u062f \u0644\u0627 \u064a\u0643\u0648\u0646 \u062f\u0642\u064a\u0642\u064b\u0627. \u064a\u0631\u062c\u0649 \u0642\u0631\u0627\u0621\u0629 \u0627\u0644\u062a\u0642\u064a\u064a\u0645\u0627\u062a \u0644\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a.",
"Generating_Review_Summary": "\u0625\u0646\u0634\u0627\u0621 \u0645\u0644\u062e\u0635 \u0627\u0644\u0645\u0631\u0627\u062c\u0639\u0629"
"Generating_Review_Summary": "\u0625\u0646\u0634\u0627\u0621 \u0645\u0644\u062e\u0635 \u0627\u0644\u0645\u0631\u0627\u062c\u0639\u0629",
"Generating": "\u062a\u0648\u0644\u064a\u062f"
}
3 changes: 2 additions & 1 deletion lib/l10n/intl_de_DE.arb
Original file line number Diff line number Diff line change
Expand Up @@ -953,5 +953,6 @@
"Cons": "Nachteile",
"Verdict": "Urteil",
"Review_Summary_Desc": "Das Bewertungsurteil wird von KI anhand der folgenden Bewertungen erstellt und ist m\u00f6glicherweise nicht korrekt. F\u00fcr weitere Informationen lesen Sie bitte die Bewertungen.",
"Generating_Review_Summary": "Zusammenfassung der Rezension erstellen"
"Generating_Review_Summary": "Zusammenfassung der Rezension erstellen",
"Generating": "Generieren"
}
1 change: 1 addition & 0 deletions lib/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -949,5 +949,6 @@
"Verdict": "Verdict",
"Review_Summary_Desc": "Review Verdict is generated by AI using the following reviews and may not be accurate. Please read the reviews for more information.",
"Generating_Review_Summary": "Generating Review Summary",
"Generating": "Generating",
"AnimeCalendar": "Anime Calendar"
}
3 changes: 2 additions & 1 deletion lib/l10n/intl_es_ES.arb
Original file line number Diff line number Diff line change
Expand Up @@ -953,5 +953,6 @@
"Cons": "Contras",
"Verdict": "Veredicto",
"Review_Summary_Desc": "El veredicto de revisi\u00f3n lo genera AI utilizando las siguientes revisiones y puede no ser exacto. Lea las rese\u00f1as para obtener m\u00e1s informaci\u00f3n.",
"Generating_Review_Summary": "Generando resumen de revisi\u00f3n"
"Generating_Review_Summary": "Generando resumen de revisi\u00f3n",
"Generating": "generando"
}
3 changes: 2 additions & 1 deletion lib/l10n/intl_fr_FR.arb
Original file line number Diff line number Diff line change
Expand Up @@ -952,5 +952,6 @@
"Cons": "Inconv\u00e9nients",
"Verdict": "Verdict",
"Review_Summary_Desc": "Le verdict des avis est g\u00e9n\u00e9r\u00e9 par l'IA \u00e0 l'aide des avis suivants et peut ne pas \u00eatre exact. Veuillez lire les commentaires pour plus d'informations.",
"Generating_Review_Summary": "G\u00e9n\u00e9ration du r\u00e9sum\u00e9 des avis"
"Generating_Review_Summary": "G\u00e9n\u00e9ration du r\u00e9sum\u00e9 des avis",
"Generating": "G\u00e9n\u00e9rateur"
}
3 changes: 2 additions & 1 deletion lib/l10n/intl_id_ID.arb
Original file line number Diff line number Diff line change
Expand Up @@ -952,5 +952,6 @@
"Cons": "Kontra",
"Verdict": "Dakwaan",
"Review_Summary_Desc": "Putusan Tinjauan dibuat oleh AI menggunakan ulasan berikut dan mungkin tidak akurat. Silakan baca ulasan untuk informasi lebih lanjut.",
"Generating_Review_Summary": "Menghasilkan Ringkasan Tinjauan"
"Generating_Review_Summary": "Menghasilkan Ringkasan Tinjauan",
"Generating": "Menghasilkan"
}
3 changes: 2 additions & 1 deletion lib/l10n/intl_ja.arb
Original file line number Diff line number Diff line change
Expand Up @@ -952,5 +952,6 @@
"Cons": "\u77ed\u6240",
"Verdict": "\u8a55\u6c7a",
"Review_Summary_Desc": "\u30ec\u30d3\u30e5\u30fc\u8a55\u6c7a\u306f\u4ee5\u4e0b\u306e\u30ec\u30d3\u30e5\u30fc\u3092\u4f7f\u7528\u3057\u3066 AI \u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u3066\u304a\u308a\u3001\u6b63\u78ba\u3067\u306f\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u30ec\u30d3\u30e5\u30fc\u3092\u304a\u8aad\u307f\u304f\u3060\u3055\u3044\u3002",
"Generating_Review_Summary": "\u30ec\u30d3\u30e5\u30fc\u6982\u8981\u306e\u751f\u6210"
"Generating_Review_Summary": "\u30ec\u30d3\u30e5\u30fc\u6982\u8981\u306e\u751f\u6210",
"Generating": "\u751f\u6210\u4e2d"
}
3 changes: 2 additions & 1 deletion lib/l10n/intl_ko_KR.arb
Original file line number Diff line number Diff line change
Expand Up @@ -952,5 +952,6 @@
"Cons": "\ub2e8\uc810",
"Verdict": "\ud3c9\uacb0",
"Review_Summary_Desc": "\ub9ac\ubdf0 \ud3c9\uacb0\uc740 \ub2e4\uc74c \ub9ac\ubdf0\ub97c \uc0ac\uc6a9\ud558\uc5ec AI\uc5d0 \uc758\ud574 \uc0dd\uc131\ub418\ubbc0\ub85c \uc815\ud655\ud558\uc9c0 \uc54a\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc790\uc138\ud55c \ub0b4\uc6a9\uc740 \ub9ac\ubdf0\ub97c \uc77d\uc5b4\ubcf4\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.",
"Generating_Review_Summary": "\ub9ac\ubdf0 \uc694\uc57d \uc0dd\uc131 \uc911"
"Generating_Review_Summary": "\ub9ac\ubdf0 \uc694\uc57d \uc0dd\uc131 \uc911",
"Generating": "\uc0dd\uc131 \uc911"
}
3 changes: 2 additions & 1 deletion lib/l10n/intl_pt_BR.arb
Original file line number Diff line number Diff line change
Expand Up @@ -953,5 +953,6 @@
"Cons": "Contras",
"Verdict": "Veredicto",
"Review_Summary_Desc": "O veredicto da revis\u00e3o \u00e9 gerado pela IA usando as an\u00e1lises a seguir e pode n\u00e3o ser preciso. Por favor, leia os coment\u00e1rios para obter mais informa\u00e7\u00f5es.",
"Generating_Review_Summary": "Gerando Resumo de Revis\u00e3o"
"Generating_Review_Summary": "Gerando Resumo de Revis\u00e3o",
"Generating": "Gerando"
}
3 changes: 2 additions & 1 deletion lib/l10n/intl_ru_RU.arb
Original file line number Diff line number Diff line change
Expand Up @@ -950,5 +950,6 @@
"Cons": "\u041c\u0438\u043d\u0443\u0441\u044b",
"Verdict": "\u0412\u0435\u0440\u0434\u0438\u043a\u0442",
"Review_Summary_Desc": "\u0412\u0435\u0440\u0434\u0438\u043a\u0442 \u043e\u0431\u0437\u043e\u0440\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u043e\u043c \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043e\u0431\u0437\u043e\u0440\u043e\u0432 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0442\u043e\u0447\u043d\u044b\u043c. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u043e\u0442\u0437\u044b\u0432\u044b \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438.",
"Generating_Review_Summary": "\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0432\u043e\u0434\u043a\u0438 \u043e\u0431\u0437\u043e\u0440\u0430"
"Generating_Review_Summary": "\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0432\u043e\u0434\u043a\u0438 \u043e\u0431\u0437\u043e\u0440\u0430",
"Generating": "\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435"
}
3 changes: 2 additions & 1 deletion lib/l10n/intl_tr_TR.arb
Original file line number Diff line number Diff line change
Expand Up @@ -950,5 +950,6 @@
"Cons": "Eksileri",
"Verdict": "Karar",
"Review_Summary_Desc": "\u0130nceleme Karar\u0131 yapay zeka taraf\u0131ndan a\u015fa\u011f\u0131daki incelemeler kullan\u0131larak olu\u015fturulur ve do\u011fru olmayabilir. Daha fazla bilgi i\u00e7in l\u00fctfen yorumlar\u0131 okuyun.",
"Generating_Review_Summary": "\u0130nceleme \u00d6zeti Olu\u015fturuluyor"
"Generating_Review_Summary": "\u0130nceleme \u00d6zeti Olu\u015fturuluyor",
"Generating": "\u00dcretiliyor"
}
Loading

0 comments on commit 8efc8ab

Please sign in to comment.