@nocobase/plugin-notification-manager 2.1.0-beta.9 → 2.2.0-alpha.1
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/client-v2.d.ts +2 -0
- package/client-v2.js +1 -0
- package/dist/client/507.6b177256a5fdfe2f.js +10 -0
- package/dist/client/89.4f9da72110fbe97a.js +10 -0
- package/dist/client/index.js +1 -1
- package/dist/client-v2/49.83c515a7f909c364.js +10 -0
- package/dist/client-v2/852.543c355801fd322f.js +10 -0
- package/dist/client-v2/components/ContentConfigForm.d.ts +14 -0
- package/dist/client-v2/components/MessageConfigForm.d.ts +12 -0
- package/dist/client-v2/components/User/UserAddition.d.ts +16 -0
- package/dist/client-v2/components/User/UserSelect.d.ts +16 -0
- package/dist/client-v2/components/User/index.d.ts +12 -0
- package/dist/client-v2/index.d.ts +15 -0
- package/dist/client-v2/index.js +10 -0
- package/dist/client-v2/locale.d.ts +12 -0
- package/dist/client-v2/notification-manager.d.ts +36 -0
- package/dist/client-v2/pages/ChannelsPage.d.ts +10 -0
- package/dist/client-v2/pages/LogsPage.d.ts +10 -0
- package/dist/client-v2/plugin.d.ts +19 -0
- package/dist/client-v2/utils/notificationTypeOptions.d.ts +34 -0
- package/dist/collections/channel.d.ts +1 -0
- package/dist/collections/channel.js +1 -0
- package/dist/collections/messageLog.d.ts +1 -0
- package/dist/collections/messageLog.js +1 -0
- package/dist/externalVersion.js +14 -9
- package/dist/locale/de-DE.json +1 -0
- package/dist/locale/en-US.json +1 -0
- package/dist/locale/es-ES.json +1 -0
- package/dist/locale/fr-FR.json +1 -0
- package/dist/locale/hu-HU.json +1 -0
- package/dist/locale/id-ID.json +1 -0
- package/dist/locale/it-IT.json +1 -0
- package/dist/locale/ja-JP.json +1 -0
- package/dist/locale/ko-KR.json +1 -0
- package/dist/locale/nl-NL.json +1 -0
- package/dist/locale/pt-BR.json +1 -0
- package/dist/locale/ru-RU.json +1 -0
- package/dist/locale/tr-TR.json +1 -0
- package/dist/locale/uk-UA.json +1 -0
- package/dist/locale/vi-VN.json +1 -0
- package/dist/locale/zh-CN.json +1 -0
- package/dist/locale/zh-TW.json +1 -0
- package/dist/node_modules/uuid/dist/bin/uuid +2 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/index.js +104 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/max.js +7 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/md5.js +200 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/native.js +10 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/nil.js +7 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/parse.js +44 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/regex.js +7 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/rng.js +23 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/sha1.js +82 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/stringify.js +38 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/v1.js +131 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/v1ToV6.js +26 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/v3.js +11 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/v35.js +63 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/v4.js +32 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/v5.js +11 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/v6.js +42 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/v6ToV1.js +26 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/v7.js +152 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/validate.js +12 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/version.js +15 -0
- package/dist/node_modules/uuid/dist/esm-browser/index.js +14 -0
- package/dist/node_modules/uuid/dist/esm-browser/max.js +1 -0
- package/dist/node_modules/uuid/dist/esm-browser/md5.js +194 -0
- package/dist/node_modules/uuid/dist/esm-browser/native.js +4 -0
- package/dist/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/dist/node_modules/uuid/dist/esm-browser/parse.js +37 -0
- package/dist/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +17 -0
- package/dist/node_modules/uuid/dist/esm-browser/sha1.js +76 -0
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +31 -0
- package/dist/node_modules/uuid/dist/esm-browser/v1.js +125 -0
- package/dist/node_modules/uuid/dist/esm-browser/v1ToV6.js +20 -0
- package/dist/node_modules/uuid/dist/esm-browser/v3.js +4 -0
- package/dist/node_modules/uuid/dist/esm-browser/v35.js +55 -0
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +25 -0
- package/dist/node_modules/uuid/dist/esm-browser/v5.js +4 -0
- package/dist/node_modules/uuid/dist/esm-browser/v6.js +36 -0
- package/dist/node_modules/uuid/dist/esm-browser/v6ToV1.js +20 -0
- package/dist/node_modules/uuid/dist/esm-browser/v7.js +146 -0
- package/dist/node_modules/uuid/dist/esm-browser/validate.js +5 -0
- package/dist/node_modules/uuid/dist/esm-browser/version.js +8 -0
- package/dist/node_modules/uuid/dist/esm-node/index.js +14 -0
- package/dist/node_modules/uuid/dist/esm-node/max.js +1 -0
- package/dist/node_modules/uuid/dist/esm-node/md5.js +10 -0
- package/dist/node_modules/uuid/dist/esm-node/native.js +4 -0
- package/dist/node_modules/uuid/dist/esm-node/nil.js +1 -0
- package/dist/node_modules/uuid/dist/esm-node/parse.js +37 -0
- package/dist/node_modules/uuid/dist/esm-node/regex.js +1 -0
- package/dist/node_modules/uuid/dist/esm-node/rng.js +10 -0
- package/dist/node_modules/uuid/dist/esm-node/sha1.js +10 -0
- package/dist/node_modules/uuid/dist/esm-node/stringify.js +31 -0
- package/dist/node_modules/uuid/dist/esm-node/v1.js +125 -0
- package/dist/node_modules/uuid/dist/esm-node/v1ToV6.js +20 -0
- package/dist/node_modules/uuid/dist/esm-node/v3.js +4 -0
- package/dist/node_modules/uuid/dist/esm-node/v35.js +55 -0
- package/dist/node_modules/uuid/dist/esm-node/v4.js +25 -0
- package/dist/node_modules/uuid/dist/esm-node/v5.js +4 -0
- package/dist/node_modules/uuid/dist/esm-node/v6.js +32 -0
- package/dist/node_modules/uuid/dist/esm-node/v6ToV1.js +20 -0
- package/dist/node_modules/uuid/dist/esm-node/v7.js +146 -0
- package/dist/node_modules/uuid/dist/esm-node/validate.js +5 -0
- package/dist/node_modules/uuid/dist/esm-node/version.js +8 -0
- package/dist/node_modules/uuid/dist/index.js +1 -0
- package/dist/node_modules/uuid/dist/max.js +7 -0
- package/dist/node_modules/uuid/dist/md5-browser.js +200 -0
- package/dist/node_modules/uuid/dist/md5.js +17 -0
- package/dist/node_modules/uuid/dist/native-browser.js +10 -0
- package/dist/node_modules/uuid/dist/native.js +11 -0
- package/dist/node_modules/uuid/dist/nil.js +7 -0
- package/dist/node_modules/uuid/dist/parse.js +44 -0
- package/dist/node_modules/uuid/dist/regex.js +7 -0
- package/dist/node_modules/uuid/dist/rng-browser.js +23 -0
- package/dist/node_modules/uuid/dist/rng.js +17 -0
- package/dist/node_modules/uuid/dist/sha1-browser.js +82 -0
- package/dist/node_modules/uuid/dist/sha1.js +17 -0
- package/dist/node_modules/uuid/dist/stringify.js +38 -0
- package/dist/node_modules/uuid/dist/uuid-bin.js +75 -0
- package/dist/node_modules/uuid/dist/v1.js +131 -0
- package/dist/node_modules/uuid/dist/v1ToV6.js +26 -0
- package/dist/node_modules/uuid/dist/v3.js +11 -0
- package/dist/node_modules/uuid/dist/v35.js +63 -0
- package/dist/node_modules/uuid/dist/v4.js +32 -0
- package/dist/node_modules/uuid/dist/v5.js +11 -0
- package/dist/node_modules/uuid/dist/v6.js +38 -0
- package/dist/node_modules/uuid/dist/v6ToV1.js +26 -0
- package/dist/node_modules/uuid/dist/v7.js +152 -0
- package/dist/node_modules/uuid/dist/validate.js +12 -0
- package/dist/node_modules/uuid/dist/version.js +15 -0
- package/dist/node_modules/uuid/package.json +1 -0
- package/dist/server/base-notification-channel.d.ts +3 -1
- package/dist/server/manager.d.ts +52 -5
- package/dist/server/manager.js +168 -17
- package/dist/server/plugin.d.ts +49 -2
- package/dist/server/plugin.js +65 -2
- package/dist/server/types.d.ts +7 -3
- package/package.json +3 -2
- package/dist/client/035b24990a46d186.js +0 -10
- package/dist/client/b1941306dc0db9f3.js +0 -10
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import type PluginNotificationManagerClientV2 from '../plugin';
|
|
10
|
+
export type NotificationTypeOption = {
|
|
11
|
+
label: string;
|
|
12
|
+
value: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Build the `[{ label, value }]` array of registered channel types.
|
|
16
|
+
*
|
|
17
|
+
* The shared collections declare `notificationType.uiSchema.enum =
|
|
18
|
+
* '{{notificationTypeOptions}}'` — a v1 Formily template. v2's
|
|
19
|
+
* `FilterValueInput` (Select branch) reads the field's `uiSchema.enum`
|
|
20
|
+
* verbatim, so we must replace that template with the actual options
|
|
21
|
+
* BEFORE the collection is registered via `ExtendCollectionsProvider`.
|
|
22
|
+
*
|
|
23
|
+
* Mirrors v1's `useNotificationTypes()` in
|
|
24
|
+
* `src/client/manager/channel/hooks.tsx` minus the v1-only schema fields.
|
|
25
|
+
*/
|
|
26
|
+
export declare function getNotificationTypeOptions(plugin: PluginNotificationManagerClientV2 | undefined, compileT: (key: string) => string): NotificationTypeOption[];
|
|
27
|
+
/**
|
|
28
|
+
* Return a deep-enough copy of a collection definition with the
|
|
29
|
+
* `notificationType` field's `uiSchema.enum` replaced by the live
|
|
30
|
+
* options. No-op when the collection has no `notificationType` field.
|
|
31
|
+
*/
|
|
32
|
+
export declare function withResolvedNotificationTypeEnum<T extends {
|
|
33
|
+
fields: any[];
|
|
34
|
+
}>(collection: T, options: NotificationTypeOption[]): T;
|
|
@@ -32,6 +32,7 @@ module.exports = __toCommonJS(channel_exports);
|
|
|
32
32
|
var import_constant = require("../constant");
|
|
33
33
|
var channel_default = {
|
|
34
34
|
name: import_constant.COLLECTION_NAME.channels,
|
|
35
|
+
dataCategory: "system",
|
|
35
36
|
migrationRules: ["overwrite", "schema-only"],
|
|
36
37
|
filterTargetKey: "name",
|
|
37
38
|
autoGenId: false,
|
|
@@ -32,6 +32,7 @@ module.exports = __toCommonJS(messageLog_exports);
|
|
|
32
32
|
var import_constant = require("../constant");
|
|
33
33
|
var messageLog_default = {
|
|
34
34
|
name: import_constant.COLLECTION_NAME.logs,
|
|
35
|
+
dataCategory: "business",
|
|
35
36
|
migrationRules: ["schema-only"],
|
|
36
37
|
title: "MessageLogs",
|
|
37
38
|
fields: [
|
package/dist/externalVersion.js
CHANGED
|
@@ -10,17 +10,22 @@
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"react": "18.2.0",
|
|
12
12
|
"antd": "5.24.2",
|
|
13
|
-
"@nocobase/client": "2.
|
|
14
|
-
"@nocobase/utils": "2.
|
|
15
|
-
"@nocobase/
|
|
16
|
-
"
|
|
13
|
+
"@nocobase/client": "2.2.0-alpha.1",
|
|
14
|
+
"@nocobase/utils": "2.2.0-alpha.1",
|
|
15
|
+
"@nocobase/flow-engine": "2.2.0-alpha.1",
|
|
16
|
+
"react-i18next": "11.18.6",
|
|
17
|
+
"@nocobase/client-v2": "2.2.0-alpha.1",
|
|
18
|
+
"@nocobase/database": "2.2.0-alpha.1",
|
|
19
|
+
"@nocobase/server": "2.2.0-alpha.1",
|
|
20
|
+
"@nocobase/cache": "2.2.0-alpha.1",
|
|
21
|
+
"@nocobase/logger": "2.2.0-alpha.1",
|
|
17
22
|
"@formily/react": "2.3.7",
|
|
18
23
|
"@formily/core": "2.3.7",
|
|
19
|
-
"
|
|
20
|
-
"@nocobase/database": "2.1.0-beta.9",
|
|
21
|
-
"@formily/shared": "2.3.7",
|
|
24
|
+
"ahooks": "3.7.8",
|
|
22
25
|
"@ant-design/icons": "5.6.1",
|
|
23
|
-
"
|
|
26
|
+
"lodash": "4.18.1",
|
|
27
|
+
"dayjs": "1.11.13",
|
|
28
|
+
"@formily/shared": "2.3.7",
|
|
24
29
|
"@formily/antd-v5": "1.2.3",
|
|
25
|
-
"@nocobase/plugin-workflow": "2.
|
|
30
|
+
"@nocobase/plugin-workflow": "2.2.0-alpha.1"
|
|
26
31
|
};
|
package/dist/locale/de-DE.json
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"Notification Management": "Benachrichtigungsverwaltung",
|
|
30
30
|
"Notification manager": "Benachrichtigungsmanager",
|
|
31
31
|
"Notification type": "Benachrichtigungstyp",
|
|
32
|
+
"Notification type {{type}} is not registered.": "Benachrichtigungstyp {{type}} ist nicht registriert.",
|
|
32
33
|
"Query users": "Benutzer abfragen",
|
|
33
34
|
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.": "Zufällig generiert und kann nicht geändert werden. Unterstützt Buchstaben, Zahlen und Unterstriche, muss mit einem Buchstaben beginnen.",
|
|
34
35
|
"Reason": "Grund",
|
package/dist/locale/en-US.json
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"Notification Management": "Notification Management",
|
|
30
30
|
"Notification manager": "Notification manager",
|
|
31
31
|
"Notification type": "Notification type",
|
|
32
|
+
"Notification type {{type}} is not registered.": "Notification type {{type}} is not registered.",
|
|
32
33
|
"Query users": "Query users",
|
|
33
34
|
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.": "Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.",
|
|
34
35
|
"Reason": "Reason",
|
package/dist/locale/es-ES.json
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"Notification Management": "Notification Management",
|
|
30
30
|
"Notification manager": "Notification manager",
|
|
31
31
|
"Notification type": "Notification type",
|
|
32
|
+
"Notification type {{type}} is not registered.": "El tipo de notificación {{type}} no está registrado.",
|
|
32
33
|
"Query users": "Query users",
|
|
33
34
|
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.": "Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.",
|
|
34
35
|
"Reason": "Reason",
|
package/dist/locale/fr-FR.json
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"Notification Management": "Notification Management",
|
|
30
30
|
"Notification manager": "Notification manager",
|
|
31
31
|
"Notification type": "Notification type",
|
|
32
|
+
"Notification type {{type}} is not registered.": "Le type de notification {{type}} n'est pas enregistré.",
|
|
32
33
|
"Query users": "Query users",
|
|
33
34
|
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.": "Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.",
|
|
34
35
|
"Reason": "Reason",
|
package/dist/locale/hu-HU.json
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"Notification Management": "Értesítés kezelés",
|
|
30
30
|
"Notification manager": "Értesítés kezelő",
|
|
31
31
|
"Notification type": "Értesítés típusa",
|
|
32
|
+
"Notification type {{type}} is not registered.": "A(z) {{type}} értesítési típus nincs regisztrálva.",
|
|
32
33
|
"Query users": "Felhasználók lekérdezése",
|
|
33
34
|
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.": "Véletlenszerűen generált és nem módosítható. Betűk, számok és aláhúzások támogatottak, betűvel kell kezdődnie.",
|
|
34
35
|
"Reason": "Ok",
|
package/dist/locale/id-ID.json
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"Notification Management": "Manajemen Notifikasi",
|
|
30
30
|
"Notification manager": "Manajer notifikasi",
|
|
31
31
|
"Notification type": "Tipe notifikasi",
|
|
32
|
+
"Notification type {{type}} is not registered.": "Tipe notifikasi {{type}} belum terdaftar.",
|
|
32
33
|
"Query users": "Kueri pengguna",
|
|
33
34
|
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.": "Dihasilkan secara acak dan tidak dapat diubah. Mendukung huruf, angka, dan garis bawah, harus diawali dengan huruf.",
|
|
34
35
|
"Reason": "Alasan",
|
package/dist/locale/it-IT.json
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"Notification Management": "Gestione Notifiche",
|
|
30
30
|
"Notification manager": "Gestore notifiche",
|
|
31
31
|
"Notification type": "Tipo di notifica",
|
|
32
|
+
"Notification type {{type}} is not registered.": "Il tipo di notifica {{type}} non è registrato.",
|
|
32
33
|
"Query users": "Cerca utenti",
|
|
33
34
|
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.": "Generato casualmente e non modificabile. Supporta lettere, numeri e underscore, deve iniziare con una lettera.",
|
|
34
35
|
"Reason": "Motivo",
|
package/dist/locale/ja-JP.json
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"Notification Management": "通知管理",
|
|
30
30
|
"Notification manager": "通知管理",
|
|
31
31
|
"Notification type": "通知タイプ",
|
|
32
|
+
"Notification type {{type}} is not registered.": "通知タイプ {{type}} は登録されていません。",
|
|
32
33
|
"Query users": "ユーザーを検索",
|
|
33
34
|
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.": "ランダム生成され変更不可。英字、数字、アンダースコアをサポートし、英字で始まる必要があります。",
|
|
34
35
|
"Reason": "理由",
|
package/dist/locale/ko-KR.json
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"Notification Management": "알림 관리",
|
|
30
30
|
"Notification manager": "알림 관리자",
|
|
31
31
|
"Notification type": "알림 유형",
|
|
32
|
+
"Notification type {{type}} is not registered.": "알림 유형 {{type}}이(가) 등록되지 않았습니다.",
|
|
32
33
|
"Query users": "사용자 조회",
|
|
33
34
|
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.": "무작위로 생성되며 수정할 수 없습니다. 영문자, 숫자, 밑줄을 지원하며, 반드시 영문자로 시작해야 합니다.",
|
|
34
35
|
"Reason": "사유",
|
package/dist/locale/nl-NL.json
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"Notification Management": "Notificatiebeheerder",
|
|
30
30
|
"Notification manager": "Notificatiebeheerder",
|
|
31
31
|
"Notification type": "Notificatietype",
|
|
32
|
+
"Notification type {{type}} is not registered.": "Notificatietype {{type}} is niet geregistreerd.",
|
|
32
33
|
"Query users": "Gebruikers zoeken",
|
|
33
34
|
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.": "Willekeurig gegenereerd en kan niet worden gewijzigd. Ondersteunende letters, cijfers en underscores, moeten beginnen met een letter.",
|
|
34
35
|
"Reason": "Reden",
|
package/dist/locale/pt-BR.json
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"Notification Management": "Notification Management",
|
|
30
30
|
"Notification manager": "Notification manager",
|
|
31
31
|
"Notification type": "Notification type",
|
|
32
|
+
"Notification type {{type}} is not registered.": "O tipo de notificação {{type}} não está registrado.",
|
|
32
33
|
"Query users": "Query users",
|
|
33
34
|
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.": "Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.",
|
|
34
35
|
"Reason": "Reason",
|
package/dist/locale/ru-RU.json
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"Notification Management": "Управление уведомлениями",
|
|
30
30
|
"Notification manager": "Менеджер уведомлений",
|
|
31
31
|
"Notification type": "Тип уведомления",
|
|
32
|
+
"Notification type {{type}} is not registered.": "Тип уведомления {{type}} не зарегистрирован.",
|
|
32
33
|
"Query users": "Запрос пользователей",
|
|
33
34
|
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.": "Генерируется случайным образом и не может быть изменено. Поддерживаются буквы, цифры и подчеркивания, должно начинаться с буквы.",
|
|
34
35
|
"Reason": "Причина",
|
package/dist/locale/tr-TR.json
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"Notification Management": "Notification Management",
|
|
30
30
|
"Notification manager": "Notification manager",
|
|
31
31
|
"Notification type": "Notification type",
|
|
32
|
+
"Notification type {{type}} is not registered.": "Bildirim türü {{type}} kayıtlı değil.",
|
|
32
33
|
"Query users": "Query users",
|
|
33
34
|
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.": "Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.",
|
|
34
35
|
"Reason": "Reason",
|
package/dist/locale/uk-UA.json
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"Notification Management": "Notification Management",
|
|
30
30
|
"Notification manager": "Notification manager",
|
|
31
31
|
"Notification type": "Notification type",
|
|
32
|
+
"Notification type {{type}} is not registered.": "Тип сповіщення {{type}} не зареєстровано.",
|
|
32
33
|
"Query users": "Query users",
|
|
33
34
|
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.": "Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.",
|
|
34
35
|
"Reason": "Reason",
|
package/dist/locale/vi-VN.json
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"Notification Management": "Notification Management",
|
|
30
30
|
"Notification manager": "Notification manager",
|
|
31
31
|
"Notification type": "Notification type",
|
|
32
|
+
"Notification type {{type}} is not registered.": "Loại thông báo {{type}} chưa được đăng ký.",
|
|
32
33
|
"Query users": "Query users",
|
|
33
34
|
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.": "Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.",
|
|
34
35
|
"Reason": "Reason",
|
package/dist/locale/zh-CN.json
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"Notification Management": "通知管理",
|
|
30
30
|
"Notification manager": "通知管理",
|
|
31
31
|
"Notification type": "通知类型",
|
|
32
|
+
"Notification type {{type}} is not registered.": "通知类型 {{type}} 尚未注册。",
|
|
32
33
|
"Query users": "查询用户",
|
|
33
34
|
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.": "随机生成,不可修改。支持英文、数字和下划线,必须以英文字母开头。",
|
|
34
35
|
"Reason": "原因",
|
package/dist/locale/zh-TW.json
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"Notification Management": "Notification Management",
|
|
30
30
|
"Notification manager": "Notification manager",
|
|
31
31
|
"Notification type": "Notification type",
|
|
32
|
+
"Notification type {{type}} is not registered.": "通知類型 {{type}} 尚未註冊。",
|
|
32
33
|
"Query users": "Query users",
|
|
33
34
|
"Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.": "Randomly generated and can not be modified. Support letters, numbers and underscores, must start with an letter.",
|
|
34
35
|
"Reason": "Reason",
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "MAX", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _max.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "NIL", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _nil.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "parse", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _parse.default;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "stringify", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _stringify.default;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "v1", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _v.default;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "v1ToV6", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function get() {
|
|
39
|
+
return _v1ToV.default;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "v3", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function get() {
|
|
45
|
+
return _v2.default;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "v4", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function get() {
|
|
51
|
+
return _v3.default;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "v5", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function get() {
|
|
57
|
+
return _v4.default;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "v6", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function get() {
|
|
63
|
+
return _v5.default;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "v6ToV1", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function get() {
|
|
69
|
+
return _v6ToV.default;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "v7", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function get() {
|
|
75
|
+
return _v6.default;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "validate", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function get() {
|
|
81
|
+
return _validate.default;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "version", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function get() {
|
|
87
|
+
return _version.default;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
var _max = _interopRequireDefault(require("./max.js"));
|
|
91
|
+
var _nil = _interopRequireDefault(require("./nil.js"));
|
|
92
|
+
var _parse = _interopRequireDefault(require("./parse.js"));
|
|
93
|
+
var _stringify = _interopRequireDefault(require("./stringify.js"));
|
|
94
|
+
var _v = _interopRequireDefault(require("./v1.js"));
|
|
95
|
+
var _v1ToV = _interopRequireDefault(require("./v1ToV6.js"));
|
|
96
|
+
var _v2 = _interopRequireDefault(require("./v3.js"));
|
|
97
|
+
var _v3 = _interopRequireDefault(require("./v4.js"));
|
|
98
|
+
var _v4 = _interopRequireDefault(require("./v5.js"));
|
|
99
|
+
var _v5 = _interopRequireDefault(require("./v6.js"));
|
|
100
|
+
var _v6ToV = _interopRequireDefault(require("./v6ToV1.js"));
|
|
101
|
+
var _v6 = _interopRequireDefault(require("./v7.js"));
|
|
102
|
+
var _validate = _interopRequireDefault(require("./validate.js"));
|
|
103
|
+
var _version = _interopRequireDefault(require("./version.js"));
|
|
104
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/*
|
|
8
|
+
* Browser-compatible JavaScript MD5
|
|
9
|
+
*
|
|
10
|
+
* Modification of JavaScript MD5
|
|
11
|
+
* https://github.com/blueimp/JavaScript-MD5
|
|
12
|
+
*
|
|
13
|
+
* Copyright 2011, Sebastian Tschan
|
|
14
|
+
* https://blueimp.net
|
|
15
|
+
*
|
|
16
|
+
* Licensed under the MIT license:
|
|
17
|
+
* https://opensource.org/licenses/MIT
|
|
18
|
+
*
|
|
19
|
+
* Based on
|
|
20
|
+
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
|
|
21
|
+
* Digest Algorithm, as defined in RFC 1321.
|
|
22
|
+
* Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
|
|
23
|
+
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
|
|
24
|
+
* Distributed under the BSD License
|
|
25
|
+
* See http://pajhome.org.uk/crypt/md5 for more info.
|
|
26
|
+
*/
|
|
27
|
+
function md5(bytes) {
|
|
28
|
+
if (typeof bytes === 'string') {
|
|
29
|
+
var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
|
|
30
|
+
|
|
31
|
+
bytes = new Uint8Array(msg.length);
|
|
32
|
+
for (var i = 0; i < msg.length; ++i) {
|
|
33
|
+
bytes[i] = msg.charCodeAt(i);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/*
|
|
40
|
+
* Convert an array of little-endian words to an array of bytes
|
|
41
|
+
*/
|
|
42
|
+
function md5ToHexEncodedArray(input) {
|
|
43
|
+
var output = [];
|
|
44
|
+
var length32 = input.length * 32;
|
|
45
|
+
var hexTab = '0123456789abcdef';
|
|
46
|
+
for (var i = 0; i < length32; i += 8) {
|
|
47
|
+
var x = input[i >> 5] >>> i % 32 & 0xff;
|
|
48
|
+
var hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16);
|
|
49
|
+
output.push(hex);
|
|
50
|
+
}
|
|
51
|
+
return output;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Calculate output length with padding and bit length
|
|
56
|
+
*/
|
|
57
|
+
function getOutputLength(inputLength8) {
|
|
58
|
+
return (inputLength8 + 64 >>> 9 << 4) + 14 + 1;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/*
|
|
62
|
+
* Calculate the MD5 of an array of little-endian words, and a bit length.
|
|
63
|
+
*/
|
|
64
|
+
function wordsToMd5(x, len) {
|
|
65
|
+
/* append padding */
|
|
66
|
+
x[len >> 5] |= 0x80 << len % 32;
|
|
67
|
+
x[getOutputLength(len) - 1] = len;
|
|
68
|
+
var a = 1732584193;
|
|
69
|
+
var b = -271733879;
|
|
70
|
+
var c = -1732584194;
|
|
71
|
+
var d = 271733878;
|
|
72
|
+
for (var i = 0; i < x.length; i += 16) {
|
|
73
|
+
var olda = a;
|
|
74
|
+
var oldb = b;
|
|
75
|
+
var oldc = c;
|
|
76
|
+
var oldd = d;
|
|
77
|
+
a = md5ff(a, b, c, d, x[i], 7, -680876936);
|
|
78
|
+
d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
|
|
79
|
+
c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
|
|
80
|
+
b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
|
|
81
|
+
a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
|
|
82
|
+
d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
|
|
83
|
+
c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
|
|
84
|
+
b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
|
|
85
|
+
a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
|
|
86
|
+
d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
|
|
87
|
+
c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
|
|
88
|
+
b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
|
|
89
|
+
a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
|
|
90
|
+
d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
|
|
91
|
+
c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
|
|
92
|
+
b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
|
|
93
|
+
a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
|
|
94
|
+
d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
|
|
95
|
+
c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
|
|
96
|
+
b = md5gg(b, c, d, a, x[i], 20, -373897302);
|
|
97
|
+
a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
|
|
98
|
+
d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
|
|
99
|
+
c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
|
|
100
|
+
b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
|
|
101
|
+
a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
|
|
102
|
+
d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
|
|
103
|
+
c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
|
|
104
|
+
b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
|
|
105
|
+
a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
|
|
106
|
+
d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
|
|
107
|
+
c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
|
|
108
|
+
b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
|
|
109
|
+
a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
|
|
110
|
+
d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
|
|
111
|
+
c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
|
|
112
|
+
b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
|
|
113
|
+
a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
|
|
114
|
+
d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
|
|
115
|
+
c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
|
|
116
|
+
b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
|
|
117
|
+
a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
|
|
118
|
+
d = md5hh(d, a, b, c, x[i], 11, -358537222);
|
|
119
|
+
c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
|
|
120
|
+
b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
|
|
121
|
+
a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
|
|
122
|
+
d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
|
|
123
|
+
c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
|
|
124
|
+
b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
|
|
125
|
+
a = md5ii(a, b, c, d, x[i], 6, -198630844);
|
|
126
|
+
d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
|
|
127
|
+
c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
|
|
128
|
+
b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
|
|
129
|
+
a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
|
|
130
|
+
d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
|
|
131
|
+
c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
|
|
132
|
+
b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
|
|
133
|
+
a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
|
|
134
|
+
d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
|
|
135
|
+
c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
|
|
136
|
+
b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
|
|
137
|
+
a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
|
|
138
|
+
d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
|
|
139
|
+
c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
|
|
140
|
+
b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
|
|
141
|
+
a = safeAdd(a, olda);
|
|
142
|
+
b = safeAdd(b, oldb);
|
|
143
|
+
c = safeAdd(c, oldc);
|
|
144
|
+
d = safeAdd(d, oldd);
|
|
145
|
+
}
|
|
146
|
+
return [a, b, c, d];
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/*
|
|
150
|
+
* Convert an array bytes to an array of little-endian words
|
|
151
|
+
* Characters >255 have their high-byte silently ignored.
|
|
152
|
+
*/
|
|
153
|
+
function bytesToWords(input) {
|
|
154
|
+
if (input.length === 0) {
|
|
155
|
+
return [];
|
|
156
|
+
}
|
|
157
|
+
var length8 = input.length * 8;
|
|
158
|
+
var output = new Uint32Array(getOutputLength(length8));
|
|
159
|
+
for (var i = 0; i < length8; i += 8) {
|
|
160
|
+
output[i >> 5] |= (input[i / 8] & 0xff) << i % 32;
|
|
161
|
+
}
|
|
162
|
+
return output;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/*
|
|
166
|
+
* Add integers, wrapping at 2^32. This uses 16-bit operations internally
|
|
167
|
+
* to work around bugs in some JS interpreters.
|
|
168
|
+
*/
|
|
169
|
+
function safeAdd(x, y) {
|
|
170
|
+
var lsw = (x & 0xffff) + (y & 0xffff);
|
|
171
|
+
var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
|
|
172
|
+
return msw << 16 | lsw & 0xffff;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/*
|
|
176
|
+
* Bitwise rotate a 32-bit number to the left.
|
|
177
|
+
*/
|
|
178
|
+
function bitRotateLeft(num, cnt) {
|
|
179
|
+
return num << cnt | num >>> 32 - cnt;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/*
|
|
183
|
+
* These functions implement the four basic operations the algorithm uses.
|
|
184
|
+
*/
|
|
185
|
+
function md5cmn(q, a, b, x, s, t) {
|
|
186
|
+
return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
|
|
187
|
+
}
|
|
188
|
+
function md5ff(a, b, c, d, x, s, t) {
|
|
189
|
+
return md5cmn(b & c | ~b & d, a, b, x, s, t);
|
|
190
|
+
}
|
|
191
|
+
function md5gg(a, b, c, d, x, s, t) {
|
|
192
|
+
return md5cmn(b & d | c & ~d, a, b, x, s, t);
|
|
193
|
+
}
|
|
194
|
+
function md5hh(a, b, c, d, x, s, t) {
|
|
195
|
+
return md5cmn(b ^ c ^ d, a, b, x, s, t);
|
|
196
|
+
}
|
|
197
|
+
function md5ii(a, b, c, d, x, s, t) {
|
|
198
|
+
return md5cmn(c ^ (b | ~d), a, b, x, s, t);
|
|
199
|
+
}
|
|
200
|
+
var _default = exports.default = md5;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
8
|
+
var _default = exports.default = {
|
|
9
|
+
randomUUID
|
|
10
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _validate = _interopRequireDefault(require("./validate.js"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
function parse(uuid) {
|
|
10
|
+
if (!(0, _validate.default)(uuid)) {
|
|
11
|
+
throw TypeError('Invalid UUID');
|
|
12
|
+
}
|
|
13
|
+
var v;
|
|
14
|
+
var arr = new Uint8Array(16);
|
|
15
|
+
|
|
16
|
+
// Parse ########-....-....-....-............
|
|
17
|
+
arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
|
|
18
|
+
arr[1] = v >>> 16 & 0xff;
|
|
19
|
+
arr[2] = v >>> 8 & 0xff;
|
|
20
|
+
arr[3] = v & 0xff;
|
|
21
|
+
|
|
22
|
+
// Parse ........-####-....-....-............
|
|
23
|
+
arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
|
|
24
|
+
arr[5] = v & 0xff;
|
|
25
|
+
|
|
26
|
+
// Parse ........-....-####-....-............
|
|
27
|
+
arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
|
|
28
|
+
arr[7] = v & 0xff;
|
|
29
|
+
|
|
30
|
+
// Parse ........-....-....-####-............
|
|
31
|
+
arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
|
|
32
|
+
arr[9] = v & 0xff;
|
|
33
|
+
|
|
34
|
+
// Parse ........-....-....-....-############
|
|
35
|
+
// (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
|
|
36
|
+
arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
|
|
37
|
+
arr[11] = v / 0x100000000 & 0xff;
|
|
38
|
+
arr[12] = v >>> 24 & 0xff;
|
|
39
|
+
arr[13] = v >>> 16 & 0xff;
|
|
40
|
+
arr[14] = v >>> 8 & 0xff;
|
|
41
|
+
arr[15] = v & 0xff;
|
|
42
|
+
return arr;
|
|
43
|
+
}
|
|
44
|
+
var _default = exports.default = parse;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _default = exports.default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;
|