itube-specs 0.0.801 → 0.0.802
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/utils/niche-helper.ts +9 -0
package/package.json
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Niche } from '../runtime';
|
|
2
|
+
|
|
3
|
+
/** Хелпер для работы с нишами */
|
|
4
|
+
export class NicheHelper {
|
|
5
|
+
/** Метод для получения дефолтной ниши сайта из окружения сайта */
|
|
6
|
+
public static getSiteDefaultNiche(): Niche {
|
|
7
|
+
return useRuntimeConfig()?.public.defaultNiche as Niche;
|
|
8
|
+
}
|
|
9
|
+
}
|