Skip to content

Commit

Permalink
add bmac, disable tele bot
Browse files Browse the repository at this point in the history
  • Loading branch information
dunkbing committed Jul 17, 2024
1 parent ac96fb1 commit 41f8082
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function Header(props: HeaderProps) {
About
</a>
<a
href="/feedback"
href="mailto:[email protected]"
className={NAV_ITEM}
>
Feedback
Expand Down
10 changes: 5 additions & 5 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"lint": { "rules": { "tags": ["fresh", "recommended"] } },
"imports": {
"@/": "./",
"$fresh/": "https://deno.land/x/[email protected].5/",
"preact": "https://esm.sh/[email protected].2",
"preact/": "https://esm.sh/[email protected].2/",
"$fresh/": "https://deno.land/x/[email protected].8/",
"preact": "https://esm.sh/[email protected].6",
"preact/": "https://esm.sh/[email protected].6/",
"preact-render-to-string": "https://esm.sh/*[email protected]",
"@preact/signals": "https://esm.sh/*@preact/[email protected].1",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected].0",
"@preact/signals": "https://esm.sh/*@preact/[email protected].2",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected].1",
"tabler_icons_tsx/": "https://deno.land/x/[email protected]/tsx/",
"tailwindcss": "npm:[email protected]",
"tailwindcss/": "npm:/[email protected]/",
Expand Down
3 changes: 0 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package main

import (
"fmt"
"github.com/dunkbing/tinyimg/tg_bot"
"log"
"net/http"

Expand All @@ -25,8 +24,6 @@ func enableCors(next http.Handler) http.Handler {
}

func main() {
tgHandler := tg_bot.New()
go tgHandler.Start()
mux := http.NewServeMux()
handler := handlers.New()
mux.Handle("/ping", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
Expand Down
19 changes: 14 additions & 5 deletions routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import { Handlers, PageProps } from "$fresh/server.ts";

import Form from "@/islands/Form.tsx";
import Head from "@/components/Head.tsx";
import { Promote } from "@/components/Promote.tsx";
import { StatsView } from "@/components/Stats.tsx";
import ProductHuntBadge from "@/components/ProductHuntBadge.tsx";
import { FAQ } from "@/components/FAQ.tsx";
import config from "@/utils/config.ts";
import { kv, statsEntryKey } from "@/utils/kv.ts";
Expand Down Expand Up @@ -38,11 +36,22 @@ export default function Home(ctx: PageProps<unknown>) {
/>
</Head>
<div class="mt-4" />
<ProductHuntBadge />
<script
type="text/javascript"
src="https://cdnjs.buymeacoffee.com/1.0.0/button.prod.min.js"
data-name="bmc-button"
data-slug="dangbinh48a"
data-color="#FFDD00"
data-emoji="☕"
data-font="Cookie"
data-text="Buy me a coffee"
data-outline-color="#000000"
data-font-color="#000000"
data-coffee-color="#ffffff"
/>
<Form uploadUrl={uploadUrl} downloadUrl={downloadUrl} />
<div class="mt-2" />
<StatsView {...data as any} />
<Promote />
<StatsView {...(data as any)} />
<FAQ />
</div>
);
Expand Down

0 comments on commit 41f8082

Please sign in to comment.