diff --git a/package.json b/package.json index 1aee84d..54924e5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "txtdot", - "version": "1.3.0", + "version": "1.3.1", "private": true, "description": "", "main": "dist/app.js", diff --git a/src/publicConfig.ts b/src/publicConfig.ts index 847469e..f1d32f4 100644 --- a/src/publicConfig.ts +++ b/src/publicConfig.ts @@ -1,5 +1,5 @@ export default { - version: "1.1.1", + version: "1.3.1", description: - "HTTP proxy that parses only text, links and pictures from pages reducing internet traffic, removing ads and heavy scripts", + "txtdot is an HTTP proxy that parses only text, links and pictures from pages reducing internet bandwidth usage, removing ads and heavy scripts", }; diff --git a/src/routes/browser/index.ts b/src/routes/browser/index.ts index e9f4c5f..1d69770 100644 --- a/src/routes/browser/index.ts +++ b/src/routes/browser/index.ts @@ -1,9 +1,11 @@ import { FastifyInstance } from "fastify"; + +import publicConfig from "../../publicConfig"; import { engineList } from "../../handlers/main"; import { indexSchema } from "../../types/requests/browser"; export default async function indexRoute(fastify: FastifyInstance) { fastify.get("/", { schema: indexSchema }, async (_, reply) => { - return reply.view("/templates/index.ejs", { engineList }); + return reply.view("/templates/index.ejs", { publicConfig, engineList }); }); } diff --git a/templates/index.ejs b/templates/index.ejs index 0e295c0..c00d236 100644 --- a/templates/index.ejs +++ b/templates/index.ejs @@ -1,11 +1,10 @@ - <% const desc="txtdot is a HTTP proxy that parses text, links and pictures from pages reducing internet traffic, removing ads and heavy scripts" %> - + txt. main page @@ -16,10 +15,11 @@

txt.

-

<%= desc %>

+

<%= publicConfig.description %>