@followgate/js 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +9 -3
- package/dist/index.mjs +9 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -770,10 +770,16 @@ var FollowGateClient = class {
|
|
|
770
770
|
if (!content) return;
|
|
771
771
|
const handle = this.getTargetHandle();
|
|
772
772
|
if (!handle) {
|
|
773
|
-
console.error(
|
|
773
|
+
console.error(
|
|
774
|
+
"[FollowGate] No target handle configured. Set it in Dashboard or use overrideHandle."
|
|
775
|
+
);
|
|
774
776
|
return;
|
|
775
777
|
}
|
|
776
778
|
const hasRepost = !!this.config?.twitter?.tweetId;
|
|
779
|
+
const defaultTitle = hasRepost ? "Step 1: Follow" : "Follow to Continue";
|
|
780
|
+
const defaultMessage = `Follow @${handle} on X`;
|
|
781
|
+
const title = this.serverConfig?.welcomeTitle || defaultTitle;
|
|
782
|
+
const message = this.serverConfig?.welcomeMessage || defaultMessage;
|
|
777
783
|
content.innerHTML = `
|
|
778
784
|
${hasRepost ? this.renderStepIndicator(1) : ""}
|
|
779
785
|
<div class="fg-icon-box">
|
|
@@ -785,8 +791,8 @@ var FollowGateClient = class {
|
|
|
785
791
|
<span class="fg-user-badge-text">@${this.currentUser.username}</span>
|
|
786
792
|
</div>
|
|
787
793
|
` : ""}
|
|
788
|
-
<h2 class="fg-title">${
|
|
789
|
-
<p class="fg-subtitle" id="fg-follow-subtitle"
|
|
794
|
+
<h2 class="fg-title">${this.escapeHtml(title)}</h2>
|
|
795
|
+
<p class="fg-subtitle" id="fg-follow-subtitle">${this.escapeHtml(message)}</p>
|
|
790
796
|
<div id="fg-follow-actions">
|
|
791
797
|
<button class="fg-btn fg-btn-dark" id="fg-follow-btn">
|
|
792
798
|
${ICONS.x}
|
package/dist/index.mjs
CHANGED
|
@@ -744,10 +744,16 @@ var FollowGateClient = class {
|
|
|
744
744
|
if (!content) return;
|
|
745
745
|
const handle = this.getTargetHandle();
|
|
746
746
|
if (!handle) {
|
|
747
|
-
console.error(
|
|
747
|
+
console.error(
|
|
748
|
+
"[FollowGate] No target handle configured. Set it in Dashboard or use overrideHandle."
|
|
749
|
+
);
|
|
748
750
|
return;
|
|
749
751
|
}
|
|
750
752
|
const hasRepost = !!this.config?.twitter?.tweetId;
|
|
753
|
+
const defaultTitle = hasRepost ? "Step 1: Follow" : "Follow to Continue";
|
|
754
|
+
const defaultMessage = `Follow @${handle} on X`;
|
|
755
|
+
const title = this.serverConfig?.welcomeTitle || defaultTitle;
|
|
756
|
+
const message = this.serverConfig?.welcomeMessage || defaultMessage;
|
|
751
757
|
content.innerHTML = `
|
|
752
758
|
${hasRepost ? this.renderStepIndicator(1) : ""}
|
|
753
759
|
<div class="fg-icon-box">
|
|
@@ -759,8 +765,8 @@ var FollowGateClient = class {
|
|
|
759
765
|
<span class="fg-user-badge-text">@${this.currentUser.username}</span>
|
|
760
766
|
</div>
|
|
761
767
|
` : ""}
|
|
762
|
-
<h2 class="fg-title">${
|
|
763
|
-
<p class="fg-subtitle" id="fg-follow-subtitle"
|
|
768
|
+
<h2 class="fg-title">${this.escapeHtml(title)}</h2>
|
|
769
|
+
<p class="fg-subtitle" id="fg-follow-subtitle">${this.escapeHtml(message)}</p>
|
|
764
770
|
<div id="fg-follow-actions">
|
|
765
771
|
<button class="fg-btn fg-btn-dark" id="fg-follow-btn">
|
|
766
772
|
${ICONS.x}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@followgate/js",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "FollowGate SDK - Grow your audience with every download. Require social actions (follow, repost) before users can access your app.",
|
|
5
5
|
"author": "FollowGate <hello@followgate.app>",
|
|
6
6
|
"homepage": "https://followgate.app",
|