@giteeteam/apps-team-components 1.3.0-alpha.1 → 1.3.0-alpha.2

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.
Files changed (219) hide show
  1. package/dist/components/common/EmptyField.d.ts +0 -1
  2. package/dist/components/common/EmptyField.js +7 -5
  3. package/dist/components/common/PriceTag.js +11 -8
  4. package/dist/components/common/expand-component/index.d.ts +0 -1
  5. package/dist/components/common/expand-component/index.js +12 -10
  6. package/dist/components/common/expand-component/style.js +4 -2
  7. package/dist/components/common/item-icon/ItemIcon.d.ts +0 -1
  8. package/dist/components/common/item-icon/ItemIcon.js +6 -4
  9. package/dist/components/common/overflow-tooltip/BaseOverflowTooltip.d.ts +0 -1
  10. package/dist/components/common/overflow-tooltip/BaseOverflowTooltip.js +9 -6
  11. package/dist/components/common/overflow-tooltip/OverflowTooltip.js +9 -6
  12. package/dist/components/common/overflow-tooltip/SimpleOverflowToolTip.js +8 -5
  13. package/dist/components/common/overflow-tooltip/style/index.js +5 -3
  14. package/dist/components/common/style/global.js +3 -1
  15. package/dist/components/common/style/mixin.js +6 -3
  16. package/dist/components/common/user-field/UserAvatar.js +8 -6
  17. package/dist/components/common/user-field/style/index.js +5 -3
  18. package/dist/components/common/utils.js +13 -9
  19. package/dist/components/default-empty-icon/config.js +11 -6
  20. package/dist/components/default-empty-icon/index.js +10 -9
  21. package/dist/components/default-empty-icon/style.js +15 -12
  22. package/dist/components/default-empty-icon/types.js +3 -1
  23. package/dist/components/field-behavior/fields/type.js +5 -2
  24. package/dist/components/fields/actors/BaseField.js +5 -2
  25. package/dist/components/fields/actors/ReadView.d.ts +0 -1
  26. package/dist/components/fields/actors/ReadView.js +8 -6
  27. package/dist/components/fields/ancestor/ReadView.js +8 -6
  28. package/dist/components/fields/ancestor/utils.js +4 -12
  29. package/dist/components/fields/assignee/ReadView.d.ts +0 -1
  30. package/dist/components/fields/assignee/ReadView.js +13 -11
  31. package/dist/components/fields/base-component/utils.js +3 -1
  32. package/dist/components/fields/bind-workspace/ReadView.d.ts +0 -1
  33. package/dist/components/fields/bind-workspace/ReadView.js +11 -9
  34. package/dist/components/fields/bind-workspace/hooks.js +7 -4
  35. package/dist/components/fields/bind-workspace/style/index.js +3 -1
  36. package/dist/components/fields/cascade/ReadView.js +8 -6
  37. package/dist/components/fields/cascade/utils.js +4 -3
  38. package/dist/components/fields/checkbox/ReadView.d.ts +0 -1
  39. package/dist/components/fields/checkbox/ReadView.js +7 -5
  40. package/dist/components/fields/created-at/ReadView.js +10 -8
  41. package/dist/components/fields/created-by/ReadView.d.ts +0 -1
  42. package/dist/components/fields/created-by/ReadView.js +11 -9
  43. package/dist/components/fields/data-quote/ReadView.js +12 -10
  44. package/dist/components/fields/data-quote/utils.js +5 -3
  45. package/dist/components/fields/date/ReadView.d.ts +0 -1
  46. package/dist/components/fields/date/ReadView.js +8 -6
  47. package/dist/components/fields/dropdown/BaseField.js +42 -40
  48. package/dist/components/fields/dropdown/Cell.d.ts +0 -1
  49. package/dist/components/fields/dropdown/Cell.js +6 -4
  50. package/dist/components/fields/dropdown/ReadView.d.ts +0 -1
  51. package/dist/components/fields/dropdown/ReadView.js +10 -8
  52. package/dist/components/fields/dropdown/data.d.ts +1 -1
  53. package/dist/components/fields/dropdown/data.js +6 -3
  54. package/dist/components/fields/dropdown/hook.d.ts +0 -1
  55. package/dist/components/fields/dropdown/hook.js +11 -8
  56. package/dist/components/fields/dropdown/style.js +21 -18
  57. package/dist/components/fields/file/ReadView.d.ts +0 -1
  58. package/dist/components/fields/file/ReadView.js +7 -5
  59. package/dist/components/fields/formula/ReadView.d.ts +0 -1
  60. package/dist/components/fields/formula/ReadView.js +7 -5
  61. package/dist/components/fields/hooks/useViewClass.js +4 -2
  62. package/dist/components/fields/hyper-link/ReadView.d.ts +0 -1
  63. package/dist/components/fields/hyper-link/ReadView.js +8 -6
  64. package/dist/components/fields/hyper-link/style/index.js +7 -4
  65. package/dist/components/fields/item-group/ReadView.d.ts +0 -1
  66. package/dist/components/fields/item-group/ReadView.js +6 -4
  67. package/dist/components/fields/item-type/ItemTypeIcon.js +15 -17
  68. package/dist/components/fields/item-type/ReadView.d.ts +0 -1
  69. package/dist/components/fields/item-type/ReadView.js +7 -5
  70. package/dist/components/fields/item-type/style/index.js +3 -1
  71. package/dist/components/fields/key/ReadView.d.ts +0 -1
  72. package/dist/components/fields/key/ReadView.js +7 -5
  73. package/dist/components/fields/long-text/ReadView.d.ts +0 -1
  74. package/dist/components/fields/long-text/ReadView.js +8 -6
  75. package/dist/components/fields/long-text/style/index.js +3 -1
  76. package/dist/components/fields/number/BaseField.js +5 -2
  77. package/dist/components/fields/number/ReadView.d.ts +0 -1
  78. package/dist/components/fields/number/ReadView.js +8 -6
  79. package/dist/components/fields/priority/ReadView.js +12 -10
  80. package/dist/components/fields/priority/style/index.js +11 -8
  81. package/dist/components/fields/radio/ReadView.d.ts +0 -1
  82. package/dist/components/fields/radio/ReadView.js +8 -6
  83. package/dist/components/fields/repo-files/ReadView.js +8 -6
  84. package/dist/components/fields/repo-files/utils.js +5 -3
  85. package/dist/components/fields/reporter/ReadView.d.ts +0 -1
  86. package/dist/components/fields/reporter/ReadView.js +11 -9
  87. package/dist/components/fields/script/BaseField.js +4 -1
  88. package/dist/components/fields/script/ReadView.d.ts +0 -1
  89. package/dist/components/fields/script/ReadView.js +10 -8
  90. package/dist/components/fields/sprint/ReadView.js +7 -5
  91. package/dist/components/fields/status/Cell.js +8 -6
  92. package/dist/components/fields/status/Field.d.ts +0 -1
  93. package/dist/components/fields/status/ReadView.js +10 -8
  94. package/dist/components/fields/status/SelectFlowHandler.js +15 -12
  95. package/dist/components/fields/status/SelectTransition.js +13 -10
  96. package/dist/components/fields/status/Transition.js +18 -15
  97. package/dist/components/fields/status/TransitionButton.js +17 -14
  98. package/dist/components/fields/status/TransitionPanel.js +14 -11
  99. package/dist/components/fields/status/View.js +11 -8
  100. package/dist/components/fields/status/style/index.js +36 -59
  101. package/dist/components/fields/story-point/ReadView.d.ts +0 -1
  102. package/dist/components/fields/story-point/ReadView.js +6 -4
  103. package/dist/components/fields/tag/ReadView.js +10 -8
  104. package/dist/components/fields/tag/style/index.js +3 -1
  105. package/dist/components/fields/team/ReadView.js +10 -8
  106. package/dist/components/fields/team/style/index.js +4 -2
  107. package/dist/components/fields/text/BaseField.d.ts +0 -1
  108. package/dist/components/fields/text/ReadView.js +8 -6
  109. package/dist/components/fields/tree/ReadView.js +10 -8
  110. package/dist/components/fields/tree/utils.js +5 -3
  111. package/dist/components/fields/updated-at/ReadView.js +10 -8
  112. package/dist/components/fields/updated-by/ReadView.d.ts +0 -1
  113. package/dist/components/fields/updated-by/ReadView.js +11 -9
  114. package/dist/components/fields/user/ReadView.d.ts +0 -1
  115. package/dist/components/fields/user/ReadView.js +11 -9
  116. package/dist/components/fields/user/style/index.js +7 -4
  117. package/dist/components/fields/user-group/BaseField.d.ts +0 -1
  118. package/dist/components/fields/user-group/ReadView.js +11 -13
  119. package/dist/components/fields/version/ReadView.js +8 -6
  120. package/dist/components/fields/workspace/ReadView.d.ts +0 -1
  121. package/dist/components/fields/workspace/ReadView.js +10 -8
  122. package/dist/components/filters/filter-search/utils.js +6 -6
  123. package/dist/components/item/hooks.js +5 -2
  124. package/dist/components/table-components/EditTableCell.js +6 -3
  125. package/dist/components/table-components/index.js +14 -11
  126. package/dist/components/table-components/style/index.js +3 -1
  127. package/dist/components/table-components/utils.js +49 -46
  128. package/dist/icons/SyncIconFont.js +7 -5
  129. package/dist/icons/createFromIconFontClass.js +3 -1
  130. package/dist/icons/empty-icon/index.d.ts +8 -1
  131. package/dist/icons/empty-icon/large-item@2x.png.js +3 -0
  132. package/dist/icons/empty-icon/large-workspace@2x.png.js +3 -0
  133. package/dist/icons/empty-icon/small-default@2x.png.js +3 -0
  134. package/dist/icons/index.d.ts +1 -1
  135. package/dist/icons/index.js +37 -35
  136. package/dist/icons/style/index.js +4 -2
  137. package/dist/icons/svg/ArrowBack.svg.js +3 -0
  138. package/dist/icons/svg/Done.svg.js +3 -0
  139. package/dist/icons/svg/DottedCircle.svg.js +3 -0
  140. package/dist/icons/svg/HollowCircle.svg.js +3 -0
  141. package/dist/icons/svg/Search.svg.js +3 -0
  142. package/dist/icons/svg/Workflow.svg.js +3 -0
  143. package/dist/index.js +47 -47
  144. package/dist/lib/app/utils.d.ts +0 -1
  145. package/dist/lib/app/utils.js +4 -2
  146. package/dist/lib/array.js +5 -44
  147. package/dist/lib/config.js +8 -6
  148. package/dist/lib/constants/code.js +3 -1
  149. package/dist/lib/constants/field.js +5 -2
  150. package/dist/lib/contexts/antdConfig.js +10 -7
  151. package/dist/lib/contexts/currentUser.js +7 -4
  152. package/dist/lib/contexts/currentWorkspace.js +7 -4
  153. package/dist/lib/contexts/datetimeFormat.js +7 -4
  154. package/dist/lib/contexts/index.js +16 -13
  155. package/dist/lib/contexts/itemConfig.js +7 -4
  156. package/dist/lib/contexts/teamConfig.js +8 -5
  157. package/dist/lib/contexts/tenant.js +7 -4
  158. package/dist/lib/contexts/workflowConfig.js +7 -4
  159. package/dist/lib/dataType.js +4 -5
  160. package/dist/lib/date.js +11 -52
  161. package/dist/lib/dayjs.js +2 -1
  162. package/dist/lib/error/log.js +7 -4
  163. package/dist/lib/error/utils.d.ts +1 -1
  164. package/dist/lib/error/utils.js +8 -20
  165. package/dist/lib/error/withServerError.js +3 -1
  166. package/dist/lib/fetch.js +23 -54
  167. package/dist/lib/global.js +16 -14
  168. package/dist/lib/hooks/useAntdConfig.js +4 -2
  169. package/dist/lib/hooks/useCurrentUser.js +4 -2
  170. package/dist/lib/hooks/useCurrentWorkspace.js +4 -2
  171. package/dist/lib/hooks/useDataQuoteStore.js +8 -5
  172. package/dist/lib/hooks/useDateTimeFormatType.js +4 -2
  173. package/dist/lib/hooks/useI18n.d.ts +1 -1
  174. package/dist/lib/hooks/useI18n.js +4 -2
  175. package/dist/lib/hooks/useItemConfig.js +4 -2
  176. package/dist/lib/hooks/useTeamConfig.js +4 -2
  177. package/dist/lib/hooks/useTenant.js +4 -2
  178. package/dist/lib/hooks/useWorkflowConfig.js +4 -2
  179. package/dist/lib/i18n.js +6 -3
  180. package/dist/lib/icons/utils.js +10 -9
  181. package/dist/lib/isInOne.js +2 -1
  182. package/dist/lib/number.js +3 -1
  183. package/dist/lib/path.d.ts +2 -2
  184. package/dist/lib/path.js +9 -6
  185. package/dist/lib/regExp.js +3 -1
  186. package/dist/lib/router.js +4 -1
  187. package/dist/lib/storage.js +4 -39
  188. package/dist/lib/store/dataQuoteStore.js +5 -2
  189. package/dist/lib/swr/constants.js +4 -2
  190. package/dist/lib/swr/hooks.js +6 -3
  191. package/dist/lib/swr/throttleWithCache.js +7 -5
  192. package/dist/lib/throttleFetch.js +4 -2
  193. package/dist/lib/useConfig.js +9 -6
  194. package/dist/lib/useUser.js +9 -6
  195. package/dist/lib/users.js +5 -2
  196. package/dist/lib/workflow.js +21 -20
  197. package/dist/locales/index.js +5 -3
  198. package/dist/style/common.js +11 -24
  199. package/dist/style/global.js +3 -1
  200. package/package.json +8 -2
  201. package/dist/components/fields/base-component/types.js +0 -1
  202. package/dist/components/fields/hooks/useParamsAdapter.js +0 -1
  203. package/dist/components/fields/radio/BaseField.js +0 -1
  204. package/dist/components/fields/status/Field.js +0 -1
  205. package/dist/components/fields/tag/BaseField.js +0 -1
  206. package/dist/components/fields/text/BaseField.js +0 -1
  207. package/dist/components/fields/tree/BaseField.js +0 -1
  208. package/dist/components/fields/tree/types.js +0 -1
  209. package/dist/components/fields/types.js +0 -1
  210. package/dist/components/fields/user-group/ActionCell.js +0 -1
  211. package/dist/components/fields/user-group/BaseField.js +0 -1
  212. package/dist/icons/empty-icon/index.js +0 -8
  213. package/dist/icons/svg/ArrowBack.svg +0 -1
  214. package/dist/icons/svg/Done.svg +0 -1
  215. package/dist/icons/svg/DottedCircle.svg +0 -7
  216. package/dist/icons/svg/HollowCircle.svg +0 -6
  217. package/dist/icons/svg/Search.svg +0 -1
  218. package/dist/icons/svg/Workflow.svg +0 -12
  219. package/dist/lib/error/index.js +0 -2
