x-essential-lib 0.10.21 → 0.10.22
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/dist/index.d.ts +1 -0
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -296,6 +296,7 @@ interface GlobalStates {
|
|
|
296
296
|
activeOrg: Ref<string>;
|
|
297
297
|
activeOrgNameRaw: Ref<string>;
|
|
298
298
|
activeOrgName: Ref<string>;
|
|
299
|
+
privateDomain: Ref<boolean>;
|
|
299
300
|
permissionObjects: Ref<PermissionObjects>;
|
|
300
301
|
permissionChecksum: Ref<string>;
|
|
301
302
|
lastAppPath: Ref<string>;
|
package/dist/index.js
CHANGED
|
@@ -676,7 +676,7 @@ function clearViews(views) {
|
|
|
676
676
|
//#region src/composables/globalStates.ts
|
|
677
677
|
function useGlobalStates(globalStates, base) {
|
|
678
678
|
const { t } = useI18n();
|
|
679
|
-
const { darkRaw, dark, locale, activeOrg, activeOrgNameRaw, activeOrgName, permissionObjects, permissionChecksum, lastAppPath, views } = globalStates;
|
|
679
|
+
const { darkRaw, dark, locale, activeOrg, activeOrgNameRaw, activeOrgName, privateDomain, permissionObjects, permissionChecksum, lastAppPath, views } = globalStates;
|
|
680
680
|
provideDark(dark);
|
|
681
681
|
provideLocale(locale);
|
|
682
682
|
providePermissionObjects(permissionObjects);
|
|
@@ -696,6 +696,9 @@ function useGlobalStates(globalStates, base) {
|
|
|
696
696
|
if (activeOrg.value === "public") activeOrgName.value = t("x-essential-lib.publicDomain");
|
|
697
697
|
else activeOrgName.value = activeOrgNameRaw.value;
|
|
698
698
|
});
|
|
699
|
+
watchEffect(() => {
|
|
700
|
+
privateDomain.value = activeOrg.value !== "public";
|
|
701
|
+
});
|
|
699
702
|
function onUpdateDark(val) {
|
|
700
703
|
darkRaw.value = val;
|
|
701
704
|
}
|