Skip to content

Commit

Permalink
[TKAI-3638] feat: points system (#48)
Browse files Browse the repository at this point in the history
* feat: add points copy

* feat: add points on user menu

* feat: add points copy on user profile

* chore: point types

* 2.0.5

* build: generate types

* 2.0.6-0

* 2.0.6-alpha.1

* i18n(points): remove keys avaiable in other documents

* i18n: move `point:points` to `common`

To facilitate usage in frontend, and prevent duplication

* 2.0.6-alpha.2

* i18n: move `your points` to `common`

* i18n(navigation): remove `user_menu_points`

* 2.0.6-alpha.3

---------

Co-authored-by: RTAndrew Paul <[email protected]>
  • Loading branch information
ickas and RTAndrew authored Jun 25, 2024
1 parent 27175ab commit 2b601c2
Show file tree
Hide file tree
Showing 21 changed files with 545 additions and 21 deletions.
2 changes: 2 additions & 0 deletions lib/locales/br/frontend/common.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"your_points": "Seus Pontos",
"points": "Pontos",
"follow": "Seguir",
"unfollow": "Deixar de seguir",
"following": "Seguindo",
Expand Down
1 change: 0 additions & 1 deletion lib/locales/br/frontend/navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"notifications_empty": "Sem notificações",
"guest_user": "Usuário convidado",
"user_menu_balance": "Saldo",
"user_menu_complete_profile": "Complete o seu perfil",
"user_menu_dashboard": "Meu Painel",
"user_menu_activity": "Atividade",
"user_menu_deposit_withdraw": "Depósito & Saque",
Expand Down
44 changes: 44 additions & 0 deletions lib/locales/br/frontend/points.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"points_page_title": "Pontos TAIKAI",
"points_page_description": "Colete Pontos TAIKAI e troque-os por recompensas exclusivas e ofertas especiais",
"points_subtitle": "Colete Pontos TAIKAI e troque-os por recompensas exclusivas e ofertas especiais.",
"points_tab_quests": "Missões Atuais",
"points_tab_history": "Histórico",
"points_pill_booster_active": "Booster Ativo",
"points_recurring_quests": "Missões recorrentes",
"points_primary_quests": "Missões principais",
"points_update_avatar": "Atualizar Avatar",
"points_update_cover": "Atualizar Capa",
"points_fill_name": "Preencher Nome",
"points_fill_bio": "Preencher Biografia",
"points_fill_job": "Preencher Cargo",
"points_fill_skills": "Preencher Habilidades",
"points_fill_education": "Preencher Formação",
"points_fill_work_experience": "Preencher Experiência Profissional",
"points_add_city": "Adicionar Cidade",
"points_add_country": "Adicionar País",
"points_wallet": "Conectar Carteira",
"points_github": "Perfil do GitHub",
"points_linkedin": "Perfil do LinkedIn",
"points_twitter": "Conectar Conta X",
"points_follow_layerx": "Seguir LayerX no X",
"points_follow_taikai": "Seguir TAIKAI no X",
"points_follow_bepro": "Seguir Bepro no X",
"points_layerx_discord": "Entrar no Discord da LayerX",
"points_layerx_telegram": "Entrar no Telegram da LayerX",
"points_layerx_newsletter": "Cadastrar na Newsletter da LayerX",
"points_tkai_rewards": "Recompensas TAIKAI",
"points_winning_category": "Vencer uma Categoria de Hackathon",
"points_sharing_hackathon": "Compartilhar Página de um Hackathon no X",
"points_sharing_post": "Compartilhar uma Postagem do Blog no X",
"points_tkai_staking": "Staking de TKAI",
"points_pop_minted": "PoP minted",
"points_deposit_tkai": "Depositar TKAI",
"points_referral": "Programa de Indicação",
"soon": "Em breve",
"points_history_action": "Ação",
"points_history_date": "Data",
"points_history_empty": "Você ainda não ganhou nenhum ponto.",
"login": "Login",
"to_view_points": "para ver seus pontos"
}
1 change: 1 addition & 0 deletions lib/locales/br/frontend/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"last_challenges": "Últimos Hackathons",
"balance": "Saldo",
"rewards": "Recompensas",
"points": "Pontos",
"last_projects": "Últimos Projects",
"projects": "Projetos",
"no_projects": "Este usuário está trabalhando duro para obter seu primeiro projeto no TAIKAI.",
Expand Down
2 changes: 2 additions & 0 deletions lib/locales/en/frontend/common.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"your_points": "Your points",
"points": "Points",
"follow": "Follow",
"unfollow": "Unfollow",
"following": "Following",
Expand Down
2 changes: 1 addition & 1 deletion lib/locales/en/frontend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
// DO NOT MODIFY THIS FILE DIRECTLY. IT IS GENERATED.
// ////////////////////////////////////////////////////////////////

