Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Tag component #507

Closed
wants to merge 39 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
d536451
Add Deno and Node.js badge
Sep 18, 2022
14299f5
Merge branch 'main' into badge
Sep 19, 2022
97d4291
Apply suggestions from code review
Sep 19, 2022
da70b26
Redesign the badge
Sep 19, 2022
f06b4f7
Implement badge into plugin
Sep 19, 2022
1db7dd7
Add Tag component
Sep 20, 2022
94c8558
Update all tags
Sep 20, 2022
3f701c5
Merge branch 'main' into badge
Sep 20, 2022
c6df756
Update tag
Sep 24, 2022
9647995
Fix typo on menu entry
Sep 24, 2022
50e1525
Sync updates to all languages
Sep 24, 2022
3b95be2
Fix build error
Sep 24, 2022
92c4c8a
Update tag component
Sep 30, 2022
1d9fc86
Reduce delay and fix icon transition
Oct 1, 2022
0c5d208
Fix alignment on mobile view
Oct 1, 2022
90e0dd8
Change <a> element dynamically to increase SEO score
Oct 1, 2022
d1b77b6
Add favicon to third-party plugin menu
Oct 1, 2022
347b473
Merge branch 'main' into badge
KnorpelSenf Oct 2, 2022
190a5b3
Adjust TagGroup margin
Oct 4, 2022
bf5fb4c
Add Autotag plugin
Oct 5, 2022
1f24a0d
Remove tag from plugins page
Oct 7, 2022
0c5add6
Merge branch 'main' into badgex
Oct 7, 2022
8a4c853
Fix css
Oct 7, 2022
9c16c6f
Rename component to circumvent adblocker
Oct 7, 2022
c83f639
Replace tags with autotag
Oct 7, 2022
6c78490
Merge branch 'main' into badge
Oct 7, 2022
7dbef4a
Merge branch 'badgex' into badge
Oct 7, 2022
ee29599
Update extensions list
Oct 7, 2022
fad5c9a
Add dynamic link referencing to asset files
Oct 8, 2022
4d4cbab
Rename icon files
Oct 8, 2022
808738f
Rename `type` property to `template`
Oct 8, 2022
8253351
Add some workspace tools and configs
Oct 8, 2022
509bbbe
Refactor
Oct 8, 2022
07df0e1
update tsconfig
Oct 8, 2022
41bb81c
Add autotagMenu plugin
Oct 9, 2022
c07fd0a
Merge branch 'main' into badge-autotagmenu
Oct 13, 2022
df5b131
Add transition
Oct 15, 2022
f4ff085
Add `gap` option to `TagGroup`
Oct 15, 2022
04f5f89
Merge branch 'main' into badge
Oct 18, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions site/docs/es/hosting/deno-deploy.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Alojamiento: Deno Deploy
# Alojamiento: Deno Deploy <Badge text="Deno" />

