Zim/Kiwix (Wikipedia) feature

* A new zim module has been added, this module allows several things to interact with Zim files.
  * Allow searching of Zim files using libzim.
  * Allow downloading of Kiwix projects (wikipedia, wikibooks, etc) on a schedule which replaces the outdated files.
  * Creation of a new zim docker container which allows viewing of the Zim file contents.

* This commit also adds move/rename/mkdir features in the File Browser.
  * File tags are preserved when moving/renaming.
This commit is contained in:
Roland 2023-05-29 18:04:03 -06:00
parent cc5ab4e339
commit 03a2df217d
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
117 changed files with 6393 additions and 1100 deletions

View file

@ -25,6 +25,7 @@ export class Settings extends React.Component {
hotspot_password: null,
hotspot_ssid: null,
hotspot_status: null,
ignore_outdated_zims: null,
throttle_on_startup: null,
throttle_status: null,
}
@ -46,6 +47,7 @@ export class Settings extends React.Component {
hotspot_password: settings.hotspot_password,
hotspot_ssid: settings.hotspot_ssid,
hotspot_status: settings.hotspot_status,
ignore_outdated_zims: settings.ignore_outdated_zims,
throttle_on_startup: settings.throttle_on_startup,
throttle_status: settings.throttle_status,
}, this.handleHotspotChange);
@ -64,6 +66,7 @@ export class Settings extends React.Component {
hotspot_on_startup: this.state.hotspot_on_startup,
hotspot_password: this.state.hotspot_password,
hotspot_ssid: this.state.hotspot_ssid,
ignore_outdated_zims: this.state.ignore_outdated_zims,
throttle_on_startup: this.state.throttle_on_startup,
}
await saveSettings(settings);
@ -111,6 +114,7 @@ export class Settings extends React.Component {
hotspot_on_startup,
hotspot_password,
hotspot_ssid,
ignore_outdated_zims,
pending,
qrCodeValue,
throttle_on_startup,
@ -163,6 +167,15 @@ export class Settings extends React.Component {
/>
</div>
<div style={{margin: '0.5em'}}>
<Toggle
label='Ignore outdated Zims'
disabled={disabled || ignore_outdated_zims === null}
checked={ignore_outdated_zims === true}
onChange={checked => this.handleInputChange(null, 'ignore_outdated_zims', checked)}
/>
</div>
<FormGroup inline>
<FormInput
label={<>