Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

Update the logo

Acho Arnold783e75a976ca
diff --git a/api/pkg/handlers/message_handler.go b/api/pkg/handlers/message_handler.go
index a66a0ef0..34de05f3 100644
--- a/api/pkg/handlers/message_handler.go
+++ b/api/pkg/handlers/message_handler.go
@@ -2,7 +2,6 @@ package handlers
import (
"fmt"
- "sort"
"time"
"github.com/NdoleStudio/httpsms/pkg/repositories"
@@ -68,8 +67,6 @@ func (h *MessageHandler) PostSend(c *fiber.Ctx) error {
ctx, span := h.tracer.StartFromFiberCtx(c)
defer span.End()
- sort.Search()
-
ctxLogger := h.tracer.CtxLogger(h.logger, span)
var request requests.MessageSend
diff --git a/web/assets/img/logo-mono.svg b/web/assets/img/logo-mono.svg
new file mode 100644
index 00000000..ff106d8c
--- /dev/null
+++ b/web/assets/img/logo-mono.svg
@@ -0,0 +1,43 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" style="" xml:space="preserve" viewBox="120 80 287.92 275.73"><rect id="backgroundrect" width="100%" height="100%" x="0" y="0" fill="none" stroke="none"/>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+<g class="currentLayer" style=""><title>Layer 1</title><path d="M354.72,155.12h-4.24c-4.24-17.92-20.32-31.28-39.52-31.28c-4.64,0-9.12,0.8-13.36,2.24C288.16,99.28,262.72,80,232.64,80 c-38,0-68.88,30.8-68.88,68.88c0,2.4,0.16,4.72,0.4,7.12C139.2,160.32,120,182.16,120,208.4c0,29.28,23.92,53.2,53.2,53.2h181.52 c29.28,0,53.2-23.92,53.2-53.2C408,179.04,384,155.12,354.72,155.12z" id="svg_2" class="" fill-opacity="1" fill="#000000"/><rect x="142.91891479492188" y="278.9708251953125" width="256" height="16" id="svg_3" class="" fill-opacity="1" fill="#000000"/><rect x="143.99999582767487" y="309.3491994738579" width="216" height="16" id="svg_4" class="" fill="#000000" fill-opacity="1"/><rect x="143.4594594836235" y="339.7275733947754" width="168" height="16" id="svg_5" class="selected" fill-opacity="1" fill="#000000"/><g id="svg_7">
+ <path style="fill:#FFFFFF;" d="M181.52,219.44c2.64,1.68,7.28,3.52,11.68,3.52c6.48,0,9.44-3.2,9.44-7.28 c0-4.24-2.48-6.56-9.04-8.96c-8.8-3.12-12.88-8-12.88-13.84c0-7.84,6.32-14.32,16.8-14.32c4.96,0,9.28,1.44,12,3.04l-2.24,6.48 c-1.92-1.2-5.44-2.8-10-2.8c-5.28,0-8.16,3.04-8.16,6.64c0,4,2.96,5.84,9.28,8.24c8.48,3.2,12.8,7.44,12.8,14.72 c0,8.56-6.64,14.64-18.24,14.64c-5.36,0-10.32-1.28-13.68-3.36L181.52,219.44z" id="svg_8"/>
+ <path style="fill:#FFFFFF;" d="M222.72,192.96c0-5.04-0.08-9.2-0.4-13.2h7.76l0.4,7.84h0.32c2.72-4.64,7.28-8.96,15.36-8.96 c6.64,0,11.68,4,13.84,9.76h0.24c1.52-2.72,3.44-4.88,5.44-6.32c2.88-2.24,6.16-3.44,10.8-3.44c6.48,0,16,4.24,16,21.2v28.72h-8.64 v-27.6c0-9.36-3.44-15.04-10.56-15.04c-5.04,0-8.96,3.76-10.48,8.08c-0.4,1.2-0.72,2.8-0.72,4.48v30.16h-8.64v-29.28 c0-7.76-3.44-13.44-10.16-13.44c-5.52,0-9.6,4.4-10.96,8.88c-0.48,1.28-0.72,2.8-0.72,4.32v29.44h-8.64v-35.6H222.72z" id="svg_9"/>
+ <path style="fill:#FFFFFF;" d="M305.6,219.44c2.64,1.68,7.28,3.52,11.68,3.52c6.48,0,9.44-3.2,9.44-7.28 c0-4.24-2.48-6.56-9.04-8.96c-8.8-3.12-12.88-8-12.88-13.84c0-7.84,6.32-14.32,16.8-14.32c4.96,0,9.28,1.44,12,3.04l-2.24,6.48 c-1.92-1.2-5.44-2.8-10-2.8c-5.28,0-8.16,3.04-8.16,6.64c0,4,2.96,5.84,9.28,8.24c8.48,3.2,12.8,7.44,12.8,14.72 c0,8.56-6.64,14.64-18.24,14.64c-5.36,0-10.32-1.28-13.68-3.36L305.6,219.44z" id="svg_10"/>
+</g><g id="svg_11">
+</g><g id="svg_12">
+</g><g id="svg_13">
+</g><g id="svg_14">
+</g><g id="svg_15">
+</g><g id="svg_16">
+</g><g id="svg_17">
+</g><g id="svg_18">
+</g><g id="svg_19">
+</g><g id="svg_20">
+</g><g id="svg_21">
+</g><g id="svg_22">
+</g><g id="svg_23">
+</g><g id="svg_24">
+</g><g id="svg_25">
+</g></g></svg>
diff --git a/web/assets/img/logo.png b/web/assets/img/logo.png
deleted file mode 100644
index edc59c34..00000000
Binary files a/web/assets/img/logo.png and /dev/null differ
diff --git a/web/assets/img/logo.svg b/web/assets/img/logo.svg
new file mode 100644
index 00000000..6b474e75
--- /dev/null
+++ b/web/assets/img/logo.svg
@@ -0,0 +1,43 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" style="" xml:space="preserve" viewBox="120 80 287.92 275.73"><rect id="backgroundrect" width="100%" height="100%" x="0" y="0" fill="none" stroke="none"/>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+<g class="currentLayer" style=""><title>Layer 1</title><path d="M354.72,155.12h-4.24c-4.24-17.92-20.32-31.28-39.52-31.28c-4.64,0-9.12,0.8-13.36,2.24C288.16,99.28,262.72,80,232.64,80 c-38,0-68.88,30.8-68.88,68.88c0,2.4,0.16,4.72,0.4,7.12C139.2,160.32,120,182.16,120,208.4c0,29.28,23.92,53.2,53.2,53.2h181.52 c29.28,0,53.2-23.92,53.2-53.2C408,179.04,384,155.12,354.72,155.12z" id="svg_2" class="" fill-opacity="1" fill="#70ab5c"/><rect x="142.91891479492188" y="278.9708251953125" width="256" height="16" id="svg_3" class="" fill-opacity="1" fill="#70ab5c"/><rect x="143.99999582767487" y="309.3491994738579" width="216" height="16" id="svg_4" class="" fill="#ffffff" fill-opacity="1"/><rect x="143.4594594836235" y="339.7275733947754" width="168" height="16" id="svg_5" class="" fill-opacity="1" fill="#70ab5c"/><g id="svg_7">
+ <path style="fill:#FFFFFF;" d="M181.52,219.44c2.64,1.68,7.28,3.52,11.68,3.52c6.48,0,9.44-3.2,9.44-7.28 c0-4.24-2.48-6.56-9.04-8.96c-8.8-3.12-12.88-8-12.88-13.84c0-7.84,6.32-14.32,16.8-14.32c4.96,0,9.28,1.44,12,3.04l-2.24,6.48 c-1.92-1.2-5.44-2.8-10-2.8c-5.28,0-8.16,3.04-8.16,6.64c0,4,2.96,5.84,9.28,8.24c8.48,3.2,12.8,7.44,12.8,14.72 c0,8.56-6.64,14.64-18.24,14.64c-5.36,0-10.32-1.28-13.68-3.36L181.52,219.44z" id="svg_8"/>
+ <path style="fill:#FFFFFF;" d="M222.72,192.96c0-5.04-0.08-9.2-0.4-13.2h7.76l0.4,7.84h0.32c2.72-4.64,7.28-8.96,15.36-8.96 c6.64,0,11.68,4,13.84,9.76h0.24c1.52-2.72,3.44-4.88,5.44-6.32c2.88-2.24,6.16-3.44,10.8-3.44c6.48,0,16,4.24,16,21.2v28.72h-8.64 v-27.6c0-9.36-3.44-15.04-10.56-15.04c-5.04,0-8.96,3.76-10.48,8.08c-0.4,1.2-0.72,2.8-0.72,4.48v30.16h-8.64v-29.28 c0-7.76-3.44-13.44-10.16-13.44c-5.52,0-9.6,4.4-10.96,8.88c-0.48,1.28-0.72,2.8-0.72,4.32v29.44h-8.64v-35.6H222.72z" id="svg_9"/>
+ <path style="fill:#FFFFFF;" d="M305.6,219.44c2.64,1.68,7.28,3.52,11.68,3.52c6.48,0,9.44-3.2,9.44-7.28 c0-4.24-2.48-6.56-9.04-8.96c-8.8-3.12-12.88-8-12.88-13.84c0-7.84,6.32-14.32,16.8-14.32c4.96,0,9.28,1.44,12,3.04l-2.24,6.48 c-1.92-1.2-5.44-2.8-10-2.8c-5.28,0-8.16,3.04-8.16,6.64c0,4,2.96,5.84,9.28,8.24c8.48,3.2,12.8,7.44,12.8,14.72 c0,8.56-6.64,14.64-18.24,14.64c-5.36,0-10.32-1.28-13.68-3.36L305.6,219.44z" id="svg_10"/>
+</g><g id="svg_11">
+</g><g id="svg_12">
+</g><g id="svg_13">
+</g><g id="svg_14">
+</g><g id="svg_15">
+</g><g id="svg_16">
+</g><g id="svg_17">
+</g><g id="svg_18">
+</g><g id="svg_19">
+</g><g id="svg_20">
+</g><g id="svg_21">
+</g><g id="svg_22">
+</g><g id="svg_23">
+</g><g id="svg_24">
+</g><g id="svg_25">
+</g></g></svg>
diff --git a/web/pages/index.vue b/web/pages/index.vue
index 9a6fe6ad..613a5811 100644
--- a/web/pages/index.vue
+++ b/web/pages/index.vue
@@ -8,20 +8,13 @@
class="text--primary text-h4"
:class="{
'mt-5': $vuetify.breakpoint.mdAndDown,
+ 'mt-4': !$vuetify.breakpoint.mdAndDown,
}"
>
- <v-avatar
- v-if="$vuetify.breakpoint.lgAndUp"
- size="70"
- class="mt-4"
- >
- <v-img
- class="mb-4"
- contain
- :src="require('assets/img/icon.svg')"
- ></v-img>
+ <v-avatar v-if="$vuetify.breakpoint.lgAndUp" tile size="30">
+ <v-img contain :src="require('@/assets/img/logo.svg')"></v-img>
</v-avatar>
- Http SMS
+ HTTP SMS
</h2>
<v-spacer></v-spacer>
<v-btn
@@ -48,7 +41,7 @@
}"
>
<h1
- class="text-h2 font-weight-bold gradient-header"
+ class="text-h2 font-weight-bold pb-1 gradient-header"
:class="{
'mt-16': $vuetify.breakpoint.lgAndUp,
'mt-10': $vuetify.breakpoint.mdAndUp,