From db624f39af2ee7c1f5c21ca9b543623b274119f9 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 15 Sep 2024 17:05:27 +0400 Subject: [PATCH] Translation of a stuff page completed. --- web/stuff.templ | 266 ++++++++++++++++++++++++------------------------ 1 file changed, 135 insertions(+), 131 deletions(-) diff --git a/web/stuff.templ b/web/stuff.templ index d6c8950..03c00db 100644 --- a/web/stuff.templ +++ b/web/stuff.templ @@ -33,137 +33,27 @@ templ Stuff(r *http.Request) {

{ i18n.T(ctx, "stuff.progs") }

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + for _, prog := range programs { + + + + + + + + + + + }
mccl0.1.2 (14.12.2023)GoGPLv3 - source - releases -
-

A console Minecraft launcher. Take a look at README.md for explanation.

-
httpr0.3.2 (20.09.2023)GoMIT - source - releases -
-

A simple HTTP router that supports having both regular and parametrised path's parts at the same level, like /assets/*filepath and /:a/:b with the same HTTP method.

-

Yeah, not as efficient as httprouter is, but in my case no performance loose was noticed (on a small amount of paths). Yet I gained prettiness because it allowed me, for example, to ditch /f/ part and leave just /:hash/:name instead of /f/:hash/:name in a dwelling-upload service.

-
justguestbook1.3.2 (22.05.2023)GoMIT - source -
-

A simple guestbook with owner's replies implementation made into a library.

-
justcaptcha2.1.0 (12.08.2023)GoMIT - source -
-

A simple CAPTCHA implementation.

-
kwh-cost1.1.3 (21.05.2024)CMIT+NIGGER - source -
-

KWh cost calculator in C.

-
httpprocprobed3.2.0 (7.07.2024)GoMIT+NIGGER - source -
-

It returns a list of processes and if they are running in a JSON format via HTTP GET request on /processes endpoint. Under the hood it searches in a /proc/ directory. It is being used on about page to show wether service's running or not.

-
ScrapTheChan0.5.0 (3.05.2021)PythonMIT - source - releases -
-

Imageboards file scraper using theirs JSON API. Currently supported: 4chan.org, lainchan.org, 2ch.hk and 8kun.top.

-
OpenNIC active domains extraction script10.07.2020BashMIT - source -
-

Bash script for BIND9 that extracts domains from zone files of OpenNIC and forms a list of domains that have an IP-address.

-
PiggyBank1.0.0 (8.07.2020)PythonMIT - source - releases -
-

A program to help you to keep track of your piggy bank. A simple script I once wrote that I rewrote and made into a package just to learn how to do it.

-
{ prog.Name }{ prog.Version }{ prog.Lang }{ prog.License } + source + if prog.ReleasesLink != "" { + releases + } +
+ for _, line := range prog.Description[i18n.GetLocale(ctx).Code().String()] { +

@templ.Raw(line)

+ } +
@@ -172,3 +62,117 @@ templ Stuff(r *http.Request) {
} } + +type program struct { + Name string + Version string + Lang string + License string + SourceLink string + ReleasesLink string + Description map[string][]string +} + +var programs []program = []program{ + { + Name: "mccl", + Version: "0.1.2 (14.12.2023)", + Lang: "Go", + License: "GPLv3", + SourceLink: "/Arav/mccl", + ReleasesLink: "/Arav/mccl/releases", + Description: map[string][]string{ + "en": {"A console Minecraft launcher. Take a look at README.md for explanation."}, + "ru": {"Консольный лаунчер Minecraft. За подробностями в README.md."}}, + }, + { + Name: "httpr", + Version: "0.3.2 (20.09.2023)", + Lang: "Go", + License: "MIT", + SourceLink: "/Arav/httpr", + ReleasesLink: "/Arav/httpr/releases", + Description: map[string][]string{ + "en": { + "A simple HTTP router that supports having both regular and parametrised path's parts at the same level, like /assets/*filepath and /:a/:b with the same HTTP method."}, + "ru": { + "Простой HTTP роутер, который позволяет иметь на одном уровне и параметризованные и обычные пути, например, /assets/*filepath и /:a/:b."}}, + }, + { + Name: "justguestbook", + Version: "1.3.2 (22.05.2023)", + Lang: "Go", + License: "MIT", + SourceLink: "/Arav/justguestbook", + ReleasesLink: "", + Description: map[string][]string{ + "en": {"A simple guestbook with owner's replies implementation made into a library."}, + "ru": {"Простая гостевая книга в виде библиотеки с возможностью владельцу отвечать на посты."}}, + }, + { + Name: "justcaptcha", + Version: "2.1.0 (12.08.2023)", + Lang: "Go", + License: "MIT", + SourceLink: "/Arav/justcaptcha", + ReleasesLink: "", + Description: map[string][]string{ + "en": {"A simple CAPTCHA implementation."}, + "ru": {"Простая CAPTCHA."}}, + }, + { + Name: "kwh-cost", + Version: "1.1.3 (21.05.2024)", + Lang: "C", + License: "MIT+NIGGER", + SourceLink: "/Arav/kwh-cost", + ReleasesLink: "", + Description: map[string][]string{ + "en": {"KWh cost calculator in C."}, + "ru": {"Калькулятор стоимости кВтч на C."}}, + }, + { + Name: "httpprocprobed", + Version: "3.2.0 (7.07.2024)", + Lang: "Go", + License: "MIT+NIGGER", + SourceLink: "/Arav/httpprocprobed", + ReleasesLink: "", + Description: map[string][]string{ + "en": {"It returns a list of processes and if they are running in a JSON format via HTTP GET request on /processes endpoint. Under the hood it searches in a /proc/ directory. It is being used on about page to show wether service's running or not."}, + "ru": {"Возвращает JSON список процессов и запущены ли они. Процессы ищет считывая директорию /proc/. Использую на странице О... для показа статуса сервиса."}}, + }, + { + Name: "ScrapTheChan", + Version: "0.5.0 (3.05.2021)", + Lang: "Python", + License: "MIT", + SourceLink: "/Arav/ScrapTheChan", + ReleasesLink: "/Arav/ScrapTheChan/releases", + Description: map[string][]string{ + "en": {"Imageboards file scraper using theirs JSON API. Currently supported: 4chan.org, lainchan.org, 2ch.hk and 8kun.top."}, + "ru": {"Граббер файлов с имиджборд используя их JSON API. Работает с: 4chan.org, lainchan.org, 2ch.hk and 8kun.top."}}, + }, + { + Name: "OpenNIC active domains extraction script", + Version: "10.07.2020", + Lang: "Bash", + License: "MIT", + SourceLink: "/Arav/opennic-extract-domains", + ReleasesLink: "", + Description: map[string][]string{ + "en": {"Bash script for BIND9 that extracts domains from zone files of OpenNIC and forms a list of domains that have an IP-address."}, + "ru": {"Баш-скрипт для BIND9 извлекает домены OpenNIC у которых прописан IP-адрес."}}, + }, + { + Name: "PiggyBank", + Version: "1.0.0 (8.07.2020)", + Lang: "Python", + License: "MIT", + SourceLink: "/Arav/PiggyBank", + ReleasesLink: "/Arav/PiggyBank/releases", + Description: map[string][]string{ + "en": {"A program to help you to keep track of your piggy bank. A simple script I once wrote that I rewrote and made into a package just to learn how to do it."}, + "ru": {"Это просто копилка."}}, + }, +} \ No newline at end of file