infinity-forge 0.23.4 → 0.23.6
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/system/container/files/container.d.ts +1 -1
- package/dist/system/container/files/container.js +2 -2
- package/dist/system/container/files/container.js.map +1 -1
- package/dist/system/container/files/types.d.ts +1 -1
- package/dist/system/container/files/types.js +1 -1
- package/dist/system/container/files/types.js.map +1 -1
- package/dist/system/container/types.d.ts +1 -1
- package/dist/system/data/use-cases/files/index.d.ts +1 -1
- package/dist/system/data/use-cases/files/index.js +1 -1
- package/dist/system/data/use-cases/files/index.js.map +1 -1
- package/dist/system/data/use-cases/files/{remote-upload-files.d.ts → remote-files.d.ts} +2 -1
- package/dist/system/data/use-cases/files/{remote-upload-files.js → remote-files.js} +26 -10
- package/dist/system/data/use-cases/files/remote-files.js.map +1 -0
- package/dist/system/domain/use-cases/files/index.d.ts +3 -2
- package/dist/system/domain/use-cases/files/index.js +2 -1
- package/dist/system/domain/use-cases/files/index.js.map +1 -1
- package/dist/system/domain/use-cases/files/load.d.ts +9 -0
- package/dist/system/domain/use-cases/files/{upload-file.js → load.js} +1 -1
- package/dist/system/domain/use-cases/files/load.js.map +1 -0
- package/dist/system/domain/use-cases/files/{upload-file.d.ts → upload.d.ts} +2 -2
- package/dist/system/domain/use-cases/files/upload.js +3 -0
- package/dist/system/domain/use-cases/files/upload.js.map +1 -0
- package/dist/ui/components/form/input-file/file-card/index.js +11 -4
- package/dist/ui/components/form/input-file/file-card/index.js.map +1 -1
- package/dist/ui/icons/index.d.ts +5 -3
- package/dist/ui/icons/index.js +5 -3
- package/dist/ui/icons/index.js.map +1 -1
- package/dist/ui/icons/render/excel.d.ts +1 -0
- package/dist/ui/icons/render/excel.js +9 -0
- package/dist/ui/icons/render/excel.js.map +1 -0
- package/dist/ui/icons/render/word.d.ts +1 -0
- package/dist/ui/icons/render/word.js +9 -0
- package/dist/ui/icons/render/word.js.map +1 -0
- package/dist/ui/utils/file/index.d.ts +2 -1
- package/dist/ui/utils/file/index.js +1 -0
- package/dist/ui/utils/file/index.js.map +1 -1
- package/dist/ui/utils/file/load-file.d.ts +2 -0
- package/dist/ui/utils/file/load-file.js +72 -0
- package/dist/ui/utils/file/load-file.js.map +1 -0
- package/dist/ui/utils/file/upload-file.js +1 -1
- package/dist/ui/utils/file/upload-file.js.map +1 -1
- package/package.json +2 -2
- package/dist/system/data/use-cases/files/remote-upload-files.js.map +0 -1
- package/dist/system/domain/use-cases/files/upload-file.js.map +0 -1
|
@@ -4,8 +4,8 @@ exports.fileContainer = void 0;
|
|
|
4
4
|
var inversify_1 = require("inversify");
|
|
5
5
|
var system_1 = require("../../../system/index.js");
|
|
6
6
|
var types_1 = require("./types.js");
|
|
7
|
-
var fileContainer = new inversify_1.Container({ defaultScope:
|
|
7
|
+
var fileContainer = new inversify_1.Container({ defaultScope: 'Singleton', autoBindInjectable: true });
|
|
8
8
|
exports.fileContainer = fileContainer;
|
|
9
9
|
fileContainer.parent = system_1.infraContainer;
|
|
10
|
-
fileContainer.bind(types_1.fileTypes.
|
|
10
|
+
fileContainer.bind(types_1.fileTypes.RemoteFile).to(system_1.RemoteFile);
|
|
11
11
|
//# sourceMappingURL=container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.js","sourceRoot":"","sources":["../../../../src/system/container/files/container.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"container.js","sourceRoot":"","sources":["../../../../src/system/container/files/container.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AACrC,mCAAqD;AAErD,iCAAmC;AAEnC,IAAM,aAAa,GAAG,IAAI,qBAAS,CAAC,EAAE,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC,CAAA;AAKnF,sCAAa;AAHtB,aAAa,CAAC,MAAM,GAAG,uBAAc,CAAA;AACrC,aAAa,CAAC,IAAI,CAAC,iBAAS,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,mBAAU,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/system/container/files/types.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACvB,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/system/container/files/types.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACvB,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC;CACrC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './remote-files.js';
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./remote-
|
|
17
|
+
__exportStar(require("./remote-files.js"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/system/data/use-cases/files/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/system/data/use-cases/files/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA8B"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as domain from '../../../../system/domain/index.js';
|
|
2
2
|
import { makeApiURL } from '../../../../system/container/infra/make-api-url.js';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class RemoteFile implements domain.UploadFile, domain.LoadFile {
|
|
4
4
|
private readonly makeApiURL;
|
|
5
5
|
private readonly httpClient;
|
|
6
6
|
constructor(makeApiURL: makeApiURL, httpClient: domain.HttpClient);
|
|
7
7
|
upload(params: domain.UploadFile.Params): Promise<domain.UploadFile.Model>;
|
|
8
|
+
load(params: domain.LoadFile.Params): Promise<any>;
|
|
8
9
|
}
|
|
@@ -71,17 +71,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
73
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
74
|
-
exports.
|
|
74
|
+
exports.RemoteFile = void 0;
|
|
75
75
|
var inversify_1 = require("inversify");
|
|
76
76
|
var domain = __importStar(require("../../../../system/domain/index.js"));
|
|
77
77
|
var types_1 = require("../../../../system/container/infra/types.js");
|
|
78
78
|
var make_api_url_1 = require("../../../../system/container/infra/make-api-url.js");
|
|
79
|
-
var
|
|
80
|
-
function
|
|
79
|
+
var RemoteFile = /** @class */ (function () {
|
|
80
|
+
function RemoteFile(makeApiURL, httpClient) {
|
|
81
81
|
this.makeApiURL = makeApiURL;
|
|
82
82
|
this.httpClient = httpClient;
|
|
83
83
|
}
|
|
84
|
-
|
|
84
|
+
RemoteFile.prototype.upload = function (params) {
|
|
85
85
|
return __awaiter(this, void 0, void 0, function () {
|
|
86
86
|
var response;
|
|
87
87
|
return __generator(this, function (_a) {
|
|
@@ -91,7 +91,7 @@ var RemoteUploadFile = /** @class */ (function () {
|
|
|
91
91
|
method: 'post',
|
|
92
92
|
body: params,
|
|
93
93
|
headers: {
|
|
94
|
-
|
|
94
|
+
'Content-Type': 'multipart/form-data; boundary=something',
|
|
95
95
|
},
|
|
96
96
|
})];
|
|
97
97
|
case 1:
|
|
@@ -101,13 +101,29 @@ var RemoteUploadFile = /** @class */ (function () {
|
|
|
101
101
|
});
|
|
102
102
|
});
|
|
103
103
|
};
|
|
104
|
-
|
|
104
|
+
RemoteFile.prototype.load = function (params) {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
106
|
+
var response;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
109
|
+
case 0: return [4 /*yield*/, this.httpClient.request({
|
|
110
|
+
url: this.makeApiURL.make("UploadFile/".concat(params.id)),
|
|
111
|
+
method: 'post',
|
|
112
|
+
})];
|
|
113
|
+
case 1:
|
|
114
|
+
response = _a.sent();
|
|
115
|
+
return [2 /*return*/, response.data];
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
};
|
|
120
|
+
RemoteFile = __decorate([
|
|
105
121
|
(0, inversify_1.injectable)(),
|
|
106
122
|
__param(0, (0, inversify_1.inject)(types_1.InfraTypes.makeApiURL)),
|
|
107
123
|
__param(1, (0, inversify_1.inject)(types_1.InfraTypes.authorizeAdminHttp)),
|
|
108
124
|
__metadata("design:paramtypes", [make_api_url_1.makeApiURL, Object])
|
|
109
|
-
],
|
|
110
|
-
return
|
|
125
|
+
], RemoteFile);
|
|
126
|
+
return RemoteFile;
|
|
111
127
|
}());
|
|
112
|
-
exports.
|
|
113
|
-
//# sourceMappingURL=remote-
|
|
128
|
+
exports.RemoteFile = RemoteFile;
|
|
129
|
+
//# sourceMappingURL=remote-files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remote-files.js","sourceRoot":"","sources":["../../../../../src/system/data/use-cases/files/remote-files.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA8C;AAE9C,sDAAyC;AACzC,wDAA2D;AAC3D,sEAAkE;AAGlE;IACE,oBACkD,UAAsB,EACd,UAA6B;QADrC,eAAU,GAAV,UAAU,CAAY;QACd,eAAU,GAAV,UAAU,CAAmB;IACpF,CAAC;IAEE,2BAAM,GAAZ,UAAa,MAAgC;;;;;4BAC1B,qBAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;4BAC7C,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC;4BACvC,MAAM,EAAE,MAAM;4BACd,IAAI,EAAE,MAAM;4BACZ,OAAO,EAAE;gCACP,cAAc,EAAE,yCAAyC;6BAC1D;yBACF,CAAC,EAAA;;wBAPI,QAAQ,GAAG,SAOf;wBAEF,sBAAO,QAAQ,CAAC,IAA+B,EAAA;;;;KAChD;IAEK,yBAAI,GAAV,UAAW,MAA8B;;;;;4BACtB,qBAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;4BAC7C,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,qBAAc,MAAM,CAAC,EAAE,CAAE,CAAC;4BACpD,MAAM,EAAE,MAAM;yBACf,CAAC,EAAA;;wBAHI,QAAQ,GAAG,SAGf;wBAEF,sBAAO,QAAQ,CAAC,IAA6B,EAAA;;;;KAC9C;IA1BU,UAAU;QADtB,IAAA,sBAAU,GAAE;QAGR,WAAA,IAAA,kBAAM,EAAC,kBAAU,CAAC,UAAU,CAAC,CAAA;QAC7B,WAAA,IAAA,kBAAM,EAAC,kBAAU,CAAC,kBAAkB,CAAC,CAAA;yCADsB,yBAAU;OAF7D,UAAU,CA2BtB;IAAD,iBAAC;CAAA,AA5BD,IA4BC;AA3BY,gCAAU"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './load.js';
|
|
2
|
+
export * from './upload.js';
|
|
3
|
+
export * from './file-system.js';
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./load.js"), exports);
|
|
18
|
+
__exportStar(require("./upload.js"), exports);
|
|
18
19
|
__exportStar(require("./file-system.js"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/system/domain/use-cases/files/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/system/domain/use-cases/files/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,2CAAwB;AACxB,gDAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load.js","sourceRoot":"","sources":["../../../../../src/system/domain/use-cases/files/load.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { List } from
|
|
2
|
-
import { FileSystemType } from
|
|
1
|
+
import { List } from '../../generics/index.js';
|
|
2
|
+
import { FileSystemType } from './file-system.js';
|
|
3
3
|
export type UploadFile = {
|
|
4
4
|
upload: (params: UploadFile.Params) => Promise<UploadFile.Model>;
|
|
5
5
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload.js","sourceRoot":"","sources":["../../../../../src/system/domain/use-cases/files/upload.ts"],"names":[],"mappings":""}
|
|
@@ -28,6 +28,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
28
28
|
var semantic_ui_react_1 = require("semantic-ui-react");
|
|
29
29
|
var icons_1 = require("../../../../../ui/icons/index.js");
|
|
30
30
|
var S = __importStar(require("./styles.js"));
|
|
31
|
+
var utils_1 = require("../../../../../ui/utils/index.js");
|
|
31
32
|
function FileCard(_a) {
|
|
32
33
|
var file = _a.file, onDelete = _a.onDelete;
|
|
33
34
|
function format(name) {
|
|
@@ -47,12 +48,18 @@ function FileCard(_a) {
|
|
|
47
48
|
switch (formatedFileName.extension) {
|
|
48
49
|
case 'pdf':
|
|
49
50
|
return (0, jsx_runtime_1.jsx)(icons_1.Icon, { name: 'IconPdf', fill: '#f52421' });
|
|
50
|
-
|
|
51
|
-
;
|
|
52
|
-
|
|
51
|
+
case 'xlsx':
|
|
52
|
+
return (0, jsx_runtime_1.jsx)(icons_1.Icon, { name: 'IconExcel' });
|
|
53
|
+
case 'doc':
|
|
54
|
+
return (0, jsx_runtime_1.jsx)(icons_1.Icon, { name: 'IconWord' });
|
|
55
|
+
case 'docx':
|
|
56
|
+
return (0, jsx_runtime_1.jsx)(icons_1.Icon, { name: 'IconWord' });
|
|
57
|
+
default: {
|
|
58
|
+
return (0, jsx_runtime_1.jsx)("img", { src: file.url });
|
|
59
|
+
}
|
|
53
60
|
}
|
|
54
61
|
};
|
|
55
|
-
return ((0, jsx_runtime_1.jsxs)(S.FileCard, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(Image, {}) }), (0, jsx_runtime_1.jsx)("span", { className: 'file_name', children: formatedFileName.name }), (0, jsx_runtime_1.jsxs)("div", { className: 'actions', children: [(0, jsx_runtime_1.jsx)(semantic_ui_react_1.Popup, { content: 'Detalhe', trigger: (0, jsx_runtime_1.jsx)("a", { href: file.url, target: '_blank', className: 'action-button', onClick: function () { return null; }, children: (0, jsx_runtime_1.jsx)(icons_1.Icon, { name: 'IconEye' }) }) }), (0, jsx_runtime_1.jsx)(semantic_ui_react_1.Popup, { content: 'Excluir', trigger: (0, jsx_runtime_1.jsx)("button", { className: 'action-button', onClick: function () { return onDelete(file); }, type: 'button', children: (0, jsx_runtime_1.jsx)(icons_1.Icon, { name: 'IconDelete' }) }) })] })] }));
|
|
62
|
+
return ((0, jsx_runtime_1.jsxs)(S.FileCard, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(Image, {}) }), (0, jsx_runtime_1.jsx)("span", { className: 'file_name', children: formatedFileName.name }), (0, jsx_runtime_1.jsxs)("div", { className: 'actions', children: [(0, jsx_runtime_1.jsx)(semantic_ui_react_1.Popup, { content: 'Detalhe', trigger: (0, jsx_runtime_1.jsx)("a", { href: file.url, target: '_blank', className: 'action-button', onClick: function () { return null; }, children: (0, jsx_runtime_1.jsx)(icons_1.Icon, { name: 'IconEye' }) }) }), (0, jsx_runtime_1.jsx)(semantic_ui_react_1.Popup, { content: 'Excluir', trigger: (0, jsx_runtime_1.jsx)("button", { className: 'action-button', onClick: function () { return onDelete(file); }, type: 'button', children: (0, jsx_runtime_1.jsx)(icons_1.Icon, { name: 'IconDelete' }) }) }), (0, jsx_runtime_1.jsx)(semantic_ui_react_1.Popup, { content: 'Baixar', trigger: (0, jsx_runtime_1.jsx)("button", { type: 'button', className: 'action-button', onClick: function () { return (0, utils_1.loadFile)({ id: file.id }); }, children: (0, jsx_runtime_1.jsx)(icons_1.Icon, { name: 'IconDropFile' }) }) })] })] }));
|
|
56
63
|
}
|
|
57
64
|
exports.FileCard = FileCard;
|
|
58
65
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/input-file/file-card/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAyC;AAGzC,oCAAiC;AAEjC,0CAA6B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/input-file/file-card/index.tsx"],"names":[],"mappings":"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"}
|
package/dist/ui/icons/index.d.ts
CHANGED
|
@@ -6,19 +6,18 @@ export * from './render/Eye.js';
|
|
|
6
6
|
export * from './render/block.js';
|
|
7
7
|
export * from './render/Plus.js';
|
|
8
8
|
export * from './render/pdf.js';
|
|
9
|
-
export * from './render/computer.js';
|
|
10
|
-
export * from './render/calendar-time.js';
|
|
11
9
|
export * from './render/Exit.js';
|
|
12
10
|
export * from './render/star.js';
|
|
13
11
|
export * from './render/Play.js';
|
|
14
12
|
export * from './render/Edit.js';
|
|
15
13
|
export * from './render/Gear.js';
|
|
16
|
-
export * from './render/money-value-symbol.js';
|
|
17
14
|
export * from './render/NavUp.js';
|
|
18
15
|
export * from './render/whats.js';
|
|
19
16
|
export * from './render/Home.js';
|
|
20
17
|
export * from './render/chat.js';
|
|
18
|
+
export * from './render/word.js';
|
|
21
19
|
export * from './render/user.js';
|
|
20
|
+
export * from './render/excel.js';
|
|
22
21
|
export * from './render/index.js';
|
|
23
22
|
export * from './render/Share.js';
|
|
24
23
|
export * from './render/image.js';
|
|
@@ -51,17 +50,20 @@ export * from './render/drop-file.js';
|
|
|
51
50
|
export * from './render/component.js';
|
|
52
51
|
export * from './render/Microphone.js';
|
|
53
52
|
export * from './render/empty-chat.js';
|
|
53
|
+
export * from './render/computer.js';
|
|
54
54
|
export * from './render/not-found.js';
|
|
55
55
|
export * from './render/plus-sharp.js';
|
|
56
56
|
export * from './render/exclamation.js';
|
|
57
57
|
export * from './render/send-message.js';
|
|
58
58
|
export * from './render/phone-message.js';
|
|
59
|
+
export * from './render/calendar-time.js';
|
|
59
60
|
export * from './render/arrow-forward.js';
|
|
60
61
|
export * from './render/fullfield-bell.js';
|
|
61
62
|
export * from './render/fullfield-chat.js';
|
|
62
63
|
export * from './render/message-balloon.js';
|
|
63
64
|
export * from './render/transparent-mail.js';
|
|
64
65
|
export * from './render/transparent-phone.js';
|
|
66
|
+
export * from './render/money-value-symbol.js';
|
|
65
67
|
export * from './render/Carousel-left-icon.js';
|
|
66
68
|
export * from './render/Carousel-right-icon.js';
|
|
67
69
|
export * from './render/keyboard-left-arrow.js';
|
package/dist/ui/icons/index.js
CHANGED
|
@@ -22,19 +22,18 @@ __exportStar(require("./render/Eye.js"), exports);
|
|
|
22
22
|
__exportStar(require("./render/block.js"), exports);
|
|
23
23
|
__exportStar(require("./render/Plus.js"), exports);
|
|
24
24
|
__exportStar(require("./render/pdf.js"), exports);
|
|
25
|
-
__exportStar(require("./render/computer.js"), exports);
|
|
26
|
-
__exportStar(require("./render/calendar-time.js"), exports);
|
|
27
25
|
__exportStar(require("./render/Exit.js"), exports);
|
|
28
26
|
__exportStar(require("./render/star.js"), exports);
|
|
29
27
|
__exportStar(require("./render/Play.js"), exports);
|
|
30
28
|
__exportStar(require("./render/Edit.js"), exports);
|
|
31
29
|
__exportStar(require("./render/Gear.js"), exports);
|
|
32
|
-
__exportStar(require("./render/money-value-symbol.js"), exports);
|
|
33
30
|
__exportStar(require("./render/NavUp.js"), exports);
|
|
34
31
|
__exportStar(require("./render/whats.js"), exports);
|
|
35
32
|
__exportStar(require("./render/Home.js"), exports);
|
|
36
33
|
__exportStar(require("./render/chat.js"), exports);
|
|
34
|
+
__exportStar(require("./render/word.js"), exports);
|
|
37
35
|
__exportStar(require("./render/user.js"), exports);
|
|
36
|
+
__exportStar(require("./render/excel.js"), exports);
|
|
38
37
|
__exportStar(require("./render/index.js"), exports);
|
|
39
38
|
__exportStar(require("./render/Share.js"), exports);
|
|
40
39
|
__exportStar(require("./render/image.js"), exports);
|
|
@@ -67,17 +66,20 @@ __exportStar(require("./render/drop-file.js"), exports);
|
|
|
67
66
|
__exportStar(require("./render/component.js"), exports);
|
|
68
67
|
__exportStar(require("./render/Microphone.js"), exports);
|
|
69
68
|
__exportStar(require("./render/empty-chat.js"), exports);
|
|
69
|
+
__exportStar(require("./render/computer.js"), exports);
|
|
70
70
|
__exportStar(require("./render/not-found.js"), exports);
|
|
71
71
|
__exportStar(require("./render/plus-sharp.js"), exports);
|
|
72
72
|
__exportStar(require("./render/exclamation.js"), exports);
|
|
73
73
|
__exportStar(require("./render/send-message.js"), exports);
|
|
74
74
|
__exportStar(require("./render/phone-message.js"), exports);
|
|
75
|
+
__exportStar(require("./render/calendar-time.js"), exports);
|
|
75
76
|
__exportStar(require("./render/arrow-forward.js"), exports);
|
|
76
77
|
__exportStar(require("./render/fullfield-bell.js"), exports);
|
|
77
78
|
__exportStar(require("./render/fullfield-chat.js"), exports);
|
|
78
79
|
__exportStar(require("./render/message-balloon.js"), exports);
|
|
79
80
|
__exportStar(require("./render/transparent-mail.js"), exports);
|
|
80
81
|
__exportStar(require("./render/transparent-phone.js"), exports);
|
|
82
|
+
__exportStar(require("./render/money-value-symbol.js"), exports);
|
|
81
83
|
__exportStar(require("./render/Carousel-left-icon.js"), exports);
|
|
82
84
|
__exportStar(require("./render/Carousel-right-icon.js"), exports);
|
|
83
85
|
__exportStar(require("./render/keyboard-left-arrow.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui/icons/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,+CAA4B;AAC5B,+CAA4B;AAC5B,gDAA6B;AAC7B,+CAA4B;AAC5B,iDAA8B;AAC9B,gDAA6B;AAC7B,+CAA4B;AAC5B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui/icons/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,+CAA4B;AAC5B,+CAA4B;AAC5B,gDAA6B;AAC7B,+CAA4B;AAC5B,iDAA8B;AAC9B,gDAA6B;AAC7B,+CAA4B;AAC5B,gDAA6B;AAC7B,gDAA6B;AAC7B,gDAA6B;AAC7B,gDAA6B;AAC7B,gDAA6B;AAC7B,iDAA8B;AAC9B,iDAA8B;AAC9B,gDAA6B;AAC7B,gDAA6B;AAC7B,gDAA6B;AAC7B,gDAA6B;AAC7B,iDAA8B;AAC9B,iDAA8B;AAC9B,iDAA8B;AAC9B,iDAA8B;AAC9B,gDAA6B;AAC7B,iDAA8B;AAC9B,iDAA8B;AAC9B,iDAA8B;AAC9B,iDAA8B;AAC9B,iDAA8B;AAC9B,iDAA8B;AAC9B,iDAA8B;AAC9B,kDAA+B;AAC/B,kDAA+B;AAC/B,kDAA+B;AAC/B,mDAAgC;AAChC,mDAAgC;AAChC,kDAA+B;AAC/B,kDAA+B;AAC/B,oDAAiC;AACjC,mDAAgC;AAChC,mDAAgC;AAChC,mDAAgC;AAChC,mDAAgC;AAChC,oDAAiC;AACjC,oDAAiC;AACjC,oDAAiC;AACjC,oDAAiC;AACjC,oDAAiC;AACjC,qDAAkC;AAClC,qDAAkC;AAClC,sDAAmC;AACnC,sDAAmC;AACnC,oDAAiC;AACjC,qDAAkC;AAClC,sDAAmC;AACnC,uDAAoC;AACpC,wDAAqC;AACrC,yDAAsC;AACtC,yDAAsC;AACtC,yDAAsC;AACtC,0DAAuC;AACvC,0DAAuC;AACvC,2DAAwC;AACxC,4DAAyC;AACzC,6DAA0C;AAC1C,8DAA2C;AAC3C,8DAA2C;AAC3C,+DAA4C;AAC5C,+DAA4C;AAC5C,gEAA6C;AAC7C,gEAA6C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function IconExcel(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IconExcel = void 0;
|
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
function IconExcel() {
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { xmlns: 'http://www.w3.org/2000/svg', width: '800px', height: '800px', viewBox: '0 0 32 32', children: [(0, jsx_runtime_1.jsx)("path", { d: 'M28.781,4.405H18.651V2.018L2,4.588V27.115l16.651,2.868V26.445H28.781A1.162,1.162,0,0,0,30,25.349V5.5A1.162,1.162,0,0,0,28.781,4.405Zm.16,21.126H18.617L18.6,23.642h2.487v-2.2H18.581l-.012-1.3h2.518v-2.2H18.55l-.012-1.3h2.549v-2.2H18.53v-1.3h2.557v-2.2H18.53v-1.3h2.557v-2.2H18.53v-2H28.941Z', style: { fill: '#20744a', fillRule: 'evenodd' } }), (0, jsx_runtime_1.jsx)("rect", { x: '22.487', y: '7.439', width: '4.323', height: '2.2', style: { fill: '#20744a' } }), (0, jsx_runtime_1.jsx)("rect", { x: '22.487', y: '10.94', width: '4.323', height: '2.2', style: { fill: '#20744a' } }), (0, jsx_runtime_1.jsx)("rect", { x: '22.487', y: '14.441', width: '4.323', height: '2.2', style: { fill: '#20744a' } }), (0, jsx_runtime_1.jsx)("rect", { x: '22.487', y: '17.942', width: '4.323', height: '2.2', style: { fill: '#20744a' } }), (0, jsx_runtime_1.jsx)("rect", { x: '22.487', y: '21.443', width: '4.323', height: '2.2', style: { fill: '#20744a' } }), (0, jsx_runtime_1.jsx)("polygon", { points: '6.347 10.673 8.493 10.55 9.842 14.259 11.436 10.397 13.582 10.274 10.976 15.54 13.582 20.819 11.313 20.666 9.781 16.642 8.248 20.513 6.163 20.329 8.585 15.666 6.347 10.673', style: { fill: '#fff', fillRule: 'evenodd' } })] }));
|
|
7
|
+
}
|
|
8
|
+
exports.IconExcel = IconExcel;
|
|
9
|
+
//# sourceMappingURL=excel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"excel.js","sourceRoot":"","sources":["../../../../src/ui/icons/render/excel.tsx"],"names":[],"mappings":";;;;AAAA,SAAgB,SAAS;IACvB,OAAO,CACL,iCAAK,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,OAAO,EAAC,MAAM,EAAC,OAAO,EAAC,OAAO,EAAC,WAAW,aACtF,iCACE,CAAC,EAAC,mSAAmS,EACrS,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,GAC/C,EACF,iCAAM,CAAC,EAAC,QAAQ,EAAC,CAAC,EAAC,OAAO,EAAC,KAAK,EAAC,OAAO,EAAC,MAAM,EAAC,KAAK,EAAC,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAI,EACpF,iCAAM,CAAC,EAAC,QAAQ,EAAC,CAAC,EAAC,OAAO,EAAC,KAAK,EAAC,OAAO,EAAC,MAAM,EAAC,KAAK,EAAC,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAI,EACpF,iCAAM,CAAC,EAAC,QAAQ,EAAC,CAAC,EAAC,QAAQ,EAAC,KAAK,EAAC,OAAO,EAAC,MAAM,EAAC,KAAK,EAAC,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAI,EACrF,iCAAM,CAAC,EAAC,QAAQ,EAAC,CAAC,EAAC,QAAQ,EAAC,KAAK,EAAC,OAAO,EAAC,MAAM,EAAC,KAAK,EAAC,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAI,EACrF,iCAAM,CAAC,EAAC,QAAQ,EAAC,CAAC,EAAC,QAAQ,EAAC,KAAK,EAAC,OAAO,EAAC,MAAM,EAAC,KAAK,EAAC,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAI,EACrF,oCACE,MAAM,EAAC,6KAA6K,EACpL,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAC5C,IACE,CACP,CAAA;AACH,CAAC;AAlBD,8BAkBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function IconWord(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IconWord = void 0;
|
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
function IconWord() {
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { xmlns: 'http://www.w3.org/2000/svg', width: '800px', height: '800px', viewBox: '0 0 32 32', children: [(0, jsx_runtime_1.jsx)("path", { d: 'M18.536,2.323V4.868c3.4.019,7.12-.035,10.521.019a.783.783,0,0,1,.912.861c.054,6.266-.013,12.89.032,19.157-.02.4.009,1.118-.053,1.517-.079.509-.306.607-.817.676-.286.039-.764.034-1.045.047-2.792-.014-5.582-.011-8.374-.01l-1.175,0v2.547L2,27.133Q2,16,2,4.873L18.536,2.322', style: { fill: '#283c82' } }), (0, jsx_runtime_1.jsx)("path", { d: 'M18.536,5.822h10.5V26.18h-10.5V23.635h8.27V22.363h-8.27v-1.59h8.27V19.5h-8.27v-1.59h8.27V16.637h-8.27v-1.59h8.27V13.774h-8.27v-1.59h8.27V10.911h-8.27V9.321h8.27V8.048h-8.27V5.822', style: { fill: '#fff' } }), (0, jsx_runtime_1.jsx)("path", { d: 'M8.573,11.443c.6-.035,1.209-.06,1.813-.092.423,2.147.856,4.291,1.314,6.429.359-2.208.757-4.409,1.142-6.613.636-.022,1.272-.057,1.905-.1-.719,3.082-1.349,6.19-2.134,9.254-.531.277-1.326-.013-1.956.032-.423-2.106-.916-4.2-1.295-6.314C8.99,16.1,8.506,18.133,8.08,20.175q-.916-.048-1.839-.111c-.528-2.8-1.148-5.579-1.641-8.385.544-.025,1.091-.048,1.635-.067.328,2.026.7,4.043.986,6.072.448-2.08.907-4.161,1.352-6.241', style: { fill: '#fff' } })] }));
|
|
7
|
+
}
|
|
8
|
+
exports.IconWord = IconWord;
|
|
9
|
+
//# sourceMappingURL=word.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"word.js","sourceRoot":"","sources":["../../../../src/ui/icons/render/word.tsx"],"names":[],"mappings":";;;;AAAA,SAAgB,QAAQ;IACtB,OAAO,CACL,iCAAK,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,OAAO,EAAC,MAAM,EAAC,OAAO,EAAC,OAAO,EAAC,WAAW,aACtF,iCACE,CAAC,EAAC,+QAA+Q,EACjR,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAC1B,EACF,iCACE,CAAC,EAAC,oLAAoL,EACtL,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GACvB,EACF,iCACE,CAAC,EAAC,8ZAA8Z,EACha,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GACvB,IACE,CACP,CAAA;AACH,CAAC;AAjBD,4BAiBC"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './load-file.js';
|
|
2
|
+
export * from './upload-file.js';
|
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./load-file.js"), exports);
|
|
17
18
|
__exportStar(require("./upload-file.js"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/utils/file/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/utils/file/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,gDAA6B"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.loadFile = void 0;
|
|
40
|
+
var system_1 = require("../../../system/index.js");
|
|
41
|
+
function loadFile(data) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
43
|
+
var response, url, link;
|
|
44
|
+
return __generator(this, function (_a) {
|
|
45
|
+
switch (_a.label) {
|
|
46
|
+
case 0: return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteFile).load(data)
|
|
47
|
+
// await axios
|
|
48
|
+
// .get(file_url, {
|
|
49
|
+
// // responseType: "arraybuffer",
|
|
50
|
+
// headers: {
|
|
51
|
+
// "Content-Type": "application/json",
|
|
52
|
+
// Accept: "application/pdf",
|
|
53
|
+
// },
|
|
54
|
+
// })
|
|
55
|
+
// .then((response) => {
|
|
56
|
+
// })
|
|
57
|
+
];
|
|
58
|
+
case 1:
|
|
59
|
+
response = _a.sent();
|
|
60
|
+
url = window.URL.createObjectURL(new Blob([response]));
|
|
61
|
+
link = document.createElement('a');
|
|
62
|
+
link.href = url;
|
|
63
|
+
link.setAttribute('download', 'download-file' + data.id);
|
|
64
|
+
document.body.appendChild(link);
|
|
65
|
+
link.click();
|
|
66
|
+
return [2 /*return*/];
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
exports.loadFile = loadFile;
|
|
72
|
+
//# sourceMappingURL=load-file.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-file.js","sourceRoot":"","sources":["../../../../src/ui/utils/file/load-file.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAiE;AAEjE,SAAsB,QAAQ,CAAC,IAAqB;;;;;wBACjC,qBAAM,kBAAS,CAAC,GAAG,CAAa,cAAK,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;oBAE7E,cAAc;oBACd,mBAAmB;oBACnB,oCAAoC;oBACpC,eAAe;oBACf,0CAA0C;oBAC1C,iCAAiC;oBACjC,OAAO;oBACP,KAAK;oBACL,wBAAwB;oBAExB,KAAK;kBAZwE;;oBAAvE,QAAQ,GAAG,SAA4D;oBAcvE,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAA;oBACtD,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAA;oBACxC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAA;oBACf,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,eAAe,GAAG,IAAI,CAAC,EAAE,CAAC,CAAA;oBACxD,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAA;oBAC/B,IAAI,CAAC,KAAK,EAAE,CAAA;;;;;CACb;AArBD,4BAqBC"}
|
|
@@ -53,7 +53,7 @@ function uploadFile(_a) {
|
|
|
53
53
|
filesToArray.forEach(function (file) {
|
|
54
54
|
formData.append('files', file);
|
|
55
55
|
});
|
|
56
|
-
return [4 /*yield*/, system_1.container.get(system_1.Types.
|
|
56
|
+
return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteFile).upload(formData)];
|
|
57
57
|
case 1:
|
|
58
58
|
response = _b.sent();
|
|
59
59
|
return [2 /*return*/, response.items];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-file.js","sourceRoot":"","sources":["../../../../src/ui/utils/file/upload-file.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"upload-file.js","sourceRoot":"","sources":["../../../../src/ui/utils/file/upload-file.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAuD;AAEvD,SAAsB,UAAU,CAAC,EAA8B;QAA5B,KAAK,WAAA;;;;;;oBACtC,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;wBACjC,sBAAO,EAAE,EAAA;oBACX,CAAC;oBAEK,YAAY,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;oBAElC,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAA;oBAE7B,YAAY,CAAC,OAAO,CAAC,UAAC,IAAI;wBACxB,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;oBAChC,CAAC,CAAC,CAAA;oBAEe,qBAAM,kBAAS,CAAC,GAAG,CAAa,cAAK,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAA;;oBAA7E,QAAQ,GAAG,SAAkE;oBAEnF,sBAAO,QAAQ,CAAC,KAAK,EAAA;;;;CACtB;AAhBD,gCAgBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "infinity-forge",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.6",
|
|
4
4
|
"description": "codie Library",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "https://github.com/CodieDigital/codiedigital-library"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
|
-
"dev": "next -p
|
|
13
|
+
"dev": "next -p 3051",
|
|
14
14
|
"start": "next start -p 3015",
|
|
15
15
|
"build": "concurrently --kill-others \"tsc -w\" \"tsc-alias -w --resolve-full-paths\"",
|
|
16
16
|
"nextBuild": "next build",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remote-upload-files.js","sourceRoot":"","sources":["../../../../../src/system/data/use-cases/files/remote-upload-files.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA8C;AAE9C,sDAAyC;AACzC,wDAA2D;AAC3D,sEAAkE;AAGlE;IACE,0BACkD,UAAsB,EACd,UAA6B;QADrC,eAAU,GAAV,UAAU,CAAY;QACd,eAAU,GAAV,UAAU,CAAmB;IACpF,CAAC;IAEE,iCAAM,GAAZ,UAAa,MAAgC;;;;;4BAC1B,qBAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;4BAC7C,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC;4BACvC,MAAM,EAAE,MAAM;4BACd,IAAI,EAAE,MAAM;4BACZ,OAAO,EAAE;gCACP,cAAc,EAAG,yCAAyC;6BAC3D;yBACF,CAAC,EAAA;;wBAPI,QAAQ,GAAG,SAOf;wBAEF,sBAAO,QAAQ,CAAC,IAA+B,EAAA;;;;KAChD;IAjBU,gBAAgB;QAD5B,IAAA,sBAAU,GAAE;QAGR,WAAA,IAAA,kBAAM,EAAC,kBAAU,CAAC,UAAU,CAAC,CAAA;QAC7B,WAAA,IAAA,kBAAM,EAAC,kBAAU,CAAC,kBAAkB,CAAC,CAAA;yCADsB,yBAAU;OAF7D,gBAAgB,CAkB5B;IAAD,uBAAC;CAAA,AAnBD,IAmBC;AAlBY,4CAAgB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upload-file.js","sourceRoot":"","sources":["../../../../../src/system/domain/use-cases/files/upload-file.ts"],"names":[],"mappings":""}
|