package/dist/lib/path.js CHANGED
@@ -1,8 +1,9 @@
1
1
  import { useCallback, useContext } from 'react';
2
2
  import { startsWith } from 'lodash-es';
3
- import { TeamConfigContext } from './contexts/teamConfig';
4
- export const iconBasePath = '/icons';
5
- export const startsWithIconPath = startsWith(iconBasePath);
3
+ import { TeamConfigContext } from './contexts/teamConfig.js';
4
+
5
+ const iconBasePath = '/icons';
6
+ const startsWithIconPath = startsWith(iconBasePath);
6
7
  const removeExtraSlash = (paths) => {
7
8
  if (!paths)
8
9
  return '';
@@ -24,18 +25,18 @@ const mergePath = (path1, path2) => {
24
25
  }
25
26
  return result;
26
27
  };
27
- export const useGetBasePath = () => {
28
+ const useGetBasePath = () => {
28
29
  const { publicRuntimeConfig } = useContext(TeamConfigContext);
29
30
  return (publicRuntimeConfig === null || publicRuntimeConfig === void 0 ? void 0 : publicRuntimeConfig.basePath) || '';
30
31
  };
31
- export const useGetSourcePath = () => {
32
+ const useGetSourcePath = () => {
32
33
  const basePath = useGetBasePath();
33
34
  const getSourcePath = useCallback((path) => {
34
35
  return mergePath(basePath, path);
35
36
  }, [basePath]);
36
37
  return getSourcePath;
37
38
  };
38
- export const usePatchIconUrl = () => {
39
+ const usePatchIconUrl = () => {
39
40
  const getSourcePath = useGetSourcePath();
40
41
  const patchIconUrl = useCallback((iconUrl) => {
41
42
  if (startsWithIconPath(iconUrl)) {
@@ -45,3 +46,5 @@ export const usePatchIconUrl = () => {
45
46
  }, [getSourcePath]);
46
47
  return patchIconUrl;
47
48
  };
49
+
50
+ export { iconBasePath, startsWithIconPath, useGetBasePath, useGetSourcePath, usePatchIconUrl };
@@ -1 +1,3 @@
1
- export const REG_EN_NUMBER = /^[A-Za-z0-9]+$/;
1
+ const REG_EN_NUMBER = /^[A-Za-z0-9]+$/;
2
+
3
+ export { REG_EN_NUMBER };
@@ -1,5 +1,6 @@
1
1
  import queryString from 'query-string';
2
- export const getCurLocationInfo = () => {
2
+
3
+ const getCurLocationInfo = () => {
3
4
  const { pathname, search } = window.location;
4
5
  const basePath = window.__PROXIMA_BASE_NAME__ || '';
5
6
  const pathWithoutBasePath = basePath !== '/' && pathname.startsWith(basePath) ? pathname.slice(basePath.length) : pathname;
@@ -18,3 +19,5 @@ export const getCurLocationInfo = () => {
18
19
  };
19
20
  return router;
20
21
  };
22
+
23
+ export { getCurLocationInfo };
@@ -1,4 +1,4 @@
1
- export const getLocalStorageItem = (key, defaults = '') => {
1
+ const getLocalStorageItem = (key, defaults = '') => {
2
2
  let item;
3
3
  try {
4
4
  item = localStorage.getItem(key);
@@ -8,20 +8,10 @@ export const getLocalStorageItem = (key, defaults = '') => {
8
8
  return item !== null && item !== void 0 ? item : defaults;
9
9
  }
10
10
  };
11
- export const setLocalStorageItem = (key, value) => {
12
- try {
13
- localStorage.setItem(key, JSON.stringify(value));
14
- return true;
15
- }
16
- catch (e) {
17
- console.error(e);
18
- return false;
19
- }
20
- };
21
11
  const getStorageKeys = () => {
22
12
  return Object.keys(localStorage);
23
13
  };
24
- export const removeParseItems = () => {
14
+ const removeParseItems = () => {
25
15
  try {
26
16
  const keys = getStorageKeys();
27
17
  const parseKeys = keys.filter(fieldKey => fieldKey.startsWith('Parse/') && fieldKey.endsWith('/currentUser'));
@@ -33,30 +23,5 @@ export const removeParseItems = () => {
33
23
  console.error('removeParseItems', error);
34
24
  }
35
25
  };
36
- export default {
37
- getItem: getLocalStorageItem,
38
- setItem: setLocalStorageItem,
39
- removeParseItems,
40
- };
41
- const setLocalStorageState = (key, data) => {
42
- localStorage.setItem(key, JSON.stringify({ time: new Date().getDate(), data }));
43
- };
44
- export const getLocalStorageState = async (key, fn) => {
45
- try {
46
- const target = localStorage.getItem(key);
47
- if (target) {
48
- const targetFormat = JSON.parse(target);
49
- if ((targetFormat === null || targetFormat === void 0 ? void 0 : targetFormat.time) === new Date().getDate()) {
50
- if (typeof targetFormat.data !== 'string') {
51
- return targetFormat.data;
52
- }
53
- }
54
- }
55
- }
56
- catch (e) {
57
- console.error(e);
58
- }
59
- const data = await fn();
60
- setLocalStorageState(key, data);
61
- return data;
62
- };
26
+
27
+ export { getLocalStorageItem, removeParseItems };
@@ -1,9 +1,12 @@
1
1
  import { atom } from 'recoil';
2
- export const dataQuoteState = atom({
2
+
3
+ const dataQuoteState = atom({
3
4
  key: 'dataQuoteState',
4
5
  default: [],
5
6
  });
6
- export const currentDeleteState = atom({
7
+ const currentDeleteState = atom({
7
8
  key: 'currentDeleteState',
8
9
  default: '',
9
10
  });
11
+
12
+ export { currentDeleteState, dataQuoteState };
@@ -1,4 +1,4 @@
1
- export var API_KEY;
1
+ var API_KEY;
2
2
  (function (API_KEY) {
3
3
  API_KEY["GET_SEARCH_ITEM_GROUP"] = "GET_SEARCH_ITEM_GROUP";
4
4
  API_KEY["GET_SEARCH_ITEM_TYPE"] = "GET_SEARCH_ITEM_TYPE";
@@ -24,9 +24,11 @@ export var API_KEY;
24
24
  API_KEY["GET_TABLE_DEMO_CUSTOM_FIELDS"] = "GET_TABLE_DEMO_CUSTOM_FIELDS";
25
25
  API_KEY["GET_SETTINGS_FIELDS_LIST"] = "GET_SETTINGS_FIELDS_LIST";
26
26
  })(API_KEY || (API_KEY = {}));
27
- export var FetchCustomFieldTypeBySchemeType;
27
+ var FetchCustomFieldTypeBySchemeType;
28
28
  (function (FetchCustomFieldTypeBySchemeType) {
29
29
  FetchCustomFieldTypeBySchemeType["table"] = "tableView";
30
30
  FetchCustomFieldTypeBySchemeType["criteriaList"] = "criteriaList";
31
31
  FetchCustomFieldTypeBySchemeType["default"] = "default";
32
32
  })(FetchCustomFieldTypeBySchemeType || (FetchCustomFieldTypeBySchemeType = {}));
33
+
34
+ export { API_KEY, FetchCustomFieldTypeBySchemeType };
@@ -1,7 +1,8 @@
1
1
  import useSWR from 'swr';
2
- import useItemConfig from '../hooks/useItemConfig';
3
- import { API_KEY } from './constants';
4
- export const useFetchItemById = ({ id, disable = false, detail, }) => {
2
+ import useItemConfig from '../hooks/useItemConfig.js';
3
+ import { API_KEY } from './constants.js';
4
+
5
+ const useFetchItemById = ({ id, disable = false, detail, }) => {
5
6
  const { fetchItemById } = useItemConfig();
6
7
  const res = useSWR(!disable && id && [API_KEY.GET_ITEM_BY_ID, id], async () => {
7
8
  let result;
@@ -12,3 +13,5 @@ export const useFetchItemById = ({ id, disable = false, detail, }) => {
12
13
  });
13
14
  return res;
14
15
  };
16
+
17
+ export { useFetchItemById };
@@ -1,6 +1,7 @@
1
1
  import debug from 'debug';
2
- import { getLocalStorageItem } from 'lib/storage';
3
- export const DISABLE_THROTTLE_API_FETCH = 'DISABLE_THROTTLE_API_FETCH';
2
+ import { getLocalStorageItem } from '../storage.js';
3
+
4
+ const DISABLE_THROTTLE_API_FETCH = 'DISABLE_THROTTLE_API_FETCH';
4
5
  const log = debug('repeat-api');
5
6
  const disableThrottle = !!getLocalStorageItem(DISABLE_THROTTLE_API_FETCH) || false;
6
7
  let cacheKeys = [];
@@ -94,15 +95,16 @@ const throttleWithCache = ({ type, params, fn, method, }) => {
94
95
  }
95
96
  });
96
97
  };
97
- export var THROTTLE_TYPE;
98
+ var THROTTLE_TYPE;
98
99
  (function (THROTTLE_TYPE) {
99
100
  THROTTLE_TYPE["PLUGIN_RESOURCE_FETCH"] = "PLUGIN_RESOURCE_FETCH";
100
101
  THROTTLE_TYPE["QUERY_FETCH"] = "QUERY_FETCH";
101
102
  THROTTLE_TYPE["CUSTOM_FETCH"] = "CUSTOM_FETCH";
102
103
  })(THROTTLE_TYPE || (THROTTLE_TYPE = {}));
103
- export const createKeyByParams = ({ type, params }) => {
104
+ const createKeyByParams = ({ type, params }) => {
104
105
  if (!params)
105
106
  return `${+new Date()}`;
106
107
  return `${type}_${JSON.stringify(params)}`;
107
108
  };
108
- export default throttleWithCache;
109
+
110
+ export { DISABLE_THROTTLE_API_FETCH, THROTTLE_TYPE, createKeyByParams, throttleWithCache as default };
@@ -25,7 +25,7 @@ class PubSub {
25
25
  }
26
26
  }
27
27
  const pubSub = new PubSub();
28
- export const generateHash = (content) => {
28
+ const generateHash = (content) => {
29
29
  if (content && typeof content === 'object')
30
30
  try {
31
31
  content = JSON.stringify(content);
@@ -47,7 +47,7 @@ export const generateHash = (content) => {
47
47
  }
48
48
  return btoa('hash-' + hash);
49
49
  };
50
- export async function throttleFetch(key, fetcher) {
50
+ async function throttleFetch(key, fetcher) {
51
51
  return new Promise((resolve, reject) => {
52
52
  const hashKey = generateHash(key);
53
53
  const hasEvent = hashKey in pubSub.events;
@@ -64,3 +64,5 @@ export async function throttleFetch(key, fetcher) {
64
64
  }
65
65
  });
66
66
  }
67
+
68
+ export { generateHash, throttleFetch };
@@ -1,11 +1,12 @@
1
1
  import { useContext, useMemo } from 'react';
2
2
  import Cookie from 'js-cookie';
3
- import { TeamConfigContext } from './contexts/teamConfig';
4
- import { getAcceptLanguageHeader } from './config';
5
- export const LOCALE_KEY = 'lang';
6
- export const PROXIMA_TENANT_KEY = 'team_tenant';
7
- export const SESSION_KEY = 'sessionToken';
8
- export const useAppProps = () => {
3
+ import { TeamConfigContext } from './contexts/teamConfig.js';
4
+ import { getAcceptLanguageHeader } from './config.js';
5
+
6
+ const LOCALE_KEY = 'lang';
7
+ const PROXIMA_TENANT_KEY = 'team_tenant';
8
+ const SESSION_KEY = 'sessionToken';
9
+ const useAppProps = () => {
9
10
  const { userConfig = {}, publicRuntimeConfig = {} } = useContext(TeamConfigContext);
10
11
  const locale = useMemo(() => {
11
12
  const userLocale = userConfig.locale;
@@ -26,3 +27,5 @@ export const useAppProps = () => {
26
27
  appId,
27
28
  };
28
29
  };
30
+
31
+ export { LOCALE_KEY, PROXIMA_TENANT_KEY, SESSION_KEY, useAppProps };
@@ -1,8 +1,9 @@
1
- import { toBoolean } from './dataType';
2
- import { i18n } from './i18n';
3
- export const isUserDeleted = (user) => toBoolean(user === null || user === void 0 ? void 0 : user.deleted, false) === true;
4
- export const isUserDisabled = (user) => toBoolean(user === null || user === void 0 ? void 0 : user.enabled, true) === false;
5
- export const generateUserDisplayName = (user, onlyNickname = false) => {
1
+ import { toBoolean } from './dataType.js';
2
+ import { i18n } from './i18n.js';
3
+
4
+ const isUserDeleted = (user) => toBoolean(user === null || user === void 0 ? void 0 : user.deleted, false) === true;
5
+ const isUserDisabled = (user) => toBoolean(user === null || user === void 0 ? void 0 : user.enabled, true) === false;
6
+ const generateUserDisplayName = (user, onlyNickname = false) => {
6
7
  const getDisplaySuffix = () => {
7
8
  if (isUserDeleted(user)) {
8
9
  return i18n.t('pages.users.default.delete');
@@ -20,7 +21,7 @@ export const generateUserDisplayName = (user, onlyNickname = false) => {
20
21
  return `${(user === null || user === void 0 ? void 0 : user.nickname) || (user === null || user === void 0 ? void 0 : user.username)}${displaySuffix}`;
21
22
  return (user === null || user === void 0 ? void 0 : user.nickname) ? `${user === null || user === void 0 ? void 0 : user.nickname}${displaySuffix}` : user === null || user === void 0 ? void 0 : user.username;
22
23
  };
23
- export const userDataFormat = (user) => {
24
+ const userDataFormat = (user) => {
24
25
  var _a;
25
26
  return ({
26
27
  label: generateUserDisplayName(user),
@@ -31,3 +32,5 @@ export const userDataFormat = (user) => {
31
32
  enabled: user.enabled,
32
33
  });
33
34
  };
35
+
36
+ export { generateUserDisplayName, isUserDeleted, isUserDisabled, userDataFormat };
package/dist/lib/users.js CHANGED
@@ -1,8 +1,11 @@
1
- import { generateUserDisplayName } from './useUser';
2
- export const userOptionAdapter = (user) => {
1
+ import { generateUserDisplayName } from './useUser.js';
2
+
3
+ const userOptionAdapter = (user) => {
3
4
  return {
4
5
  label: generateUserDisplayName(user),
5
6
  value: user === null || user === void 0 ? void 0 : user.objectId,
6
7
  key: user === null || user === void 0 ? void 0 : user.username,
7
8
  };
8
9
  };
10
+
11
+ export { userOptionAdapter };
@@ -1,21 +1,22 @@
1
- import { useEffect, useState } from 'react';
1
+ import { useState, useEffect } from 'react';
2
2
  import { pick } from 'lodash-es';
3
- import { SUPPORT_USER_KEYS } from '../components/field-behavior/fields/type';
4
- import useWorkflowConfig from './hooks/useWorkflowConfig';
5
- import { getDateType, getFormat } from './date';
6
- import { CustomFieldComponentTypes } from './global';
7
- import { i18n } from './i18n';
8
- export var ElementEnum;
3
+ import { SUPPORT_USER_KEYS } from '../components/field-behavior/fields/type.js';
4
+ import useWorkflowConfig from './hooks/useWorkflowConfig.js';
5
+ import { getFormat, getDateType } from './date.js';
6
+ import { CustomFieldComponentTypes } from './global.js';
7
+ import { i18n } from './i18n.js';
8
+
9
+ var ElementEnum;
9
10
  (function (ElementEnum) {
10
11
  ElementEnum["Node"] = "Node";
11
12
  ElementEnum["Edge"] = "Edge";
12
13
  })(ElementEnum || (ElementEnum = {}));
13
- export var NodeEnum;
14
+ var NodeEnum;
14
15
  (function (NodeEnum) {
15
16
  NodeEnum["Start"] = "Start";
16
17
  NodeEnum["Task"] = "Task";
17
18
  })(NodeEnum || (NodeEnum = {}));
18
- export const getScriptUser = (user) => {
19
+ const getScriptUser = (user) => {
19
20
  if (!user)
20
21
  return null;
21
22
  return pick(user.toJSON(), [
@@ -29,8 +30,8 @@ export const getScriptUser = (user) => {
29
30
  };
30
31
  const EmptyCondition = { key: 'isEmpty', name: '为空' };
31
32
  const NotEmptyCondition = { key: 'notEmpty', name: '非空' };
32
- export const EmptyConditionList = [EmptyCondition, NotEmptyCondition];
33
- export const NumberConditions = {
33
+ const EmptyConditionList = [EmptyCondition, NotEmptyCondition];
34
+ const NumberConditions = {
34
35
  equalTo: { key: 'equalTo', name: '等于' },
35
36
  greaterThan: { key: 'greaterThan', name: '大于' },
36
37
  greaterThanOrEqualTo: { key: 'greaterThanOrEqualTo', name: '大于等于' },
@@ -40,13 +41,13 @@ export const NumberConditions = {
40
41
  isEmpty: EmptyCondition,
41
42
  notEmpty: NotEmptyCondition,
42
43
  };
43
- export const StringConditions = {
44
+ const StringConditions = {
44
45
  equalTo: { key: 'equalTo', name: '等于' },
45
46
  notEqualTo: { key: 'notEqualTo', name: '不等于' },
46
47
  isEmpty: EmptyCondition,
47
48
  notEmpty: NotEmptyCondition,
48
49
  };
49
- export const DropdownConditions = {
50
+ const DropdownConditions = {
50
51
  containedIn: { key: 'containedIn', name: '包含', not: 'File' },
51
52
  notContainedIn: { key: 'notContainedIn', name: '不包含', not: 'File' },
52
53
  isEmpty: EmptyCondition,
@@ -59,7 +60,7 @@ const ItemFieldType = {
59
60
  workspace: 'workspace',
60
61
  reporter: 'reporter',
61
62
  };
62
- export function isEmptyCondition(key) {
63
+ function isEmptyCondition(key) {
63
64
  return EmptyConditionList.map(d => d.key).includes(key);
64
65
  }
65
66
  function numberToCompare(num1, num2, compareString) {
@@ -115,7 +116,7 @@ function listToCompare(list1, list2, compareString) {
115
116
  return false;
116
117
  }
117
118
  }
118
- export function checkUserPermission({ transition, userId, roleIds, groupIds, item, workspaceRoleIds, }) {
119
+ function checkUserPermission({ transition, userId, roleIds, groupIds, item, workspaceRoleIds, }) {
119
120
  var _a, _b, _c;
120
121
  const values = (item === null || item === void 0 ? void 0 : item.values) || {};
121
122
  const { users: authUsers, roles: authRoles, groups: authGroups, customFields: authUserFields, workspaceRoles: authWorkspaceRoles, creatorAuth, } = ((_a = transition.parameters) === null || _a === void 0 ? void 0 : _a.permissionType) || {};
@@ -214,7 +215,7 @@ export function checkUserPermission({ transition, userId, roleIds, groupIds, ite
214
215
  }
215
216
  return { result: true };
216
217
  }
217
- export function checkItemCondition(transition, item) {
218
+ function checkItemCondition(transition, item) {
218
219
  var _a, _b;
219
220
  const conditions = ((_a = transition.parameters) === null || _a === void 0 ? void 0 : _a.fieldType) || [];
220
221
  for (const i in conditions) {
@@ -338,13 +339,11 @@ export function checkItemCondition(transition, item) {
338
339
  };
339
340
  }
340
341
  break;
341
- default:
342
- break;
343
342
  }
344
343
  }
345
344
  return { result: true };
346
345
  }
347
- export function checkTransition(item, transition, permissions, flowHandlerActive) {
346
+ function checkTransition(item, transition, permissions, flowHandlerActive) {
348
347
  var _a, _b;
349
348
  if (!item || !transition)
350
349
  return { result: false };
@@ -374,7 +373,7 @@ export function checkTransition(item, transition, permissions, flowHandlerActive
374
373
  return conditionCheck;
375
374
  return { result: true };
376
375
  }
377
- export const useWorkflowPermission = (workspaceId) => {
376
+ const useWorkflowPermission = (workspaceId) => {
378
377
  const [roles, setRoles] = useState([]);
379
378
  const [groups, setGroups] = useState([]);
380
379
  const [workspaceRoles, setWorkspaceRoles] = useState([]);
@@ -395,3 +394,5 @@ export const useWorkflowPermission = (workspaceId) => {
395
394
  }, [workspaceId, fetchRole]);
396
395
  return [groups, roles, workspaceRoles];
397
396
  };
397
+
398
+ export { DropdownConditions, ElementEnum, EmptyConditionList, NodeEnum, NumberConditions, StringConditions, checkItemCondition, checkTransition, checkUserPermission, getScriptUser, isEmptyCondition, useWorkflowPermission };
@@ -1,4 +1,4 @@
1
- export const en = {
1
+ const en = {
2
2
  'pages.users.default.delete': '(Deleted)',
3
3
  'pages.users.default.forbidden': '(Disabled)',
4
4
  'views.common.emptyField.user': 'Unassigned',
@@ -68,7 +68,7 @@ export const en = {
68
68
  'views.common.searchSelect.emptyData.noData': 'No data',
69
69
  'workspaceArchived.archived': 'Archived',
70
70
  };
71
- export const zh = {
71
+ const zh = {
72
72
  'pages.users.default.delete': '(已删除)',
73
73
  'pages.users.default.forbidden': '(已禁用)',
74
74
  'views.common.emptyField.user': '未指定',
@@ -138,7 +138,7 @@ export const zh = {
138
138
  'views.common.searchSelect.emptyData.noData': '暂无数据',
139
139
  'workspaceArchived.archived': '已归档',
140
140
  };
141
- export const ru = {
141
+ const ru = {
142
142
  'pages.users.default.delete': '(удалено)',
143
143
  'pages.users.default.forbidden': '(неактивный)',
144
144
  'views.common.emptyField.user': 'Не указан',
@@ -208,3 +208,5 @@ export const ru = {
208
208
  'views.common.searchSelect.emptyData.noData': 'No data',
209
209
  'workspaceArchived.archived': 'В архиве',
210
210
  };
211
+
212
+ export { en, ru, zh };
@@ -1,27 +1,12 @@
1
- export const gray1 = '#FFFFFF';
2
- export const gray2 = '#FAFBFB';
3
- export const gray3 = '#F5F6F8';
4
- export const gray4 = '#F1F2F4';
5
- export const gray5 = '#DADDE3';
6
- export const gray6 = '#C1C5CF';
7
- export const gray7 = '#848C9F';
8
- export const gray8 = '#525E79';
9
- export const gray9 = '#213053';
10
- export const gray10 = '#091940';
11
- export const blue1 = '#e6f3ff';
12
- export const blue2 = '#b0d6ff';
13
- export const blue3 = '#87bdff';
14
- export const blue4 = '#5ea1ff';
15
- export const blue5 = '#3683ff';
16
- export const blue6 = '#0c62ff';
17
- export const blue7 = '#0045d9';
18
- export const blue8 = '#0033b3';
19
- export const blue9 = '#00238c';
20
- export const blue10 = '#001666';
21
- export const statusCellMinWidth = '62px';
22
- export const fieldLabelColor = '#909aaa';
23
- export const themeBgColorBase = gray4;
24
- export const randomClassName = (name) => {
1
+ const gray4 = '#F1F2F4';
2
+ const gray6 = '#C1C5CF';
3
+ const gray7 = '#848C9F';
4
+ const gray9 = '#213053';
5
+ const blue6 = '#0c62ff';
6
+ const statusCellMinWidth = '62px';
7
+ const fieldLabelColor = '#909aaa';
8
+ const themeBgColorBase = gray4;
9
+ const randomClassName = (name) => {
25
10
  const mapString = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
26
11
  let result = '';
27
12
  const length = 8;
@@ -30,3 +15,5 @@ export const randomClassName = (name) => {
30
15
  }
31
16
  return `${name}_${result}`;
32
17
  };
18
+
19
+ export { blue6, fieldLabelColor, gray4, gray6, gray7, gray9, randomClassName, statusCellMinWidth, themeBgColorBase };
@@ -1,4 +1,4 @@
1
- export const emptyIconWrapper = `
1
+ const emptyIconWrapper = `
2
2
  display: flex;
3
3
  align-items: center;
4
4
  justify-content: center;
@@ -6,3 +6,5 @@ export const emptyIconWrapper = `
6
6
  height: 100%;
7
7
  margin: 0;
8
8
  `;
9
+
10
+ export { emptyIconWrapper };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@giteeteam/apps-team-components",
3
- "version": "1.3.0-alpha.1",
3
+ "version": "1.3.0-alpha.2",
4
4
  "description": "Gitee team components",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
7
7
  "scripts": {
8
8
  "prepare": "husky install && pnpm build",
9
- "build": "rm -rf dist && tsc && cp -r src/icons/svg dist/icons/svg && cp -r src/icons/empty-icon dist/icons && cp -r public dist/",
9
+ "build": "rimraf dist && rollup -c",
10
10
  "publish:alpha": "npm publish --tag alpha",
11
11
  "prepack": "pnpm build",
12
12
  "prepublish": "pnpm build",
@@ -36,6 +36,9 @@
36
36
  "license": "ISC",
37
37
  "devDependencies": {
38
38
  "@chromatic-com/storybook": "^1.6.1",
39
+ "@rollup/plugin-commonjs": "^26.0.1",
40
+ "@rollup/plugin-image": "^3.0.3",
41
+ "@rollup/plugin-typescript": "^11.1.6",
39
42
  "@storybook/addon-essentials": "^8.2.8",
40
43
  "@storybook/addon-interactions": "^8.2.8",
41
44
  "@storybook/addon-links": "^8.2.8",
@@ -68,6 +71,9 @@
68
71
  "msw-storybook-addon": "^2.0.3",
69
72
  "prettier": "^3.0.3",
70
73
  "react-base-table": "^1.13.5",
74
+ "rimraf": "^6.0.1",
75
+ "rollup": "^4.20.0",
76
+ "rollup-plugin-copy": "^3.5.0",
71
77
  "storybook": "^8.2.8",
72
78
  "typescript": "^5.2.2",
73
79
  "url-loader": "^4.1.1",
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- export { default as DataEmpty } from './data-empty.png';
2
- export { default as Forbidden } from './forbidden.png';
3
- export { default as LargeItem } from './large-item@2x.png';
4
- export { default as LargeWorkspace } from './large-workspace@2x.png';
5
- export { default as LoadError } from './load-error.png';
6
- export { default as ErrorIcon } from './not-found.png';
7
- export { default as SmallDefault } from './small-default@2x.png';
8
- export { default as WorkspaceEmpty } from './workspace-empty.svg';
@@ -1 +0,0 @@
1
- <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1720087015972" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="13078" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M521.856 137.984l2.24 2.24a38.4 38.4 0 0 1 0 54.272l-275.2 275.2h624.64a41.6 41.6 0 1 1 0 83.2H247.488l276.608 276.672a38.4 38.4 0 0 1 4.48 48.96l-4.48 5.312-2.24 2.304-5.312 4.416a38.4 38.4 0 0 1-43.712 0l-5.312-4.48-343.872-343.936a38.272 38.272 0 0 1-11.136-23.872v-12.48a38.272 38.272 0 0 1 11.136-23.872l343.872-343.936a38.4 38.4 0 0 1 54.336 0z" p-id="13079"></path></svg>
@@ -1 +0,0 @@
1
- <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1720427435830" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="13078" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M380.352 842.176l-305.664-305.28a38.4 38.4 0 0 1-0.064-54.272l2.048-2.048a38.464 38.464 0 0 1 54.272 0l275.328 274.88 482.816-575.36a38.4 38.4 0 0 1 54.144-4.736l2.432 2.112a38.4 38.4 0 0 1 4.736 54.08l-510.08 607.936a38.336 38.336 0 0 1-29.376 13.696h-6.72a38.336 38.336 0 0 1-23.872-11.008z" p-id="13079"></path></svg>
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <svg t="1702526505381" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
3
- p-id="14633" xmlns:xlink="http://www.w3.org/1999/xlink">
4
- <path
5
- d="M681.919574 995.136018l-33.919979-96.63994a408.447745 408.447745 0 0 1-130.239919 23.039986l-6.911995 0.064h-4.159998l-1.279999 102.399936H511.99968c59.519963 0 116.735927-10.175994 169.919894-28.863982zM243.839848 821.632126l-67.071958 77.375952a511.74368 511.74368 0 0 0 153.151904 91.647943l36.479977-95.67994a409.343744 409.343744 0 0 1-122.559923-73.343955z m709.503556-49.919968l-88.191945-52.031968a412.159742 412.159742 0 0 1-92.927942 108.671932l65.15196 78.975951a514.559678 514.559678 0 0 0 115.967927-135.679915zM107.391933 576.00028l-101.183937 15.87199c9.471994 60.415962 29.439982 117.311927 58.111964 168.767895l89.471944-49.855969a406.079746 406.079746 0 0 1-46.399971-134.783916zM1023.99936 512.00032c0-29.439982-2.495998-58.239964-7.231995-86.207946l-100.927937 17.087989a412.991742 412.991742 0 0 1-0.896 143.359911l100.735937 18.303988c5.439997-30.015981 8.319995-60.927962 8.319995-92.543942zM74.175954 246.400486a508.799682 508.799682 0 0 0-64.63996 166.399896l100.543937 19.775988a406.399746 406.399746 0 0 1 51.583968-132.927917L74.239954 246.400486z m882.303448 11.327993a514.431678 514.431678 0 0 0-114.303928-137.087914l-66.111959 78.271951a412.031742 412.031742 0 0 1 91.583943 109.759931l88.831944-50.943968z m-607.99962-231.039856A510.975681 510.975681 0 0 0 191.99988 112.38457l63.99996 79.87195a408.575745 408.575745 0 0 1 125.247922-68.543957L348.543782 26.688623zM511.99968 0.00064v102.399936c48.63997 0 95.99994 8.447995 140.607912 24.767985l35.199978-96.19194A511.039681 511.039681 0 0 0 511.99968 0.00064z"
6
- p-id="14634"></path>
7
- </svg>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 25.3.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 10 10" style="enable-background:new 0 0 10 10;" xml:space="preserve">
5
- <path d="M5,0C2.2,0,0,2.2,0,5s2.2,5,5,5s5-2.2,5-5S7.8,0,5,0z M5,8C3.3,8,2,6.7,2,5s1.3-3,3-3s3,1.3,3,3S6.7,8,5,8z"/>
6
- </svg>
@@ -1 +0,0 @@
1
- <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1720090255506" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="13220" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M457.6 112a345.6 345.6 0 0 1 270.08 561.28l173.056 173.184a38.4 38.4 0 0 1-48.96 58.752l-5.312-4.48-173.184-173.056a345.6 345.6 0 1 1-215.68-615.68z m0 76.8a268.8 268.8 0 1 0 186.944 461.952 18.112 18.112 0 0 1 2.816-3.392l3.392-2.816A268.8 268.8 0 0 0 457.6 188.8z" p-id="13221"></path></svg>
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 25.3.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 128 128" style="enable-background:new 0 0 128 128;" xml:space="preserve">
5
- <path d="M111.4,88.1c-7.5,0-14.46,4.82-16.61,11.79H38.03c-8.57,0-15.53-6.97-15.53-15.53
6
- c0-8.57,6.97-14.99,15.53-14.99h52.49c14.46,0,26.25-11.79,26.25-26.25s-11.79-26.25-26.25-26.25H33.75
7
- C31.61,9.91,25.18,5.09,17.14,5.09C8.04,5.09,0,13.12,0,22.23s8.04,17.14,17.14,17.14c7.5,0,14.46-4.82,16.61-11.79h56.23
8
- c8.57,0,15.53,6.97,15.53,15.53s-6.42,15.53-14.99,15.53h-52.5c-14.46,0-26.25,11.79-26.25,26.25s11.79,26.25,26.25,26.25h56.23
9
- c2.14,6.97,8.57,11.79,16.61,11.79c9.64,0,17.14-8.04,17.14-17.14S120.51,88.1,111.4,88.1z M17.15,29.18
10
- c-3.22,0-6.42-3.22-6.42-6.97s3.22-6.42,6.42-6.42s6.42,3.22,6.42,6.42S20.9,29.18,17.15,29.18z M111.4,112.21
11
- c-3.75,0-6.42-3.22-6.42-6.42c0-3.21,3.22-6.42,6.42-6.42c3.21,0,6.42,3.22,6.42,6.42C117.83,108.99,114.62,112.21,111.4,112.21z"/>
12
- </svg>
@@ -1,2 +0,0 @@
1
- export { ErrorLog, default as log } from './log';
2
- export * from './utils';