diff --git a/Program.cs b/Program.cs index a83387b..6777731 100644 --- a/Program.cs +++ b/Program.cs @@ -121,7 +121,7 @@ builder.Services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationSc // ADICIONE ESTAS LINHAS: options.Events.OnRedirectToAuthorizationEndpoint = context => { - context.Response.Redirect(context.RedirectUri + "&prompt=select_account"); + context.Response.Redirect(context.RedirectUri); return Task.CompletedTask; }; diff --git a/QRRapidoApp.csproj b/QRRapidoApp.csproj index 1bfb917..b378955 100644 --- a/QRRapidoApp.csproj +++ b/QRRapidoApp.csproj @@ -35,7 +35,6 @@ - diff --git a/README.md b/README.md index 7a5ae9c..b5aec86 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,6 @@ - 👑 **Sistema Premium**: Stripe integrado com recursos avançados - 📱 **PWA Ready**: Funciona como aplicativo móvel - 🎨 **UI Moderna**: Bootstrap 5 com design focado em velocidade -- 📊 **Analytics**: Google Analytics 4 integrado - ðŸ—ï¸ **Escalável**: MongoDB + Redis para alta performance ## 🎯 Funcionalidades por Usuário @@ -36,7 +35,6 @@ - ✅ **Sem anúncios permanentemente** - ✅ Geração prioritária (0.4s) - ✅ QR codes dinâmicos (editáveis) -- ✅ Analytics avançados - ✅ Suporte prioritário - ✅ API access diff --git a/Resources/SharedResource.Designer.cs b/Resources/SharedResource.Designer.cs index 42af7c8..483c0fc 100644 --- a/Resources/SharedResource.Designer.cs +++ b/Resources/SharedResource.Designer.cs @@ -304,7 +304,7 @@ namespace QRRapidoApp.Resources { } /// - /// Looks up a localized string similar to Remove ads, access detailed analytics and much more for only $12.90/month or $129.00/year. Login and subscribe now!. + /// Looks up a localized string similar to Remove ads, access advanced customization and much more for only $12.90/month or $129.00/year. Login and subscribe now!. /// public static string LoginBenefits { get { diff --git a/Resources/SharedResource.resx b/Resources/SharedResource.resx index d3366af..55cf8f7 100644 --- a/Resources/SharedResource.resx +++ b/Resources/SharedResource.resx @@ -250,7 +250,7 @@ Premium Offer! - Remove ads, access detailed analytics and much more for only $12.90/month or $129.00/year. Login and subscribe now! + Remove ads, access advanced customization and much more for only $12.90/month or $129.00/year. Login and subscribe now! Privacy Policy diff --git a/Views/Account/Profile.cshtml b/Views/Account/Profile.cshtml new file mode 100644 index 0000000..fe32596 --- /dev/null +++ b/Views/Account/Profile.cshtml @@ -0,0 +1,262 @@ +@model QRRapidoApp.Models.User +@{ + ViewData["Title"] = "Perfil do Usuário"; + var isPremium = ViewBag.IsPremium as bool? ?? false; + var monthlyQRCount = ViewBag.MonthlyQRCount as int? ?? 0; + var qrHistory = ViewBag.QRHistory as List ?? new List(); + Layout = "~/Views/Shared/_Layout.cshtml"; +} + +
+
+
+ +
+
+ +
+

@Model.Name

+ @Model.Email +
+
+ +
+
+ +
+
+ + Status do Plano: +
+ @if (isPremium) + { + + Premium + + @if (Model.PremiumExpiresAt.HasValue) + { +

+ Expira em: @Model.PremiumExpiresAt.Value.ToString("dd/MM/yyyy") +

+ } + } + else + { + + Gratuito + +

+ + Fazer upgrade + +

+ } +
+ + +
+
+ + Membro desde: +
+

@Model.CreatedAt.ToString("dd/MM/yyyy")

+
+ + +
+
+ + Conectado via: +
+

@Model.Provider

+
+ + +
+
+ + Último acesso: +
+

@Model.LastLoginAt.ToString("dd/MM/yyyy HH:mm")

+
+
+
+
+ + +
+
+
+ Estatísticas de Uso +
+
+
+
+
+
+

@Model.TotalQRGenerated

+ QR Codes Criados +
+
+
+
+

@monthlyQRCount

+ Este Mês +
+
+
+
+

@Model.DailyQRCount

+ Hoje +
+
+
+
+
+ + + @if (qrHistory.Any()) + { +
+
+
+ Histórico Recente +
+ + Ver Todos + +
+
+
+ @foreach (var qr in qrHistory.Take(5)) + { +
+
+
+ +
+
@qr.Type.ToUpper()
+

+ @(qr.Content.Length > 50 ? qr.Content.Substring(0, 50) + "..." : qr.Content) +

+
+
+
+ @qr.CreatedAt.ToString("dd/MM HH:mm") +
+ } +
+
+
+ } + + +
+
+
+ Ações +
+
+ +
+
+
+
+ + \ No newline at end of file diff --git a/Views/Home/Index.cshtml b/Views/Home/Index.cshtml index e8f5aa0..80352a8 100644 --- a/Views/Home/Index.cshtml +++ b/Views/Home/Index.cshtml @@ -105,7 +105,7 @@ @Localizer["TypeGuideText"] -
+
@@ -122,7 +122,7 @@
-
+
@@ -138,7 +138,7 @@
-