Jean-Luc Tibaux
a879e1ff32
add missing icons required by French/modern theme
2022-07-25 17:03:00 +00:00
orenom
1a666dfcb9
Merge pull request 'refactor(cache_control): replace fs.rmdir() with fs.rm()' ( #49 ) from curben/Wikiless:rmdir into main
...
Reviewed-on: https://codeberg.org/orenom/Wikiless/pulls/49
2022-07-25 15:41:07 +02:00
Jean-Luc Tibaux
949b180bc2
fix of dark theme of 'content-boxes' on German 'Main_Page' ( #46 )
2022-07-23 19:19:08 +00:00
Jean-Luc Tibaux
e0afa3cf33
fix dark theme of Korean 'Main_Page' ( #46 , #76 )
2022-07-23 19:02:34 +00:00
orenom
f898d7b546
fix custom logos not loading on fr and ko sites (ref #70 )
2022-07-23 19:01:00 +02:00
orenom
a294c51118
fix catching requests for custom logos
2022-07-23 17:59:57 +02:00
orenom
3d38aebcb7
fix reading http status code, sometimes response is undefined ( fixes #79 )
2022-07-23 17:47:39 +02:00
orenom
aeb675594f
remove invisible unicode character (#ref #70 )
2022-07-23 17:42:53 +02:00
orenom
0ba14b8bb7
remove semicolons
2022-07-23 17:40:09 +02:00
orenom
c50bb9648d
improve korean layout ( #76 )
2022-07-20 17:13:28 +02:00
orenom
1c94f34144
add wikiless favicon support ( #51 )
2022-03-30 20:27:42 +02:00
Ming Di Leom
efadf59f13
refactor(cache_control): replace fs.rmdir() with fs.rm()
...
- to be deprecated https://nodejs.org/api/deprecations.html#DEP0147
2022-03-06 05:50:29 +00:00
Ming Di Leom
c883b6e8e9
feat(route): support chinese variants
...
- when a variant is specified, wikipedia uses "/zh-*/" path,
instead of the usual "/wiki/"
- when that happens, wikiless first redirects to "/wiki/",
and handle "zh-*" as lang parameter
- implementation in utils.js is generic to handle variants in
other languages (if any)
2022-03-06 05:44:39 +00:00
orenom
43d88ac455
fix redis key for setting and getting data ( fixes #45 )
2022-02-07 18:04:59 +01:00
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
521eedeaf1
fix redis ignoring configs ( fixes #41 ). now redis_url is used instead of redis_host and redis_port
2022-01-13 19:39:34 +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
ffa94a11c8
fix(fr): add menu icon
...
- style: unnecessary else return
- style: use 'const' if possible
2021-12-22 19:10:55 +00:00
Ming Di Leom
8f8e665927
fix(routes): add fr logos
2021-12-22 11:39:29 +00:00
Ming Di Leom
d2b01b7ea7
fix(routes): replace logo with wikiless'
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
55537a44d0
add cache control feature - wikiless can now empty the cached media files automatically
2021-12-17 18:06:04 +01: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
orenom
c7be596d90
Merge pull request 'fix(routes): prepend slash to wikipage that starts with "/"' ( #28 ) from curben/Wikiless:title-slash into main
...
Reviewed-on: https://codeberg.org/orenom/Wikiless/pulls/28
2021-12-12 22:50:31 +01:00
Ming Di Leom
70145ff008
fix(routes): prepend slash to wikipage that starts with "/"
...
- Closes #25
- Related #21
2021-12-08 11:04:06 +00: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
2422a60aa0
add route for wiki-pages which start with a forward slash ( fixes #21 )
2021-10-30 20:27:10 +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
174ce6af5d
Merge pull request 'Use fullchain.pem instead of chain.pem' ( #17 ) from cadence/Wikiless:full-chain into main
...
Reviewed-on: https://codeberg.org/orenom/Wikiless/pulls/17
2021-10-04 20:27:14 +02:00
Cadence Ember
454275a91a
Fix spelling of referrer in referrer-policy header
2021-10-04 23:20:55 +13:00
Cadence Ember
3197236339
Use fullchain.pem instead of chain.pem
2021-10-04 23:07:17 +13: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