Commit Graph

121 Commits

Author SHA1 Message Date
Artemy Egorov
7c72d985f7
Merge pull request from GHSA-4gj5-xj97-j8fp
* ci: add build check to pull requests

* Build(deps-dev): Bump @types/node from 20.10.6 to 20.11.24 (#91)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.10.6 to 20.11.24.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat: image compression (#101)

* feat: image compression

* fix: not compress svg

Maybe we should add a function to disable this fix. Since I noticed that if you compress svg in webp it becomes magically smaller.

* Configuration page (#104)

* feat: image compression

* feat: configuration page

* refactor: json stringify

and change engine buttons to ordered list

* fix: engine distributor matching

* fix: formatting

* build: update txtdot version to 1.7.0

* fix: configuration page title

* doc: features (#102)

* fix: ssrf

GHSA-4gj5-xj97-j8fp

Doesn't fully correct the error! You need to configure the server to block requests.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-07 14:49:54 +03:00
Artemy Egorov
f241a46e05
fix: isLocalResourse for proxy (#103)
GHSA-4c78-229v-hf6m
2024-03-05 21:53:40 +03:00
Artemy Egorov
b78da40255
Mass refactoring and stackoverflow users parser (#83)
* refactor: public config

delete public config, replace with package.json. Update version to 1.6.0 for this pull request.

* fix: searx pagination

* refactor: type system for routes

* refactor: universal redirection

* fix: stackoverflow questions

add No handler Found error

* feat: stackoverflow users parser
2024-02-25 18:17:56 +00:00
Artemy Egorov
c9f9e48acb
Engine routing (#82)
* refactor: move engines to folder

* refactor: engine class

* refactor: add distributor and readability, searx engines class

* delete: google engine

useless since searx added

* fix: stackoverflow

* update version
2024-02-17 12:25:54 +00:00
Artemy Egorov
3b5f402d77
Interface improvements (#74)
* fix: interface style improvements

and components in ejs templates

* fix: improvement of improvements

* Redesign: kind of MD3

* Working url/search switch

* formatting

* Add switch animation, adjust sizes, adjust btn colors, rename bg2 to outline

* Format

---------

Co-authored-by: DarkCat09 <gh@dc09.ru>
2024-02-14 10:23:13 +03:00
Artemy Egorov
ead78e79ab
Fix connection refusion (#72)
* fix: socket connection refused

* chore: update versions
2024-01-06 18:46:55 +00:00
Artemy Egorov
fa6c9cc2a0
Search by default (#71)
* feat: searx parser

* feat: search form in get page

* feat: search in main page

* fix: button naming

* chore: update version
2024-01-06 17:46:10 +00:00
Artemy Egorov
8f707c800e
Timeout (#70)
* fix: long response time due to many <a>...

... without hrefs. It's a temporary measure until it's clear how to deal with such performance issues.

* perf: remove jsdom install linkedom

* feat: timeout

But still this timeout works only for the time of transfer of the page itself, not its processing by the server

* fix: links

* format
2023-12-13 21:08:24 +04:00
Andrey
a6088914f7
Merge pull request #62 from TxtDot/nev-version
1.4.0
2023-09-25 12:08:23 +04:00
DarkCat09
b31bbc547e
Rearranged imports 2023-09-25 12:06:50 +04:00
DarkCat09
7f6b7c2215
Security bugfix: HTML sanitizing 2023-09-25 12:04:22 +04:00
Artemy
2e662ea30f 1.4.0 2023-09-25 10:53:42 +03:00
DarkCat09
9ffba003e6
Use "swagger" config entry 2023-09-25 11:16:15 +04:00
DarkCat09
809a389b6a
New config entry: swagger 2023-09-25 11:14:19 +04:00
DarkCat09
29e923cce6
Simpified boolean check (see fix in prev commit) 2023-09-25 10:55:06 +04:00
DarkCat09
a8d4b3a2d3
SECURITY BUGFIX: "false" env var value was parsed as true 2023-09-25 10:48:34 +04:00
DarkCat09
3a8198ea14
Bugfix: do not convert base64 and non-http(s):// 2023-09-22 13:37:17 +04:00
DarkCat09
d0d3dfd7b9
Bugfix: trim spaces in srcset, replace srcset in imgs 2023-09-22 13:23:02 +04:00
DarkCat09
1cec7ac3f0
app.ts: unused import 2023-09-22 13:00:44 +04:00
DarkCat09
40092d8227
replace-href: code cleanup 2023-09-22 13:00:16 +04:00
DarkCat09
4994bd5e54
Refactor: move links replacement into utils, call it after Readability 2023-09-22 12:53:25 +04:00
DarkCat09
64054ff627
Replacing all hrefs/srcs 2023-09-21 17:58:43 +04:00
DarkCat09
86c033bdaa
Use common getConfig() 2023-09-21 16:32:08 +04:00
DarkCat09
f56b79c563
getConfig() 2023-09-21 16:28:55 +04:00
DarkCat09
553efb1da6
New config entries 2023-09-21 16:26:32 +04:00
DarkCat09
47e4db1fc8
Proxying 2023-09-21 13:51:25 +04:00
DarkCat09
1fc1d8e88b
NotHtmlMimetype error handling 2023-09-21 13:18:12 +04:00
Artemy Egorov
28bbcda513
Merge pull request #57 from TxtDot/encoding
Decode response stream manually with iconv-lite
2023-09-21 09:49:09 +03:00
DarkCat09
a0ea2ae82f
Decode response stream manually with iconv-lite
F-ck axios
2023-09-21 10:32:07 +04:00
Artemy Egorov
a6a69f77f1
Merge pull request #56 from TxtDot/frontend-1
Frontend improvements
2023-09-20 14:12:14 +03:00
DarkCat09
9f0fd5f7a8
Using version and description from publicConfig; v1.3.1 2023-09-20 14:54:51 +04:00
DarkCat09
5b7ce0bb3c
"Original page" button in error.ejs 2023-09-20 14:40:57 +04:00
DarkCat09
e5ccbfe434
Store parsed DOM in InputHandler 2023-09-20 12:03:44 +04:00
Artemy
c6cef00f63 feat: fix google parsing
there's no more navigation
2023-09-17 11:25:17 +03:00
DarkCat09
b847f40991
Bugfix: [Google] window is not defined 2023-09-11 13:34:50 +04:00
DarkCat09
bbbfe480eb
Adapted engines to work with HandlerInput 2023-09-11 13:07:02 +04:00
DarkCat09
456a472031
Bugfix: parseDom return statement 2023-09-11 13:01:27 +04:00
DarkCat09
3a7abd93d9
Created HandlerInput class 2023-09-11 12:59:19 +04:00
DarkCat09
62d408ef98
Refactor/cleanup: moved types to other file 2023-09-11 11:23:27 +04:00
DarkCat09
f6dc1f953e
Moved engine selecting logic into separate function 2023-09-11 11:16:26 +04:00
Artemy Egorov
945d237fd6 refactor: optional lang and title for engines response 2023-09-07 13:19:43 +03:00
DarkCat09
c61adaa546
Checking if DOM array is empty before operations 2023-09-05 16:17:16 +04:00
DarkCat09
fd5bada891
Replaced all google domains with three globs 2023-09-05 16:13:04 +04:00
Artemy Egorov
92ba77de77 feat: micromatch system to match domains 2023-09-04 21:34:36 +03:00
Artemy Egorov
5ac36f9681 fix: all docker issues 2023-08-28 22:15:13 +03:00
Artemy Egorov
a3567cfb34 fix: raw html links and engine 2023-08-26 12:00:07 +03:00
Artemy Egorov
739d029339 refactor: routes 2023-08-26 11:46:36 +03:00
Artemy Egorov
8b8844f9fb feat: convert json-schema to typescript
No more code duplication
2023-08-25 12:22:15 +03:00
Artemy Egorov
c2ed53d3bb doc: api version fix 2023-08-23 17:24:17 +03:00
DarkCat09
2f9032ba5f
Merge branch 'main' into error-pages 2023-08-23 13:58:58 +04:00