Skip to content

Commit af07e67

Browse files
committed
Add lemonsqueezy affiliates
1 parent 0c997a6 commit af07e67

File tree

5 files changed

+25
-4
lines changed

5 files changed

+25
-4
lines changed

android/app/src/main/java/com/httpsms/HttpSmsApiService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class HttpSmsApiService(private val apiKey: String, private val baseURL: URI) {
108108
fun storeHeartbeat(phoneNumber: String, charging: Boolean) {
109109
val body = """
110110
{
111-
"charging": "$charging",
111+
"charging": $charging,
112112
"owner": "$phoneNumber"
113113
}
114114
""".trimIndent()

android/app/src/main/java/com/httpsms/worker/HeartbeatWorker.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
package com.httpsms.worker
22

33
import android.content.Context
4-
import android.os.BatteryManager
54
import androidx.work.Worker
65
import androidx.work.WorkerParameters
76
import com.httpsms.Constants
87
import com.httpsms.HttpSmsApiService
98
import com.httpsms.Settings
10-
import com.httpsms.utils.Heartbeat
119
import timber.log.Timber
1210

1311
class HeartbeatWorker(appContext: Context, workerParams: WorkerParameters) : Worker(appContext, workerParams) {

web/layouts/website.vue

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,18 @@
125125
</a>
126126
</v-hover>
127127
</li>
128+
<li class="mb-2">
129+
<v-hover v-slot="{ hover }">
130+
<a
131+
href="https://httpsms.lemonsqueezy.com/affiliates"
132+
class="text--primary text-decoration-none"
133+
:class="{ 'text-decoration-underline': hover }"
134+
>
135+
Affiliates
136+
<v-icon color="warning" small>{{ mdiShieldStar }}</v-icon>
137+
</a>
138+
</v-hover>
139+
</li>
128140
<li class="mb-2">
129141
<v-hover v-slot="{ hover }">
130142
<a
@@ -186,7 +198,7 @@
186198
:class="{ 'text-decoration-underline': hover }"
187199
>
188200
Sandbox
189-
<v-icon small>{{ mdiCreation }}</v-icon>
201+
<v-icon small color="pink">{{ mdiCreation }}</v-icon>
190202
</a>
191203
</v-hover>
192204
</li>
@@ -248,6 +260,7 @@ import {
248260
mdiCircle,
249261
mdiTwitter,
250262
mdiHeart,
263+
mdiShieldStar,
251264
mdiCreation,
252265
mdiEyeOffOutline,
253266
mdiPost,
@@ -273,6 +286,7 @@ export default Vue.extend({
273286
mdiEmailOutline,
274287
mdiPost,
275288
mdiCircle,
289+
mdiShieldStar,
276290
mdiBookOpenVariant,
277291
}
278292
},

web/nuxt.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ export default {
1616
async: true,
1717
defer: true,
1818
},
19+
{
20+
hid: 'lemonsqueezy',
21+
src: 'https://lmsqueezy.com/affiliate.js',
22+
async: true,
23+
defer: true,
24+
},
1925
],
2026
meta: [
2127
{ charset: 'utf-8' },

web/static/integrations.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@
1010
y = l.getElementsByTagName(r)[0]
1111
y.parentNode.insertBefore(t, y)
1212
})(window, document, 'clarity', 'script', 'f3xyl9wf6t')
13+
14+
// LemonSqueezy
15+
window.lemonSqueezyAffiliateConfig = { store: 'httpsms' }

0 commit comments

Comments
 (0)