@serve.zone/catalog 2.0.1 → 2.2.0
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_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/index.d.ts +3 -0
- package/dist_ts_web/elements/index.js +5 -1
- package/dist_ts_web/elements/sz-demo-view-mta.d.ts +25 -0
- package/dist_ts_web/elements/sz-demo-view-mta.js +375 -0
- package/dist_ts_web/elements/sz-mta-detail-view.d.ts +56 -0
- package/dist_ts_web/elements/sz-mta-detail-view.js +929 -0
- package/dist_ts_web/elements/sz-mta-list-view.d.ts +31 -0
- package/dist_ts_web/elements/sz-mta-list-view.js +371 -0
- package/dist_ts_web/pages/sz-demo-app-shell.js +8 -2
- package/dist_watch/bundle.js +1824 -329
- package/dist_watch/bundle.js.map +4 -4
- package/package.json +1 -1
- package/readme.md +230 -0
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/index.ts +5 -0
- package/ts_web/elements/sz-demo-view-mta.ts +335 -0
- package/ts_web/elements/sz-mta-detail-view.ts +933 -0
- package/ts_web/elements/sz-mta-list-view.ts +332 -0
- package/ts_web/pages/sz-demo-app-shell.ts +7 -1
package/dist_watch/bundle.js
CHANGED
|
@@ -1397,7 +1397,7 @@ var init_Subscription = __esm({
|
|
|
1397
1397
|
this._finalizers = null;
|
|
1398
1398
|
}
|
|
1399
1399
|
Subscription2.prototype.unsubscribe = function() {
|
|
1400
|
-
var e_1,
|
|
1400
|
+
var e_1, _a41, e_2, _b;
|
|
1401
1401
|
var errors;
|
|
1402
1402
|
if (!this.closed) {
|
|
1403
1403
|
this.closed = true;
|
|
@@ -1414,7 +1414,7 @@ var init_Subscription = __esm({
|
|
|
1414
1414
|
e_1 = { error: e_1_1 };
|
|
1415
1415
|
} finally {
|
|
1416
1416
|
try {
|
|
1417
|
-
if (_parentage_1_1 && !_parentage_1_1.done && (
|
|
1417
|
+
if (_parentage_1_1 && !_parentage_1_1.done && (_a41 = _parentage_1.return)) _a41.call(_parentage_1);
|
|
1418
1418
|
} finally {
|
|
1419
1419
|
if (e_1) throw e_1.error;
|
|
1420
1420
|
}
|
|
@@ -1464,7 +1464,7 @@ var init_Subscription = __esm({
|
|
|
1464
1464
|
}
|
|
1465
1465
|
};
|
|
1466
1466
|
Subscription2.prototype.add = function(teardown) {
|
|
1467
|
-
var
|
|
1467
|
+
var _a41;
|
|
1468
1468
|
if (teardown && teardown !== this) {
|
|
1469
1469
|
if (this.closed) {
|
|
1470
1470
|
execFinalizer(teardown);
|
|
@@ -1475,7 +1475,7 @@ var init_Subscription = __esm({
|
|
|
1475
1475
|
}
|
|
1476
1476
|
teardown._addParent(this);
|
|
1477
1477
|
}
|
|
1478
|
-
(this._finalizers = (
|
|
1478
|
+
(this._finalizers = (_a41 = this._finalizers) !== null && _a41 !== void 0 ? _a41 : []).push(teardown);
|
|
1479
1479
|
}
|
|
1480
1480
|
}
|
|
1481
1481
|
};
|
|
@@ -1611,7 +1611,7 @@ function errorContext(cb) {
|
|
|
1611
1611
|
}
|
|
1612
1612
|
cb();
|
|
1613
1613
|
if (isRoot) {
|
|
1614
|
-
var
|
|
1614
|
+
var _a41 = context, errorThrown = _a41.errorThrown, error = _a41.error;
|
|
1615
1615
|
context = null;
|
|
1616
1616
|
if (errorThrown) {
|
|
1617
1617
|
throw error;
|
|
@@ -1862,8 +1862,8 @@ var init_pipe = __esm({
|
|
|
1862
1862
|
|
|
1863
1863
|
// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Observable.js
|
|
1864
1864
|
function getPromiseCtor(promiseCtor) {
|
|
1865
|
-
var
|
|
1866
|
-
return (
|
|
1865
|
+
var _a41;
|
|
1866
|
+
return (_a41 = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a41 !== void 0 ? _a41 : Promise;
|
|
1867
1867
|
}
|
|
1868
1868
|
function isObserver(value2) {
|
|
1869
1869
|
return value2 && isFunction(value2.next) && isFunction(value2.error) && isFunction(value2.complete);
|
|
@@ -1897,7 +1897,7 @@ var init_Observable = __esm({
|
|
|
1897
1897
|
var _this = this;
|
|
1898
1898
|
var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);
|
|
1899
1899
|
errorContext(function() {
|
|
1900
|
-
var
|
|
1900
|
+
var _a41 = _this, operator = _a41.operator, source = _a41.source;
|
|
1901
1901
|
subscriber.add(operator ? operator.call(subscriber, source) : source ? _this._subscribe(subscriber) : _this._trySubscribe(subscriber));
|
|
1902
1902
|
});
|
|
1903
1903
|
return subscriber;
|
|
@@ -1929,8 +1929,8 @@ var init_Observable = __esm({
|
|
|
1929
1929
|
});
|
|
1930
1930
|
};
|
|
1931
1931
|
Observable2.prototype._subscribe = function(subscriber) {
|
|
1932
|
-
var
|
|
1933
|
-
return (
|
|
1932
|
+
var _a41;
|
|
1933
|
+
return (_a41 = this.source) === null || _a41 === void 0 ? void 0 : _a41.subscribe(subscriber);
|
|
1934
1934
|
};
|
|
1935
1935
|
Observable2.prototype[observable] = function() {
|
|
1936
1936
|
return this;
|
|
@@ -2031,11 +2031,11 @@ var init_OperatorSubscriber = __esm({
|
|
|
2031
2031
|
return _this;
|
|
2032
2032
|
}
|
|
2033
2033
|
OperatorSubscriber2.prototype.unsubscribe = function() {
|
|
2034
|
-
var
|
|
2034
|
+
var _a41;
|
|
2035
2035
|
if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
|
|
2036
2036
|
var closed_1 = this.closed;
|
|
2037
2037
|
_super.prototype.unsubscribe.call(this);
|
|
2038
|
-
!closed_1 && ((
|
|
2038
|
+
!closed_1 && ((_a41 = this.onFinalize) === null || _a41 === void 0 ? void 0 : _a41.call(this));
|
|
2039
2039
|
}
|
|
2040
2040
|
};
|
|
2041
2041
|
return OperatorSubscriber2;
|
|
@@ -2291,7 +2291,7 @@ var init_Subject = __esm({
|
|
|
2291
2291
|
Subject2.prototype.next = function(value2) {
|
|
2292
2292
|
var _this = this;
|
|
2293
2293
|
errorContext(function() {
|
|
2294
|
-
var e_1,
|
|
2294
|
+
var e_1, _a41;
|
|
2295
2295
|
_this._throwIfClosed();
|
|
2296
2296
|
if (!_this.isStopped) {
|
|
2297
2297
|
if (!_this.currentObservers) {
|
|
@@ -2306,7 +2306,7 @@ var init_Subject = __esm({
|
|
|
2306
2306
|
e_1 = { error: e_1_1 };
|
|
2307
2307
|
} finally {
|
|
2308
2308
|
try {
|
|
2309
|
-
if (_c && !_c.done && (
|
|
2309
|
+
if (_c && !_c.done && (_a41 = _b.return)) _a41.call(_b);
|
|
2310
2310
|
} finally {
|
|
2311
2311
|
if (e_1) throw e_1.error;
|
|
2312
2312
|
}
|
|
@@ -2347,8 +2347,8 @@ var init_Subject = __esm({
|
|
|
2347
2347
|
};
|
|
2348
2348
|
Object.defineProperty(Subject2.prototype, "observed", {
|
|
2349
2349
|
get: function() {
|
|
2350
|
-
var
|
|
2351
|
-
return ((
|
|
2350
|
+
var _a41;
|
|
2351
|
+
return ((_a41 = this.observers) === null || _a41 === void 0 ? void 0 : _a41.length) > 0;
|
|
2352
2352
|
},
|
|
2353
2353
|
enumerable: false,
|
|
2354
2354
|
configurable: true
|
|
@@ -2364,7 +2364,7 @@ var init_Subject = __esm({
|
|
|
2364
2364
|
};
|
|
2365
2365
|
Subject2.prototype._innerSubscribe = function(subscriber) {
|
|
2366
2366
|
var _this = this;
|
|
2367
|
-
var
|
|
2367
|
+
var _a41 = this, hasError = _a41.hasError, isStopped = _a41.isStopped, observers = _a41.observers;
|
|
2368
2368
|
if (hasError || isStopped) {
|
|
2369
2369
|
return EMPTY_SUBSCRIPTION;
|
|
2370
2370
|
}
|
|
@@ -2376,7 +2376,7 @@ var init_Subject = __esm({
|
|
|
2376
2376
|
});
|
|
2377
2377
|
};
|
|
2378
2378
|
Subject2.prototype._checkFinalizedStatuses = function(subscriber) {
|
|
2379
|
-
var
|
|
2379
|
+
var _a41 = this, hasError = _a41.hasError, thrownError = _a41.thrownError, isStopped = _a41.isStopped;
|
|
2380
2380
|
if (hasError) {
|
|
2381
2381
|
subscriber.error(thrownError);
|
|
2382
2382
|
} else if (isStopped) {
|
|
@@ -2402,20 +2402,20 @@ var init_Subject = __esm({
|
|
|
2402
2402
|
return _this;
|
|
2403
2403
|
}
|
|
2404
2404
|
AnonymousSubject2.prototype.next = function(value2) {
|
|
2405
|
-
var
|
|
2406
|
-
(_b = (
|
|
2405
|
+
var _a41, _b;
|
|
2406
|
+
(_b = (_a41 = this.destination) === null || _a41 === void 0 ? void 0 : _a41.next) === null || _b === void 0 ? void 0 : _b.call(_a41, value2);
|
|
2407
2407
|
};
|
|
2408
2408
|
AnonymousSubject2.prototype.error = function(err) {
|
|
2409
|
-
var
|
|
2410
|
-
(_b = (
|
|
2409
|
+
var _a41, _b;
|
|
2410
|
+
(_b = (_a41 = this.destination) === null || _a41 === void 0 ? void 0 : _a41.error) === null || _b === void 0 ? void 0 : _b.call(_a41, err);
|
|
2411
2411
|
};
|
|
2412
2412
|
AnonymousSubject2.prototype.complete = function() {
|
|
2413
|
-
var
|
|
2414
|
-
(_b = (
|
|
2413
|
+
var _a41, _b;
|
|
2414
|
+
(_b = (_a41 = this.destination) === null || _a41 === void 0 ? void 0 : _a41.complete) === null || _b === void 0 ? void 0 : _b.call(_a41);
|
|
2415
2415
|
};
|
|
2416
2416
|
AnonymousSubject2.prototype._subscribe = function(subscriber) {
|
|
2417
|
-
var
|
|
2418
|
-
return (_b = (
|
|
2417
|
+
var _a41, _b;
|
|
2418
|
+
return (_b = (_a41 = this.source) === null || _a41 === void 0 ? void 0 : _a41.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;
|
|
2419
2419
|
};
|
|
2420
2420
|
return AnonymousSubject2;
|
|
2421
2421
|
})(Subject);
|
|
@@ -2448,7 +2448,7 @@ var init_BehaviorSubject = __esm({
|
|
|
2448
2448
|
return subscription;
|
|
2449
2449
|
};
|
|
2450
2450
|
BehaviorSubject2.prototype.getValue = function() {
|
|
2451
|
-
var
|
|
2451
|
+
var _a41 = this, hasError = _a41.hasError, thrownError = _a41.thrownError, _value2 = _a41._value;
|
|
2452
2452
|
if (hasError) {
|
|
2453
2453
|
throw thrownError;
|
|
2454
2454
|
}
|
|
@@ -2507,7 +2507,7 @@ var init_ReplaySubject = __esm({
|
|
|
2507
2507
|
return _this;
|
|
2508
2508
|
}
|
|
2509
2509
|
ReplaySubject2.prototype.next = function(value2) {
|
|
2510
|
-
var
|
|
2510
|
+
var _a41 = this, isStopped = _a41.isStopped, _buffer = _a41._buffer, _infiniteTimeWindow = _a41._infiniteTimeWindow, _timestampProvider = _a41._timestampProvider, _windowTime = _a41._windowTime;
|
|
2511
2511
|
if (!isStopped) {
|
|
2512
2512
|
_buffer.push(value2);
|
|
2513
2513
|
!_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);
|
|
@@ -2519,7 +2519,7 @@ var init_ReplaySubject = __esm({
|
|
|
2519
2519
|
this._throwIfClosed();
|
|
2520
2520
|
this._trimBuffer();
|
|
2521
2521
|
var subscription = this._innerSubscribe(subscriber);
|
|
2522
|
-
var
|
|
2522
|
+
var _a41 = this, _infiniteTimeWindow = _a41._infiniteTimeWindow, _buffer = _a41._buffer;
|
|
2523
2523
|
var copy = _buffer.slice();
|
|
2524
2524
|
for (var i11 = 0; i11 < copy.length && !subscriber.closed; i11 += _infiniteTimeWindow ? 1 : 2) {
|
|
2525
2525
|
subscriber.next(copy[i11]);
|
|
@@ -2528,7 +2528,7 @@ var init_ReplaySubject = __esm({
|
|
|
2528
2528
|
return subscription;
|
|
2529
2529
|
};
|
|
2530
2530
|
ReplaySubject2.prototype._trimBuffer = function() {
|
|
2531
|
-
var
|
|
2531
|
+
var _a41 = this, _bufferSize = _a41._bufferSize, _timestampProvider = _a41._timestampProvider, _buffer = _a41._buffer, _infiniteTimeWindow = _a41._infiniteTimeWindow;
|
|
2532
2532
|
var adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;
|
|
2533
2533
|
_bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);
|
|
2534
2534
|
if (!_infiniteTimeWindow) {
|
|
@@ -2561,7 +2561,7 @@ var init_AsyncSubject = __esm({
|
|
|
2561
2561
|
return _this;
|
|
2562
2562
|
}
|
|
2563
2563
|
AsyncSubject2.prototype._checkFinalizedStatuses = function(subscriber) {
|
|
2564
|
-
var
|
|
2564
|
+
var _a41 = this, hasError = _a41.hasError, _hasValue = _a41._hasValue, _value2 = _a41._value, thrownError = _a41.thrownError, isStopped = _a41.isStopped, _isComplete = _a41._isComplete;
|
|
2565
2565
|
if (hasError) {
|
|
2566
2566
|
subscriber.error(thrownError);
|
|
2567
2567
|
} else if (isStopped || _isComplete) {
|
|
@@ -2576,7 +2576,7 @@ var init_AsyncSubject = __esm({
|
|
|
2576
2576
|
}
|
|
2577
2577
|
};
|
|
2578
2578
|
AsyncSubject2.prototype.complete = function() {
|
|
2579
|
-
var
|
|
2579
|
+
var _a41 = this, _hasValue = _a41._hasValue, _value2 = _a41._value, _isComplete = _a41._isComplete;
|
|
2580
2580
|
if (!_isComplete) {
|
|
2581
2581
|
this._isComplete = true;
|
|
2582
2582
|
_hasValue && _super.prototype.next.call(this, _value2);
|
|
@@ -2654,7 +2654,7 @@ var init_AsyncAction = __esm({
|
|
|
2654
2654
|
return _this;
|
|
2655
2655
|
}
|
|
2656
2656
|
AsyncAction2.prototype.schedule = function(state, delay2) {
|
|
2657
|
-
var
|
|
2657
|
+
var _a41;
|
|
2658
2658
|
if (delay2 === void 0) {
|
|
2659
2659
|
delay2 = 0;
|
|
2660
2660
|
}
|
|
@@ -2669,7 +2669,7 @@ var init_AsyncAction = __esm({
|
|
|
2669
2669
|
}
|
|
2670
2670
|
this.pending = true;
|
|
2671
2671
|
this.delay = delay2;
|
|
2672
|
-
this.id = (
|
|
2672
|
+
this.id = (_a41 = this.id) !== null && _a41 !== void 0 ? _a41 : this.requestAsyncId(scheduler, this.id, delay2);
|
|
2673
2673
|
return this;
|
|
2674
2674
|
};
|
|
2675
2675
|
AsyncAction2.prototype.requestAsyncId = function(scheduler, _id, delay2) {
|
|
@@ -2718,7 +2718,7 @@ var init_AsyncAction = __esm({
|
|
|
2718
2718
|
};
|
|
2719
2719
|
AsyncAction2.prototype.unsubscribe = function() {
|
|
2720
2720
|
if (!this.closed) {
|
|
2721
|
-
var
|
|
2721
|
+
var _a41 = this, id = _a41.id, scheduler = _a41.scheduler;
|
|
2722
2722
|
var actions = scheduler.actions;
|
|
2723
2723
|
this.work = this.state = this.scheduler = null;
|
|
2724
2724
|
this.pending = false;
|
|
@@ -2823,7 +2823,7 @@ var init_AsapAction = __esm({
|
|
|
2823
2823
|
return scheduler._scheduled || (scheduler._scheduled = immediateProvider.setImmediate(scheduler.flush.bind(scheduler, void 0)));
|
|
2824
2824
|
};
|
|
2825
2825
|
AsapAction2.prototype.recycleAsyncId = function(scheduler, id, delay2) {
|
|
2826
|
-
var
|
|
2826
|
+
var _a41;
|
|
2827
2827
|
if (delay2 === void 0) {
|
|
2828
2828
|
delay2 = 0;
|
|
2829
2829
|
}
|
|
@@ -2831,7 +2831,7 @@ var init_AsapAction = __esm({
|
|
|
2831
2831
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay2);
|
|
2832
2832
|
}
|
|
2833
2833
|
var actions = scheduler.actions;
|
|
2834
|
-
if (id != null && ((
|
|
2834
|
+
if (id != null && ((_a41 = actions[actions.length - 1]) === null || _a41 === void 0 ? void 0 : _a41.id) !== id) {
|
|
2835
2835
|
immediateProvider.clearImmediate(id);
|
|
2836
2836
|
if (scheduler._scheduled === id) {
|
|
2837
2837
|
scheduler._scheduled = void 0;
|
|
@@ -3069,7 +3069,7 @@ var init_AnimationFrameAction = __esm({
|
|
|
3069
3069
|
}));
|
|
3070
3070
|
};
|
|
3071
3071
|
AnimationFrameAction2.prototype.recycleAsyncId = function(scheduler, id, delay2) {
|
|
3072
|
-
var
|
|
3072
|
+
var _a41;
|
|
3073
3073
|
if (delay2 === void 0) {
|
|
3074
3074
|
delay2 = 0;
|
|
3075
3075
|
}
|
|
@@ -3077,7 +3077,7 @@ var init_AnimationFrameAction = __esm({
|
|
|
3077
3077
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay2);
|
|
3078
3078
|
}
|
|
3079
3079
|
var actions = scheduler.actions;
|
|
3080
|
-
if (id != null && id === scheduler._scheduled && ((
|
|
3080
|
+
if (id != null && id === scheduler._scheduled && ((_a41 = actions[actions.length - 1]) === null || _a41 === void 0 ? void 0 : _a41.id) !== id) {
|
|
3081
3081
|
animationFrameProvider.cancelAnimationFrame(id);
|
|
3082
3082
|
scheduler._scheduled = void 0;
|
|
3083
3083
|
}
|
|
@@ -3166,7 +3166,7 @@ var init_VirtualTimeScheduler = __esm({
|
|
|
3166
3166
|
return _this;
|
|
3167
3167
|
}
|
|
3168
3168
|
VirtualTimeScheduler2.prototype.flush = function() {
|
|
3169
|
-
var
|
|
3169
|
+
var _a41 = this, actions = _a41.actions, maxFrames = _a41.maxFrames;
|
|
3170
3170
|
var error;
|
|
3171
3171
|
var action;
|
|
3172
3172
|
while ((action = actions[0]) && action.delay <= maxFrames) {
|
|
@@ -3386,7 +3386,7 @@ var init_isIterable = __esm({
|
|
|
3386
3386
|
// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js
|
|
3387
3387
|
function readableStreamLikeToAsyncGenerator(readableStream) {
|
|
3388
3388
|
return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() {
|
|
3389
|
-
var reader,
|
|
3389
|
+
var reader, _a41, value2, done;
|
|
3390
3390
|
return __generator(this, function(_b) {
|
|
3391
3391
|
switch (_b.label) {
|
|
3392
3392
|
case 0:
|
|
@@ -3399,7 +3399,7 @@ function readableStreamLikeToAsyncGenerator(readableStream) {
|
|
|
3399
3399
|
if (false) return [3, 8];
|
|
3400
3400
|
return [4, __await(reader.read())];
|
|
3401
3401
|
case 3:
|
|
3402
|
-
|
|
3402
|
+
_a41 = _b.sent(), value2 = _a41.value, done = _a41.done;
|
|
3403
3403
|
if (!done) return [3, 5];
|
|
3404
3404
|
return [4, __await(void 0)];
|
|
3405
3405
|
case 4:
|
|
@@ -3490,7 +3490,7 @@ function fromPromise(promise) {
|
|
|
3490
3490
|
}
|
|
3491
3491
|
function fromIterable(iterable) {
|
|
3492
3492
|
return new Observable(function(subscriber) {
|
|
3493
|
-
var e_1,
|
|
3493
|
+
var e_1, _a41;
|
|
3494
3494
|
try {
|
|
3495
3495
|
for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) {
|
|
3496
3496
|
var value2 = iterable_1_1.value;
|
|
@@ -3503,7 +3503,7 @@ function fromIterable(iterable) {
|
|
|
3503
3503
|
e_1 = { error: e_1_1 };
|
|
3504
3504
|
} finally {
|
|
3505
3505
|
try {
|
|
3506
|
-
if (iterable_1_1 && !iterable_1_1.done && (
|
|
3506
|
+
if (iterable_1_1 && !iterable_1_1.done && (_a41 = iterable_1.return)) _a41.call(iterable_1);
|
|
3507
3507
|
} finally {
|
|
3508
3508
|
if (e_1) throw e_1.error;
|
|
3509
3509
|
}
|
|
@@ -3523,7 +3523,7 @@ function fromReadableStreamLike(readableStream) {
|
|
|
3523
3523
|
}
|
|
3524
3524
|
function process2(asyncIterable, subscriber) {
|
|
3525
3525
|
var asyncIterable_1, asyncIterable_1_1;
|
|
3526
|
-
var e_2,
|
|
3526
|
+
var e_2, _a41;
|
|
3527
3527
|
return __awaiter(this, void 0, void 0, function() {
|
|
3528
3528
|
var value2, e_2_1;
|
|
3529
3529
|
return __generator(this, function(_b) {
|
|
@@ -3552,8 +3552,8 @@ function process2(asyncIterable, subscriber) {
|
|
|
3552
3552
|
return [3, 11];
|
|
3553
3553
|
case 6:
|
|
3554
3554
|
_b.trys.push([6, , 9, 10]);
|
|
3555
|
-
if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (
|
|
3556
|
-
return [4,
|
|
3555
|
+
if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a41 = asyncIterable_1.return))) return [3, 8];
|
|
3556
|
+
return [4, _a41.call(asyncIterable_1)];
|
|
3557
3557
|
case 7:
|
|
3558
3558
|
_b.sent();
|
|
3559
3559
|
_b.label = 8;
|
|
@@ -3713,11 +3713,11 @@ function scheduleIterable(input, scheduler) {
|
|
|
3713
3713
|
executeSchedule(subscriber, scheduler, function() {
|
|
3714
3714
|
iterator2 = input[iterator]();
|
|
3715
3715
|
executeSchedule(subscriber, scheduler, function() {
|
|
3716
|
-
var
|
|
3716
|
+
var _a41;
|
|
3717
3717
|
var value2;
|
|
3718
3718
|
var done;
|
|
3719
3719
|
try {
|
|
3720
|
-
|
|
3720
|
+
_a41 = iterator2.next(), value2 = _a41.value, done = _a41.done;
|
|
3721
3721
|
} catch (err) {
|
|
3722
3722
|
subscriber.error(err);
|
|
3723
3723
|
return;
|
|
@@ -3871,12 +3871,12 @@ var init_throwError = __esm({
|
|
|
3871
3871
|
|
|
3872
3872
|
// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Notification.js
|
|
3873
3873
|
function observeNotification(notification, observer) {
|
|
3874
|
-
var
|
|
3874
|
+
var _a41, _b, _c;
|
|
3875
3875
|
var _d = notification, kind = _d.kind, value2 = _d.value, error = _d.error;
|
|
3876
3876
|
if (typeof kind !== "string") {
|
|
3877
3877
|
throw new TypeError('Invalid notification, missing "kind"');
|
|
3878
3878
|
}
|
|
3879
|
-
kind === "N" ? (
|
|
3879
|
+
kind === "N" ? (_a41 = observer.next) === null || _a41 === void 0 ? void 0 : _a41.call(observer, value2) : kind === "E" ? (_b = observer.error) === null || _b === void 0 ? void 0 : _b.call(observer, error) : (_c = observer.complete) === null || _c === void 0 ? void 0 : _c.call(observer);
|
|
3880
3880
|
}
|
|
3881
3881
|
var NotificationKind, Notification;
|
|
3882
3882
|
var init_Notification = __esm({
|
|
@@ -3901,15 +3901,15 @@ var init_Notification = __esm({
|
|
|
3901
3901
|
return observeNotification(this, observer);
|
|
3902
3902
|
};
|
|
3903
3903
|
Notification2.prototype.do = function(nextHandler, errorHandler, completeHandler) {
|
|
3904
|
-
var
|
|
3904
|
+
var _a41 = this, kind = _a41.kind, value2 = _a41.value, error = _a41.error;
|
|
3905
3905
|
return kind === "N" ? nextHandler === null || nextHandler === void 0 ? void 0 : nextHandler(value2) : kind === "E" ? errorHandler === null || errorHandler === void 0 ? void 0 : errorHandler(error) : completeHandler === null || completeHandler === void 0 ? void 0 : completeHandler();
|
|
3906
3906
|
};
|
|
3907
3907
|
Notification2.prototype.accept = function(nextOrObserver, error, complete) {
|
|
3908
|
-
var
|
|
3909
|
-
return isFunction((
|
|
3908
|
+
var _a41;
|
|
3909
|
+
return isFunction((_a41 = nextOrObserver) === null || _a41 === void 0 ? void 0 : _a41.next) ? this.observe(nextOrObserver) : this.do(nextOrObserver, error, complete);
|
|
3910
3910
|
};
|
|
3911
3911
|
Notification2.prototype.toObservable = function() {
|
|
3912
|
-
var
|
|
3912
|
+
var _a41 = this, kind = _a41.kind, value2 = _a41.value, error = _a41.error;
|
|
3913
3913
|
var result = kind === "N" ? of(value2) : kind === "E" ? throwError(function() {
|
|
3914
3914
|
return error;
|
|
3915
3915
|
}) : kind === "C" ? EMPTY : 0;
|
|
@@ -4022,7 +4022,7 @@ var init_isDate = __esm({
|
|
|
4022
4022
|
|
|
4023
4023
|
// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/timeout.js
|
|
4024
4024
|
function timeout(config3, schedulerArg) {
|
|
4025
|
-
var
|
|
4025
|
+
var _a41 = isValidDate(config3) ? { first: config3 } : typeof config3 === "number" ? { each: config3 } : config3, first2 = _a41.first, each = _a41.each, _b = _a41.with, _with = _b === void 0 ? timeoutErrorFactory : _b, _c = _a41.scheduler, scheduler = _c === void 0 ? schedulerArg !== null && schedulerArg !== void 0 ? schedulerArg : asyncScheduler : _c, _d = _a41.meta, meta = _d === void 0 ? null : _d;
|
|
4026
4026
|
if (first2 == null && each == null) {
|
|
4027
4027
|
throw new TypeError("No timeout provided.");
|
|
4028
4028
|
}
|
|
@@ -4300,11 +4300,11 @@ function fromEvent(target, eventName, options, resultSelector) {
|
|
|
4300
4300
|
if (resultSelector) {
|
|
4301
4301
|
return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs(resultSelector));
|
|
4302
4302
|
}
|
|
4303
|
-
var
|
|
4303
|
+
var _a41 = __read(isEventTarget(target) ? eventTargetMethods.map(function(methodName) {
|
|
4304
4304
|
return function(handler2) {
|
|
4305
4305
|
return target[methodName](eventName, handler2, options);
|
|
4306
4306
|
};
|
|
4307
|
-
}) : isNodeStyleEventEmitter(target) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) : isJQueryStyleEventEmitter(target) ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) : [], 2), add3 =
|
|
4307
|
+
}) : isNodeStyleEventEmitter(target) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) : isJQueryStyleEventEmitter(target) ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) : [], 2), add3 = _a41[0], remove2 = _a41[1];
|
|
4308
4308
|
if (!add3) {
|
|
4309
4309
|
if (isArrayLike(target)) {
|
|
4310
4310
|
return mergeMap(function(subTarget) {
|
|
@@ -4562,7 +4562,7 @@ function bufferCount(bufferSize, startBufferEvery) {
|
|
|
4562
4562
|
var buffers = [];
|
|
4563
4563
|
var count2 = 0;
|
|
4564
4564
|
source.subscribe(createOperatorSubscriber(subscriber, function(value2) {
|
|
4565
|
-
var e_1,
|
|
4565
|
+
var e_1, _a41, e_2, _b;
|
|
4566
4566
|
var toEmit = null;
|
|
4567
4567
|
if (count2++ % startBufferEvery === 0) {
|
|
4568
4568
|
buffers.push([]);
|
|
@@ -4580,7 +4580,7 @@ function bufferCount(bufferSize, startBufferEvery) {
|
|
|
4580
4580
|
e_1 = { error: e_1_1 };
|
|
4581
4581
|
} finally {
|
|
4582
4582
|
try {
|
|
4583
|
-
if (buffers_1_1 && !buffers_1_1.done && (
|
|
4583
|
+
if (buffers_1_1 && !buffers_1_1.done && (_a41 = buffers_1.return)) _a41.call(buffers_1);
|
|
4584
4584
|
} finally {
|
|
4585
4585
|
if (e_1) throw e_1.error;
|
|
4586
4586
|
}
|
|
@@ -4603,7 +4603,7 @@ function bufferCount(bufferSize, startBufferEvery) {
|
|
|
4603
4603
|
}
|
|
4604
4604
|
}
|
|
4605
4605
|
}, function() {
|
|
4606
|
-
var e_3,
|
|
4606
|
+
var e_3, _a41;
|
|
4607
4607
|
try {
|
|
4608
4608
|
for (var buffers_2 = __values(buffers), buffers_2_1 = buffers_2.next(); !buffers_2_1.done; buffers_2_1 = buffers_2.next()) {
|
|
4609
4609
|
var buffer2 = buffers_2_1.value;
|
|
@@ -4613,7 +4613,7 @@ function bufferCount(bufferSize, startBufferEvery) {
|
|
|
4613
4613
|
e_3 = { error: e_3_1 };
|
|
4614
4614
|
} finally {
|
|
4615
4615
|
try {
|
|
4616
|
-
if (buffers_2_1 && !buffers_2_1.done && (
|
|
4616
|
+
if (buffers_2_1 && !buffers_2_1.done && (_a41 = buffers_2.return)) _a41.call(buffers_2);
|
|
4617
4617
|
} finally {
|
|
4618
4618
|
if (e_3) throw e_3.error;
|
|
4619
4619
|
}
|
|
@@ -4635,12 +4635,12 @@ var init_bufferCount = __esm({
|
|
|
4635
4635
|
|
|
4636
4636
|
// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/bufferTime.js
|
|
4637
4637
|
function bufferTime(bufferTimeSpan) {
|
|
4638
|
-
var
|
|
4638
|
+
var _a41, _b;
|
|
4639
4639
|
var otherArgs = [];
|
|
4640
4640
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
4641
4641
|
otherArgs[_i - 1] = arguments[_i];
|
|
4642
4642
|
}
|
|
4643
|
-
var scheduler = (
|
|
4643
|
+
var scheduler = (_a41 = popScheduler(otherArgs)) !== null && _a41 !== void 0 ? _a41 : asyncScheduler;
|
|
4644
4644
|
var bufferCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null;
|
|
4645
4645
|
var maxBufferSize = otherArgs[1] || Infinity;
|
|
4646
4646
|
return operate(function(source, subscriber) {
|
|
@@ -4675,7 +4675,7 @@ function bufferTime(bufferTimeSpan) {
|
|
|
4675
4675
|
}
|
|
4676
4676
|
startBuffer();
|
|
4677
4677
|
var bufferTimeSubscriber = createOperatorSubscriber(subscriber, function(value2) {
|
|
4678
|
-
var e_1,
|
|
4678
|
+
var e_1, _a42;
|
|
4679
4679
|
var recordsCopy = bufferRecords.slice();
|
|
4680
4680
|
try {
|
|
4681
4681
|
for (var recordsCopy_1 = __values(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next(); !recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) {
|
|
@@ -4688,7 +4688,7 @@ function bufferTime(bufferTimeSpan) {
|
|
|
4688
4688
|
e_1 = { error: e_1_1 };
|
|
4689
4689
|
} finally {
|
|
4690
4690
|
try {
|
|
4691
|
-
if (recordsCopy_1_1 && !recordsCopy_1_1.done && (
|
|
4691
|
+
if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a42 = recordsCopy_1.return)) _a42.call(recordsCopy_1);
|
|
4692
4692
|
} finally {
|
|
4693
4693
|
if (e_1) throw e_1.error;
|
|
4694
4694
|
}
|
|
@@ -5323,7 +5323,7 @@ var init_tap = __esm({
|
|
|
5323
5323
|
// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/throttle.js
|
|
5324
5324
|
function throttle(durationSelector, config3) {
|
|
5325
5325
|
return operate(function(source, subscriber) {
|
|
5326
|
-
var
|
|
5326
|
+
var _a41 = config3 !== null && config3 !== void 0 ? config3 : {}, _b = _a41.leading, leading = _b === void 0 ? true : _b, _c = _a41.trailing, trailing = _c === void 0 ? false : _c;
|
|
5327
5327
|
var hasValue = false;
|
|
5328
5328
|
var sendValue = null;
|
|
5329
5329
|
var throttled = null;
|
|
@@ -50059,7 +50059,7 @@ var require_sweet_scroll = __commonJS({
|
|
|
50059
50059
|
hash: null
|
|
50060
50060
|
};
|
|
50061
50061
|
this.loop = function(time) {
|
|
50062
|
-
var
|
|
50062
|
+
var _a41 = _this, $el = _a41.$el, ctx = _a41.ctx;
|
|
50063
50063
|
if (!ctx.start) {
|
|
50064
50064
|
ctx.start = time;
|
|
50065
50065
|
}
|
|
@@ -50154,7 +50154,7 @@ var require_sweet_scroll = __commonJS({
|
|
|
50154
50154
|
if (!canUseDOM) {
|
|
50155
50155
|
return;
|
|
50156
50156
|
}
|
|
50157
|
-
var
|
|
50157
|
+
var _a41 = this, $el = _a41.$el, ctx = _a41.ctx, currentOptions = _a41.opts;
|
|
50158
50158
|
var $trigger = ctx.$trigger;
|
|
50159
50159
|
var opts = __assign2({}, currentOptions, options || {});
|
|
50160
50160
|
var optOffset = opts.offset, vertical = opts.vertical, horizontal = opts.horizontal;
|
|
@@ -50221,7 +50221,7 @@ var require_sweet_scroll = __commonJS({
|
|
|
50221
50221
|
if (gotoEnd === void 0) {
|
|
50222
50222
|
gotoEnd = false;
|
|
50223
50223
|
}
|
|
50224
|
-
var
|
|
50224
|
+
var _a41 = this, $el = _a41.$el, ctx = _a41.ctx;
|
|
50225
50225
|
var pos = ctx.pos;
|
|
50226
50226
|
if (!$el || !ctx.progress) {
|
|
50227
50227
|
return;
|
|
@@ -50277,7 +50277,7 @@ var require_sweet_scroll = __commonJS({
|
|
|
50277
50277
|
ctx.id = SweetScroll4.raf(this.loop);
|
|
50278
50278
|
};
|
|
50279
50279
|
SweetScroll4.prototype.complete = function() {
|
|
50280
|
-
var
|
|
50280
|
+
var _a41 = this, $el = _a41.$el, ctx = _a41.ctx;
|
|
50281
50281
|
var hash = ctx.hash, cancel = ctx.cancel, opts = ctx.opts, pos = ctx.pos, $trigger = ctx.$trigger;
|
|
50282
50282
|
if (!$el || !opts) {
|
|
50283
50283
|
return;
|
|
@@ -50303,18 +50303,18 @@ var require_sweet_scroll = __commonJS({
|
|
|
50303
50303
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
50304
50304
|
args[_i - 2] = arguments[_i];
|
|
50305
50305
|
}
|
|
50306
|
-
var
|
|
50306
|
+
var _a41;
|
|
50307
50307
|
var callback = options[type5];
|
|
50308
50308
|
var callbackResult;
|
|
50309
50309
|
var methodResult;
|
|
50310
50310
|
if (isFunction2(callback)) {
|
|
50311
50311
|
callbackResult = callback.apply(this, args.concat([this]));
|
|
50312
50312
|
}
|
|
50313
|
-
methodResult = (
|
|
50313
|
+
methodResult = (_a41 = this)["on" + (type5[0].toUpperCase() + type5.slice(1))].apply(_a41, args);
|
|
50314
50314
|
return callbackResult !== void 0 ? callbackResult : methodResult;
|
|
50315
50315
|
};
|
|
50316
50316
|
SweetScroll4.prototype.bind = function(click, stop) {
|
|
50317
|
-
var
|
|
50317
|
+
var _a41 = this, $el = _a41.$el, opts = _a41.ctx.opts;
|
|
50318
50318
|
if ($el) {
|
|
50319
50319
|
if (click) {
|
|
50320
50320
|
addEvent($el, CONTAINER_CLICK_EVENT, this.handleClick, false);
|
|
@@ -50325,7 +50325,7 @@ var require_sweet_scroll = __commonJS({
|
|
|
50325
50325
|
}
|
|
50326
50326
|
};
|
|
50327
50327
|
SweetScroll4.prototype.unbind = function(click, stop) {
|
|
50328
|
-
var
|
|
50328
|
+
var _a41 = this, $el = _a41.$el, opts = _a41.ctx.opts;
|
|
50329
50329
|
if ($el) {
|
|
50330
50330
|
if (click) {
|
|
50331
50331
|
removeEvent($el, CONTAINER_CLICK_EVENT, this.handleClick, false);
|
|
@@ -96699,6 +96699,7 @@ __export(elements_exports, {
|
|
|
96699
96699
|
SzCertificatesCard: () => SzCertificatesCard,
|
|
96700
96700
|
SzDashboardView: () => SzDashboardView,
|
|
96701
96701
|
SzDemoViewDashboard: () => SzDemoViewDashboard,
|
|
96702
|
+
SzDemoViewMta: () => SzDemoViewMta,
|
|
96702
96703
|
SzDemoViewNetwork: () => SzDemoViewNetwork,
|
|
96703
96704
|
SzDemoViewRegistries: () => SzDemoViewRegistries,
|
|
96704
96705
|
SzDemoViewServices: () => SzDemoViewServices,
|
|
@@ -96707,6 +96708,8 @@ __export(elements_exports, {
|
|
|
96707
96708
|
SzDnsSslCard: () => SzDnsSslCard,
|
|
96708
96709
|
SzDomainDetailView: () => SzDomainDetailView,
|
|
96709
96710
|
SzLoginView: () => SzLoginView,
|
|
96711
|
+
SzMtaDetailView: () => SzMtaDetailView,
|
|
96712
|
+
SzMtaListView: () => SzMtaListView,
|
|
96710
96713
|
SzNetworkDnsView: () => SzNetworkDnsView,
|
|
96711
96714
|
SzNetworkDomainsView: () => SzNetworkDomainsView,
|
|
96712
96715
|
SzNetworkProxyView: () => SzNetworkProxyView,
|
|
@@ -104470,11 +104473,1172 @@ __publicField(SzDomainDetailView, "styles", [
|
|
|
104470
104473
|
]);
|
|
104471
104474
|
__runInitializers(_init27, 1, SzDomainDetailView);
|
|
104472
104475
|
|
|
104476
|
+
// ts_web/elements/sz-mta-list-view.ts
|
|
104477
|
+
init_dist_ts29();
|
|
104478
|
+
var _directionFilter_dec, _statusFilter_dec, _searchQuery_dec, _emails_dec, _a28, _SzMtaListView_decorators, _init28, _emails, _searchQuery, _statusFilter, _directionFilter;
|
|
104479
|
+
_SzMtaListView_decorators = [t4("sz-mta-list-view")];
|
|
104480
|
+
var SzMtaListView = class extends (_a28 = DeesElement, _emails_dec = [n5({ type: Array })], _searchQuery_dec = [r5()], _statusFilter_dec = [r5()], _directionFilter_dec = [r5()], _a28) {
|
|
104481
|
+
constructor() {
|
|
104482
|
+
super(...arguments);
|
|
104483
|
+
__privateAdd(this, _emails, __runInitializers(_init28, 8, this, [])), __runInitializers(_init28, 11, this);
|
|
104484
|
+
__privateAdd(this, _searchQuery, __runInitializers(_init28, 12, this, "")), __runInitializers(_init28, 15, this);
|
|
104485
|
+
__privateAdd(this, _statusFilter, __runInitializers(_init28, 16, this, "all")), __runInitializers(_init28, 19, this);
|
|
104486
|
+
__privateAdd(this, _directionFilter, __runInitializers(_init28, 20, this, "all")), __runInitializers(_init28, 23, this);
|
|
104487
|
+
}
|
|
104488
|
+
get filteredEmails() {
|
|
104489
|
+
return this.emails.filter((email) => {
|
|
104490
|
+
if (this.statusFilter !== "all" && email.status !== this.statusFilter) return false;
|
|
104491
|
+
if (this.directionFilter !== "all" && email.direction !== this.directionFilter) return false;
|
|
104492
|
+
if (this.searchQuery) {
|
|
104493
|
+
const q = this.searchQuery.toLowerCase();
|
|
104494
|
+
return email.from.toLowerCase().includes(q) || email.to.toLowerCase().includes(q) || email.subject.toLowerCase().includes(q) || email.messageId.toLowerCase().includes(q);
|
|
104495
|
+
}
|
|
104496
|
+
return true;
|
|
104497
|
+
});
|
|
104498
|
+
}
|
|
104499
|
+
render() {
|
|
104500
|
+
const filtered = this.filteredEmails;
|
|
104501
|
+
return b2`
|
|
104502
|
+
<div class="filter-bar">
|
|
104503
|
+
<input
|
|
104504
|
+
class="search-input"
|
|
104505
|
+
type="text"
|
|
104506
|
+
placeholder="Search by from, to, subject, or message ID..."
|
|
104507
|
+
.value=${this.searchQuery}
|
|
104508
|
+
@input=${(e11) => {
|
|
104509
|
+
this.searchQuery = e11.target.value;
|
|
104510
|
+
}}
|
|
104511
|
+
/>
|
|
104512
|
+
<div class="chip-group">
|
|
104513
|
+
${["all", "inbound", "outbound"].map((dir) => b2`
|
|
104514
|
+
<button
|
|
104515
|
+
class="chip ${this.directionFilter === dir ? "active" : ""}"
|
|
104516
|
+
@click=${() => {
|
|
104517
|
+
this.directionFilter = dir;
|
|
104518
|
+
}}
|
|
104519
|
+
>${dir === "all" ? "All" : dir === "inbound" ? "Inbound" : "Outbound"}</button>
|
|
104520
|
+
`)}
|
|
104521
|
+
</div>
|
|
104522
|
+
<div class="chip-group">
|
|
104523
|
+
${["all", "delivered", "bounced", "rejected", "deferred", "pending"].map((s9) => b2`
|
|
104524
|
+
<button
|
|
104525
|
+
class="chip ${this.statusFilter === s9 ? "active" : ""}"
|
|
104526
|
+
@click=${() => {
|
|
104527
|
+
this.statusFilter = s9;
|
|
104528
|
+
}}
|
|
104529
|
+
>${s9 === "all" ? "All" : s9.charAt(0).toUpperCase() + s9.slice(1)}</button>
|
|
104530
|
+
`)}
|
|
104531
|
+
</div>
|
|
104532
|
+
</div>
|
|
104533
|
+
|
|
104534
|
+
<div class="results-count">Showing ${filtered.length} of ${this.emails.length} emails</div>
|
|
104535
|
+
|
|
104536
|
+
<div class="table-container">
|
|
104537
|
+
<div class="table-header">
|
|
104538
|
+
<span></span>
|
|
104539
|
+
<span>Status</span>
|
|
104540
|
+
<span>From</span>
|
|
104541
|
+
<span>To</span>
|
|
104542
|
+
<span>Subject</span>
|
|
104543
|
+
<span>Timestamp</span>
|
|
104544
|
+
</div>
|
|
104545
|
+
${filtered.length > 0 ? filtered.map((email) => b2`
|
|
104546
|
+
<div class="table-row" @click=${() => this.handleEmailClick(email)}>
|
|
104547
|
+
<span class="direction-icon ${email.direction}">
|
|
104548
|
+
${email.direction === "inbound" ? b2`<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="12" y1="5" x2="12" y2="19"/><polyline points="19 12 12 19 5 12"/></svg>` : b2`<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="12" y1="19" x2="12" y2="5"/><polyline points="5 12 12 5 19 12"/></svg>`}
|
|
104549
|
+
</span>
|
|
104550
|
+
<span><span class="status-badge ${email.status}">${email.status}</span></span>
|
|
104551
|
+
<span class="email-from" title="${email.from}">${email.from}</span>
|
|
104552
|
+
<span class="email-to" title="${email.to}">${email.to}</span>
|
|
104553
|
+
<span class="email-subject" title="${email.subject}">${email.subject}</span>
|
|
104554
|
+
<span class="email-timestamp">${email.timestamp}</span>
|
|
104555
|
+
</div>
|
|
104556
|
+
`) : b2`
|
|
104557
|
+
<div class="empty-state">No emails found</div>
|
|
104558
|
+
`}
|
|
104559
|
+
</div>
|
|
104560
|
+
`;
|
|
104561
|
+
}
|
|
104562
|
+
handleEmailClick(email) {
|
|
104563
|
+
this.dispatchEvent(new CustomEvent("email-click", { detail: email, bubbles: true, composed: true }));
|
|
104564
|
+
}
|
|
104565
|
+
};
|
|
104566
|
+
_init28 = __decoratorStart(_a28);
|
|
104567
|
+
_emails = new WeakMap();
|
|
104568
|
+
_searchQuery = new WeakMap();
|
|
104569
|
+
_statusFilter = new WeakMap();
|
|
104570
|
+
_directionFilter = new WeakMap();
|
|
104571
|
+
__decorateElement(_init28, 4, "emails", _emails_dec, SzMtaListView, _emails);
|
|
104572
|
+
__decorateElement(_init28, 4, "searchQuery", _searchQuery_dec, SzMtaListView, _searchQuery);
|
|
104573
|
+
__decorateElement(_init28, 4, "statusFilter", _statusFilter_dec, SzMtaListView, _statusFilter);
|
|
104574
|
+
__decorateElement(_init28, 4, "directionFilter", _directionFilter_dec, SzMtaListView, _directionFilter);
|
|
104575
|
+
SzMtaListView = __decorateElement(_init28, 0, "SzMtaListView", _SzMtaListView_decorators, SzMtaListView);
|
|
104576
|
+
__publicField(SzMtaListView, "demo", () => b2`
|
|
104577
|
+
<div style="padding: 24px; max-width: 1200px;">
|
|
104578
|
+
<sz-mta-list-view
|
|
104579
|
+
.emails=${[
|
|
104580
|
+
{ id: "1", direction: "outbound", status: "delivered", from: "noreply@serve.zone", to: "user@example.com", subject: "Welcome to serve.zone", timestamp: "2024-01-15 14:30:22", messageId: "<abc123@serve.zone>", size: "12.4 KB" },
|
|
104581
|
+
{ id: "2", direction: "outbound", status: "bounced", from: "alerts@serve.zone", to: "invalid@nowhere.test", subject: "Service Alert: CPU Usage High", timestamp: "2024-01-15 14:28:10", messageId: "<def456@serve.zone>", size: "8.2 KB" },
|
|
104582
|
+
{ id: "3", direction: "inbound", status: "delivered", from: "support@customer.com", to: "admin@serve.zone", subject: "Re: Infrastructure Review", timestamp: "2024-01-15 14:25:00", messageId: "<ghi789@customer.com>", size: "24.1 KB" },
|
|
104583
|
+
{ id: "4", direction: "outbound", status: "rejected", from: "billing@serve.zone", to: "blocked@spam-domain.test", subject: "Invoice #2024-001", timestamp: "2024-01-15 14:20:45", messageId: "<jkl012@serve.zone>", size: "45.6 KB" },
|
|
104584
|
+
{ id: "5", direction: "outbound", status: "deferred", from: "noreply@serve.zone", to: "slow@remote-server.test", subject: "Password Reset Request", timestamp: "2024-01-15 14:15:30", messageId: "<mno345@serve.zone>", size: "6.8 KB" },
|
|
104585
|
+
{ id: "6", direction: "inbound", status: "delivered", from: "ci@github.com", to: "devops@serve.zone", subject: "Build #4521 passed", timestamp: "2024-01-15 14:10:00", messageId: "<pqr678@github.com>", size: "15.3 KB" },
|
|
104586
|
+
{ id: "7", direction: "outbound", status: "pending", from: "reports@serve.zone", to: "team@serve.zone", subject: "Weekly Infrastructure Report", timestamp: "2024-01-15 14:05:00", messageId: "<stu901@serve.zone>", size: "102.7 KB" }
|
|
104587
|
+
]}
|
|
104588
|
+
></sz-mta-list-view>
|
|
104589
|
+
</div>
|
|
104590
|
+
`);
|
|
104591
|
+
__publicField(SzMtaListView, "demoGroups", ["MTA"]);
|
|
104592
|
+
__publicField(SzMtaListView, "styles", [
|
|
104593
|
+
cssManager.defaultStyles,
|
|
104594
|
+
i`
|
|
104595
|
+
:host {
|
|
104596
|
+
display: block;
|
|
104597
|
+
}
|
|
104598
|
+
|
|
104599
|
+
.filter-bar {
|
|
104600
|
+
display: flex;
|
|
104601
|
+
flex-wrap: wrap;
|
|
104602
|
+
gap: 12px;
|
|
104603
|
+
align-items: center;
|
|
104604
|
+
margin-bottom: 16px;
|
|
104605
|
+
}
|
|
104606
|
+
|
|
104607
|
+
.search-input {
|
|
104608
|
+
flex: 1;
|
|
104609
|
+
min-width: 200px;
|
|
104610
|
+
padding: 8px 12px;
|
|
104611
|
+
background: ${cssManager.bdTheme("#ffffff", "#09090b")};
|
|
104612
|
+
border: 1px solid ${cssManager.bdTheme("#e4e4e7", "#27272a")};
|
|
104613
|
+
border-radius: 6px;
|
|
104614
|
+
font-size: 14px;
|
|
104615
|
+
color: ${cssManager.bdTheme("#18181b", "#fafafa")};
|
|
104616
|
+
outline: none;
|
|
104617
|
+
transition: border-color 200ms ease;
|
|
104618
|
+
}
|
|
104619
|
+
|
|
104620
|
+
.search-input::placeholder {
|
|
104621
|
+
color: ${cssManager.bdTheme("#a1a1aa", "#52525b")};
|
|
104622
|
+
}
|
|
104623
|
+
|
|
104624
|
+
.search-input:focus {
|
|
104625
|
+
border-color: ${cssManager.bdTheme("#2563eb", "#3b82f6")};
|
|
104626
|
+
}
|
|
104627
|
+
|
|
104628
|
+
.chip-group {
|
|
104629
|
+
display: flex;
|
|
104630
|
+
gap: 4px;
|
|
104631
|
+
}
|
|
104632
|
+
|
|
104633
|
+
.chip {
|
|
104634
|
+
padding: 6px 12px;
|
|
104635
|
+
background: transparent;
|
|
104636
|
+
border: 1px solid ${cssManager.bdTheme("#e4e4e7", "#27272a")};
|
|
104637
|
+
border-radius: 9999px;
|
|
104638
|
+
font-size: 12px;
|
|
104639
|
+
font-weight: 500;
|
|
104640
|
+
color: ${cssManager.bdTheme("#71717a", "#a1a1aa")};
|
|
104641
|
+
cursor: pointer;
|
|
104642
|
+
transition: all 200ms ease;
|
|
104643
|
+
white-space: nowrap;
|
|
104644
|
+
}
|
|
104645
|
+
|
|
104646
|
+
.chip:hover {
|
|
104647
|
+
background: ${cssManager.bdTheme("#f4f4f5", "#18181b")};
|
|
104648
|
+
color: ${cssManager.bdTheme("#18181b", "#fafafa")};
|
|
104649
|
+
}
|
|
104650
|
+
|
|
104651
|
+
.chip.active {
|
|
104652
|
+
background: ${cssManager.bdTheme("#18181b", "#fafafa")};
|
|
104653
|
+
color: ${cssManager.bdTheme("#fafafa", "#18181b")};
|
|
104654
|
+
border-color: ${cssManager.bdTheme("#18181b", "#fafafa")};
|
|
104655
|
+
}
|
|
104656
|
+
|
|
104657
|
+
.results-count {
|
|
104658
|
+
font-size: 13px;
|
|
104659
|
+
color: ${cssManager.bdTheme("#71717a", "#a1a1aa")};
|
|
104660
|
+
margin-bottom: 12px;
|
|
104661
|
+
}
|
|
104662
|
+
|
|
104663
|
+
.table-container {
|
|
104664
|
+
background: ${cssManager.bdTheme("#ffffff", "#09090b")};
|
|
104665
|
+
border: 1px solid ${cssManager.bdTheme("#e4e4e7", "#27272a")};
|
|
104666
|
+
border-radius: 8px;
|
|
104667
|
+
overflow: hidden;
|
|
104668
|
+
}
|
|
104669
|
+
|
|
104670
|
+
.table-header {
|
|
104671
|
+
display: grid;
|
|
104672
|
+
grid-template-columns: 40px 90px 1.5fr 1.5fr 2fr 140px;
|
|
104673
|
+
gap: 16px;
|
|
104674
|
+
padding: 12px 16px;
|
|
104675
|
+
background: ${cssManager.bdTheme("#f4f4f5", "#18181b")};
|
|
104676
|
+
border-bottom: 1px solid ${cssManager.bdTheme("#e4e4e7", "#27272a")};
|
|
104677
|
+
font-size: 12px;
|
|
104678
|
+
font-weight: 600;
|
|
104679
|
+
text-transform: uppercase;
|
|
104680
|
+
letter-spacing: 0.05em;
|
|
104681
|
+
color: ${cssManager.bdTheme("#71717a", "#a1a1aa")};
|
|
104682
|
+
}
|
|
104683
|
+
|
|
104684
|
+
.table-row {
|
|
104685
|
+
display: grid;
|
|
104686
|
+
grid-template-columns: 40px 90px 1.5fr 1.5fr 2fr 140px;
|
|
104687
|
+
gap: 16px;
|
|
104688
|
+
padding: 12px 16px;
|
|
104689
|
+
border-bottom: 1px solid ${cssManager.bdTheme("#f4f4f5", "#27272a")};
|
|
104690
|
+
font-size: 14px;
|
|
104691
|
+
color: ${cssManager.bdTheme("#18181b", "#fafafa")};
|
|
104692
|
+
align-items: center;
|
|
104693
|
+
cursor: pointer;
|
|
104694
|
+
transition: background 200ms ease;
|
|
104695
|
+
}
|
|
104696
|
+
|
|
104697
|
+
.table-row:last-child {
|
|
104698
|
+
border-bottom: none;
|
|
104699
|
+
}
|
|
104700
|
+
|
|
104701
|
+
.table-row:hover {
|
|
104702
|
+
background: ${cssManager.bdTheme("#f4f4f5", "#18181b")};
|
|
104703
|
+
}
|
|
104704
|
+
|
|
104705
|
+
.direction-icon {
|
|
104706
|
+
display: flex;
|
|
104707
|
+
align-items: center;
|
|
104708
|
+
justify-content: center;
|
|
104709
|
+
}
|
|
104710
|
+
|
|
104711
|
+
.direction-icon.inbound {
|
|
104712
|
+
color: ${cssManager.bdTheme("#16a34a", "#22c55e")};
|
|
104713
|
+
}
|
|
104714
|
+
|
|
104715
|
+
.direction-icon.outbound {
|
|
104716
|
+
color: ${cssManager.bdTheme("#2563eb", "#60a5fa")};
|
|
104717
|
+
}
|
|
104718
|
+
|
|
104719
|
+
.status-badge {
|
|
104720
|
+
display: inline-flex;
|
|
104721
|
+
align-items: center;
|
|
104722
|
+
padding: 2px 8px;
|
|
104723
|
+
border-radius: 9999px;
|
|
104724
|
+
font-size: 12px;
|
|
104725
|
+
font-weight: 500;
|
|
104726
|
+
}
|
|
104727
|
+
|
|
104728
|
+
.status-badge.delivered {
|
|
104729
|
+
background: ${cssManager.bdTheme("#dcfce7", "rgba(34, 197, 94, 0.2)")};
|
|
104730
|
+
color: ${cssManager.bdTheme("#16a34a", "#22c55e")};
|
|
104731
|
+
}
|
|
104732
|
+
|
|
104733
|
+
.status-badge.bounced,
|
|
104734
|
+
.status-badge.rejected {
|
|
104735
|
+
background: ${cssManager.bdTheme("#fee2e2", "rgba(239, 68, 68, 0.2)")};
|
|
104736
|
+
color: ${cssManager.bdTheme("#dc2626", "#ef4444")};
|
|
104737
|
+
}
|
|
104738
|
+
|
|
104739
|
+
.status-badge.deferred {
|
|
104740
|
+
background: ${cssManager.bdTheme("#fef9c3", "rgba(250, 204, 21, 0.2)")};
|
|
104741
|
+
color: ${cssManager.bdTheme("#ca8a04", "#facc15")};
|
|
104742
|
+
}
|
|
104743
|
+
|
|
104744
|
+
.status-badge.pending {
|
|
104745
|
+
background: ${cssManager.bdTheme("#dbeafe", "rgba(59, 130, 246, 0.2)")};
|
|
104746
|
+
color: ${cssManager.bdTheme("#2563eb", "#60a5fa")};
|
|
104747
|
+
}
|
|
104748
|
+
|
|
104749
|
+
.email-from,
|
|
104750
|
+
.email-to {
|
|
104751
|
+
overflow: hidden;
|
|
104752
|
+
text-overflow: ellipsis;
|
|
104753
|
+
white-space: nowrap;
|
|
104754
|
+
}
|
|
104755
|
+
|
|
104756
|
+
.email-subject {
|
|
104757
|
+
overflow: hidden;
|
|
104758
|
+
text-overflow: ellipsis;
|
|
104759
|
+
white-space: nowrap;
|
|
104760
|
+
font-weight: 500;
|
|
104761
|
+
}
|
|
104762
|
+
|
|
104763
|
+
.email-timestamp {
|
|
104764
|
+
font-size: 13px;
|
|
104765
|
+
color: ${cssManager.bdTheme("#71717a", "#a1a1aa")};
|
|
104766
|
+
white-space: nowrap;
|
|
104767
|
+
}
|
|
104768
|
+
|
|
104769
|
+
.empty-state {
|
|
104770
|
+
padding: 48px 24px;
|
|
104771
|
+
text-align: center;
|
|
104772
|
+
color: ${cssManager.bdTheme("#71717a", "#a1a1aa")};
|
|
104773
|
+
}
|
|
104774
|
+
`
|
|
104775
|
+
]);
|
|
104776
|
+
__runInitializers(_init28, 1, SzMtaListView);
|
|
104777
|
+
|
|
104778
|
+
// ts_web/elements/sz-mta-detail-view.ts
|
|
104779
|
+
init_dist_ts29();
|
|
104780
|
+
var _email_dec, _a29, _SzMtaDetailView_decorators, _init29, _email;
|
|
104781
|
+
_SzMtaDetailView_decorators = [t4("sz-mta-detail-view")];
|
|
104782
|
+
var SzMtaDetailView = class extends (_a29 = DeesElement, _email_dec = [n5({ type: Object })], _a29) {
|
|
104783
|
+
constructor() {
|
|
104784
|
+
super(...arguments);
|
|
104785
|
+
__privateAdd(this, _email, __runInitializers(_init29, 8, this, null)), __runInitializers(_init29, 11, this);
|
|
104786
|
+
}
|
|
104787
|
+
render() {
|
|
104788
|
+
if (!this.email) {
|
|
104789
|
+
return b2`<div class="no-email">No email selected</div>`;
|
|
104790
|
+
}
|
|
104791
|
+
const email = this.email;
|
|
104792
|
+
return b2`
|
|
104793
|
+
<div class="header">
|
|
104794
|
+
<div class="back-link" @click=${() => this.handleBack()}>
|
|
104795
|
+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
104796
|
+
<polyline points="15 18 9 12 15 6"></polyline>
|
|
104797
|
+
</svg>
|
|
104798
|
+
Back to Emails
|
|
104799
|
+
</div>
|
|
104800
|
+
</div>
|
|
104801
|
+
|
|
104802
|
+
<div class="email-header">
|
|
104803
|
+
<h1 class="email-subject">${email.subject}</h1>
|
|
104804
|
+
<div class="badge-group">
|
|
104805
|
+
<span class="status-badge ${email.status}">${email.status}</span>
|
|
104806
|
+
<span class="direction-badge ${email.direction}">${email.direction}</span>
|
|
104807
|
+
</div>
|
|
104808
|
+
</div>
|
|
104809
|
+
|
|
104810
|
+
<div class="content">
|
|
104811
|
+
<div class="main-content">
|
|
104812
|
+
<!-- Email Metadata -->
|
|
104813
|
+
<div class="card">
|
|
104814
|
+
<div class="card-header">
|
|
104815
|
+
<div class="card-title">Email Metadata</div>
|
|
104816
|
+
</div>
|
|
104817
|
+
<div class="card-content">
|
|
104818
|
+
<div class="detail-list">
|
|
104819
|
+
<div class="detail-item">
|
|
104820
|
+
<span class="detail-label">From</span>
|
|
104821
|
+
<span class="detail-value">${email.from}</span>
|
|
104822
|
+
</div>
|
|
104823
|
+
<div class="detail-item">
|
|
104824
|
+
<span class="detail-label">To</span>
|
|
104825
|
+
<span class="detail-value">${email.toList.join(", ")}</span>
|
|
104826
|
+
</div>
|
|
104827
|
+
${email.cc && email.cc.length > 0 ? b2`
|
|
104828
|
+
<div class="detail-item">
|
|
104829
|
+
<span class="detail-label">CC</span>
|
|
104830
|
+
<span class="detail-value">${email.cc.join(", ")}</span>
|
|
104831
|
+
</div>
|
|
104832
|
+
` : ""}
|
|
104833
|
+
<div class="detail-item">
|
|
104834
|
+
<span class="detail-label">Subject</span>
|
|
104835
|
+
<span class="detail-value">${email.subject}</span>
|
|
104836
|
+
</div>
|
|
104837
|
+
<div class="detail-item">
|
|
104838
|
+
<span class="detail-label">Date</span>
|
|
104839
|
+
<span class="detail-value">${email.timestamp}</span>
|
|
104840
|
+
</div>
|
|
104841
|
+
<div class="detail-item">
|
|
104842
|
+
<span class="detail-label">Message ID</span>
|
|
104843
|
+
<span class="detail-value">${email.messageId}</span>
|
|
104844
|
+
</div>
|
|
104845
|
+
<div class="detail-item">
|
|
104846
|
+
<span class="detail-label">Size</span>
|
|
104847
|
+
<span class="detail-value">${email.size}</span>
|
|
104848
|
+
</div>
|
|
104849
|
+
</div>
|
|
104850
|
+
</div>
|
|
104851
|
+
</div>
|
|
104852
|
+
|
|
104853
|
+
<!-- SMTP Transaction Log -->
|
|
104854
|
+
<div class="card">
|
|
104855
|
+
<div class="card-header">
|
|
104856
|
+
<div>
|
|
104857
|
+
<div class="card-title">SMTP Transaction Log</div>
|
|
104858
|
+
<div class="smtp-header-subtitle">
|
|
104859
|
+
<span class="smtp-direction-badge ${email.direction}">${email.direction}</span>
|
|
104860
|
+
<span>${email.direction === "outbound" ? `${email.connectionInfo.sourceHostname} \u2192 ${email.connectionInfo.destinationIp}:${email.connectionInfo.destinationPort}` : `${email.connectionInfo.sourceIp} \u2192 ${email.connectionInfo.sourceHostname}:${email.connectionInfo.destinationPort}`}</span>
|
|
104861
|
+
</div>
|
|
104862
|
+
</div>
|
|
104863
|
+
<button class="smtp-copy-button" @click=${() => this.copySmtpLog()}>
|
|
104864
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
104865
|
+
<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect>
|
|
104866
|
+
<path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>
|
|
104867
|
+
</svg>
|
|
104868
|
+
Copy Log
|
|
104869
|
+
</button>
|
|
104870
|
+
</div>
|
|
104871
|
+
${this.renderSmtpLog(email)}
|
|
104872
|
+
</div>
|
|
104873
|
+
|
|
104874
|
+
<!-- Email Body -->
|
|
104875
|
+
<div class="card">
|
|
104876
|
+
<div class="card-header">
|
|
104877
|
+
<div>
|
|
104878
|
+
<div class="card-title">Email Body (Escaped)</div>
|
|
104879
|
+
<div class="card-subtitle">Raw content — HTML is not rendered</div>
|
|
104880
|
+
</div>
|
|
104881
|
+
</div>
|
|
104882
|
+
<pre class="email-body-container">${email.body}</pre>
|
|
104883
|
+
</div>
|
|
104884
|
+
</div>
|
|
104885
|
+
|
|
104886
|
+
<div class="sidebar">
|
|
104887
|
+
<!-- Connection Info -->
|
|
104888
|
+
<div class="card">
|
|
104889
|
+
<div class="card-header">
|
|
104890
|
+
<div class="card-title">Connection Info</div>
|
|
104891
|
+
</div>
|
|
104892
|
+
<div class="card-content">
|
|
104893
|
+
<div class="detail-list">
|
|
104894
|
+
<div class="detail-item">
|
|
104895
|
+
<span class="detail-label">Source IP</span>
|
|
104896
|
+
<span class="detail-value">${email.connectionInfo.sourceIp}</span>
|
|
104897
|
+
</div>
|
|
104898
|
+
<div class="detail-item">
|
|
104899
|
+
<span class="detail-label">Source Hostname</span>
|
|
104900
|
+
<span class="detail-value">${email.connectionInfo.sourceHostname}</span>
|
|
104901
|
+
</div>
|
|
104902
|
+
<div class="detail-item">
|
|
104903
|
+
<span class="detail-label">Destination</span>
|
|
104904
|
+
<span class="detail-value">${email.connectionInfo.destinationIp}:${email.connectionInfo.destinationPort}</span>
|
|
104905
|
+
</div>
|
|
104906
|
+
<div class="detail-item">
|
|
104907
|
+
<span class="detail-label">TLS</span>
|
|
104908
|
+
<span class="detail-value">
|
|
104909
|
+
${email.connectionInfo.tlsVersion ? b2`<span class="tls-badge">${email.connectionInfo.tlsVersion}</span>` : "None"}
|
|
104910
|
+
</span>
|
|
104911
|
+
</div>
|
|
104912
|
+
${email.connectionInfo.tlsCipher ? b2`
|
|
104913
|
+
<div class="detail-item">
|
|
104914
|
+
<span class="detail-label">Cipher</span>
|
|
104915
|
+
<span class="detail-value">${email.connectionInfo.tlsCipher}</span>
|
|
104916
|
+
</div>
|
|
104917
|
+
` : ""}
|
|
104918
|
+
<div class="detail-item">
|
|
104919
|
+
<span class="detail-label">Authenticated</span>
|
|
104920
|
+
<span class="detail-value">${email.connectionInfo.authenticated ? "Yes" : "No"}</span>
|
|
104921
|
+
</div>
|
|
104922
|
+
${email.connectionInfo.authenticated ? b2`
|
|
104923
|
+
<div class="detail-item">
|
|
104924
|
+
<span class="detail-label">Auth Method</span>
|
|
104925
|
+
<span class="detail-value">${email.connectionInfo.authMethod}</span>
|
|
104926
|
+
</div>
|
|
104927
|
+
<div class="detail-item">
|
|
104928
|
+
<span class="detail-label">Auth User</span>
|
|
104929
|
+
<span class="detail-value">${email.connectionInfo.authUser}</span>
|
|
104930
|
+
</div>
|
|
104931
|
+
` : ""}
|
|
104932
|
+
</div>
|
|
104933
|
+
</div>
|
|
104934
|
+
</div>
|
|
104935
|
+
|
|
104936
|
+
<!-- Authentication Results -->
|
|
104937
|
+
<div class="card">
|
|
104938
|
+
<div class="card-header">
|
|
104939
|
+
<div class="card-title">Authentication Results</div>
|
|
104940
|
+
</div>
|
|
104941
|
+
<div class="card-content">
|
|
104942
|
+
<div class="auth-row">
|
|
104943
|
+
<div>
|
|
104944
|
+
<span class="auth-label">SPF</span>
|
|
104945
|
+
<span class="auth-domain">${email.authenticationResults.spfDomain}</span>
|
|
104946
|
+
</div>
|
|
104947
|
+
<span class="auth-badge ${email.authenticationResults.spf}">${email.authenticationResults.spf}</span>
|
|
104948
|
+
</div>
|
|
104949
|
+
<div class="auth-row">
|
|
104950
|
+
<div>
|
|
104951
|
+
<span class="auth-label">DKIM</span>
|
|
104952
|
+
<span class="auth-domain">${email.authenticationResults.dkimDomain}</span>
|
|
104953
|
+
</div>
|
|
104954
|
+
<span class="auth-badge ${email.authenticationResults.dkim}">${email.authenticationResults.dkim}</span>
|
|
104955
|
+
</div>
|
|
104956
|
+
<div class="auth-row">
|
|
104957
|
+
<div>
|
|
104958
|
+
<span class="auth-label">DMARC</span>
|
|
104959
|
+
<span class="auth-domain">policy: ${email.authenticationResults.dmarcPolicy}</span>
|
|
104960
|
+
</div>
|
|
104961
|
+
<span class="auth-badge ${email.authenticationResults.dmarc}">${email.authenticationResults.dmarc}</span>
|
|
104962
|
+
</div>
|
|
104963
|
+
</div>
|
|
104964
|
+
</div>
|
|
104965
|
+
|
|
104966
|
+
<!-- Rejection Details (conditional) -->
|
|
104967
|
+
${email.status === "rejected" || email.status === "bounced" ? b2`
|
|
104968
|
+
<div class="card rejection-card">
|
|
104969
|
+
<div class="card-header">
|
|
104970
|
+
<div class="card-title">Rejection Details</div>
|
|
104971
|
+
</div>
|
|
104972
|
+
<div class="card-content">
|
|
104973
|
+
${email.rejectionReason ? b2`
|
|
104974
|
+
<div class="rejection-label">Rejection Reason</div>
|
|
104975
|
+
<div class="rejection-text">${email.rejectionReason}</div>
|
|
104976
|
+
` : ""}
|
|
104977
|
+
${email.bounceMessage ? b2`
|
|
104978
|
+
<div class="rejection-label">Bounce Message</div>
|
|
104979
|
+
<div class="rejection-text">${email.bounceMessage}</div>
|
|
104980
|
+
` : ""}
|
|
104981
|
+
</div>
|
|
104982
|
+
</div>
|
|
104983
|
+
` : ""}
|
|
104984
|
+
</div>
|
|
104985
|
+
</div>
|
|
104986
|
+
`;
|
|
104987
|
+
}
|
|
104988
|
+
getResponseCodeBadgeClass(code4) {
|
|
104989
|
+
if (code4 >= 500) return "code-5xx";
|
|
104990
|
+
if (code4 >= 400) return "code-4xx";
|
|
104991
|
+
if (code4 >= 300) return "code-3xx";
|
|
104992
|
+
return "code-2xx";
|
|
104993
|
+
}
|
|
104994
|
+
getSmtpPhases(log) {
|
|
104995
|
+
const phases = [];
|
|
104996
|
+
let currentPhase = "";
|
|
104997
|
+
let ehloCount = 0;
|
|
104998
|
+
for (const entry of log) {
|
|
104999
|
+
const cmd = entry.command.toUpperCase();
|
|
105000
|
+
let phase = currentPhase;
|
|
105001
|
+
if (entry.direction === "client") {
|
|
105002
|
+
if (cmd.startsWith("EHLO") || cmd.startsWith("HELO")) {
|
|
105003
|
+
ehloCount++;
|
|
105004
|
+
if (ehloCount === 1) {
|
|
105005
|
+
phase = "connection";
|
|
105006
|
+
} else {
|
|
105007
|
+
phase = "post-tls";
|
|
105008
|
+
}
|
|
105009
|
+
} else if (cmd === "STARTTLS") {
|
|
105010
|
+
phase = "tls";
|
|
105011
|
+
} else if (cmd.startsWith("AUTH")) {
|
|
105012
|
+
phase = "auth";
|
|
105013
|
+
} else if (cmd.startsWith("MAIL FROM") || cmd.startsWith("RCPT TO") || cmd === "DATA" || cmd === ".") {
|
|
105014
|
+
phase = "transfer";
|
|
105015
|
+
} else if (cmd === "QUIT") {
|
|
105016
|
+
phase = "closing";
|
|
105017
|
+
}
|
|
105018
|
+
}
|
|
105019
|
+
if (entry.direction === "server" && phase === "") {
|
|
105020
|
+
phase = currentPhase || "connection";
|
|
105021
|
+
}
|
|
105022
|
+
if (phase === "") phase = "connection";
|
|
105023
|
+
if (phase !== currentPhase) {
|
|
105024
|
+
currentPhase = phase;
|
|
105025
|
+
const labels = {
|
|
105026
|
+
"connection": "Connection",
|
|
105027
|
+
"tls": "TLS Negotiation",
|
|
105028
|
+
"post-tls": "Post-TLS Handshake",
|
|
105029
|
+
"auth": "Authentication",
|
|
105030
|
+
"transfer": "Mail Transfer",
|
|
105031
|
+
"closing": "Closing"
|
|
105032
|
+
};
|
|
105033
|
+
phases.push({ phase, label: labels[phase] || phase, entries: [] });
|
|
105034
|
+
}
|
|
105035
|
+
if (phases.length === 0) {
|
|
105036
|
+
phases.push({ phase: "connection", label: "Connection", entries: [] });
|
|
105037
|
+
}
|
|
105038
|
+
phases[phases.length - 1].entries.push(entry);
|
|
105039
|
+
}
|
|
105040
|
+
return phases;
|
|
105041
|
+
}
|
|
105042
|
+
renderSmtpLog(email) {
|
|
105043
|
+
const phases = this.getSmtpPhases(email.smtpLog);
|
|
105044
|
+
return b2`
|
|
105045
|
+
<div class="smtp-log-container">
|
|
105046
|
+
${phases.map((phase) => b2`
|
|
105047
|
+
<div class="smtp-phase-separator">
|
|
105048
|
+
<div class="smtp-phase-line"></div>
|
|
105049
|
+
<span class="smtp-phase-label">${phase.label}</span>
|
|
105050
|
+
<div class="smtp-phase-line"></div>
|
|
105051
|
+
</div>
|
|
105052
|
+
${phase.entries.map((entry) => b2`
|
|
105053
|
+
<div class="smtp-bubble ${entry.direction}">
|
|
105054
|
+
${entry.direction === "server" && entry.responseCode ? b2`
|
|
105055
|
+
<span class="response-code-badge ${this.getResponseCodeBadgeClass(entry.responseCode)}">${entry.responseCode}</span>
|
|
105056
|
+
` : ""}
|
|
105057
|
+
<div class="smtp-bubble-command">${entry.command}</div>
|
|
105058
|
+
<div class="smtp-bubble-meta">
|
|
105059
|
+
<span>${entry.timestamp}</span>
|
|
105060
|
+
<span>·</span>
|
|
105061
|
+
<span class="smtp-direction-tag ${entry.direction}">${entry.direction === "client" ? "Client" : "Server"}</span>
|
|
105062
|
+
</div>
|
|
105063
|
+
</div>
|
|
105064
|
+
`)}
|
|
105065
|
+
`)}
|
|
105066
|
+
</div>
|
|
105067
|
+
`;
|
|
105068
|
+
}
|
|
105069
|
+
copySmtpLog() {
|
|
105070
|
+
if (!this.email) return;
|
|
105071
|
+
const text9 = this.email.smtpLog.map((e11) => `[${e11.timestamp}] ${e11.direction === "client" ? "C:" : "S:"} ${e11.command}`).join("\n");
|
|
105072
|
+
navigator.clipboard.writeText(text9);
|
|
105073
|
+
}
|
|
105074
|
+
handleBack() {
|
|
105075
|
+
this.dispatchEvent(new CustomEvent("back", { bubbles: true, composed: true }));
|
|
105076
|
+
}
|
|
105077
|
+
};
|
|
105078
|
+
_init29 = __decoratorStart(_a29);
|
|
105079
|
+
_email = new WeakMap();
|
|
105080
|
+
__decorateElement(_init29, 4, "email", _email_dec, SzMtaDetailView, _email);
|
|
105081
|
+
SzMtaDetailView = __decorateElement(_init29, 0, "SzMtaDetailView", _SzMtaDetailView_decorators, SzMtaDetailView);
|
|
105082
|
+
__publicField(SzMtaDetailView, "demo", () => b2`
|
|
105083
|
+
<div style="padding: 24px; max-width: 1200px;">
|
|
105084
|
+
<sz-mta-detail-view
|
|
105085
|
+
.email=${{
|
|
105086
|
+
id: "1",
|
|
105087
|
+
direction: "outbound",
|
|
105088
|
+
status: "delivered",
|
|
105089
|
+
from: "noreply@serve.zone",
|
|
105090
|
+
to: "user@example.com",
|
|
105091
|
+
toList: ["user@example.com"],
|
|
105092
|
+
subject: "Welcome to serve.zone",
|
|
105093
|
+
timestamp: "2024-01-15 14:30:22",
|
|
105094
|
+
messageId: "<abc123@serve.zone>",
|
|
105095
|
+
size: "12.4 KB",
|
|
105096
|
+
smtpLog: [
|
|
105097
|
+
{ timestamp: "14:30:20", direction: "client", command: "EHLO mail.serve.zone" },
|
|
105098
|
+
{ timestamp: "14:30:20", direction: "server", command: "250-mail.example.com Hello", responseCode: 250 },
|
|
105099
|
+
{ timestamp: "14:30:20", direction: "server", command: "250-STARTTLS", responseCode: 250 },
|
|
105100
|
+
{ timestamp: "14:30:20", direction: "server", command: "250 SIZE 52428800", responseCode: 250 },
|
|
105101
|
+
{ timestamp: "14:30:20", direction: "client", command: "STARTTLS" },
|
|
105102
|
+
{ timestamp: "14:30:21", direction: "server", command: "220 Ready to start TLS", responseCode: 220 },
|
|
105103
|
+
{ timestamp: "14:30:21", direction: "client", command: "EHLO mail.serve.zone" },
|
|
105104
|
+
{ timestamp: "14:30:21", direction: "server", command: "250-mail.example.com Hello", responseCode: 250 },
|
|
105105
|
+
{ timestamp: "14:30:21", direction: "server", command: "250-AUTH PLAIN LOGIN", responseCode: 250 },
|
|
105106
|
+
{ timestamp: "14:30:21", direction: "server", command: "250 SIZE 52428800", responseCode: 250 },
|
|
105107
|
+
{ timestamp: "14:30:21", direction: "client", command: "AUTH PLAIN AHVzZXIAcGFzc3dvcmQ=" },
|
|
105108
|
+
{ timestamp: "14:30:21", direction: "server", command: "235 2.7.0 Authentication successful", responseCode: 235 },
|
|
105109
|
+
{ timestamp: "14:30:21", direction: "client", command: "MAIL FROM:<noreply@serve.zone>" },
|
|
105110
|
+
{ timestamp: "14:30:21", direction: "server", command: "250 OK", responseCode: 250 },
|
|
105111
|
+
{ timestamp: "14:30:21", direction: "client", command: "RCPT TO:<user@example.com>" },
|
|
105112
|
+
{ timestamp: "14:30:21", direction: "server", command: "250 Accepted", responseCode: 250 },
|
|
105113
|
+
{ timestamp: "14:30:22", direction: "client", command: "DATA" },
|
|
105114
|
+
{ timestamp: "14:30:22", direction: "server", command: '354 Enter message, ending with "." on a line by itself', responseCode: 354 },
|
|
105115
|
+
{ timestamp: "14:30:22", direction: "client", command: "." },
|
|
105116
|
+
{ timestamp: "14:30:22", direction: "server", command: "250 OK id=1pQ2rS-0003Ab-C4", responseCode: 250 },
|
|
105117
|
+
{ timestamp: "14:30:22", direction: "client", command: "QUIT" },
|
|
105118
|
+
{ timestamp: "14:30:22", direction: "server", command: "221 mail.example.com closing connection", responseCode: 221 }
|
|
105119
|
+
],
|
|
105120
|
+
connectionInfo: {
|
|
105121
|
+
sourceIp: "10.0.1.50",
|
|
105122
|
+
sourceHostname: "mail.serve.zone",
|
|
105123
|
+
destinationIp: "93.184.216.34",
|
|
105124
|
+
destinationPort: 25,
|
|
105125
|
+
tlsVersion: "TLSv1.3",
|
|
105126
|
+
tlsCipher: "TLS_AES_256_GCM_SHA384",
|
|
105127
|
+
authenticated: true,
|
|
105128
|
+
authMethod: "PLAIN",
|
|
105129
|
+
authUser: "noreply@serve.zone"
|
|
105130
|
+
},
|
|
105131
|
+
authenticationResults: {
|
|
105132
|
+
spf: "pass",
|
|
105133
|
+
spfDomain: "serve.zone",
|
|
105134
|
+
dkim: "pass",
|
|
105135
|
+
dkimDomain: "serve.zone",
|
|
105136
|
+
dmarc: "pass",
|
|
105137
|
+
dmarcPolicy: "reject"
|
|
105138
|
+
},
|
|
105139
|
+
headers: {
|
|
105140
|
+
"From": "noreply@serve.zone",
|
|
105141
|
+
"To": "user@example.com",
|
|
105142
|
+
"Subject": "Welcome to serve.zone",
|
|
105143
|
+
"Date": "Mon, 15 Jan 2024 14:30:22 +0000",
|
|
105144
|
+
"MIME-Version": "1.0",
|
|
105145
|
+
"Content-Type": "text/html; charset=UTF-8"
|
|
105146
|
+
},
|
|
105147
|
+
body: '<html>\\n<head><title>Welcome</title></head>\\n<body>\\n <h1>Welcome to serve.zone!</h1>\\n <p>Your account has been created successfully.</p>\\n <a href="https://serve.zone/dashboard">Go to Dashboard</a>\\n</body>\\n</html>'
|
|
105148
|
+
}}
|
|
105149
|
+
></sz-mta-detail-view>
|
|
105150
|
+
</div>
|
|
105151
|
+
`);
|
|
105152
|
+
__publicField(SzMtaDetailView, "demoGroups", ["MTA"]);
|
|
105153
|
+
__publicField(SzMtaDetailView, "styles", [
|
|
105154
|
+
cssManager.defaultStyles,
|
|
105155
|
+
i`
|
|
105156
|
+
:host {
|
|
105157
|
+
display: block;
|
|
105158
|
+
}
|
|
105159
|
+
|
|
105160
|
+
.header {
|
|
105161
|
+
display: flex;
|
|
105162
|
+
align-items: center;
|
|
105163
|
+
gap: 16px;
|
|
105164
|
+
margin-bottom: 24px;
|
|
105165
|
+
}
|
|
105166
|
+
|
|
105167
|
+
.back-link {
|
|
105168
|
+
display: inline-flex;
|
|
105169
|
+
align-items: center;
|
|
105170
|
+
gap: 6px;
|
|
105171
|
+
font-size: 14px;
|
|
105172
|
+
color: ${cssManager.bdTheme("#71717a", "#a1a1aa")};
|
|
105173
|
+
cursor: pointer;
|
|
105174
|
+
transition: color 200ms ease;
|
|
105175
|
+
}
|
|
105176
|
+
|
|
105177
|
+
.back-link:hover {
|
|
105178
|
+
color: ${cssManager.bdTheme("#18181b", "#fafafa")};
|
|
105179
|
+
}
|
|
105180
|
+
|
|
105181
|
+
.email-header {
|
|
105182
|
+
display: flex;
|
|
105183
|
+
align-items: center;
|
|
105184
|
+
gap: 12px;
|
|
105185
|
+
margin-bottom: 24px;
|
|
105186
|
+
}
|
|
105187
|
+
|
|
105188
|
+
.email-subject {
|
|
105189
|
+
font-size: 24px;
|
|
105190
|
+
font-weight: 700;
|
|
105191
|
+
color: ${cssManager.bdTheme("#18181b", "#fafafa")};
|
|
105192
|
+
margin: 0;
|
|
105193
|
+
}
|
|
105194
|
+
|
|
105195
|
+
.badge-group {
|
|
105196
|
+
display: flex;
|
|
105197
|
+
gap: 8px;
|
|
105198
|
+
}
|
|
105199
|
+
|
|
105200
|
+
.status-badge {
|
|
105201
|
+
display: inline-flex;
|
|
105202
|
+
align-items: center;
|
|
105203
|
+
padding: 4px 12px;
|
|
105204
|
+
border-radius: 9999px;
|
|
105205
|
+
font-size: 13px;
|
|
105206
|
+
font-weight: 500;
|
|
105207
|
+
}
|
|
105208
|
+
|
|
105209
|
+
.status-badge.delivered {
|
|
105210
|
+
background: ${cssManager.bdTheme("#dcfce7", "rgba(34, 197, 94, 0.2)")};
|
|
105211
|
+
color: ${cssManager.bdTheme("#16a34a", "#22c55e")};
|
|
105212
|
+
}
|
|
105213
|
+
|
|
105214
|
+
.status-badge.bounced,
|
|
105215
|
+
.status-badge.rejected {
|
|
105216
|
+
background: ${cssManager.bdTheme("#fee2e2", "rgba(239, 68, 68, 0.2)")};
|
|
105217
|
+
color: ${cssManager.bdTheme("#dc2626", "#ef4444")};
|
|
105218
|
+
}
|
|
105219
|
+
|
|
105220
|
+
.status-badge.deferred {
|
|
105221
|
+
background: ${cssManager.bdTheme("#fef9c3", "rgba(250, 204, 21, 0.2)")};
|
|
105222
|
+
color: ${cssManager.bdTheme("#ca8a04", "#facc15")};
|
|
105223
|
+
}
|
|
105224
|
+
|
|
105225
|
+
.status-badge.pending {
|
|
105226
|
+
background: ${cssManager.bdTheme("#dbeafe", "rgba(59, 130, 246, 0.2)")};
|
|
105227
|
+
color: ${cssManager.bdTheme("#2563eb", "#60a5fa")};
|
|
105228
|
+
}
|
|
105229
|
+
|
|
105230
|
+
.direction-badge {
|
|
105231
|
+
display: inline-flex;
|
|
105232
|
+
align-items: center;
|
|
105233
|
+
gap: 4px;
|
|
105234
|
+
padding: 4px 12px;
|
|
105235
|
+
border-radius: 9999px;
|
|
105236
|
+
font-size: 13px;
|
|
105237
|
+
font-weight: 500;
|
|
105238
|
+
}
|
|
105239
|
+
|
|
105240
|
+
.direction-badge.inbound {
|
|
105241
|
+
background: ${cssManager.bdTheme("#dcfce7", "rgba(34, 197, 94, 0.2)")};
|
|
105242
|
+
color: ${cssManager.bdTheme("#16a34a", "#22c55e")};
|
|
105243
|
+
}
|
|
105244
|
+
|
|
105245
|
+
.direction-badge.outbound {
|
|
105246
|
+
background: ${cssManager.bdTheme("#dbeafe", "rgba(59, 130, 246, 0.2)")};
|
|
105247
|
+
color: ${cssManager.bdTheme("#2563eb", "#60a5fa")};
|
|
105248
|
+
}
|
|
105249
|
+
|
|
105250
|
+
.content {
|
|
105251
|
+
display: grid;
|
|
105252
|
+
grid-template-columns: 1fr;
|
|
105253
|
+
gap: 24px;
|
|
105254
|
+
}
|
|
105255
|
+
|
|
105256
|
+
@media (min-width: 1024px) {
|
|
105257
|
+
.content {
|
|
105258
|
+
grid-template-columns: 2fr 1fr;
|
|
105259
|
+
}
|
|
105260
|
+
}
|
|
105261
|
+
|
|
105262
|
+
.main-content {
|
|
105263
|
+
display: flex;
|
|
105264
|
+
flex-direction: column;
|
|
105265
|
+
gap: 24px;
|
|
105266
|
+
}
|
|
105267
|
+
|
|
105268
|
+
.sidebar {
|
|
105269
|
+
display: flex;
|
|
105270
|
+
flex-direction: column;
|
|
105271
|
+
gap: 24px;
|
|
105272
|
+
}
|
|
105273
|
+
|
|
105274
|
+
.card {
|
|
105275
|
+
background: ${cssManager.bdTheme("#ffffff", "#09090b")};
|
|
105276
|
+
border: 1px solid ${cssManager.bdTheme("#e4e4e7", "#27272a")};
|
|
105277
|
+
border-radius: 8px;
|
|
105278
|
+
overflow: hidden;
|
|
105279
|
+
}
|
|
105280
|
+
|
|
105281
|
+
.card-header {
|
|
105282
|
+
display: flex;
|
|
105283
|
+
justify-content: space-between;
|
|
105284
|
+
align-items: center;
|
|
105285
|
+
padding: 16px;
|
|
105286
|
+
border-bottom: 1px solid ${cssManager.bdTheme("#e4e4e7", "#27272a")};
|
|
105287
|
+
}
|
|
105288
|
+
|
|
105289
|
+
.card-title {
|
|
105290
|
+
font-size: 16px;
|
|
105291
|
+
font-weight: 600;
|
|
105292
|
+
color: ${cssManager.bdTheme("#18181b", "#fafafa")};
|
|
105293
|
+
}
|
|
105294
|
+
|
|
105295
|
+
.card-subtitle {
|
|
105296
|
+
font-size: 13px;
|
|
105297
|
+
color: ${cssManager.bdTheme("#71717a", "#a1a1aa")};
|
|
105298
|
+
margin-top: 2px;
|
|
105299
|
+
}
|
|
105300
|
+
|
|
105301
|
+
.card-content {
|
|
105302
|
+
padding: 16px;
|
|
105303
|
+
}
|
|
105304
|
+
|
|
105305
|
+
.detail-list {
|
|
105306
|
+
display: flex;
|
|
105307
|
+
flex-direction: column;
|
|
105308
|
+
gap: 12px;
|
|
105309
|
+
}
|
|
105310
|
+
|
|
105311
|
+
.detail-item {
|
|
105312
|
+
display: flex;
|
|
105313
|
+
justify-content: space-between;
|
|
105314
|
+
align-items: flex-start;
|
|
105315
|
+
}
|
|
105316
|
+
|
|
105317
|
+
.detail-label {
|
|
105318
|
+
font-size: 14px;
|
|
105319
|
+
color: ${cssManager.bdTheme("#71717a", "#a1a1aa")};
|
|
105320
|
+
flex-shrink: 0;
|
|
105321
|
+
}
|
|
105322
|
+
|
|
105323
|
+
.detail-value {
|
|
105324
|
+
font-size: 14px;
|
|
105325
|
+
color: ${cssManager.bdTheme("#18181b", "#fafafa")};
|
|
105326
|
+
text-align: right;
|
|
105327
|
+
word-break: break-all;
|
|
105328
|
+
}
|
|
105329
|
+
|
|
105330
|
+
.smtp-log-container {
|
|
105331
|
+
padding: 16px;
|
|
105332
|
+
font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
|
|
105333
|
+
font-size: 13px;
|
|
105334
|
+
line-height: 1.6;
|
|
105335
|
+
max-height: 500px;
|
|
105336
|
+
overflow-y: auto;
|
|
105337
|
+
background: ${cssManager.bdTheme("#fafafa", "#0a0a0a")};
|
|
105338
|
+
display: flex;
|
|
105339
|
+
flex-direction: column;
|
|
105340
|
+
gap: 8px;
|
|
105341
|
+
scrollbar-width: thin;
|
|
105342
|
+
scrollbar-color: ${cssManager.bdTheme("#d4d4d8", "#3f3f46")} transparent;
|
|
105343
|
+
}
|
|
105344
|
+
|
|
105345
|
+
.smtp-log-container::-webkit-scrollbar {
|
|
105346
|
+
width: 6px;
|
|
105347
|
+
}
|
|
105348
|
+
|
|
105349
|
+
.smtp-log-container::-webkit-scrollbar-track {
|
|
105350
|
+
background: transparent;
|
|
105351
|
+
}
|
|
105352
|
+
|
|
105353
|
+
.smtp-log-container::-webkit-scrollbar-thumb {
|
|
105354
|
+
background: ${cssManager.bdTheme("#d4d4d8", "#3f3f46")};
|
|
105355
|
+
border-radius: 3px;
|
|
105356
|
+
}
|
|
105357
|
+
|
|
105358
|
+
/* Phase separators */
|
|
105359
|
+
.smtp-phase-separator {
|
|
105360
|
+
display: flex;
|
|
105361
|
+
align-items: center;
|
|
105362
|
+
gap: 12px;
|
|
105363
|
+
padding: 4px 0;
|
|
105364
|
+
margin: 4px 0;
|
|
105365
|
+
}
|
|
105366
|
+
|
|
105367
|
+
.smtp-phase-line {
|
|
105368
|
+
flex: 1;
|
|
105369
|
+
height: 1px;
|
|
105370
|
+
background: ${cssManager.bdTheme("#e4e4e7", "#27272a")};
|
|
105371
|
+
}
|
|
105372
|
+
|
|
105373
|
+
.smtp-phase-label {
|
|
105374
|
+
font-size: 10px;
|
|
105375
|
+
font-weight: 600;
|
|
105376
|
+
text-transform: uppercase;
|
|
105377
|
+
letter-spacing: 0.5px;
|
|
105378
|
+
color: ${cssManager.bdTheme("#a1a1aa", "#52525b")};
|
|
105379
|
+
white-space: nowrap;
|
|
105380
|
+
}
|
|
105381
|
+
|
|
105382
|
+
/* Chat bubbles */
|
|
105383
|
+
.smtp-bubble {
|
|
105384
|
+
border-radius: 8px;
|
|
105385
|
+
padding: 10px 14px;
|
|
105386
|
+
max-width: 70%;
|
|
105387
|
+
}
|
|
105388
|
+
|
|
105389
|
+
.smtp-bubble.client {
|
|
105390
|
+
align-self: flex-start;
|
|
105391
|
+
background: ${cssManager.bdTheme("rgba(59, 130, 246, 0.08)", "rgba(59, 130, 246, 0.12)")};
|
|
105392
|
+
border-left: 3px solid ${cssManager.bdTheme("#3b82f6", "#60a5fa")};
|
|
105393
|
+
margin-right: auto;
|
|
105394
|
+
}
|
|
105395
|
+
|
|
105396
|
+
.smtp-bubble.server {
|
|
105397
|
+
align-self: flex-end;
|
|
105398
|
+
background: ${cssManager.bdTheme("rgba(34, 197, 94, 0.06)", "rgba(34, 197, 94, 0.10)")};
|
|
105399
|
+
border-right: 3px solid ${cssManager.bdTheme("#22c55e", "#4ade80")};
|
|
105400
|
+
margin-left: auto;
|
|
105401
|
+
text-align: right;
|
|
105402
|
+
}
|
|
105403
|
+
|
|
105404
|
+
.smtp-bubble-command {
|
|
105405
|
+
white-space: pre-wrap;
|
|
105406
|
+
word-break: break-all;
|
|
105407
|
+
color: ${cssManager.bdTheme("#18181b", "#fafafa")};
|
|
105408
|
+
}
|
|
105409
|
+
|
|
105410
|
+
.smtp-bubble-meta {
|
|
105411
|
+
display: flex;
|
|
105412
|
+
align-items: center;
|
|
105413
|
+
gap: 6px;
|
|
105414
|
+
margin-top: 4px;
|
|
105415
|
+
font-size: 11px;
|
|
105416
|
+
color: ${cssManager.bdTheme("#a1a1aa", "#52525b")};
|
|
105417
|
+
}
|
|
105418
|
+
|
|
105419
|
+
.smtp-bubble.server .smtp-bubble-meta {
|
|
105420
|
+
justify-content: flex-end;
|
|
105421
|
+
}
|
|
105422
|
+
|
|
105423
|
+
.smtp-direction-tag {
|
|
105424
|
+
font-size: 10px;
|
|
105425
|
+
font-weight: 600;
|
|
105426
|
+
text-transform: uppercase;
|
|
105427
|
+
letter-spacing: 0.3px;
|
|
105428
|
+
}
|
|
105429
|
+
|
|
105430
|
+
.smtp-direction-tag.client {
|
|
105431
|
+
color: ${cssManager.bdTheme("#3b82f6", "#60a5fa")};
|
|
105432
|
+
}
|
|
105433
|
+
|
|
105434
|
+
.smtp-direction-tag.server {
|
|
105435
|
+
color: ${cssManager.bdTheme("#22c55e", "#4ade80")};
|
|
105436
|
+
}
|
|
105437
|
+
|
|
105438
|
+
/* Response code badges */
|
|
105439
|
+
.response-code-badge {
|
|
105440
|
+
display: inline-block;
|
|
105441
|
+
padding: 1px 7px;
|
|
105442
|
+
border-radius: 9999px;
|
|
105443
|
+
font-size: 11px;
|
|
105444
|
+
font-weight: 700;
|
|
105445
|
+
margin-bottom: 4px;
|
|
105446
|
+
font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
|
|
105447
|
+
}
|
|
105448
|
+
|
|
105449
|
+
.response-code-badge.code-2xx {
|
|
105450
|
+
background: ${cssManager.bdTheme("rgba(34, 197, 94, 0.15)", "rgba(34, 197, 94, 0.25)")};
|
|
105451
|
+
color: ${cssManager.bdTheme("#16a34a", "#22c55e")};
|
|
105452
|
+
}
|
|
105453
|
+
|
|
105454
|
+
.response-code-badge.code-3xx {
|
|
105455
|
+
background: ${cssManager.bdTheme("rgba(59, 130, 246, 0.15)", "rgba(59, 130, 246, 0.25)")};
|
|
105456
|
+
color: ${cssManager.bdTheme("#2563eb", "#60a5fa")};
|
|
105457
|
+
}
|
|
105458
|
+
|
|
105459
|
+
.response-code-badge.code-4xx {
|
|
105460
|
+
background: ${cssManager.bdTheme("rgba(250, 204, 21, 0.15)", "rgba(250, 204, 21, 0.25)")};
|
|
105461
|
+
color: ${cssManager.bdTheme("#ca8a04", "#facc15")};
|
|
105462
|
+
}
|
|
105463
|
+
|
|
105464
|
+
.response-code-badge.code-5xx {
|
|
105465
|
+
background: ${cssManager.bdTheme("rgba(239, 68, 68, 0.15)", "rgba(239, 68, 68, 0.25)")};
|
|
105466
|
+
color: ${cssManager.bdTheme("#dc2626", "#ef4444")};
|
|
105467
|
+
}
|
|
105468
|
+
|
|
105469
|
+
/* Copy button */
|
|
105470
|
+
.smtp-copy-button {
|
|
105471
|
+
display: inline-flex;
|
|
105472
|
+
align-items: center;
|
|
105473
|
+
gap: 6px;
|
|
105474
|
+
padding: 6px 12px;
|
|
105475
|
+
border-radius: 6px;
|
|
105476
|
+
border: 1px solid ${cssManager.bdTheme("#e4e4e7", "#27272a")};
|
|
105477
|
+
background: transparent;
|
|
105478
|
+
color: ${cssManager.bdTheme("#71717a", "#a1a1aa")};
|
|
105479
|
+
font-size: 12px;
|
|
105480
|
+
font-weight: 500;
|
|
105481
|
+
cursor: pointer;
|
|
105482
|
+
transition: all 150ms ease;
|
|
105483
|
+
}
|
|
105484
|
+
|
|
105485
|
+
.smtp-copy-button:hover {
|
|
105486
|
+
background: ${cssManager.bdTheme("#f4f4f5", "#27272a")};
|
|
105487
|
+
color: ${cssManager.bdTheme("#18181b", "#fafafa")};
|
|
105488
|
+
border-color: ${cssManager.bdTheme("#d4d4d8", "#3f3f46")};
|
|
105489
|
+
}
|
|
105490
|
+
|
|
105491
|
+
/* Header subtitle enhancements */
|
|
105492
|
+
.smtp-header-subtitle {
|
|
105493
|
+
font-size: 13px;
|
|
105494
|
+
color: ${cssManager.bdTheme("#71717a", "#a1a1aa")};
|
|
105495
|
+
margin-top: 2px;
|
|
105496
|
+
display: flex;
|
|
105497
|
+
align-items: center;
|
|
105498
|
+
gap: 8px;
|
|
105499
|
+
flex-wrap: wrap;
|
|
105500
|
+
}
|
|
105501
|
+
|
|
105502
|
+
.smtp-direction-badge {
|
|
105503
|
+
display: inline-flex;
|
|
105504
|
+
align-items: center;
|
|
105505
|
+
padding: 2px 8px;
|
|
105506
|
+
border-radius: 9999px;
|
|
105507
|
+
font-size: 11px;
|
|
105508
|
+
font-weight: 600;
|
|
105509
|
+
text-transform: uppercase;
|
|
105510
|
+
letter-spacing: 0.3px;
|
|
105511
|
+
}
|
|
105512
|
+
|
|
105513
|
+
.smtp-direction-badge.inbound {
|
|
105514
|
+
background: ${cssManager.bdTheme("rgba(34, 197, 94, 0.12)", "rgba(34, 197, 94, 0.2)")};
|
|
105515
|
+
color: ${cssManager.bdTheme("#16a34a", "#22c55e")};
|
|
105516
|
+
}
|
|
105517
|
+
|
|
105518
|
+
.smtp-direction-badge.outbound {
|
|
105519
|
+
background: ${cssManager.bdTheme("rgba(59, 130, 246, 0.12)", "rgba(59, 130, 246, 0.2)")};
|
|
105520
|
+
color: ${cssManager.bdTheme("#2563eb", "#60a5fa")};
|
|
105521
|
+
}
|
|
105522
|
+
|
|
105523
|
+
.email-body-container {
|
|
105524
|
+
padding: 16px;
|
|
105525
|
+
font-family: monospace;
|
|
105526
|
+
font-size: 13px;
|
|
105527
|
+
max-height: 500px;
|
|
105528
|
+
overflow-y: auto;
|
|
105529
|
+
background: ${cssManager.bdTheme("#fafafa", "#0a0a0a")};
|
|
105530
|
+
white-space: pre-wrap;
|
|
105531
|
+
word-break: break-all;
|
|
105532
|
+
color: ${cssManager.bdTheme("#18181b", "#fafafa")};
|
|
105533
|
+
}
|
|
105534
|
+
|
|
105535
|
+
.tls-badge {
|
|
105536
|
+
display: inline-flex;
|
|
105537
|
+
align-items: center;
|
|
105538
|
+
padding: 2px 8px;
|
|
105539
|
+
border-radius: 4px;
|
|
105540
|
+
font-size: 12px;
|
|
105541
|
+
font-weight: 500;
|
|
105542
|
+
background: ${cssManager.bdTheme("#dcfce7", "rgba(34, 197, 94, 0.2)")};
|
|
105543
|
+
color: ${cssManager.bdTheme("#16a34a", "#22c55e")};
|
|
105544
|
+
}
|
|
105545
|
+
|
|
105546
|
+
.auth-row {
|
|
105547
|
+
display: flex;
|
|
105548
|
+
justify-content: space-between;
|
|
105549
|
+
align-items: center;
|
|
105550
|
+
padding: 8px 0;
|
|
105551
|
+
border-bottom: 1px solid ${cssManager.bdTheme("#f4f4f5", "#27272a")};
|
|
105552
|
+
}
|
|
105553
|
+
|
|
105554
|
+
.auth-row:last-child {
|
|
105555
|
+
border-bottom: none;
|
|
105556
|
+
}
|
|
105557
|
+
|
|
105558
|
+
.auth-label {
|
|
105559
|
+
font-size: 14px;
|
|
105560
|
+
font-weight: 500;
|
|
105561
|
+
color: ${cssManager.bdTheme("#18181b", "#fafafa")};
|
|
105562
|
+
}
|
|
105563
|
+
|
|
105564
|
+
.auth-domain {
|
|
105565
|
+
font-size: 12px;
|
|
105566
|
+
color: ${cssManager.bdTheme("#71717a", "#a1a1aa")};
|
|
105567
|
+
margin-left: 8px;
|
|
105568
|
+
}
|
|
105569
|
+
|
|
105570
|
+
.auth-badge {
|
|
105571
|
+
display: inline-flex;
|
|
105572
|
+
align-items: center;
|
|
105573
|
+
padding: 2px 8px;
|
|
105574
|
+
border-radius: 9999px;
|
|
105575
|
+
font-size: 12px;
|
|
105576
|
+
font-weight: 500;
|
|
105577
|
+
}
|
|
105578
|
+
|
|
105579
|
+
.auth-badge.pass {
|
|
105580
|
+
background: ${cssManager.bdTheme("#dcfce7", "rgba(34, 197, 94, 0.2)")};
|
|
105581
|
+
color: ${cssManager.bdTheme("#16a34a", "#22c55e")};
|
|
105582
|
+
}
|
|
105583
|
+
|
|
105584
|
+
.auth-badge.fail {
|
|
105585
|
+
background: ${cssManager.bdTheme("#fee2e2", "rgba(239, 68, 68, 0.2)")};
|
|
105586
|
+
color: ${cssManager.bdTheme("#dc2626", "#ef4444")};
|
|
105587
|
+
}
|
|
105588
|
+
|
|
105589
|
+
.auth-badge.softfail,
|
|
105590
|
+
.auth-badge.neutral,
|
|
105591
|
+
.auth-badge.none {
|
|
105592
|
+
background: ${cssManager.bdTheme("#fef9c3", "rgba(250, 204, 21, 0.2)")};
|
|
105593
|
+
color: ${cssManager.bdTheme("#ca8a04", "#facc15")};
|
|
105594
|
+
}
|
|
105595
|
+
|
|
105596
|
+
.rejection-card {
|
|
105597
|
+
border-color: ${cssManager.bdTheme("#fecaca", "rgba(239, 68, 68, 0.3)")};
|
|
105598
|
+
}
|
|
105599
|
+
|
|
105600
|
+
.rejection-content {
|
|
105601
|
+
font-size: 14px;
|
|
105602
|
+
color: ${cssManager.bdTheme("#dc2626", "#ef4444")};
|
|
105603
|
+
}
|
|
105604
|
+
|
|
105605
|
+
.rejection-label {
|
|
105606
|
+
font-size: 12px;
|
|
105607
|
+
font-weight: 600;
|
|
105608
|
+
text-transform: uppercase;
|
|
105609
|
+
letter-spacing: 0.05em;
|
|
105610
|
+
color: ${cssManager.bdTheme("#71717a", "#a1a1aa")};
|
|
105611
|
+
margin-bottom: 4px;
|
|
105612
|
+
}
|
|
105613
|
+
|
|
105614
|
+
.rejection-text {
|
|
105615
|
+
font-family: monospace;
|
|
105616
|
+
font-size: 13px;
|
|
105617
|
+
padding: 8px 12px;
|
|
105618
|
+
background: ${cssManager.bdTheme("#fef2f2", "rgba(239, 68, 68, 0.1)")};
|
|
105619
|
+
border-radius: 4px;
|
|
105620
|
+
margin-bottom: 12px;
|
|
105621
|
+
color: ${cssManager.bdTheme("#991b1b", "#fca5a5")};
|
|
105622
|
+
}
|
|
105623
|
+
|
|
105624
|
+
.rejection-text:last-child {
|
|
105625
|
+
margin-bottom: 0;
|
|
105626
|
+
}
|
|
105627
|
+
|
|
105628
|
+
.no-email {
|
|
105629
|
+
padding: 48px 24px;
|
|
105630
|
+
text-align: center;
|
|
105631
|
+
color: ${cssManager.bdTheme("#71717a", "#a1a1aa")};
|
|
105632
|
+
}
|
|
105633
|
+
`
|
|
105634
|
+
]);
|
|
105635
|
+
__runInitializers(_init29, 1, SzMtaDetailView);
|
|
105636
|
+
|
|
104473
105637
|
// ts_web/elements/sz-demo-view-dashboard.ts
|
|
104474
105638
|
init_dist_ts29();
|
|
104475
|
-
var _SzDemoViewDashboard_decorators,
|
|
105639
|
+
var _SzDemoViewDashboard_decorators, _init30, _a30;
|
|
104476
105640
|
_SzDemoViewDashboard_decorators = [t4("sz-demo-view-dashboard")];
|
|
104477
|
-
var SzDemoViewDashboard = class extends (
|
|
105641
|
+
var SzDemoViewDashboard = class extends (_a30 = DeesElement) {
|
|
104478
105642
|
appui = null;
|
|
104479
105643
|
async onActivate(context2) {
|
|
104480
105644
|
this.appui = context2.appui;
|
|
@@ -104610,21 +105774,21 @@ var SzDemoViewDashboard = class extends (_a28 = DeesElement) {
|
|
|
104610
105774
|
`;
|
|
104611
105775
|
}
|
|
104612
105776
|
};
|
|
104613
|
-
|
|
104614
|
-
SzDemoViewDashboard = __decorateElement(
|
|
104615
|
-
__runInitializers(
|
|
105777
|
+
_init30 = __decoratorStart(_a30);
|
|
105778
|
+
SzDemoViewDashboard = __decorateElement(_init30, 0, "SzDemoViewDashboard", _SzDemoViewDashboard_decorators, SzDemoViewDashboard);
|
|
105779
|
+
__runInitializers(_init30, 1, SzDemoViewDashboard);
|
|
104616
105780
|
|
|
104617
105781
|
// ts_web/elements/sz-demo-view-services.ts
|
|
104618
105782
|
init_dist_ts29();
|
|
104619
|
-
var _selectedPlatformService_dec, _selectedService_dec, _currentView_dec2,
|
|
105783
|
+
var _selectedPlatformService_dec, _selectedService_dec, _currentView_dec2, _a31, _SzDemoViewServices_decorators, _init31, _currentView2, _selectedService, _selectedPlatformService;
|
|
104620
105784
|
_SzDemoViewServices_decorators = [t4("sz-demo-view-services")];
|
|
104621
|
-
var SzDemoViewServices = class extends (
|
|
105785
|
+
var SzDemoViewServices = class extends (_a31 = DeesElement, _currentView_dec2 = [r5()], _selectedService_dec = [r5()], _selectedPlatformService_dec = [r5()], _a31) {
|
|
104622
105786
|
constructor() {
|
|
104623
105787
|
super(...arguments);
|
|
104624
105788
|
__publicField(this, "appui", null);
|
|
104625
|
-
__privateAdd(this, _currentView2, __runInitializers(
|
|
104626
|
-
__privateAdd(this, _selectedService, __runInitializers(
|
|
104627
|
-
__privateAdd(this, _selectedPlatformService, __runInitializers(
|
|
105789
|
+
__privateAdd(this, _currentView2, __runInitializers(_init31, 8, this, "list")), __runInitializers(_init31, 11, this);
|
|
105790
|
+
__privateAdd(this, _selectedService, __runInitializers(_init31, 12, this, null)), __runInitializers(_init31, 15, this);
|
|
105791
|
+
__privateAdd(this, _selectedPlatformService, __runInitializers(_init31, 16, this, null)), __runInitializers(_init31, 19, this);
|
|
104628
105792
|
__publicField(this, "demoServices", [
|
|
104629
105793
|
{
|
|
104630
105794
|
id: "1",
|
|
@@ -104905,14 +106069,14 @@ var SzDemoViewServices = class extends (_a29 = DeesElement, _currentView_dec2 =
|
|
|
104905
106069
|
onDeactivate() {
|
|
104906
106070
|
}
|
|
104907
106071
|
};
|
|
104908
|
-
|
|
106072
|
+
_init31 = __decoratorStart(_a31);
|
|
104909
106073
|
_currentView2 = new WeakMap();
|
|
104910
106074
|
_selectedService = new WeakMap();
|
|
104911
106075
|
_selectedPlatformService = new WeakMap();
|
|
104912
|
-
__decorateElement(
|
|
104913
|
-
__decorateElement(
|
|
104914
|
-
__decorateElement(
|
|
104915
|
-
SzDemoViewServices = __decorateElement(
|
|
106076
|
+
__decorateElement(_init31, 4, "currentView", _currentView_dec2, SzDemoViewServices, _currentView2);
|
|
106077
|
+
__decorateElement(_init31, 4, "selectedService", _selectedService_dec, SzDemoViewServices, _selectedService);
|
|
106078
|
+
__decorateElement(_init31, 4, "selectedPlatformService", _selectedPlatformService_dec, SzDemoViewServices, _selectedPlatformService);
|
|
106079
|
+
SzDemoViewServices = __decorateElement(_init31, 0, "SzDemoViewServices", _SzDemoViewServices_decorators, SzDemoViewServices);
|
|
104916
106080
|
__publicField(SzDemoViewServices, "styles", [
|
|
104917
106081
|
cssManager.defaultStyles,
|
|
104918
106082
|
i`
|
|
@@ -105044,18 +106208,18 @@ __publicField(SzDemoViewServices, "styles", [
|
|
|
105044
106208
|
}
|
|
105045
106209
|
`
|
|
105046
106210
|
]);
|
|
105047
|
-
__runInitializers(
|
|
106211
|
+
__runInitializers(_init31, 1, SzDemoViewServices);
|
|
105048
106212
|
|
|
105049
106213
|
// ts_web/elements/sz-demo-view-network.ts
|
|
105050
106214
|
init_dist_ts29();
|
|
105051
|
-
var _selectedDomain_dec, _currentTab_dec,
|
|
106215
|
+
var _selectedDomain_dec, _currentTab_dec, _a32, _SzDemoViewNetwork_decorators, _init32, _currentTab, _selectedDomain;
|
|
105052
106216
|
_SzDemoViewNetwork_decorators = [t4("sz-demo-view-network")];
|
|
105053
|
-
var SzDemoViewNetwork = class extends (
|
|
106217
|
+
var SzDemoViewNetwork = class extends (_a32 = DeesElement, _currentTab_dec = [r5()], _selectedDomain_dec = [r5()], _a32) {
|
|
105054
106218
|
constructor() {
|
|
105055
106219
|
super(...arguments);
|
|
105056
106220
|
__publicField(this, "appui", null);
|
|
105057
|
-
__privateAdd(this, _currentTab, __runInitializers(
|
|
105058
|
-
__privateAdd(this, _selectedDomain, __runInitializers(
|
|
106221
|
+
__privateAdd(this, _currentTab, __runInitializers(_init32, 8, this, "proxy")), __runInitializers(_init32, 11, this);
|
|
106222
|
+
__privateAdd(this, _selectedDomain, __runInitializers(_init32, 12, this, null)), __runInitializers(_init32, 15, this);
|
|
105059
106223
|
__publicField(this, "demoProxyRoutes", [
|
|
105060
106224
|
{ id: "1", domain: "api.example.com", target: "http://api-gateway:3000", ssl: true, status: "active" },
|
|
105061
106225
|
{ id: "2", domain: "app.example.com", target: "http://frontend:8080", ssl: true, status: "active" },
|
|
@@ -105303,12 +106467,12 @@ var SzDemoViewNetwork = class extends (_a30 = DeesElement, _currentTab_dec = [r5
|
|
|
105303
106467
|
`;
|
|
105304
106468
|
}
|
|
105305
106469
|
};
|
|
105306
|
-
|
|
106470
|
+
_init32 = __decoratorStart(_a32);
|
|
105307
106471
|
_currentTab = new WeakMap();
|
|
105308
106472
|
_selectedDomain = new WeakMap();
|
|
105309
|
-
__decorateElement(
|
|
105310
|
-
__decorateElement(
|
|
105311
|
-
SzDemoViewNetwork = __decorateElement(
|
|
106473
|
+
__decorateElement(_init32, 4, "currentTab", _currentTab_dec, SzDemoViewNetwork, _currentTab);
|
|
106474
|
+
__decorateElement(_init32, 4, "selectedDomain", _selectedDomain_dec, SzDemoViewNetwork, _selectedDomain);
|
|
106475
|
+
SzDemoViewNetwork = __decorateElement(_init32, 0, "SzDemoViewNetwork", _SzDemoViewNetwork_decorators, SzDemoViewNetwork);
|
|
105312
106476
|
__publicField(SzDemoViewNetwork, "styles", [
|
|
105313
106477
|
cssManager.defaultStyles,
|
|
105314
106478
|
i`
|
|
@@ -105396,17 +106560,17 @@ __publicField(SzDemoViewNetwork, "styles", [
|
|
|
105396
106560
|
}
|
|
105397
106561
|
`
|
|
105398
106562
|
]);
|
|
105399
|
-
__runInitializers(
|
|
106563
|
+
__runInitializers(_init32, 1, SzDemoViewNetwork);
|
|
105400
106564
|
|
|
105401
106565
|
// ts_web/elements/sz-demo-view-registries.ts
|
|
105402
106566
|
init_dist_ts29();
|
|
105403
|
-
var _currentTab_dec2,
|
|
106567
|
+
var _currentTab_dec2, _a33, _SzDemoViewRegistries_decorators, _init33, _currentTab2;
|
|
105404
106568
|
_SzDemoViewRegistries_decorators = [t4("sz-demo-view-registries")];
|
|
105405
|
-
var SzDemoViewRegistries = class extends (
|
|
106569
|
+
var SzDemoViewRegistries = class extends (_a33 = DeesElement, _currentTab_dec2 = [r5()], _a33) {
|
|
105406
106570
|
constructor() {
|
|
105407
106571
|
super(...arguments);
|
|
105408
106572
|
__publicField(this, "appui", null);
|
|
105409
|
-
__privateAdd(this, _currentTab2, __runInitializers(
|
|
106573
|
+
__privateAdd(this, _currentTab2, __runInitializers(_init33, 8, this, "onebox")), __runInitializers(_init33, 11, this);
|
|
105410
106574
|
__publicField(this, "demoOneboxImages", [
|
|
105411
106575
|
{ id: "1", name: "api-gateway", tags: ["latest", "v2.1.0", "v2.0.0"], size: "256 MB", updated: "2024-01-20", pulls: 142 },
|
|
105412
106576
|
{ id: "2", name: "frontend", tags: ["latest", "v1.5.0"], size: "128 MB", updated: "2024-01-19", pulls: 89 },
|
|
@@ -105523,10 +106687,10 @@ var SzDemoViewRegistries = class extends (_a31 = DeesElement, _currentTab_dec2 =
|
|
|
105523
106687
|
`;
|
|
105524
106688
|
}
|
|
105525
106689
|
};
|
|
105526
|
-
|
|
106690
|
+
_init33 = __decoratorStart(_a33);
|
|
105527
106691
|
_currentTab2 = new WeakMap();
|
|
105528
|
-
__decorateElement(
|
|
105529
|
-
SzDemoViewRegistries = __decorateElement(
|
|
106692
|
+
__decorateElement(_init33, 4, "currentTab", _currentTab_dec2, SzDemoViewRegistries, _currentTab2);
|
|
106693
|
+
SzDemoViewRegistries = __decorateElement(_init33, 0, "SzDemoViewRegistries", _SzDemoViewRegistries_decorators, SzDemoViewRegistries);
|
|
105530
106694
|
__publicField(SzDemoViewRegistries, "styles", [
|
|
105531
106695
|
cssManager.defaultStyles,
|
|
105532
106696
|
i`
|
|
@@ -105555,207 +106719,575 @@ __publicField(SzDemoViewRegistries, "styles", [
|
|
|
105555
106719
|
margin: 0;
|
|
105556
106720
|
}
|
|
105557
106721
|
|
|
105558
|
-
.tabs {
|
|
105559
|
-
display: flex;
|
|
105560
|
-
gap: 4px;
|
|
105561
|
-
margin-bottom: 24px;
|
|
105562
|
-
border-bottom: 1px solid ${cssManager.bdTheme("#e4e4e7", "#27272a")};
|
|
105563
|
-
}
|
|
105564
|
-
|
|
105565
|
-
.tab {
|
|
105566
|
-
padding: 10px 16px;
|
|
105567
|
-
font-size: 14px;
|
|
105568
|
-
font-weight: 500;
|
|
105569
|
-
color: ${cssManager.bdTheme("#71717a", "#a1a1aa")};
|
|
105570
|
-
background: transparent;
|
|
105571
|
-
border: none;
|
|
105572
|
-
cursor: pointer;
|
|
105573
|
-
position: relative;
|
|
105574
|
-
transition: color 200ms ease;
|
|
105575
|
-
}
|
|
105576
|
-
|
|
105577
|
-
.tab:hover {
|
|
105578
|
-
color: ${cssManager.bdTheme("#18181b", "#fafafa")};
|
|
105579
|
-
}
|
|
105580
|
-
|
|
105581
|
-
.tab.active {
|
|
105582
|
-
color: ${cssManager.bdTheme("#18181b", "#fafafa")};
|
|
105583
|
-
}
|
|
105584
|
-
|
|
105585
|
-
.tab.active::after {
|
|
105586
|
-
content: '';
|
|
105587
|
-
position: absolute;
|
|
105588
|
-
bottom: -1px;
|
|
105589
|
-
left: 0;
|
|
105590
|
-
right: 0;
|
|
105591
|
-
height: 2px;
|
|
105592
|
-
background: ${cssManager.bdTheme("#18181b", "#fafafa")};
|
|
105593
|
-
border-radius: 1px 1px 0 0;
|
|
105594
|
-
}
|
|
105595
|
-
`
|
|
105596
|
-
]);
|
|
105597
|
-
__runInitializers(
|
|
105598
|
-
|
|
105599
|
-
// ts_web/elements/sz-demo-view-tokens.ts
|
|
105600
|
-
init_dist_ts29();
|
|
105601
|
-
var _SzDemoViewTokens_decorators,
|
|
105602
|
-
_SzDemoViewTokens_decorators = [t4("sz-demo-view-tokens")];
|
|
105603
|
-
var SzDemoViewTokens = class extends (
|
|
105604
|
-
appui = null;
|
|
105605
|
-
async onActivate(context2) {
|
|
105606
|
-
this.appui = context2.appui;
|
|
105607
|
-
this.appui.setSecondaryMenu({
|
|
105608
|
-
heading: "Tokens",
|
|
105609
|
-
groups: [
|
|
105610
|
-
{
|
|
105611
|
-
name: "Actions",
|
|
105612
|
-
items: [
|
|
105613
|
-
{ type: "action", key: "Create Global Token", iconName: "lucide:Plus", action: () => {
|
|
105614
|
-
console.log("Create global token");
|
|
105615
|
-
} },
|
|
105616
|
-
{ type: "action", key: "Create CI Token", iconName: "lucide:GitBranch", action: () => {
|
|
105617
|
-
console.log("Create CI token");
|
|
105618
|
-
} }
|
|
105619
|
-
]
|
|
105620
|
-
},
|
|
105621
|
-
{
|
|
105622
|
-
name: "Token Types",
|
|
105623
|
-
items: [
|
|
105624
|
-
{ key: "Global Tokens", iconName: "lucide:Key", badge: "3", action: () => {
|
|
105625
|
-
console.log("Filter global");
|
|
105626
|
-
} },
|
|
105627
|
-
{ key: "CI Tokens", iconName: "lucide:Cpu", badge: "3", action: () => {
|
|
105628
|
-
console.log("Filter CI");
|
|
105629
|
-
} }
|
|
105630
|
-
]
|
|
105631
|
-
}
|
|
105632
|
-
]
|
|
105633
|
-
});
|
|
105634
|
-
}
|
|
105635
|
-
onDeactivate() {
|
|
105636
|
-
}
|
|
105637
|
-
demoGlobalTokens = [
|
|
105638
|
-
{ id: "1", name: "CI/CD Pipeline", type: "global", createdAt: "2024-01-15", lastUsed: "2024-01-20" },
|
|
105639
|
-
{ id: "2", name: "Development", type: "global", createdAt: "2024-01-10" },
|
|
105640
|
-
{ id: "3", name: "Production Deploy", type: "global", createdAt: "2024-01-05", lastUsed: "2024-01-19" }
|
|
105641
|
-
];
|
|
105642
|
-
demoCiTokens = [
|
|
105643
|
-
{ id: "4", name: "api-gateway-ci", type: "ci", service: "api-gateway", createdAt: "2024-01-18", lastUsed: "2024-01-20" },
|
|
105644
|
-
{ id: "5", name: "frontend-ci", type: "ci", service: "frontend", createdAt: "2024-01-12", lastUsed: "2024-01-19" },
|
|
105645
|
-
{ id: "6", name: "worker-service-ci", type: "ci", service: "worker-service", createdAt: "2024-01-08" }
|
|
105646
|
-
];
|
|
105647
|
-
static styles = [
|
|
105648
|
-
cssManager.defaultStyles,
|
|
105649
|
-
i`
|
|
105650
|
-
:host {
|
|
105651
|
-
display: block;
|
|
105652
|
-
padding: 24px;
|
|
105653
|
-
height: 100%;
|
|
105654
|
-
overflow-y: auto;
|
|
105655
|
-
box-sizing: border-box;
|
|
105656
|
-
}
|
|
105657
|
-
|
|
105658
|
-
.page-header {
|
|
105659
|
-
margin-bottom: 24px;
|
|
105660
|
-
}
|
|
105661
|
-
|
|
105662
|
-
.page-title {
|
|
105663
|
-
font-size: 24px;
|
|
105664
|
-
font-weight: 700;
|
|
105665
|
-
color: ${cssManager.bdTheme("#18181b", "#fafafa")};
|
|
105666
|
-
margin: 0 0 8px 0;
|
|
105667
|
-
}
|
|
105668
|
-
|
|
105669
|
-
.page-subtitle {
|
|
105670
|
-
font-size: 14px;
|
|
105671
|
-
color: ${cssManager.bdTheme("#71717a", "#a1a1aa")};
|
|
105672
|
-
margin: 0;
|
|
106722
|
+
.tabs {
|
|
106723
|
+
display: flex;
|
|
106724
|
+
gap: 4px;
|
|
106725
|
+
margin-bottom: 24px;
|
|
106726
|
+
border-bottom: 1px solid ${cssManager.bdTheme("#e4e4e7", "#27272a")};
|
|
106727
|
+
}
|
|
106728
|
+
|
|
106729
|
+
.tab {
|
|
106730
|
+
padding: 10px 16px;
|
|
106731
|
+
font-size: 14px;
|
|
106732
|
+
font-weight: 500;
|
|
106733
|
+
color: ${cssManager.bdTheme("#71717a", "#a1a1aa")};
|
|
106734
|
+
background: transparent;
|
|
106735
|
+
border: none;
|
|
106736
|
+
cursor: pointer;
|
|
106737
|
+
position: relative;
|
|
106738
|
+
transition: color 200ms ease;
|
|
106739
|
+
}
|
|
106740
|
+
|
|
106741
|
+
.tab:hover {
|
|
106742
|
+
color: ${cssManager.bdTheme("#18181b", "#fafafa")};
|
|
106743
|
+
}
|
|
106744
|
+
|
|
106745
|
+
.tab.active {
|
|
106746
|
+
color: ${cssManager.bdTheme("#18181b", "#fafafa")};
|
|
106747
|
+
}
|
|
106748
|
+
|
|
106749
|
+
.tab.active::after {
|
|
106750
|
+
content: '';
|
|
106751
|
+
position: absolute;
|
|
106752
|
+
bottom: -1px;
|
|
106753
|
+
left: 0;
|
|
106754
|
+
right: 0;
|
|
106755
|
+
height: 2px;
|
|
106756
|
+
background: ${cssManager.bdTheme("#18181b", "#fafafa")};
|
|
106757
|
+
border-radius: 1px 1px 0 0;
|
|
106758
|
+
}
|
|
106759
|
+
`
|
|
106760
|
+
]);
|
|
106761
|
+
__runInitializers(_init33, 1, SzDemoViewRegistries);
|
|
106762
|
+
|
|
106763
|
+
// ts_web/elements/sz-demo-view-tokens.ts
|
|
106764
|
+
init_dist_ts29();
|
|
106765
|
+
var _SzDemoViewTokens_decorators, _init34, _a34;
|
|
106766
|
+
_SzDemoViewTokens_decorators = [t4("sz-demo-view-tokens")];
|
|
106767
|
+
var SzDemoViewTokens = class extends (_a34 = DeesElement) {
|
|
106768
|
+
appui = null;
|
|
106769
|
+
async onActivate(context2) {
|
|
106770
|
+
this.appui = context2.appui;
|
|
106771
|
+
this.appui.setSecondaryMenu({
|
|
106772
|
+
heading: "Tokens",
|
|
106773
|
+
groups: [
|
|
106774
|
+
{
|
|
106775
|
+
name: "Actions",
|
|
106776
|
+
items: [
|
|
106777
|
+
{ type: "action", key: "Create Global Token", iconName: "lucide:Plus", action: () => {
|
|
106778
|
+
console.log("Create global token");
|
|
106779
|
+
} },
|
|
106780
|
+
{ type: "action", key: "Create CI Token", iconName: "lucide:GitBranch", action: () => {
|
|
106781
|
+
console.log("Create CI token");
|
|
106782
|
+
} }
|
|
106783
|
+
]
|
|
106784
|
+
},
|
|
106785
|
+
{
|
|
106786
|
+
name: "Token Types",
|
|
106787
|
+
items: [
|
|
106788
|
+
{ key: "Global Tokens", iconName: "lucide:Key", badge: "3", action: () => {
|
|
106789
|
+
console.log("Filter global");
|
|
106790
|
+
} },
|
|
106791
|
+
{ key: "CI Tokens", iconName: "lucide:Cpu", badge: "3", action: () => {
|
|
106792
|
+
console.log("Filter CI");
|
|
106793
|
+
} }
|
|
106794
|
+
]
|
|
106795
|
+
}
|
|
106796
|
+
]
|
|
106797
|
+
});
|
|
106798
|
+
}
|
|
106799
|
+
onDeactivate() {
|
|
106800
|
+
}
|
|
106801
|
+
demoGlobalTokens = [
|
|
106802
|
+
{ id: "1", name: "CI/CD Pipeline", type: "global", createdAt: "2024-01-15", lastUsed: "2024-01-20" },
|
|
106803
|
+
{ id: "2", name: "Development", type: "global", createdAt: "2024-01-10" },
|
|
106804
|
+
{ id: "3", name: "Production Deploy", type: "global", createdAt: "2024-01-05", lastUsed: "2024-01-19" }
|
|
106805
|
+
];
|
|
106806
|
+
demoCiTokens = [
|
|
106807
|
+
{ id: "4", name: "api-gateway-ci", type: "ci", service: "api-gateway", createdAt: "2024-01-18", lastUsed: "2024-01-20" },
|
|
106808
|
+
{ id: "5", name: "frontend-ci", type: "ci", service: "frontend", createdAt: "2024-01-12", lastUsed: "2024-01-19" },
|
|
106809
|
+
{ id: "6", name: "worker-service-ci", type: "ci", service: "worker-service", createdAt: "2024-01-08" }
|
|
106810
|
+
];
|
|
106811
|
+
static styles = [
|
|
106812
|
+
cssManager.defaultStyles,
|
|
106813
|
+
i`
|
|
106814
|
+
:host {
|
|
106815
|
+
display: block;
|
|
106816
|
+
padding: 24px;
|
|
106817
|
+
height: 100%;
|
|
106818
|
+
overflow-y: auto;
|
|
106819
|
+
box-sizing: border-box;
|
|
106820
|
+
}
|
|
106821
|
+
|
|
106822
|
+
.page-header {
|
|
106823
|
+
margin-bottom: 24px;
|
|
106824
|
+
}
|
|
106825
|
+
|
|
106826
|
+
.page-title {
|
|
106827
|
+
font-size: 24px;
|
|
106828
|
+
font-weight: 700;
|
|
106829
|
+
color: ${cssManager.bdTheme("#18181b", "#fafafa")};
|
|
106830
|
+
margin: 0 0 8px 0;
|
|
106831
|
+
}
|
|
106832
|
+
|
|
106833
|
+
.page-subtitle {
|
|
106834
|
+
font-size: 14px;
|
|
106835
|
+
color: ${cssManager.bdTheme("#71717a", "#a1a1aa")};
|
|
106836
|
+
margin: 0;
|
|
106837
|
+
}
|
|
106838
|
+
`
|
|
106839
|
+
];
|
|
106840
|
+
render() {
|
|
106841
|
+
return b2`
|
|
106842
|
+
<div class="page-header">
|
|
106843
|
+
<h1 class="page-title">Tokens</h1>
|
|
106844
|
+
<p class="page-subtitle">Manage registry access tokens for CI/CD pipelines</p>
|
|
106845
|
+
</div>
|
|
106846
|
+
|
|
106847
|
+
<sz-tokens-view
|
|
106848
|
+
.globalTokens=${this.demoGlobalTokens}
|
|
106849
|
+
.ciTokens=${this.demoCiTokens}
|
|
106850
|
+
@create=${(e11) => console.log("Create token:", e11.detail)}
|
|
106851
|
+
@copy=${(e11) => console.log("Copy token:", e11.detail)}
|
|
106852
|
+
@regenerate=${(e11) => console.log("Regenerate token:", e11.detail)}
|
|
106853
|
+
@delete=${(e11) => console.log("Delete token:", e11.detail)}
|
|
106854
|
+
></sz-tokens-view>
|
|
106855
|
+
`;
|
|
106856
|
+
}
|
|
106857
|
+
};
|
|
106858
|
+
_init34 = __decoratorStart(_a34);
|
|
106859
|
+
SzDemoViewTokens = __decorateElement(_init34, 0, "SzDemoViewTokens", _SzDemoViewTokens_decorators, SzDemoViewTokens);
|
|
106860
|
+
__runInitializers(_init34, 1, SzDemoViewTokens);
|
|
106861
|
+
|
|
106862
|
+
// ts_web/elements/sz-demo-view-settings.ts
|
|
106863
|
+
init_dist_ts29();
|
|
106864
|
+
var _SzDemoViewSettings_decorators, _init35, _a35;
|
|
106865
|
+
_SzDemoViewSettings_decorators = [t4("sz-demo-view-settings")];
|
|
106866
|
+
var SzDemoViewSettings = class extends (_a35 = DeesElement) {
|
|
106867
|
+
appui = null;
|
|
106868
|
+
async onActivate(context2) {
|
|
106869
|
+
this.appui = context2.appui;
|
|
106870
|
+
this.appui.setSecondaryMenu({
|
|
106871
|
+
heading: "Settings",
|
|
106872
|
+
groups: [
|
|
106873
|
+
{
|
|
106874
|
+
name: "Categories",
|
|
106875
|
+
items: [
|
|
106876
|
+
{ key: "General", iconName: "lucide:Settings", action: () => {
|
|
106877
|
+
console.log("General settings");
|
|
106878
|
+
} },
|
|
106879
|
+
{ key: "Network", iconName: "lucide:Network", action: () => {
|
|
106880
|
+
console.log("Network settings");
|
|
106881
|
+
} },
|
|
106882
|
+
{ key: "Security", iconName: "lucide:Shield", action: () => {
|
|
106883
|
+
console.log("Security settings");
|
|
106884
|
+
} },
|
|
106885
|
+
{ key: "Certificates", iconName: "lucide:FileBadge", action: () => {
|
|
106886
|
+
console.log("Certificate settings");
|
|
106887
|
+
} }
|
|
106888
|
+
]
|
|
106889
|
+
},
|
|
106890
|
+
{
|
|
106891
|
+
name: "Actions",
|
|
106892
|
+
items: [
|
|
106893
|
+
{ type: "action", key: "Export Config", iconName: "lucide:Download", action: () => {
|
|
106894
|
+
console.log("Export config");
|
|
106895
|
+
} },
|
|
106896
|
+
{ type: "action", key: "Import Config", iconName: "lucide:Upload", action: () => {
|
|
106897
|
+
console.log("Import config");
|
|
106898
|
+
} },
|
|
106899
|
+
{ type: "action", variant: "danger", key: "Reset to Default", iconName: "lucide:RotateCcw", confirmMessage: "Are you sure you want to reset all settings to default?", action: () => {
|
|
106900
|
+
console.log("Reset settings");
|
|
106901
|
+
} }
|
|
106902
|
+
]
|
|
106903
|
+
}
|
|
106904
|
+
]
|
|
106905
|
+
});
|
|
106906
|
+
}
|
|
106907
|
+
onDeactivate() {
|
|
106908
|
+
}
|
|
106909
|
+
demoSettings = {
|
|
106910
|
+
darkMode: true,
|
|
106911
|
+
cloudflareToken: "",
|
|
106912
|
+
cloudflareZoneId: "",
|
|
106913
|
+
autoRenewCerts: true,
|
|
106914
|
+
renewalThreshold: 30,
|
|
106915
|
+
acmeEmail: "admin@serve.zone",
|
|
106916
|
+
httpPort: 80,
|
|
106917
|
+
httpsPort: 443,
|
|
106918
|
+
forceHttps: true
|
|
106919
|
+
};
|
|
106920
|
+
static styles = [
|
|
106921
|
+
cssManager.defaultStyles,
|
|
106922
|
+
i`
|
|
106923
|
+
:host {
|
|
106924
|
+
display: block;
|
|
106925
|
+
padding: 24px;
|
|
106926
|
+
height: 100%;
|
|
106927
|
+
overflow-y: auto;
|
|
106928
|
+
box-sizing: border-box;
|
|
106929
|
+
}
|
|
106930
|
+
|
|
106931
|
+
.page-header {
|
|
106932
|
+
margin-bottom: 24px;
|
|
106933
|
+
}
|
|
106934
|
+
|
|
106935
|
+
.page-title {
|
|
106936
|
+
font-size: 24px;
|
|
106937
|
+
font-weight: 700;
|
|
106938
|
+
color: ${cssManager.bdTheme("#18181b", "#fafafa")};
|
|
106939
|
+
margin: 0 0 8px 0;
|
|
106940
|
+
}
|
|
106941
|
+
|
|
106942
|
+
.page-subtitle {
|
|
106943
|
+
font-size: 14px;
|
|
106944
|
+
color: ${cssManager.bdTheme("#71717a", "#a1a1aa")};
|
|
106945
|
+
margin: 0;
|
|
106946
|
+
}
|
|
106947
|
+
|
|
106948
|
+
.settings-container {
|
|
106949
|
+
max-width: 800px;
|
|
105673
106950
|
}
|
|
105674
106951
|
`
|
|
105675
106952
|
];
|
|
105676
106953
|
render() {
|
|
105677
106954
|
return b2`
|
|
105678
106955
|
<div class="page-header">
|
|
105679
|
-
<h1 class="page-title">
|
|
105680
|
-
<p class="page-subtitle">
|
|
106956
|
+
<h1 class="page-title">Settings</h1>
|
|
106957
|
+
<p class="page-subtitle">Configure your onebox instance</p>
|
|
105681
106958
|
</div>
|
|
105682
106959
|
|
|
105683
|
-
<
|
|
105684
|
-
|
|
105685
|
-
|
|
105686
|
-
|
|
105687
|
-
|
|
105688
|
-
|
|
105689
|
-
|
|
105690
|
-
|
|
106960
|
+
<div class="settings-container">
|
|
106961
|
+
<sz-settings-view
|
|
106962
|
+
.settings=${this.demoSettings}
|
|
106963
|
+
currentUser="admin"
|
|
106964
|
+
@setting-change=${(e11) => console.log("Setting change:", e11.detail)}
|
|
106965
|
+
@change-password=${(e11) => console.log("Change password:", e11.detail)}
|
|
106966
|
+
@reset=${() => console.log("Reset settings")}
|
|
106967
|
+
@save=${(e11) => console.log("Save settings:", e11.detail)}
|
|
106968
|
+
></sz-settings-view>
|
|
106969
|
+
</div>
|
|
105691
106970
|
`;
|
|
105692
106971
|
}
|
|
105693
106972
|
};
|
|
105694
|
-
|
|
105695
|
-
|
|
105696
|
-
__runInitializers(
|
|
106973
|
+
_init35 = __decoratorStart(_a35);
|
|
106974
|
+
SzDemoViewSettings = __decorateElement(_init35, 0, "SzDemoViewSettings", _SzDemoViewSettings_decorators, SzDemoViewSettings);
|
|
106975
|
+
__runInitializers(_init35, 1, SzDemoViewSettings);
|
|
105697
106976
|
|
|
105698
|
-
// ts_web/elements/sz-demo-view-
|
|
106977
|
+
// ts_web/elements/sz-demo-view-mta.ts
|
|
105699
106978
|
init_dist_ts29();
|
|
105700
|
-
var
|
|
105701
|
-
|
|
105702
|
-
var
|
|
105703
|
-
|
|
106979
|
+
var _currentDirectionFilter_dec, _selectedEmail_dec, _currentView_dec3, _a36, _SzDemoViewMta_decorators, _init36, _currentView3, _selectedEmail, _currentDirectionFilter;
|
|
106980
|
+
_SzDemoViewMta_decorators = [t4("sz-demo-view-mta")];
|
|
106981
|
+
var SzDemoViewMta = class extends (_a36 = DeesElement, _currentView_dec3 = [r5()], _selectedEmail_dec = [r5()], _currentDirectionFilter_dec = [r5()], _a36) {
|
|
106982
|
+
constructor() {
|
|
106983
|
+
super(...arguments);
|
|
106984
|
+
__publicField(this, "appui", null);
|
|
106985
|
+
__privateAdd(this, _currentView3, __runInitializers(_init36, 8, this, "list")), __runInitializers(_init36, 11, this);
|
|
106986
|
+
__privateAdd(this, _selectedEmail, __runInitializers(_init36, 12, this, null)), __runInitializers(_init36, 15, this);
|
|
106987
|
+
__privateAdd(this, _currentDirectionFilter, __runInitializers(_init36, 16, this, "all")), __runInitializers(_init36, 19, this);
|
|
106988
|
+
__publicField(this, "demoEmails", [
|
|
106989
|
+
{ id: "1", direction: "outbound", status: "delivered", from: "noreply@serve.zone", to: "user@example.com", subject: "Welcome to serve.zone", timestamp: "2024-01-15 14:30:22", messageId: "<abc123@serve.zone>", size: "12.4 KB" },
|
|
106990
|
+
{ id: "2", direction: "outbound", status: "bounced", from: "alerts@serve.zone", to: "invalid@nowhere.test", subject: "Service Alert: CPU Usage High", timestamp: "2024-01-15 14:28:10", messageId: "<def456@serve.zone>", size: "8.2 KB" },
|
|
106991
|
+
{ id: "3", direction: "inbound", status: "delivered", from: "support@customer.com", to: "admin@serve.zone", subject: "Re: Infrastructure Review", timestamp: "2024-01-15 14:25:00", messageId: "<ghi789@customer.com>", size: "24.1 KB" },
|
|
106992
|
+
{ id: "4", direction: "outbound", status: "rejected", from: "billing@serve.zone", to: "blocked@spam-domain.test", subject: "Invoice #2024-001", timestamp: "2024-01-15 14:20:45", messageId: "<jkl012@serve.zone>", size: "45.6 KB" },
|
|
106993
|
+
{ id: "5", direction: "outbound", status: "deferred", from: "noreply@serve.zone", to: "slow@remote-server.test", subject: "Password Reset Request", timestamp: "2024-01-15 14:15:30", messageId: "<mno345@serve.zone>", size: "6.8 KB" },
|
|
106994
|
+
{ id: "6", direction: "inbound", status: "delivered", from: "ci@github.com", to: "devops@serve.zone", subject: "Build #4521 passed", timestamp: "2024-01-15 14:10:00", messageId: "<pqr678@github.com>", size: "15.3 KB" },
|
|
106995
|
+
{ id: "7", direction: "outbound", status: "pending", from: "reports@serve.zone", to: "team@serve.zone", subject: "Weekly Infrastructure Report", timestamp: "2024-01-15 14:05:00", messageId: "<stu901@serve.zone>", size: "102.7 KB" },
|
|
106996
|
+
{ id: "8", direction: "inbound", status: "delivered", from: "monitoring@uptime.io", to: "ops@serve.zone", subject: "Uptime Report: 99.98%", timestamp: "2024-01-15 13:55:00", messageId: "<vwx234@uptime.io>", size: "9.1 KB" }
|
|
106997
|
+
]);
|
|
106998
|
+
__publicField(this, "demoEmailDetails", {
|
|
106999
|
+
"1": {
|
|
107000
|
+
id: "1",
|
|
107001
|
+
direction: "outbound",
|
|
107002
|
+
status: "delivered",
|
|
107003
|
+
from: "noreply@serve.zone",
|
|
107004
|
+
to: "user@example.com",
|
|
107005
|
+
toList: ["user@example.com"],
|
|
107006
|
+
subject: "Welcome to serve.zone",
|
|
107007
|
+
timestamp: "2024-01-15 14:30:22",
|
|
107008
|
+
messageId: "<abc123@serve.zone>",
|
|
107009
|
+
size: "12.4 KB",
|
|
107010
|
+
smtpLog: [
|
|
107011
|
+
{ timestamp: "14:30:20", direction: "client", command: "EHLO mail.serve.zone" },
|
|
107012
|
+
{ timestamp: "14:30:20", direction: "server", command: "250-mail.example.com Hello", responseCode: 250 },
|
|
107013
|
+
{ timestamp: "14:30:20", direction: "server", command: "250-STARTTLS", responseCode: 250 },
|
|
107014
|
+
{ timestamp: "14:30:20", direction: "server", command: "250 SIZE 52428800", responseCode: 250 },
|
|
107015
|
+
{ timestamp: "14:30:20", direction: "client", command: "STARTTLS" },
|
|
107016
|
+
{ timestamp: "14:30:21", direction: "server", command: "220 Ready to start TLS", responseCode: 220 },
|
|
107017
|
+
{ timestamp: "14:30:21", direction: "client", command: "EHLO mail.serve.zone" },
|
|
107018
|
+
{ timestamp: "14:30:21", direction: "server", command: "250-mail.example.com Hello", responseCode: 250 },
|
|
107019
|
+
{ timestamp: "14:30:21", direction: "server", command: "250-AUTH PLAIN LOGIN", responseCode: 250 },
|
|
107020
|
+
{ timestamp: "14:30:21", direction: "server", command: "250 SIZE 52428800", responseCode: 250 },
|
|
107021
|
+
{ timestamp: "14:30:21", direction: "client", command: "AUTH PLAIN AHVzZXIAcGFzc3dvcmQ=" },
|
|
107022
|
+
{ timestamp: "14:30:21", direction: "server", command: "235 2.7.0 Authentication successful", responseCode: 235 },
|
|
107023
|
+
{ timestamp: "14:30:21", direction: "client", command: "MAIL FROM:<noreply@serve.zone>" },
|
|
107024
|
+
{ timestamp: "14:30:21", direction: "server", command: "250 OK", responseCode: 250 },
|
|
107025
|
+
{ timestamp: "14:30:21", direction: "client", command: "RCPT TO:<user@example.com>" },
|
|
107026
|
+
{ timestamp: "14:30:21", direction: "server", command: "250 Accepted", responseCode: 250 },
|
|
107027
|
+
{ timestamp: "14:30:22", direction: "client", command: "DATA" },
|
|
107028
|
+
{ timestamp: "14:30:22", direction: "server", command: '354 Enter message, ending with "." on a line by itself', responseCode: 354 },
|
|
107029
|
+
{ timestamp: "14:30:22", direction: "client", command: "." },
|
|
107030
|
+
{ timestamp: "14:30:22", direction: "server", command: "250 OK id=1pQ2rS-0003Ab-C4", responseCode: 250 },
|
|
107031
|
+
{ timestamp: "14:30:22", direction: "client", command: "QUIT" },
|
|
107032
|
+
{ timestamp: "14:30:22", direction: "server", command: "221 mail.example.com closing connection", responseCode: 221 }
|
|
107033
|
+
],
|
|
107034
|
+
connectionInfo: {
|
|
107035
|
+
sourceIp: "10.0.1.50",
|
|
107036
|
+
sourceHostname: "mail.serve.zone",
|
|
107037
|
+
destinationIp: "93.184.216.34",
|
|
107038
|
+
destinationPort: 25,
|
|
107039
|
+
tlsVersion: "TLSv1.3",
|
|
107040
|
+
tlsCipher: "TLS_AES_256_GCM_SHA384",
|
|
107041
|
+
authenticated: true,
|
|
107042
|
+
authMethod: "PLAIN",
|
|
107043
|
+
authUser: "noreply@serve.zone"
|
|
107044
|
+
},
|
|
107045
|
+
authenticationResults: {
|
|
107046
|
+
spf: "pass",
|
|
107047
|
+
spfDomain: "serve.zone",
|
|
107048
|
+
dkim: "pass",
|
|
107049
|
+
dkimDomain: "serve.zone",
|
|
107050
|
+
dmarc: "pass",
|
|
107051
|
+
dmarcPolicy: "reject"
|
|
107052
|
+
},
|
|
107053
|
+
headers: {
|
|
107054
|
+
"From": "noreply@serve.zone",
|
|
107055
|
+
"To": "user@example.com",
|
|
107056
|
+
"Subject": "Welcome to serve.zone",
|
|
107057
|
+
"Date": "Mon, 15 Jan 2024 14:30:22 +0000",
|
|
107058
|
+
"MIME-Version": "1.0",
|
|
107059
|
+
"Content-Type": "text/html; charset=UTF-8"
|
|
107060
|
+
},
|
|
107061
|
+
body: '<html>\n<head><title>Welcome</title></head>\n<body>\n <h1>Welcome to serve.zone!</h1>\n <p>Your account has been created successfully.</p>\n <p>Get started by visiting your <a href="https://serve.zone/dashboard">dashboard</a>.</p>\n</body>\n</html>'
|
|
107062
|
+
},
|
|
107063
|
+
"2": {
|
|
107064
|
+
id: "2",
|
|
107065
|
+
direction: "outbound",
|
|
107066
|
+
status: "bounced",
|
|
107067
|
+
from: "alerts@serve.zone",
|
|
107068
|
+
to: "invalid@nowhere.test",
|
|
107069
|
+
toList: ["invalid@nowhere.test"],
|
|
107070
|
+
subject: "Service Alert: CPU Usage High",
|
|
107071
|
+
timestamp: "2024-01-15 14:28:10",
|
|
107072
|
+
messageId: "<def456@serve.zone>",
|
|
107073
|
+
size: "8.2 KB",
|
|
107074
|
+
rejectionReason: "550 5.1.1 The email account that you tried to reach does not exist.",
|
|
107075
|
+
bounceMessage: "Delivery to the following recipient failed permanently:\n\n invalid@nowhere.test\n\nTechnical details of permanent failure:\nGoogle tried to deliver your message, but it was rejected by the server for the recipient domain nowhere.test.",
|
|
107076
|
+
smtpLog: [
|
|
107077
|
+
{ timestamp: "14:28:08", direction: "client", command: "EHLO mail.serve.zone" },
|
|
107078
|
+
{ timestamp: "14:28:08", direction: "server", command: "250-mail.nowhere.test Hello", responseCode: 250 },
|
|
107079
|
+
{ timestamp: "14:28:08", direction: "client", command: "MAIL FROM:<alerts@serve.zone>" },
|
|
107080
|
+
{ timestamp: "14:28:09", direction: "server", command: "250 OK", responseCode: 250 },
|
|
107081
|
+
{ timestamp: "14:28:09", direction: "client", command: "RCPT TO:<invalid@nowhere.test>" },
|
|
107082
|
+
{ timestamp: "14:28:10", direction: "server", command: "550 5.1.1 The email account that you tried to reach does not exist.", responseCode: 550 },
|
|
107083
|
+
{ timestamp: "14:28:10", direction: "client", command: "QUIT" },
|
|
107084
|
+
{ timestamp: "14:28:10", direction: "server", command: "221 Bye", responseCode: 221 }
|
|
107085
|
+
],
|
|
107086
|
+
connectionInfo: {
|
|
107087
|
+
sourceIp: "10.0.1.50",
|
|
107088
|
+
sourceHostname: "mail.serve.zone",
|
|
107089
|
+
destinationIp: "198.51.100.25",
|
|
107090
|
+
destinationPort: 25,
|
|
107091
|
+
tlsVersion: "TLSv1.2",
|
|
107092
|
+
tlsCipher: "ECDHE-RSA-AES128-GCM-SHA256",
|
|
107093
|
+
authenticated: true,
|
|
107094
|
+
authMethod: "PLAIN",
|
|
107095
|
+
authUser: "alerts@serve.zone"
|
|
107096
|
+
},
|
|
107097
|
+
authenticationResults: {
|
|
107098
|
+
spf: "pass",
|
|
107099
|
+
spfDomain: "serve.zone",
|
|
107100
|
+
dkim: "pass",
|
|
107101
|
+
dkimDomain: "serve.zone",
|
|
107102
|
+
dmarc: "pass",
|
|
107103
|
+
dmarcPolicy: "quarantine"
|
|
107104
|
+
},
|
|
107105
|
+
headers: {
|
|
107106
|
+
"From": "alerts@serve.zone",
|
|
107107
|
+
"To": "invalid@nowhere.test",
|
|
107108
|
+
"Subject": "Service Alert: CPU Usage High",
|
|
107109
|
+
"Date": "Mon, 15 Jan 2024 14:28:10 +0000",
|
|
107110
|
+
"MIME-Version": "1.0",
|
|
107111
|
+
"Content-Type": "text/plain; charset=UTF-8"
|
|
107112
|
+
},
|
|
107113
|
+
body: "ALERT: CPU Usage High\n\nService: api-gateway\nCurrent Usage: 94.2%\nThreshold: 90%\nTimestamp: 2024-01-15 14:28:00 UTC\n\nPlease investigate immediately."
|
|
107114
|
+
},
|
|
107115
|
+
"3": {
|
|
107116
|
+
id: "3",
|
|
107117
|
+
direction: "inbound",
|
|
107118
|
+
status: "delivered",
|
|
107119
|
+
from: "support@customer.com",
|
|
107120
|
+
to: "admin@serve.zone",
|
|
107121
|
+
toList: ["admin@serve.zone"],
|
|
107122
|
+
cc: ["ops@serve.zone"],
|
|
107123
|
+
subject: "Re: Infrastructure Review",
|
|
107124
|
+
timestamp: "2024-01-15 14:25:00",
|
|
107125
|
+
messageId: "<ghi789@customer.com>",
|
|
107126
|
+
size: "24.1 KB",
|
|
107127
|
+
smtpLog: [
|
|
107128
|
+
{ timestamp: "14:24:58", direction: "client", command: "EHLO mail.customer.com" },
|
|
107129
|
+
{ timestamp: "14:24:58", direction: "server", command: "250-mail.serve.zone Hello", responseCode: 250 },
|
|
107130
|
+
{ timestamp: "14:24:58", direction: "server", command: "250-STARTTLS", responseCode: 250 },
|
|
107131
|
+
{ timestamp: "14:24:58", direction: "server", command: "250 SIZE 52428800", responseCode: 250 },
|
|
107132
|
+
{ timestamp: "14:24:59", direction: "client", command: "STARTTLS" },
|
|
107133
|
+
{ timestamp: "14:24:59", direction: "server", command: "220 Ready to start TLS", responseCode: 220 },
|
|
107134
|
+
{ timestamp: "14:24:59", direction: "client", command: "MAIL FROM:<support@customer.com>" },
|
|
107135
|
+
{ timestamp: "14:24:59", direction: "server", command: "250 OK", responseCode: 250 },
|
|
107136
|
+
{ timestamp: "14:24:59", direction: "client", command: "RCPT TO:<admin@serve.zone>" },
|
|
107137
|
+
{ timestamp: "14:25:00", direction: "server", command: "250 Accepted", responseCode: 250 },
|
|
107138
|
+
{ timestamp: "14:25:00", direction: "client", command: "DATA" },
|
|
107139
|
+
{ timestamp: "14:25:00", direction: "server", command: "354 Enter message", responseCode: 354 },
|
|
107140
|
+
{ timestamp: "14:25:00", direction: "client", command: "." },
|
|
107141
|
+
{ timestamp: "14:25:00", direction: "server", command: "250 OK id=2bR3sT-0004Cd-E5", responseCode: 250 }
|
|
107142
|
+
],
|
|
107143
|
+
connectionInfo: {
|
|
107144
|
+
sourceIp: "203.0.113.45",
|
|
107145
|
+
sourceHostname: "mail.customer.com",
|
|
107146
|
+
destinationIp: "10.0.1.50",
|
|
107147
|
+
destinationPort: 25,
|
|
107148
|
+
tlsVersion: "TLSv1.3",
|
|
107149
|
+
tlsCipher: "TLS_AES_128_GCM_SHA256",
|
|
107150
|
+
authenticated: false,
|
|
107151
|
+
authMethod: "",
|
|
107152
|
+
authUser: ""
|
|
107153
|
+
},
|
|
107154
|
+
authenticationResults: {
|
|
107155
|
+
spf: "pass",
|
|
107156
|
+
spfDomain: "customer.com",
|
|
107157
|
+
dkim: "pass",
|
|
107158
|
+
dkimDomain: "customer.com",
|
|
107159
|
+
dmarc: "pass",
|
|
107160
|
+
dmarcPolicy: "none"
|
|
107161
|
+
},
|
|
107162
|
+
headers: {
|
|
107163
|
+
"From": "support@customer.com",
|
|
107164
|
+
"To": "admin@serve.zone",
|
|
107165
|
+
"CC": "ops@serve.zone",
|
|
107166
|
+
"Subject": "Re: Infrastructure Review",
|
|
107167
|
+
"Date": "Mon, 15 Jan 2024 14:25:00 +0000",
|
|
107168
|
+
"MIME-Version": "1.0",
|
|
107169
|
+
"Content-Type": "text/plain; charset=UTF-8",
|
|
107170
|
+
"In-Reply-To": "<prev123@serve.zone>"
|
|
107171
|
+
},
|
|
107172
|
+
body: "Hi Admin,\n\nThank you for the detailed infrastructure review report.\n\nWe have reviewed the recommendations and would like to\nproceed with the following:\n\n1. Upgrade to the Pro tier\n2. Enable automatic backups\n3. Set up monitoring alerts\n\nPlease let us know the timeline for these changes.\n\nBest regards,\nCustomer Support Team"
|
|
107173
|
+
}
|
|
107174
|
+
});
|
|
107175
|
+
}
|
|
105704
107176
|
async onActivate(context2) {
|
|
105705
107177
|
this.appui = context2.appui;
|
|
107178
|
+
this.appui.setContentTabs([
|
|
107179
|
+
{
|
|
107180
|
+
key: "All Emails",
|
|
107181
|
+
action: () => {
|
|
107182
|
+
this.currentDirectionFilter = "all";
|
|
107183
|
+
this.currentView = "list";
|
|
107184
|
+
this.updateSecondaryMenu();
|
|
107185
|
+
}
|
|
107186
|
+
},
|
|
107187
|
+
{
|
|
107188
|
+
key: "Inbound",
|
|
107189
|
+
action: () => {
|
|
107190
|
+
this.currentDirectionFilter = "inbound";
|
|
107191
|
+
this.currentView = "list";
|
|
107192
|
+
this.updateSecondaryMenu();
|
|
107193
|
+
}
|
|
107194
|
+
},
|
|
107195
|
+
{
|
|
107196
|
+
key: "Outbound",
|
|
107197
|
+
action: () => {
|
|
107198
|
+
this.currentDirectionFilter = "outbound";
|
|
107199
|
+
this.currentView = "list";
|
|
107200
|
+
this.updateSecondaryMenu();
|
|
107201
|
+
}
|
|
107202
|
+
}
|
|
107203
|
+
]);
|
|
107204
|
+
this.updateSecondaryMenu();
|
|
107205
|
+
}
|
|
107206
|
+
updateSecondaryMenu() {
|
|
107207
|
+
if (!this.appui) return;
|
|
105706
107208
|
this.appui.setSecondaryMenu({
|
|
105707
|
-
heading: "
|
|
107209
|
+
heading: "Email / MTA",
|
|
105708
107210
|
groups: [
|
|
105709
107211
|
{
|
|
105710
|
-
name: "
|
|
107212
|
+
name: "Actions",
|
|
105711
107213
|
items: [
|
|
105712
|
-
{ key: "
|
|
105713
|
-
console.log("
|
|
105714
|
-
} },
|
|
105715
|
-
{ key: "Network", iconName: "lucide:Network", action: () => {
|
|
105716
|
-
console.log("Network settings");
|
|
105717
|
-
} },
|
|
105718
|
-
{ key: "Security", iconName: "lucide:Shield", action: () => {
|
|
105719
|
-
console.log("Security settings");
|
|
107214
|
+
{ type: "action", key: "Refresh", iconName: "lucide:RefreshCw", action: () => {
|
|
107215
|
+
console.log("Refresh emails");
|
|
105720
107216
|
} },
|
|
105721
|
-
{ key: "
|
|
105722
|
-
console.log("
|
|
107217
|
+
{ type: "action", key: "Export Logs", iconName: "lucide:Download", action: () => {
|
|
107218
|
+
console.log("Export logs");
|
|
105723
107219
|
} }
|
|
105724
107220
|
]
|
|
105725
107221
|
},
|
|
105726
107222
|
{
|
|
105727
|
-
name: "
|
|
107223
|
+
name: "Status Filters",
|
|
105728
107224
|
items: [
|
|
105729
|
-
{
|
|
105730
|
-
console.log("
|
|
107225
|
+
{ key: "Delivered", iconName: "lucide:CheckCircle", badge: "5", badgeVariant: "success", action: () => {
|
|
107226
|
+
console.log("Filter delivered");
|
|
105731
107227
|
} },
|
|
105732
|
-
{
|
|
105733
|
-
console.log("
|
|
107228
|
+
{ key: "Bounced", iconName: "lucide:XCircle", badge: "1", badgeVariant: "error", action: () => {
|
|
107229
|
+
console.log("Filter bounced");
|
|
105734
107230
|
} },
|
|
105735
|
-
{
|
|
105736
|
-
console.log("
|
|
107231
|
+
{ key: "Deferred", iconName: "lucide:Clock", badge: "1", badgeVariant: "warning", action: () => {
|
|
107232
|
+
console.log("Filter deferred");
|
|
107233
|
+
} },
|
|
107234
|
+
{ key: "Pending", iconName: "lucide:Loader", badge: "1", action: () => {
|
|
107235
|
+
console.log("Filter pending");
|
|
105737
107236
|
} }
|
|
105738
107237
|
]
|
|
107238
|
+
},
|
|
107239
|
+
{
|
|
107240
|
+
name: "Statistics",
|
|
107241
|
+
items: [
|
|
107242
|
+
{ type: "header", label: "8 Total Emails" },
|
|
107243
|
+
{ type: "header", label: "62.5% Delivery Rate" }
|
|
107244
|
+
]
|
|
105739
107245
|
}
|
|
105740
107246
|
]
|
|
105741
107247
|
});
|
|
105742
107248
|
}
|
|
105743
107249
|
onDeactivate() {
|
|
105744
107250
|
}
|
|
105745
|
-
|
|
105746
|
-
|
|
105747
|
-
|
|
105748
|
-
|
|
105749
|
-
|
|
105750
|
-
|
|
105751
|
-
|
|
105752
|
-
|
|
105753
|
-
|
|
105754
|
-
|
|
105755
|
-
|
|
105756
|
-
|
|
105757
|
-
|
|
105758
|
-
|
|
107251
|
+
render() {
|
|
107252
|
+
if (this.currentView === "detail" && this.selectedEmail) {
|
|
107253
|
+
return b2`
|
|
107254
|
+
<sz-mta-detail-view
|
|
107255
|
+
.email=${this.selectedEmail}
|
|
107256
|
+
@back=${() => {
|
|
107257
|
+
this.currentView = "list";
|
|
107258
|
+
this.selectedEmail = null;
|
|
107259
|
+
}}
|
|
107260
|
+
></sz-mta-detail-view>
|
|
107261
|
+
`;
|
|
107262
|
+
}
|
|
107263
|
+
return b2`
|
|
107264
|
+
<sz-mta-list-view
|
|
107265
|
+
.emails=${this.currentDirectionFilter === "all" ? this.demoEmails : this.demoEmails.filter((e11) => e11.direction === this.currentDirectionFilter)}
|
|
107266
|
+
@email-click=${(e11) => this.handleEmailClick(e11.detail)}
|
|
107267
|
+
></sz-mta-list-view>
|
|
107268
|
+
`;
|
|
107269
|
+
}
|
|
107270
|
+
handleEmailClick(email) {
|
|
107271
|
+
const detail = this.demoEmailDetails[email.id];
|
|
107272
|
+
if (detail) {
|
|
107273
|
+
this.selectedEmail = detail;
|
|
107274
|
+
this.currentView = "detail";
|
|
107275
|
+
} else {
|
|
107276
|
+
console.log("No detail data available for email:", email.id);
|
|
107277
|
+
}
|
|
107278
|
+
}
|
|
107279
|
+
};
|
|
107280
|
+
_init36 = __decoratorStart(_a36);
|
|
107281
|
+
_currentView3 = new WeakMap();
|
|
107282
|
+
_selectedEmail = new WeakMap();
|
|
107283
|
+
_currentDirectionFilter = new WeakMap();
|
|
107284
|
+
__decorateElement(_init36, 4, "currentView", _currentView_dec3, SzDemoViewMta, _currentView3);
|
|
107285
|
+
__decorateElement(_init36, 4, "selectedEmail", _selectedEmail_dec, SzDemoViewMta, _selectedEmail);
|
|
107286
|
+
__decorateElement(_init36, 4, "currentDirectionFilter", _currentDirectionFilter_dec, SzDemoViewMta, _currentDirectionFilter);
|
|
107287
|
+
SzDemoViewMta = __decorateElement(_init36, 0, "SzDemoViewMta", _SzDemoViewMta_decorators, SzDemoViewMta);
|
|
107288
|
+
__publicField(SzDemoViewMta, "styles", [
|
|
107289
|
+
cssManager.defaultStyles,
|
|
107290
|
+
i`
|
|
105759
107291
|
:host {
|
|
105760
107292
|
display: block;
|
|
105761
107293
|
padding: 24px;
|
|
@@ -105763,52 +107295,9 @@ var SzDemoViewSettings = class extends (_a33 = DeesElement) {
|
|
|
105763
107295
|
overflow-y: auto;
|
|
105764
107296
|
box-sizing: border-box;
|
|
105765
107297
|
}
|
|
105766
|
-
|
|
105767
|
-
.page-header {
|
|
105768
|
-
margin-bottom: 24px;
|
|
105769
|
-
}
|
|
105770
|
-
|
|
105771
|
-
.page-title {
|
|
105772
|
-
font-size: 24px;
|
|
105773
|
-
font-weight: 700;
|
|
105774
|
-
color: ${cssManager.bdTheme("#18181b", "#fafafa")};
|
|
105775
|
-
margin: 0 0 8px 0;
|
|
105776
|
-
}
|
|
105777
|
-
|
|
105778
|
-
.page-subtitle {
|
|
105779
|
-
font-size: 14px;
|
|
105780
|
-
color: ${cssManager.bdTheme("#71717a", "#a1a1aa")};
|
|
105781
|
-
margin: 0;
|
|
105782
|
-
}
|
|
105783
|
-
|
|
105784
|
-
.settings-container {
|
|
105785
|
-
max-width: 800px;
|
|
105786
|
-
}
|
|
105787
107298
|
`
|
|
105788
|
-
|
|
105789
|
-
|
|
105790
|
-
return b2`
|
|
105791
|
-
<div class="page-header">
|
|
105792
|
-
<h1 class="page-title">Settings</h1>
|
|
105793
|
-
<p class="page-subtitle">Configure your onebox instance</p>
|
|
105794
|
-
</div>
|
|
105795
|
-
|
|
105796
|
-
<div class="settings-container">
|
|
105797
|
-
<sz-settings-view
|
|
105798
|
-
.settings=${this.demoSettings}
|
|
105799
|
-
currentUser="admin"
|
|
105800
|
-
@setting-change=${(e11) => console.log("Setting change:", e11.detail)}
|
|
105801
|
-
@change-password=${(e11) => console.log("Change password:", e11.detail)}
|
|
105802
|
-
@reset=${() => console.log("Reset settings")}
|
|
105803
|
-
@save=${(e11) => console.log("Save settings:", e11.detail)}
|
|
105804
|
-
></sz-settings-view>
|
|
105805
|
-
</div>
|
|
105806
|
-
`;
|
|
105807
|
-
}
|
|
105808
|
-
};
|
|
105809
|
-
_init33 = __decoratorStart(_a33);
|
|
105810
|
-
SzDemoViewSettings = __decorateElement(_init33, 0, "SzDemoViewSettings", _SzDemoViewSettings_decorators, SzDemoViewSettings);
|
|
105811
|
-
__runInitializers(_init33, 1, SzDemoViewSettings);
|
|
107299
|
+
]);
|
|
107300
|
+
__runInitializers(_init36, 1, SzDemoViewMta);
|
|
105812
107301
|
|
|
105813
107302
|
// ts_web/pages/index.ts
|
|
105814
107303
|
var pages_exports = {};
|
|
@@ -109526,9 +111015,9 @@ var DeesAppuiBar = (() => {
|
|
|
109526
111015
|
|
|
109527
111016
|
// node_modules/.pnpm/@design.estate+dees-catalog@3.43.0_@tiptap+pm@2.27.2/node_modules/@design.estate/dees-catalog/dist_ts_web/elements/00group-appui/dees-appui-bottombar/dees-appui-bottombar.demo.js
|
|
109528
111017
|
init_dist_ts29();
|
|
109529
|
-
var
|
|
111018
|
+
var _a37;
|
|
109530
111019
|
var demoFunc5 = () => {
|
|
109531
|
-
return b2(
|
|
111020
|
+
return b2(_a37 || (_a37 = __template([`
|
|
109532
111021
|
<dees-demowrapper>
|
|
109533
111022
|
<style>
|
|
109534
111023
|
.demo-container {
|
|
@@ -110580,7 +112069,7 @@ var DeesPanel = (() => {
|
|
|
110580
112069
|
|
|
110581
112070
|
// node_modules/.pnpm/@design.estate+dees-catalog@3.43.0_@tiptap+pm@2.27.2/node_modules/@design.estate/dees-catalog/dist_ts_web/elements/00group-dataview/dees-statsgrid/dees-statsgrid.demo.js
|
|
110582
112071
|
init_dist_ts29();
|
|
110583
|
-
var
|
|
112072
|
+
var _a38;
|
|
110584
112073
|
var generateCpuCores = (count2) => {
|
|
110585
112074
|
return Array.from({ length: count2 }, (_4, i11) => ({
|
|
110586
112075
|
id: i11,
|
|
@@ -110589,7 +112078,7 @@ var generateCpuCores = (count2) => {
|
|
|
110589
112078
|
}));
|
|
110590
112079
|
};
|
|
110591
112080
|
var demoFunc7 = () => {
|
|
110592
|
-
return b2(
|
|
112081
|
+
return b2(_a38 || (_a38 = __template(["\n <dees-demowrapper>\n <style>\n ", '\n </style>\n \n <div class="demo-container">\n <dees-panel .title=', " .subtitle=", ">\n <dees-statsgrid\n .tiles=", "\n .gridActions=", "\n .minTileWidth=", "\n .gap=", '\n ></dees-statsgrid>\n \n <div id="action-output" style="margin-top: 16px; padding: 12px; background: ', "; border-radius: 6px; font-size: 14px; font-family: monospace; color: ", ';">\n <em>Click on tile actions or grid actions to see the result...</em>\n </div>\n </dees-panel>\n \n <dees-panel .title=', " .subtitle=", ">\n <dees-statsgrid\n .tiles=", "\n .minTileWidth=", "\n .gap=", '\n ></dees-statsgrid>\n \n <div class="tile-config">\n <div class="config-section">\n <div class="config-title">Configuration Options</div>\n <div class="config-description">\n Each tile type supports different properties:\n <ul style="margin: 8px 0; padding-left: 20px;">\n <li><strong>Number:</strong> value, unit, color, description</li>\n <li><strong>Gauge:</strong> value, unit, gaugeOptions (min, max, thresholds)</li>\n <li><strong>Percentage:</strong> value (0-100), color, description</li>\n <li><strong>Trend:</strong> value, unit, trendData array, description</li>\n <li><strong>Text:</strong> value (string), color, description</li>\n </ul>\n </div>\n </div>\n </div>\n </dees-panel>\n \n <dees-panel .title=', " .subtitle=", '>\n <h4 style="margin: 0 0 16px 0; font-size: 16px; font-weight: 600;">Compact Layout (180px tiles)</h4>\n <dees-statsgrid\n .tiles=', "\n .minTileWidth=", "\n .gap=", '\n ></dees-statsgrid>\n \n <h4 style="margin: 24px 0 16px 0; font-size: 16px; font-weight: 600;">Spacious Layout (320px tiles)</h4>\n <dees-statsgrid\n .tiles=', "\n .minTileWidth=", "\n .gap=", "\n ></dees-statsgrid>\n </dees-panel>\n \n <dees-panel .title=", " .subtitle=", '>\n <dees-statsgrid\n id="cpu-cores-grid"\n .tiles=', "\n .gridActions=", "\n .minTileWidth=", "\n .gap=", "\n ></dees-statsgrid>\n </dees-panel>\n\n <dees-panel .title=", " .subtitle=", '>\n <dees-statsgrid\n id="interactive-grid"\n .tiles=', "\n .gridActions=", "\n .minTileWidth=", "\n .gap=", "\n ></dees-statsgrid>\n </dees-panel>\n \n <dees-panel .title=", " .subtitle=", '>\n <div class="code-block">', "</div>\n </dees-panel>\n\n <dees-panel .title=", " .subtitle=", ">\n <dees-statsgrid\n .tiles=", "\n .minTileWidth=", "\n .gap=", `
|
|
110593
112082
|
></dees-statsgrid>
|
|
110594
112083
|
|
|
110595
112084
|
<div class="tile-config">
|
|
@@ -143486,8 +144975,8 @@ var DeesInputRichtext = (() => {
|
|
|
143486
144975
|
|
|
143487
144976
|
// node_modules/.pnpm/@design.estate+dees-catalog@3.43.0_@tiptap+pm@2.27.2/node_modules/@design.estate/dees-catalog/dist_ts_web/elements/00group-input/dees-input-tags/dees-input-tags.demo.js
|
|
143488
144977
|
init_dist_ts29();
|
|
143489
|
-
var
|
|
143490
|
-
var demoFunc42 = () => b2(
|
|
144978
|
+
var _a39;
|
|
144979
|
+
var demoFunc42 = () => b2(_a39 || (_a39 = __template(["\n <dees-demowrapper>\n <style>\n ", '\n </style>\n \n <div class="demo-container">\n <dees-panel .title=', " .subtitle=", ">\n <dees-input-tags\n .label=", "\n .placeholder=", "\n .value=", "\n .description=", "\n ></dees-input-tags>\n </dees-panel>\n\n <dees-panel .title=", " .subtitle=", ">\n <dees-input-tags\n .label=", "\n .placeholder=", "\n .suggestions=", "\n .value=", "\n .description=", "\n ></dees-input-tags>\n </dees-panel>\n\n <dees-panel .title=", " .subtitle=", '>\n <div class="grid-layout">\n <dees-input-tags\n .label=', "\n .placeholder=", "\n .maxTags=", "\n .value=", "\n .description=", "\n ></dees-input-tags>\n \n <dees-input-tags\n .label=", "\n .placeholder=", "\n .maxTags=", "\n .suggestions=", "\n .value=", "\n .description=", "\n ></dees-input-tags>\n </div>\n </dees-panel>\n\n <dees-panel .title=", " .subtitle=", ">\n <dees-input-tags\n .label=", "\n .placeholder=", "\n .required=", "\n .description=", "\n ></dees-input-tags>\n </dees-panel>\n\n <dees-panel .title=", " .subtitle=", ">\n <dees-input-tags\n .label=", "\n .value=", "\n .disabled=", "\n .description=", "\n ></dees-input-tags>\n </dees-panel>\n\n <dees-panel .title=", " .subtitle=", ">\n <dees-form>\n <dees-input-text\n .label=", "\n .placeholder=", "\n .required=", "\n .key=", '\n ></dees-input-text>\n \n <div class="grid-layout">\n <dees-input-tags\n .label=', "\n .placeholder=", "\n .required=", "\n .key=", "\n .suggestions=", "\n ></dees-input-tags>\n \n <dees-input-tags\n .label=", "\n .placeholder=", "\n .key=", "\n .maxTags=", "\n .suggestions=", "\n ></dees-input-tags>\n </div>\n \n <dees-input-text\n .label=", "\n .inputType=", "\n .placeholder=", "\n .key=", "\n ></dees-input-text>\n \n <dees-form-submit .text=", "></dees-form-submit>\n </dees-form>\n </dees-panel>\n\n <dees-panel .title=", " .subtitle=", '>\n <dees-input-tags\n id="interactive-tags"\n .label=', "\n .placeholder=", "\n .suggestions=", "\n @change=", `
|
|
143491
144980
|
></dees-input-tags>
|
|
143492
144981
|
|
|
143493
144982
|
<div class="tag-preview" id="tags-preview">
|
|
@@ -175759,9 +177248,9 @@ init_group_runtime();
|
|
|
175759
177248
|
|
|
175760
177249
|
// ts_web/pages/sz-demo-app-shell.ts
|
|
175761
177250
|
init_dist_ts29();
|
|
175762
|
-
var _SzDemoAppShell_decorators,
|
|
177251
|
+
var _SzDemoAppShell_decorators, _init37, _a40;
|
|
175763
177252
|
_SzDemoAppShell_decorators = [t4("sz-demo-app-shell")];
|
|
175764
|
-
var SzDemoAppShell = class extends (
|
|
177253
|
+
var SzDemoAppShell = class extends (_a40 = DeesElement) {
|
|
175765
177254
|
static styles = [
|
|
175766
177255
|
cssManager.defaultStyles,
|
|
175767
177256
|
i`
|
|
@@ -175907,6 +177396,12 @@ var SzDemoAppShell = class extends (_a37 = DeesElement) {
|
|
|
175907
177396
|
iconName: "lucide:Key",
|
|
175908
177397
|
content: "sz-demo-view-tokens"
|
|
175909
177398
|
},
|
|
177399
|
+
{
|
|
177400
|
+
id: "mta",
|
|
177401
|
+
name: "Email / MTA",
|
|
177402
|
+
iconName: "lucide:Mail",
|
|
177403
|
+
content: "sz-demo-view-mta"
|
|
177404
|
+
},
|
|
175910
177405
|
{
|
|
175911
177406
|
id: "settings",
|
|
175912
177407
|
name: "Settings",
|
|
@@ -175922,7 +177417,7 @@ var SzDemoAppShell = class extends (_a37 = DeesElement) {
|
|
|
175922
177417
|
},
|
|
175923
177418
|
{
|
|
175924
177419
|
name: "Infrastructure",
|
|
175925
|
-
views: ["services", "network", "registries"]
|
|
177420
|
+
views: ["services", "network", "registries", "mta"]
|
|
175926
177421
|
},
|
|
175927
177422
|
{
|
|
175928
177423
|
name: "Administration",
|
|
@@ -175954,9 +177449,9 @@ var SzDemoAppShell = class extends (_a37 = DeesElement) {
|
|
|
175954
177449
|
]);
|
|
175955
177450
|
}
|
|
175956
177451
|
};
|
|
175957
|
-
|
|
175958
|
-
SzDemoAppShell = __decorateElement(
|
|
175959
|
-
__runInitializers(
|
|
177452
|
+
_init37 = __decoratorStart(_a40);
|
|
177453
|
+
SzDemoAppShell = __decorateElement(_init37, 0, "SzDemoAppShell", _SzDemoAppShell_decorators, SzDemoAppShell);
|
|
177454
|
+
__runInitializers(_init37, 1, SzDemoAppShell);
|
|
175960
177455
|
|
|
175961
177456
|
// html/index.ts
|
|
175962
177457
|
setupWccTools({
|