orenom
10382a1fa8
use snake case for variables
2022-01-20 19:21:54 +01:00
orenom
fdb6dda91e
fix invalid applyUserMods() theme parameter ( fixes #39 )
2022-01-20 19:16:22 +01:00
orenom
0c53c2444c
fix caching, redis was using wrong url as the key
2021-12-26 18:36:30 +01:00
Ming Di Leom
d6ccd66f4b
fix(handleWikiPage): avoid sending 'lang' param to wikipedia
...
- continue #35
2021-12-26 04:57:20 +00:00
orenom
656460c918
Merge pull request 'fix(utils): remove unneeded lang parameter' ( #35 ) from curben/Wikiless:rm-wiki-lang into main
...
Reviewed-on: https://codeberg.org/orenom/Wikiless/pulls/35
2021-12-25 18:43:50 +01:00
orenom
9301a4f4f4
Merge pull request 'fix(css): add fr style' ( #34 ) from curben/Wikiless:fr-style into main
...
Reviewed-on: https://codeberg.org/orenom/Wikiless/pulls/34
2021-12-25 17:40:09 +01:00
Ming Di Leom
e6b360d225
fix(utils): revert writeFile() to createWriteStream
...
- https://codeberg.org/orenom/Wikiless/pulls/36#issuecomment-294336
- https://github.com/sindresorhus/got/blob/2ac07e1b60f59e2219bd6c2809a9e40f56b146b6/documentation/3-streams.md
2021-12-25 07:51:22 +00:00
Ming Di Leom
b961f7a3ea
fix(utils): check response is not empty before fs.writeFile()
...
- use utf8 encoding for svg
2021-12-23 11:03:32 +00:00
Ming Di Leom
c354933580
fix(utils): remove unneeded lang parameter
2021-12-22 19:35:42 +00:00
Ming Di Leom
8f8e665927
fix(routes): add fr logos
2021-12-22 11:39:29 +00:00
Ming Di Leom
443bca6b43
refactor: async/await
...
- feat(deps): add 'got'
* support redirect, retry on error and promise
- feat(deps): upgrade redis to v4
* promise-based
- style: remove unnecessary 'else return'
2021-12-22 07:56:30 +00:00
orenom
c6e7ebe129
fix lang suffix for applyUserMods (PR #30 )
2021-12-21 22:32:04 +01:00
Ming Di Leom
feb7e0f770
fix(utils): load fr-specific style
...
- #12
2021-12-18 06:28:47 +00:00
orenom
337332af57
fix PR #31 related errors
2021-12-17 17:32:46 +01:00
Ming Di Leom
0657e7cd3b
style: lint
...
- use const if possible
- skip false conditions
- check falsy empty string
- remove whitespace
2021-12-14 12:18:30 +00:00
orenom
988e7cf1dc
fix the stylesheets if the user has chosen a theme via preferences
2021-12-13 00:07:28 +01:00
Ming Di Leom
655f9f35f7
fix(utils): use path instead of full url
...
- enables multiple hosts (e.g. onion, eepsite) to share an instance
2021-12-08 09:53:54 +00:00
orenom
effec8ce4d
set status code to 500 if processing failed
2021-11-07 16:53:33 +01:00
orenom
61374d7cb9
remove debugging msg
2021-10-30 21:44:18 +02:00
orenom
78d267ef9b
uri encode wiki page names (fixes #22 )
2021-10-30 21:41:26 +02:00
orenom
68a7f41d2b
proxy wikimedia.org, adds wikimedia-svg support ( fixes #23 )
2021-10-30 20:13:48 +02:00
orenom
2c042368a5
check that removeAttribute is a function ( fixes #19 )
2021-10-07 15:44:44 +02:00
orenom
599afa7550
fix download as PDF feature ( #9 )
2021-08-14 13:29:20 +02:00
orenom
ea1e7a021b
support Wikipedia 'download as PDF feature' ( #9 )
2021-08-02 18:50:29 +02:00
orenom
6b6b996a82
remove all <script> and <iframe> elements, and remove all JS event attributes from all elements
2021-07-18 11:37:56 +02:00
orenom
4172d2df6c
fix the dir name for the comment
2021-07-17 10:55:47 +02:00
orenom
c781afdedf
add hyphen to the possible subdomain ( fixes #6 )
2021-07-17 10:49:15 +02:00
orenom
37887cd890
consume response data from the https.get() requests
2021-07-06 13:46:03 +02:00
orenom
b3d88c5b43
add User-Agent header for all Wikimedia requests
2021-06-30 03:19:22 +02:00
orenom
deb0f20915
remove the custom port logic from PR #2 , let's use config.domain instead
2021-05-27 19:58:32 +02:00
mgarciaisaia
1f222fe0b1
Fix: missing custom port on re-written links
...
When a link was rewritten and the site is running in a custom
(ie, not protocol standard - http/80, https/443) port, the links
became invalid.
We now include them only when necessary.
2021-05-27 01:02:49 -03:00
orenom
220136bae6
add some styling to the preference page
2021-05-13 17:52:58 +02:00
orenom
df046c5335
fix invalid lang bug
2021-05-13 17:40:56 +02:00
orenom
55ac09b299
decode filenames so we do not end up with too long filenames
2021-05-07 23:44:13 +02:00
orenom
a89453e967
add support for maps.wikimedia.org map images, fixes #1
2021-05-07 23:19:54 +02:00
orenom
b6965a3bdc
first commit
2021-05-05 17:22:33 +02:00