UNPKG

@shopify/cli-kit

Version:

A set of utilities, interfaces, and models that are common across all the platform features

24 lines 907 B
import { LocalStorage } from '../local-storage.js'; import { outputDebug, outputContent } from '../output.js'; let _hostThemeLocalStorageInstance; export function hostThemeLocalStorage() { if (!_hostThemeLocalStorageInstance) { _hostThemeLocalStorageInstance = new LocalStorage({ projectName: 'shopify-cli-host-theme-conf', }); } return _hostThemeLocalStorageInstance; } export function getHostTheme(storeFqdn) { outputDebug(outputContent `Getting host theme...`); return hostThemeLocalStorage().get(storeFqdn); } export function setHostTheme(storeFqdn, themeId) { outputDebug(outputContent `Setting host theme...`); hostThemeLocalStorage().set(storeFqdn, themeId); } export function removeHostTheme(storeFqdn) { outputDebug(outputContent `Removing host theme...`); hostThemeLocalStorage().delete(storeFqdn); } //# sourceMappingURL=conf.js.map