mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-05 05:55:36 +05:00
remove analytics
This commit is contained in:
parent
c2fc453406
commit
88064f05c4
6 changed files with 1 additions and 48 deletions
|
@ -7,7 +7,6 @@ import { useEffect, useState } from "react";
|
|||
import { Button, Modal, ModalBody, ModalFooter, ModalHeader } from "flowbite-react";
|
||||
import { Spinner } from "./components/Spinner/Spinner";
|
||||
import { ChangelogModal } from "#/components/ChangelogModal/ChangelogModal";
|
||||
import PlausibleProvider from "next-plausible";
|
||||
import { Bounce, ToastContainer } from "react-toastify";
|
||||
|
||||
const inter = Inter({ subsets: ["latin"] });
|
||||
|
@ -104,14 +103,6 @@ export const App = (props) => {
|
|||
</Button>
|
||||
</ModalFooter>
|
||||
</Modal>
|
||||
{preferencesStore.flags.enableAnalytics && (
|
||||
<PlausibleProvider
|
||||
domain="anix.wah.su"
|
||||
trackLocalhost={false}
|
||||
selfHosted={true}
|
||||
enabled={true}
|
||||
/>
|
||||
)}
|
||||
<ToastContainer
|
||||
className={"mx-2 mb-20 sm:mb-0"}
|
||||
position="bottom-center"
|
||||
|
|
|
@ -267,23 +267,6 @@ export const SettingsModal = (props: { isOpen: boolean; setIsOpen: any }) => {
|
|||
checked={preferenceStore.flags.saveWatchHistory}
|
||||
/>
|
||||
</div>
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
<p className=" dark:text-white">Отправка аналитики</p>
|
||||
<p className="text-gray-500 dark:text-gray-300">
|
||||
Требуется перезагрузка для применения
|
||||
</p>
|
||||
</div>
|
||||
<ToggleSwitch
|
||||
color="blue"
|
||||
onChange={() =>
|
||||
preferenceStore.setFlags({
|
||||
enableAnalytics: !preferenceStore.flags.enableAnalytics,
|
||||
})
|
||||
}
|
||||
checked={preferenceStore.flags.enableAnalytics}
|
||||
/>
|
||||
</div>
|
||||
<HR className="my-4 dark:bg-slate-400" />
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="w-6 h-6 iconify material-symbols--experiment-outline"></span>
|
||||
|
|
|
@ -9,7 +9,6 @@ interface preferencesState {
|
|||
// saveSearchHistory: boolean;
|
||||
saveWatchHistory?: boolean;
|
||||
showChangelog?: boolean;
|
||||
enableAnalytics?: boolean;
|
||||
showNavbarTitles?: "always" | "links" | "selected" | "never";
|
||||
showFifthButton?: null | 3 | 4 | 5;
|
||||
};
|
||||
|
@ -43,7 +42,6 @@ export const usePreferencesStore = create<preferencesState>()(
|
|||
// saveSearchHistory: true,
|
||||
saveWatchHistory: true,
|
||||
showChangelog: true,
|
||||
enableAnalytics: true,
|
||||
showNavbarTitles: "always",
|
||||
showFifthButton: null,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue