Files
lnreader/reader_playground/template.index.html
T
nyagami 420603f911 Replace Redux thunk by react native MMKV (#893)
* refactor: useBoolean hook

* refactor: useGithubUpdateChecker hook

* refactor: move showToast to utils

* refactor: useBackHandler hook

* refactor: useTextToSpeech hook

* refactor: useDeviceOrientation hook

* refactor: usePreviousRouteName hook

* refactor: useFullscreenMode hook

* refactor: useSearch hook

* refactor: useTheme hook

* fix: remove updates reducer

* refactor: useCategories hook

* refactor: useHistory hook

* refactor: useLibrarySettings hook
remove unused useCategories hook

* fix: reanimated version for expo

* refactor: library, chatper hooks

* refactor: app, browse settings hooks

* refactor: usePlugins hook

* fix: max depth in useEffect, plugins state logic

* feat: add Anilist tracker

* refactor: useTracker hook

* useTrackedNovel hook

* minor fixs

* refactor: useNovel hook

* minor fix: book mark button

* refactor: useDownload hook

* fix: migrate function

* remove redux + cleanup

* update node version for build

* fix: download Queue, migrate action

* fix: increaes hit slop for thumb, add reader playground

* fix: plugins not updated when installing while searching

* fix: safe plugin management

* Squashed commit of the following:

commit 51968f66bdd69f28f1863b5668f9511ba53c3fff
Author: Nyagami <hoangquan05112002@gmail.com>
Date:   Sat Jan 13 13:20:33 2024 +0700

    better logic for download progress bar

commit 5069de11644e7aece39efc73dfd80d093982b032
Author: Nyagami <hoangquan05112002@gmail.com>
Date:   Sat Jan 13 13:14:33 2024 +0700

    fix: delete BACKGROUND_ACTION in finally clause

commit 181103e994831da6744d122faaa60c48da529a63
Author: Nyagami <hoangquan05112002@gmail.com>
Date:   Sat Jan 13 13:10:56 2024 +0700

    update react-native-background-actions
2024-01-13 14:28:24 +05:30

72 lines
2.3 KiB
HTML

<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<style>
:root {
--StatusBar-currentHeight: 30px;
--readerSettings-theme: #292832;
--readerSettings-padding: 2%;
--readerSettings-textSize: 16px;
--readerSettings-textColor: #CCCCCC;
--readerSettings-textAlign: left;
--readerSettings-lineHeight: 1.5;
--readerSettings-fontFamily: ;
--theme-primary: rgb(0, 87, 206);
--theme-onPrimary: rgb(255, 255, 255);
--theme-secondary: rgb(88, 94, 113);
--theme-onSecondary: rgb(255, 255, 255);
--theme-surface: rgb(254, 251, 255);
--theme-surface-0-9: rgba(254, 251, 255, 0.9);
--theme-onSurface: rgb(27, 27, 31);
--theme-outline: rgb(117, 119, 128);
--chapterCtn-height: 700px;
}
body {
background-color: var(--readerSettings-theme);
}
@font-face {
font-family: 'Lora';
src: url("../android/app/src/main/assets/fonts/lora.ttf");
}
</style>
<script>
let hidden = true;
window.ReactNativeWebView = {};
window.ReactNativeWebView.postMessage = (data) => {
const event = JSON.parse(data);
switch (event.type) {
case 'hide':
if(!hidden) {
scrollHandler.hide()
}else{
scrollHandler.show();
}
break;
default:
console.log('unsupported event', event.type);
break;
}
};
</script>
<link rel="stylesheet" href="../android/app/src/main/assets/css/index.css">
<script async>
var showScrollPercentage = true;
var swipeGestures = false;
var autoSaveInterval = 2222;
</script>
<script defer src="../android/app/src/main/assets/js/index.js"></script>
</head>
<body>
<div class="chapterCtn" onclick="reader.post({type:'hide'})">
<chapter data-plugin-id='pluginId' data-novel-id='novelId' data-chapter-id='chapterId'>
${html}
</chapter>
<div class="d-none" id="ScrollBar"></div>
<div id="reader-percentage"></div>
</div>
</body>
</body>
</html>