/* * Copyright (C) Contributors to the Suwayomi project * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ import { AppStorage } from '@/lib/storage/AppStorage.ts'; export abstract class BaseClient { protected abstract client: Client; public abstract readonly fetcher: Fetcher; public getBaseUrl(): string { return AppStorage.local.getItemParsed('serverBaseURL', import.meta.env.VITE_SERVER_URL_DEFAULT); } public abstract updateConfig(config: Partial): void; }