PluginProbe
Hostinger Reach – AI-Powered Email Marketing for WordPress / 1.7.2
Hostinger Reach – AI-Powered Email Marketing for WordPress v1.7.2
1.8.0 1.7.2 1.7.1 1.7.0 1.6.0 1.5.9 1.5.8 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 1.5.2 1.5.1 1.5.0 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 trunk 1.0.1 1.0.10 1.0.11 All 59 releases
hostinger-reach / frontend / vue / data / pluginData.ts
pluginData.ts
26 lines 686 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import type { Integration } from '@/types/models';
2
3 export const HOSTINGER_REACH_ID = 'hostinger-reach';
4 export const WOOCOMMERCE_ID = 'woocommerce';
5
6 export const PLUGIN_STATUSES = {
7 ACTIVE: 'active',
8 INACTIVE: 'inactive'
9 } as const;
10
11 export type PluginStatus = (typeof PLUGIN_STATUSES)[keyof typeof PLUGIN_STATUSES];
12
13 export interface PluginInfo {
14 id: string;
15 icon: string;
16 isViewFormHidden: boolean;
17 isEditFormHidden: boolean;
18 }
19
20 export const getPluginInfo = (integration: Integration): PluginInfo => ({
21 id: integration.id,
22 icon: integration?.icon || '',
23 isViewFormHidden: integration?.isViewFormHidden || true,
24 isEditFormHidden: integration?.isEditFormHidden || false
25 });
26