Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

529 B
Raw Blame
import { Service } from "dioc"
import { ref } from "vue"
import { getI18n } from "~/modules/i18n"

type HistoryUIProviderTitle = (t: ReturnType<typeof getI18n>) => string

/**
 * This service is used to provide custom UI items for the history section.
 */
export class HistoryUIProviderService extends Service {
  public static readonly ID = "HISTORY_UI_PROVIDER_SERVICE"

  public readonly isEnabled = ref<boolean>(false)

  public readonly historyUIProviderTitle = ref<HistoryUIProviderTitle>((t) =>
    t("tab.history")
  )
}