ui: optimize bundle

This commit is contained in:
undefined committed 2022-08-24 00:28:25 +08:00
1 parent 9c02ed4dd8
commit 5ae8258b8a
28 files changed
+57 -179

No files matched your search

-4
View File
@@ -1,5 +1,3 @@
import attachObjectMeta from './util/objectMeta';
export const JOIN_METHOD_NONE = 0;
export const JOIN_METHOD_ALL = 1;
export const JOIN_METHOD_CODE = 2;
@@ -8,7 +6,6 @@ export const JOIN_METHOD_RANGE = {
[JOIN_METHOD_ALL]: 'Any user is allowed to join this domain',
[JOIN_METHOD_CODE]: 'Any user is allowed to join this domain with an invitation code',
};
attachObjectMeta(JOIN_METHOD_RANGE, 'intKey', true);
export const JOIN_EXPIRATION_KEEP_CURRENT = 0;
export const JOIN_EXPIRATION_UNLIMITED = -1;
@@ -22,4 +19,3 @@ export const JOIN_EXPIRATION_RANGE = {
[24 * 30]: 'In 1 month',
[JOIN_EXPIRATION_UNLIMITED]: 'Never expire',
};
attachObjectMeta(JOIN_EXPIRATION_RANGE, 'intKey', true);