Skip to content

Commit

Permalink
Add lemonsqueezy affiliates
Browse files Browse the repository at this point in the history
  • Loading branch information
AchoArnold committed Oct 23, 2023
1 parent 0c997a6 commit af07e67
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 deletions.
2 changes: 1 addition & 1 deletion android/app/src/main/java/com/httpsms/HttpSmsApiService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class HttpSmsApiService(private val apiKey: String, private val baseURL: URI) {
fun storeHeartbeat(phoneNumber: String, charging: Boolean) {
val body = """
{
"charging": "$charging",
"charging": $charging,
"owner": "$phoneNumber"
}
""".trimIndent()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package com.httpsms.worker

import android.content.Context
import android.os.BatteryManager
import androidx.work.Worker
import androidx.work.WorkerParameters
import com.httpsms.Constants
import com.httpsms.HttpSmsApiService
import com.httpsms.Settings
import com.httpsms.utils.Heartbeat
import timber.log.Timber

class HeartbeatWorker(appContext: Context, workerParams: WorkerParameters) : Worker(appContext, workerParams) {
Expand Down
16 changes: 15 additions & 1 deletion web/layouts/website.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,18 @@
</a>
</v-hover>
</li>
<li class="mb-2">
<v-hover v-slot="{ hover }">
<a
href="https://httpsms.lemonsqueezy.com/affiliates"
class="text--primary text-decoration-none"
:class="{ 'text-decoration-underline': hover }"
>
Affiliates
<v-icon color="warning" small>{{ mdiShieldStar }}</v-icon>
</a>
</v-hover>
</li>
<li class="mb-2">
<v-hover v-slot="{ hover }">
<a
Expand Down Expand Up @@ -186,7 +198,7 @@
:class="{ 'text-decoration-underline': hover }"
>
Sandbox
<v-icon small>{{ mdiCreation }}</v-icon>
<v-icon small color="pink">{{ mdiCreation }}</v-icon>
</a>
</v-hover>
</li>
Expand Down Expand Up @@ -248,6 +260,7 @@ import {
mdiCircle,
mdiTwitter,
mdiHeart,
mdiShieldStar,
mdiCreation,
mdiEyeOffOutline,
mdiPost,
Expand All @@ -273,6 +286,7 @@ export default Vue.extend({
mdiEmailOutline,
mdiPost,
mdiCircle,
mdiShieldStar,
mdiBookOpenVariant,
}
},
Expand Down
6 changes: 6 additions & 0 deletions web/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ export default {
async: true,
defer: true,
},
{
hid: 'lemonsqueezy',
src: 'https://lmsqueezy.com/affiliate.js',
async: true,
defer: true,
},
],
meta: [
{ charset: 'utf-8' },
Expand Down
3 changes: 3 additions & 0 deletions web/static/integrations.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@
y = l.getElementsByTagName(r)[0]
y.parentNode.insertBefore(t, y)
})(window, document, 'clarity', 'script', 'f3xyl9wf6t')

// LemonSqueezy
window.lemonSqueezyAffiliateConfig = { store: 'httpsms' }

0 comments on commit af07e67

Please sign in to comment.