Esta guía le informa sobre las formas de alojar sus bots de grammY en [Deno Deploy](https://deno.com/deploy).

Expand Down Expand Up @@ -89,7 +89,7 @@ deployctl deploy --project <project> ./mod.ts --prod --token <token>
Después de poner en marcha tu aplicación, debes configurar los ajustes de los webhooks de tu bot para que apunten a tu aplicación.
Para ello, envía una petición a

```text
```md
quadratz marked this conversation as resolved.
Show resolved Hide resolved
https://api.telegram.org/bot<token>/setWebhook?url=<url>
```

Expand Down
2 changes: 1 addition & 1 deletion site/docs/es/hosting/heroku.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Alojamiento: Heroku
# Alojamiento: Heroku <Badge text="Deno" /><Badge text="Node.js" type="warning"/>

> Asumimos que tienes los conocimientos básicos sobre la creación de bots usando grammY.
> Si aún no estás preparado, ¡no dudes en dirigirte a nuestra amigable [Guía](../guide)! :cohete:
Expand Down
2 changes: 1 addition & 1 deletion site/docs/es/hosting/supabase.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Hosting: Supabase Edge Functions
# Hosting: Supabase Edge Functions <Badge text="Deno" />

Esta guía te explica cómo puedes alojar tus bots de grammY en [Supabase](https://supabase.com/).

Expand Down
2 changes: 1 addition & 1 deletion site/docs/es/hosting/vps.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Alojamiento: VPS
# Alojamiento: VPS <Badge text="Deno" /><Badge text="Node.js" type="warning"/>

Un servidor virtual privado, mayormente conocido como VPS, es una máquina virtual que se ejecuta en la nube y cuyos usuarios tienen el control total de su sistema.

Expand Down
6 changes: 3 additions & 3 deletions site/docs/hosting/deno-deploy.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Hosting: Deno Deploy
# Hosting: Deno Deploy <Badge text="Deno" />

This guide tells you about the ways you can host your grammY bots on [Deno Deploy](https://deno.com/deploy).

Expand Down Expand Up @@ -48,7 +48,7 @@ Here, we are using the bot token (`/<bot token>`).
### Method 1: With GitHub

> This is the recommended method, and the easiest one to go with.
> The main advantage of following this method is that Deno Deploy will watch for changes in your repository which includes your bot code, and it will deploy new versions automatically.
> The main advantage of following method is that Deno Deploy will watch for changes in your repository which includes your bot code, and it will deploy new versions automatically.
quadratz marked this conversation as resolved.
Show resolved Hide resolved

1. Create a repository on GitHub, it can be either private or public.
2. Push your code.
Expand Down Expand Up @@ -89,7 +89,7 @@ deployctl deploy --project <project> ./mod.ts --prod --token <token>
After getting your app running, you should configure your bot's webhook settings to point to your app.
To do that, send a request to

```text
```md
quadratz marked this conversation as resolved.
Show resolved Hide resolved
https://api.telegram.org/bot<token>/setWebhook?url=<url>
```

Expand Down
2 changes: 1 addition & 1 deletion site/docs/hosting/heroku.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Hosting: Heroku
# Hosting: Heroku <Badge text="Deno" /><Badge text="Node.js" type="warning"/>

> We assume that you have the basic knowledge about creating bots using grammY.
> If you are not ready yet, don't hesitate to head over to our friendly [Guide](../guide)! :rocket:
Expand Down
2 changes: 1 addition & 1 deletion site/docs/hosting/supabase.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Hosting: Supabase Edge Functions
# Hosting: Supabase Edge Functions <Badge text="Deno" />

This guide tells you how you can host your grammY bots on [Supabase](https://supabase.com/).

Expand Down
2 changes: 1 addition & 1 deletion site/docs/hosting/vps.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Hosting: VPS
# Hosting: VPS <Badge text="Deno" /><Badge text="Node.js" type="warning"/>

A virtual private server, mostly known as VPS, is a virtual machine running in the cloud with its users having the full control of its system.

Expand Down
12 changes: 7 additions & 5 deletions site/docs/id/hosting/deno-deploy.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Hosting: Deno Deploy
# Hosting: Deno Deploy <Badge text="Deno" />

Halaman ini berisi panduan mengenai cara-cara meng-hosting bot di [Deno Deploy](https://deno.com/deploy).

Expand All @@ -16,13 +16,14 @@ Hasil dari tutorial disini dapat dilihat di [repositori bot kami](https://github

> Ingat! Kamu perlu [menjalankan bot dengan webhooks](../guide/deployment-types.md#bagaimana-cara-menggunakan-webhook), jadi kamu harus menggunakan `webhookCallback` alih-alih memanggil `bot.start()` di kodemu.

1. Pastikan kamu meng-export object bot di dalam sebuah file agar nantinya bisa di-import ketika ingin menjalankannya.
2. Buat sebuah file dengan nama `mod.ts` atau `mod.js`, ataupun nama lainnya sesuai dengan keinginanmu (tetapi kamu harus mengingatnya karena nanti file tersebut akan digunakan sebagai file deploy utama). File tersebut berisikan:
1. Pastikan kamu meng-export object `Bot` di dalam sebuah file agar nantinya bisa di-import ketika ingin menjalankannya.
2. Buat sebuah file dengan nama `mod.ts` atau `mod.js`, ataupun nama lainnya sesuai dengan keinginanmu (tetapi kamu harus mengingatnya karena nanti file tersebut akan digunakan sebagai file deploy utama).
File tersebut berisikan:

```ts
import { serve } from "https://deno.land/std/http/server.ts";
import { webhookCallback } from "https://deno.land/x/grammy/mod.ts";
// Kamu mungkin perlu mengubah ini agar dapat melakukan import pada object bot-mu.
// Kamu mungkin perlu mengubah ini agar object bot-mu bisa di-import
import bot from "./bot.ts";

const handleUpdate = webhookCallback(bot, "std/http");
Expand Down Expand Up @@ -90,8 +91,9 @@ deployctl deploy --project <project> ./mod.ts --prod --token <token>
### Catatan

Setelah mendapati bot-mu dapat berjalan, kamu harus melakukan konfigurasi pada pengaturan webhook untuk menggunakan URL bot-mu yang baru.
Untuk melakukannya, kirim sebuah request ke

```text
```md
quadratz marked this conversation as resolved.
Show resolved Hide resolved
https://api.telegram.org/bot<token>/setWebhook?url=<url>
```

Expand Down
2 changes: 1 addition & 1 deletion site/docs/id/hosting/heroku.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Hosting: Heroku
# Hosting: Heroku <Badge text="Deno" /><Badge text="Node.js" type="warning"/>

> Kami mengasumsikan bahwa kamu sudah memiliki pengetahuan dasar dalam membuat sebuah bot menggunakan grammY.
> Jika belum, silahkan baca [panduan](../guide) yang telah kami buat dengan sepenuh hati! :heart:
Expand Down
2 changes: 1 addition & 1 deletion site/docs/id/hosting/supabase.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Hosting: Supabase Edge Functions
# Hosting: Supabase Edge Functions <Badge text="Deno" />

Halaman ini berisi panduan mengenai langkah-langkah meng-hosting bot grammY di [Supabase](https://supabase.com/).

Expand Down
2 changes: 1 addition & 1 deletion site/docs/id/hosting/vps.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Hosting: VPS
# Hosting: VPS <Badge text="Deno" /><Badge text="Node.js" type="warning"/>

Virtual Private Server, atau biasa dikenal dengan VPS, adalah sebuah perangkat virtual yang berjalan di cloud, dimana pemiliknya memiliki kendali penuh atas perangkat tersebut.

Expand Down
4 changes: 2 additions & 2 deletions site/docs/zh/hosting/deno-deploy.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 托管:Deno Deploy
# 托管:Deno Deploy <Badge text="Deno" />

这个指南告诉你如何将你的 grammY bots 托管到 [Deno Deploy](https://deno.com/deploy).

Expand Down Expand Up @@ -89,7 +89,7 @@ deployctl deploy --project <project> ./mod.ts --prod --token <token>
在部署完成后,你需要配置你的 bot 的 webhook 设置来指向你的 app。
为了配置 webhook,发送一个请求到

```text
```md
quadratz marked this conversation as resolved.
Show resolved Hide resolved
https://api.telegram.org/bot<token>/setWebhook?url=<url>
```

Expand Down
2 changes: 1 addition & 1 deletion site/docs/zh/hosting/heroku.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 托管:Heroku
# 托管:Heroku <Badge text="Deno" /><Badge text="Node.js" type="warning"/>

> 我们假设你有关于如何使用 grammY 创建 bot 的基本知识。
> 如果你还没有准备好,不要犹豫,请查看我们十分友好的 [指南](../guide) ! :rocket:
Expand Down
2 changes: 1 addition & 1 deletion site/docs/zh/hosting/supabase.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 托管:Supabase Edge Functions
# 托管:Supabase Edge Functions<Badge text="Deno" />

这个指南告诉你如何将你的 grammY bots 托管到 [Supabase](https://supabase.com/).

Expand Down
2 changes: 1 addition & 1 deletion site/docs/zh/hosting/vps.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 托管: VPS
# 托管: VPS <Badge text="Deno" /><Badge text="Node.js" type="warning"/>

虚拟私人服务器,大多数时候被称为 VPS,是在云中运行的虚拟机,用户拥有其系统的完整控制权。

Expand Down