Limite atingido!
diff --git a/src/BCards.Web/Views/Admin/ManagePage.cshtml b/src/BCards.Web/Views/Admin/ManagePage.cshtml
index 0615aa5..f07d053 100644
--- a/src/BCards.Web/Views/Admin/ManagePage.cshtml
+++ b/src/BCards.Web/Views/Admin/ManagePage.cshtml
@@ -340,7 +340,7 @@
var instagram = Model.Links.Where(x => x.Icon.Contains("instagram")).FirstOrDefault();
var facebookUrl = facebook !=null ? facebook.Url : "";
var twitterUrl = twitter !=null ? twitter.Url : "";
- var whatsappUrl = whatsapp !=null ? whatsapp.Url : "";
+ var whatsappUrl = whatsapp !=null ? whatsapp.Url.Replace("https://wa.me/","") : "";
var instagramUrl = instagram !=null ? instagram.Url : "";
}
@@ -1423,6 +1423,12 @@
userInput.on('input', function() {
let value = $(this).val().trim();
+ // Se o usuário colou uma URL completa, extrair apenas a parte do usuário
+ if (value.startsWith(prefix)) {
+ value = value.replace(prefix, '');
+ $(this).val(value);
+ }
+
if (isWhatsApp) {
// WhatsApp: apenas números
value = value.replace(/\D/g, '');
diff --git a/src/BCards.Web/appsettings.Development.json b/src/BCards.Web/appsettings.Development.json
index 16c6f12..dff4f12 100644
--- a/src/BCards.Web/appsettings.Development.json
+++ b/src/BCards.Web/appsettings.Development.json
@@ -6,6 +6,31 @@
}
},
"DetailedErrors": true,
+ "Stripe": {
+ "PublishableKey": "pk_test_51RjUmIBMIadsOxJVP4bWc54pHEOSf5km1hpOkOBSoGVoKxI46N4KSWtevpXCSq68OjFazBuXmPJGBwZ1KDN5MNJy003lj1YmAS",
+ "SecretKey": "sk_test_51RjUmIBMIadsOxJVeqsMFxnZ8ePR7d8IbnaF4sAwBVJv9rrfODPEQ2C9fF3beoABpITdfzEk0ZDzGTTQfvKv63xI00PeZoABGO",
+ "WebhookSecret": "whsec_8d189c137ff170ab5e62498003512b9d073e2db50c50ed7d8712b7ef11a37543"
+ },
+ "Plans": {
+ "Basic": {
+ "PriceId": "price_1RjUskBMIadsOxJVgLwlVo1y",
+ "Price": 9.90,
+ "MaxLinks": 5,
+ "Features": [ "basic_themes", "simple_analytics" ]
+ },
+ "Professional": {
+ "PriceId": "price_1RjUv9BMIadsOxJVORqlM4E9",
+ "Price": 24.90,
+ "MaxLinks": 15,
+ "Features": [ "all_themes", "advanced_analytics", "custom_domain" ]
+ },
+ "Premium": {
+ "PriceId": "price_1RjUw0BMIadsOxJVmdouNV1g",
+ "Price": 29.90,
+ "MaxLinks": -1,
+ "Features": [ "custom_themes", "full_analytics", "multiple_domains", "priority_support" ]
+ }
+ },
"MongoDb": {
"ConnectionString": "mongodb://localhost:27017",
"DatabaseName": "BCardsDB_Dev"
diff --git a/src/BCards.Web/appsettings.Release.json b/src/BCards.Web/appsettings.Release.json
index f575bc7..ebaf995 100644
--- a/src/BCards.Web/appsettings.Release.json
+++ b/src/BCards.Web/appsettings.Release.json
@@ -73,7 +73,7 @@
"Moderation": {
"PriorityTimeframes": {
"Trial": "7.00:00:00",
- "Basic": "7.00:00:00",
+ "Basic": "7.00:00:00",
"Professional": "3.00:00:00",
"Premium": "1.00:00:00"
},