Skip to content

Commit

Permalink
✨ Show followers and followings
Browse files Browse the repository at this point in the history
  • Loading branch information
RockerFlower authored and RockerFlower committed Nov 7, 2022
1 parent b848645 commit 5f7e0b9
Show file tree
Hide file tree
Showing 25 changed files with 793 additions and 3 deletions.
2 changes: 2 additions & 0 deletions lib/common/translations/languages/de.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class DeTranslations {
// 'You don\'t appear to have any POAP right now.\nBut it\'s not too late!\n\nBegin learning about POAP by creating a POAP.',

/// Home(available)
// Strings.followers: 'followers',
// Strings.followings: 'followings',
// Strings.events: 'Events',
// Strings.poaps: 'POAPs',
// Strings.growth: 'growth',
Expand Down
2 changes: 2 additions & 0 deletions lib/common/translations/languages/en_gb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class EnGBTranslations {
// 'You don\'t appear to have any POAP right now.\nBut it\'s not too late!\n\nBegin learning about POAP by creating a POAP.',

/// Home(available)
// Strings.followers: 'followers',
// Strings.followings: 'followings',
// Strings.events: 'Events',
// Strings.poaps: 'POAPs',
// Strings.growth: 'growth',
Expand Down
2 changes: 2 additions & 0 deletions lib/common/translations/languages/en_us.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class EnUSTranslations {
'You don\'t appear to have any POAP right now.\nBut it\'s not too late!\n\nBegin learning about POAP by creating a POAP.',

/// Home(available)
Strings.followers: 'followers',
Strings.followings: 'followings',
Strings.events: 'Events',
Strings.poaps: 'POAPs',
Strings.growth: 'growth',
Expand Down
2 changes: 2 additions & 0 deletions lib/common/translations/languages/es.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class ESTranslations {
// 'You don\'t appear to have any POAP right now.\nBut it\'s not too late!\n\nBegin learning about POAP by creating a POAP.',

/// Home(available)
// Strings.followers: 'followers',
// Strings.followings: 'followings',
// Strings.events: 'Events',
// Strings.poaps: 'POAPs',
// Strings.growth: 'growth',
Expand Down
7 changes: 5 additions & 2 deletions lib/common/translations/languages/fr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class FRTranslations {
'Vous ne semblez pas avoir de POAP pour l\'instant. Mais il n\'est pas trop tard ! Vous pouvez découvrir les POAPs en créeant votre premier POAP.',

/// Home(available)
// Strings.followers: 'followers',
// Strings.followings: 'followings',
Strings.events: 'Évènements',
Strings.poaps: 'POAPs',
Strings.growth: 'croissance',
Expand Down Expand Up @@ -59,15 +61,16 @@ class FRTranslations {
Strings.newTagHint: 'nouveau tag d\'évènement',

/// Moments
Strings.momentsDesc: '''Votre collection de POAPs est votre identité numérique.
Strings.momentsDesc:
'''Votre collection de POAPs est votre identité numérique.
Elle montre au monde qui vous êtes : où vous êtes allé, ce que vous avez accompli et qui vous avez rencontré.
Moments est un moyen d'ajouter de la valeur à votre souvenir numérique en sauvegardant des instants de vie dans un POAP, pour toujours.''',
Strings.uploadMoments: 'Publier des moments sur welook.io',

/// GitPOAP
Strings.gitPOAPDesc:
'''Un GitPOAP est un POAP ordinaire (avec un petit extra) qui est frappé par la plateforme GitPOAP pour les contributions significatives apportées aux projets open source.
Les propriétaires de repos distribuent automatiquement des GitPOAPs à leurs contributeurs en reconnaissance du travail accompli.''',
Les propriétaires de repos distribuent automatiquement des GitPOAPs à leurs contributeurs en reconnaissance du travail accompli.''',
Strings.gitPOAPStart: 'Contribuer à POAPin',

/// Watchlist(Initial state)
Expand Down
2 changes: 2 additions & 0 deletions lib/common/translations/languages/ja.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class JaTranslations {
// 'You don\'t appear to have any POAP right now.\nBut it\'s not too late!\n\nBegin learning about POAP by creating a POAP.',

/// Home(available)
// Strings.followers: 'followers',
// Strings.followings: 'followings',
// Strings.events: 'Events',
// Strings.poaps: 'POAPs',
// Strings.growth: 'growth',
Expand Down
2 changes: 2 additions & 0 deletions lib/common/translations/languages/ko.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class KoTranslations {
// 'You don\'t appear to have any POAP right now.\nBut it\'s not too late!\n\nBegin learning about POAP by creating a POAP.',

/// Home(available)
// Strings.followers: 'followers',
// Strings.followings: 'followings',
// Strings.events: 'Events',
// Strings.poaps: 'POAPs',
// Strings.growth: 'growth',
Expand Down
2 changes: 2 additions & 0 deletions lib/common/translations/languages/ru.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class RuTranslations {
// 'You don\'t appear to have any POAP right now.\nBut it\'s not too late!\n\nBegin learning about POAP by creating a POAP.',

/// Home(available)
// Strings.followers: 'followers',
// Strings.followings: 'followings',
// Strings.events: 'Events',
// Strings.poaps: 'POAPs',
// Strings.growth: 'growth',
Expand Down
2 changes: 2 additions & 0 deletions lib/common/translations/languages/th.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class ThTranslations {
// 'You don\'t appear to have any POAP right now.\nBut it\'s not too late!\n\nBegin learning about POAP by creating a POAP.',

/// Home(available)
// Strings.followers: 'followers',
// Strings.followings: 'followings',
// Strings.events: 'Events',
// Strings.poaps: 'POAPs',
// Strings.growth: 'growth',
Expand Down
2 changes: 2 additions & 0 deletions lib/common/translations/languages/tr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class TrTranslations {
// 'You don\'t appear to have any POAP right now.\nBut it\'s not too late!\n\nBegin learning about POAP by creating a POAP.',

/// Home(available)
// Strings.followers: 'followers',
// Strings.followings: 'followings',
// Strings.events: 'Events',
// Strings.poaps: 'POAPs',
// Strings.growth: 'growth',
Expand Down
2 changes: 2 additions & 0 deletions lib/common/translations/languages/uk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class UkTranslations {
// 'You don\'t appear to have any POAP right now.\nBut it\'s not too late!\n\nBegin learning about POAP by creating a POAP.',

/// Home(available)
// Strings.followers: 'followers',
// Strings.followings: 'followings',
// Strings.events: 'Events',
// Strings.poaps: 'POAPs',
// Strings.growth: 'growth',
Expand Down
2 changes: 2 additions & 0 deletions lib/common/translations/languages/vi.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class ViTranslations {
// 'You don\'t appear to have any POAP right now.\nBut it\'s not too late!\n\nBegin learning about POAP by creating a POAP.',

/// Home(available)
// Strings.followers: 'followers',
// Strings.followings: 'followings',
// Strings.events: 'Events',
// Strings.poaps: 'POAPs',
// Strings.growth: 'growth',
Expand Down
2 changes: 2 additions & 0 deletions lib/common/translations/languages/zh_cn.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class ZhCNTranslations {
// 'You don\'t appear to have any POAP right now.\nBut it\'s not too late!\n\nBegin learning about POAP by creating a POAP.',

/// Home(available)
// Strings.followers: 'followers',
// Strings.followings: 'followings',
// Strings.events: 'Events',
// Strings.poaps: 'POAPs',
// Strings.growth: 'growth',
Expand Down
2 changes: 2 additions & 0 deletions lib/common/translations/languages/zh_hk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class ZhHKTranslations {
// 'You don\'t appear to have any POAP right now.\nBut it\'s not too late!\n\nBegin learning about POAP by creating a POAP.',

/// Home(available)
// Strings.followers: 'followers',
// Strings.followings: 'followings',
// Strings.events: 'Events',
// Strings.poaps: 'POAPs',
// Strings.growth: 'growth',
Expand Down
2 changes: 2 additions & 0 deletions lib/common/translations/languages/zh_tw.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class ZhTWTranslations {
// 'You don\'t appear to have any POAP right now.\nBut it\'s not too late!\n\nBegin learning about POAP by creating a POAP.',

/// Home(available)
// Strings.followers: 'followers',
// Strings.followings: 'followings',
// Strings.events: 'Events',
// Strings.poaps: 'POAPs',
// Strings.growth: 'growth',
Expand Down
4 changes: 4 additions & 0 deletions lib/common/translations/strings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class Strings {

static const noPOAP = 'no_poap';

static const followers = 'followers';
static const followings = 'followings';
static const events = 'events';
static const poaps = 'poaps';
static const growth = 'growth';
Expand Down Expand Up @@ -119,6 +121,8 @@ String get strInvalidAddress => Strings.invalidAddress.tr;

String get strNoPOAP => Strings.noPOAP.tr;

String get strFollowers => Strings.followers.tr;
String get strFollowings => Strings.followings.tr;
String get strEvents => Strings.events.tr;
String get strPOAPs => Strings.poaps.tr;
String get strGrowth => Strings.growth.tr;
Expand Down
9 changes: 9 additions & 0 deletions lib/di/service_locator.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import 'package:get_it/get_it.dart';
import 'package:poapin/data/network/api/gitpoap.dart';
import 'package:poapin/data/network/api/poap.dart';
import 'package:poapin/data/network/api/poap_social.dart';
import 'package:poapin/data/network/api/poapin.dart';
import 'package:poapin/data/network/api/welook.dart';
import 'package:poapin/data/network/client/dio_gitpoap.dart';
import 'package:poapin/data/network/client/dio_poap.dart';
import 'package:poapin/data/network/client/dio_poap_social.dart';
import 'package:poapin/data/network/client/dio_poapin.dart';
import 'package:poapin/data/network/client/dio_welook.dart';
import 'package:poapin/data/repository/gitpoap_repository.dart';
import 'package:poapin/data/repository/poap_repository.dart';
import 'package:poapin/data/repository/poap_social_repository.dart';
import 'package:poapin/data/repository/poapin_repository.dart';
import 'package:poapin/data/repository/welook_repository.dart';

Expand All @@ -25,6 +28,12 @@ Future<void> setupAPI() async {
getIt.registerSingleton(POAPAPI(dioClient: getIt<DioPOAPClient>()));
getIt.registerSingleton(POAPRepository(getIt.get<POAPAPI>()));

/// POAP Social API
getIt.registerSingleton(DioPOAPSocialClient());
getIt.registerSingleton(
POAPSocialAPI(dioClient: getIt<DioPOAPSocialClient>()));
getIt.registerSingleton(POAPSocialRepository(getIt.get<POAPSocialAPI>()));

/// GitPOAP API
getIt.registerSingleton(DioGitPOAPClient());
getIt.registerSingleton(GitPOAPApi(dioClient: getIt<DioGitPOAPClient>()));
Expand Down
2 changes: 2 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import 'package:poapin/ui/pages/gitpoaps/controller.dart';
import 'package:poapin/ui/pages/home/controller.dart';
import 'package:poapin/ui/pages/home/controller.filter.dart';
import 'package:poapin/ui/pages/home/controllers/card.moment.dart';
import 'package:poapin/ui/pages/home/controllers/card.social.dart';
import 'package:poapin/ui/pages/me/controller.dart';
import 'package:poapin/ui/pages/moment/controller.dart';
import 'package:poapin/ui/pages/moments/controller.dart';
Expand All @@ -52,6 +53,7 @@ Future<void> main() async {
await Hive.initFlutter();
Get.lazyPut(() => AuthController());
Get.lazyPut(() => HomeController());
Get.lazyPut(() => SocialCardController());
Get.lazyPut(() => MomentsCardController());
Get.lazyPut(() => MomentsController());
Get.lazyPut(() => MomentController());
Expand Down
2 changes: 2 additions & 0 deletions lib/ui/pages/home/components/card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import 'package:poapin/common/translations/strings.dart';
import 'package:poapin/ui/pages/home/components/card.gitpoap.dart';
import 'package:poapin/ui/pages/home/components/card.moment.dart';
import 'package:poapin/ui/pages/home/components/card.poap.dart';
import 'package:poapin/ui/pages/home/components/card.social.dart';
import 'package:poapin/ui/pages/home/components/chart.dart';
import 'package:poapin/ui/pages/home/controller.dart';

Expand All @@ -31,6 +32,7 @@ class CollectionCard extends StatelessWidget {
scrollDirection: Axis.horizontal,
children: const [
POAPCard(),
SocialCard(),
MomentCard(),
GitPOAPCard(),
],
Expand Down
Loading

0 comments on commit 5f7e0b9

Please sign in to comment.