mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui-default: init
将ui-default合并至主存储库便于维护
This commit is contained in:
1 parent
6317c9057f
commit
5faa54c7ca
564 files changed
+23083
-14
No files matched your search
@@ -0,0 +1,25 @@
|
||||
import attachObjectMeta from './util/objectMeta';
|
||||
|
||||
export const JOIN_METHOD_NONE = 0;
|
||||
export const JOIN_METHOD_ALL = 1;
|
||||
export const JOIN_METHOD_CODE = 2;
|
||||
export const JOIN_METHOD_RANGE = {
|
||||
[JOIN_METHOD_NONE]: 'No user is allowed to join this domain',
|
||||
[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;
|
||||
|
||||
export const JOIN_EXPIRATION_RANGE = {
|
||||
[JOIN_EXPIRATION_KEEP_CURRENT]: 'Keep current expiration',
|
||||
3: 'In 3 hours',
|
||||
24: 'In 1 day',
|
||||
[24 * 3]: 'In 3 days',
|
||||
[24 * 7]: 'In 1 week',
|
||||
[24 * 30]: 'In 1 month',
|
||||
[JOIN_EXPIRATION_UNLIMITED]: 'Never expire',
|
||||
};
|
||||
attachObjectMeta(JOIN_EXPIRATION_RANGE, 'intKey', true);
|
||||
Reference in new issue
Block a user