@shopify/cli-kit
Version:
A set of utilities, interfaces, and models that are common across all the platform features
23 lines • 773 B
JavaScript
export function themePreviewUrl(theme, session) {
const store = session.storeFqdn;
if (theme.role === 'live') {
return `https://${store}`;
}
return `https://${store}?preview_theme_id=${theme.id}`;
}
export function themeEditorUrl(theme, session) {
const store = session.storeFqdn;
return `https://${store}/admin/themes/${theme.id}/editor`;
}
export function codeEditorUrl(theme, session) {
const store = session.storeFqdn;
return `https://${store}/admin/themes/${theme.id}`;
}
export function storeAdminUrl(session) {
const store = session.storeFqdn;
return `https://${store}/admin`;
}
export function storePasswordPage(store) {
return `https://${store}/admin/online_store/preferences`;
}
//# sourceMappingURL=urls.js.map