export default {"alert-messages":"","api-messages":"","auth":"","challenges":"","common":"","community":"","consultancy":"","countries":"","dashboard":"","feed":"","form-messages":"","hiring-challenge":"","home":"","homepage":"","live":"","navigation":"","organizations":"","product":"","rankings":"","settings":"","testimonials":"","user":""};
export default {"alert-messages":"","api-messages":"","auth":"","challenges":"","common":"","community":"","consultancy":"","countries":"","dashboard":"","feed":"","form-messages":"","hiring-challenge":"","home":"","homepage":"","live":"","navigation":"","organizations":"","points":"","product":"","rankings":"","settings":"","testimonials":"","user":""};
1 change: 0 additions & 1 deletion lib/locales/en/frontend/navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"notifications_empty": "No notifications",
"guest_user": "Guest user",
"user_menu_balance": "Balance",
"user_menu_complete_profile": "Complete your profile",
"user_menu_dashboard": "Dashboard",
"user_menu_activity": "Activity",
"user_menu_deposit_withdraw": "Deposit & Withdraw",
Expand Down
44 changes: 44 additions & 0 deletions lib/locales/en/frontend/points.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"points_page_title": "TAIKAI Points",
"points_page_description": "Collect TAIKAI Points and redeem them for exclusive rewards and special offers",
"points_subtitle": "Collect TAIKAI Points and redeem them for exclusive rewards and special offers.",
"points_tab_quests": "Current Quests",
"points_tab_history": "History",
"points_pill_booster_active": "Booster Active",
"points_recurring_quests": "Recurring quests",
"points_primary_quests": "Primary quests",
"points_update_avatar": "Update Avatar",
"points_update_cover": "Update Cover",
"points_fill_name": "Fill Name",
"points_fill_bio": "Fill Biography",
"points_fill_job": "Fill Job Title",
"points_fill_skills": "Fill Skills",
"points_fill_education": "Fill Education",
"points_fill_work_experience": "Fill Work Experience",
"points_add_city": "Add City",
"points_add_country": "Add Country",
"points_wallet": "Connect Wallet",
"points_github": "GitHub Profile",
"points_linkedin": "LinkedIn Profile",
"points_twitter": "Connect X Account",
"points_follow_layerx": "Follow LayerX on X",
"points_follow_taikai": "Follow TAIKAI on X",
"points_follow_bepro": "Follow Bepro on X",
"points_layerx_discord": "Join LayerX Discord",
"points_layerx_telegram": "Join LayerX Telegram",
"points_layerx_newsletter": "Register LayerX Newsletter",
"points_tkai_rewards": "TAIKAI Rewards",
"points_winning_category": "Winning a Hackathon Category",
"points_sharing_hackathon": "Sharing Hackathon Page on X",
"points_sharing_post": "Sharing a Blog Post on X",
"points_tkai_staking": "TKAI Staking",
"points_pop_minted": "PoP minted",
"points_deposit_tkai": "Deposit TKAI",
"points_referral": "Referral Program",
"soon": "Soon",
"points_history_action": "Action",
"points_history_date": "Date",
"points_history_empty": "You don't win any points yet.",
"login": "Login",
"to_view_points": "to view your points"
}
1 change: 1 addition & 0 deletions lib/locales/en/frontend/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"last_challenges": "Last Hackathons",
"balance": "Balance",
"rewards": "Rewards",
"points": "Points",
"last_projects": "Last Projects",
"projects": "Projects",
"no_projects": "This user is working hard to get his first project on TAIKAI.",
Expand Down
2 changes: 2 additions & 0 deletions lib/locales/es/frontend/common.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"your_points": "Tus Puntos",
"points": "Puntos",
"follow": "Seguir",
"unfollow": "Dejar de seguir",
"following": "Siguiendo",
Expand Down
1 change: 0 additions & 1 deletion lib/locales/es/frontend/navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"notifications_empty": "Sin notificaciones",
"guest_user": "Usuario invitado",
"user_menu_balance": "Saldo",
"user_menu_complete_profile": "Completa tu perfil",
"user_menu_dashboard": "Tablero",
"user_menu_activity": "Actividad",
"user_menu_deposit_withdraw": "Depositar y Retirar",
Expand Down
44 changes: 44 additions & 0 deletions lib/locales/es/frontend/points.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"points_page_title": "Puntos TAIKAI",
"points_page_description": "Acumula Puntos TAIKAI y canjéalos por recompensas exclusivas y ofertas especiales",
"points_subtitle": "Acumula Puntos TAIKAI y canjéalos por recompensas exclusivas y ofertas especiales.",
"points_tab_quests": "Misiones Actuales",
"points_tab_history": "Historial",
"points_pill_booster_active": "Booster Activo",
"points_recurring_quests": "Misiones recurrentes",
"points_primary_quests": "Misiones principales",
"points_update_avatar": "Actualizar Avatar",
"points_update_cover": "Actualizar Portada",
"points_fill_name": "Completar Nombre",
"points_fill_bio": "Completar Biografía",
"points_fill_job": "Completar Título del Trabajo",
"points_fill_skills": "Completar Habilidades",
"points_fill_education": "Completar Educación",
"points_fill_work_experience": "Completar Experiencia Laboral",
"points_add_city": "Agregar Ciudad",
"points_add_country": "Agregar País",
"points_wallet": "Conectar Billetera",
"points_github": "Perfil de GitHub",
"points_linkedin": "Perfil de LinkedIn",
"points_twitter": "Conectar Cuenta X",
"points_follow_layerx": "Seguir a LayerX en X",
"points_follow_taikai": "Seguir a TAIKAI en X",
"points_follow_bepro": "Seguir a Bepro en X",
"points_layerx_discord": "Unirse al Discord de LayerX",
"points_layerx_telegram": "Unirse al Telegram de LayerX",
"points_layerx_newsletter": "Registrarse en el Boletín de LayerX",
"points_tkai_rewards": "Recompensas TAIKAI",
"points_winning_category": "Ganar una Categoría de Hackathon",
"points_sharing_hackathon": "Compartir la Página del Hackathon en X",
"points_sharing_post": "Compartir una Publicación del Blog en X",
"points_tkai_staking": "Staking de TKAI",
"points_pop_minted": "PoP minted",
"points_deposit_tkai": "Depositar TKAI",
"points_referral": "Programa de Referidos",
"soon": "Próximamente",
"points_history_action": "Acción",
"points_history_date": "Fecha",
"points_history_empty": "Aún no has ganado ningún punto.",
"login": "Inciar Sesión",
"to_view_points": "para ver tus puntos"
}
1 change: 1 addition & 0 deletions lib/locales/es/frontend/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"last_challenges": "Últimos Hackathons",
"balance": "Saldo",
"rewards": "Recompensas",
"points": "Puntos",
"last_projects": "Últimos Proyectos",
"projects": "Proyectos",
"no_projects": "Este usuario está trabajando duro para conseguir su primer proyecto en TAIKAI.",
Expand Down
2 changes: 2 additions & 0 deletions lib/locales/fr/frontend/common.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"your_points": "Vos Points",
"points": "Points",
"follow": "Suivre",
"unfollow": "Ne plus suivre",
"following": "Suivi",
Expand Down
1 change: 0 additions & 1 deletion lib/locales/fr/frontend/navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"notifications_empty": "Aucune notification",
"guest_user": "Utilisateur invité",
"user_menu_balance": "Solde",
"user_menu_complete_profile": "Complétez votre profil",
"user_menu_dashboard": "Tableau de bord",
"user_menu_activity": "Activité",
"user_menu_deposit_withdraw": "Dépôt et retrait",
Expand Down
44 changes: 44 additions & 0 deletions lib/locales/fr/frontend/points.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"points_page_title": "Points TAIKAI",
"points_page_description": "Collectez des Points TAIKAI et échangez-les contre des récompenses exclusives et des offres spéciales",
"points_subtitle": "Collectez des Points TAIKAI et échangez-les contre des récompenses exclusives et des offres spéciales.",
"points_tab_quests": "Quêtes Actuelles",
"points_tab_history": "Historique",
"points_pill_booster_active": "Booster Actif",
"points_recurring_quests": "Quêtes récurrentes",
"points_primary_quests": "Quêtes principales",
"points_update_avatar": "Mettre à jour l'Avatar",
"points_update_cover": "Mettre à jour la Couverture",
"points_fill_name": "Remplir le Nom",
"points_fill_bio": "Remplir la Biographie",
"points_fill_job": "Remplir le Titre du Poste",
"points_fill_skills": "Remplir les Compétences",
"points_fill_education": "Remplir la Formation",
"points_fill_work_experience": "Remplir l'Expérience Professionnelle",
"points_add_city": "Ajouter une Ville",
"points_add_country": "Ajouter un Pays",
"points_wallet": "Connecter le Portefeuille",
"points_github": "Profil GitHub",
"points_linkedin": "Profil LinkedIn",
"points_twitter": "Connecter le Compte X",
"points_follow_layerx": "Suivre LayerX sur X",
"points_follow_taikai": "Suivre TAIKAI sur X",
"points_follow_bepro": "Suivre Bepro sur X",
"points_layerx_discord": "Rejoindre le Discord LayerX",
"points_layerx_telegram": "Rejoindre le Telegram LayerX",
"points_layerx_newsletter": "S'inscrire à la Newsletter LayerX",
"points_tkai_rewards": "Récompenses TAIKAI",
"points_winning_category": "Gagner une Catégorie de Hackathon",
"points_sharing_hackathon": "Partager la Page du Hackathon sur X",
"points_sharing_post": "Partager un Article de Blog sur X",
"points_tkai_staking": "Staking TKAI",
"points_pop_minted": "PoP minted",
"points_deposit_tkai": "Déposer TKAI",
"points_referral": "Programme de Parrainage",
"soon": "Bientôt",
"points_history_action": "Action",
"points_history_date": "Date",
"points_history_empty": "Vous n'avez pas encore gagné de points.",
"login": "Connexion",
"to_view_points": "pour voir vos points"
}
1 change: 1 addition & 0 deletions lib/locales/fr/frontend/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"last_challenges": "Derniers Hackathons",
"balance": "Solde",
"rewards": "Récompenses",
"points": "Points",
"last_projects": "Derniers Projets",
"projects": "Projets",
"no_projects": "Cet utilisateur travaille dur pour obtenir son premier projet sur TAIKAI.",
Expand Down
Loading

0 comments on commit 2b601c2

Please sign in to comment.