@wakastellar/ui 2.4.0 → 3.1.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/blocks/antivirus-dashboard/index.d.ts +44 -0
- package/dist/blocks/clamav-service-status/index.d.ts +35 -0
- package/dist/blocks/file-scan-uploader/index.d.ts +29 -0
- package/dist/blocks/index.d.ts +18 -9
- package/dist/blocks/quarantine-manager/index.d.ts +27 -0
- package/dist/blocks/scan-history-log/index.d.ts +28 -0
- package/dist/blocks/scan-policy-editor/index.d.ts +27 -0
- package/dist/blocks/scan-report-generator/index.d.ts +47 -0
- package/dist/blocks/signature-database-manager/index.d.ts +39 -0
- package/dist/blocks/threat-alert-banner/index.d.ts +26 -0
- package/dist/components/index.d.ts +4 -4
- package/dist/components/waka-signature-pad/index.d.ts +1 -1
- package/dist/exceljs.min-BcLLX0PC.js +29 -0
- package/dist/exceljs.min-KOayaaQ4.mjs +23013 -0
- package/dist/export.cjs.js +1 -1
- package/dist/export.d.ts +2 -2
- package/dist/export.es.js +1 -1
- package/dist/index.cjs.js +136 -136
- package/dist/index.es.js +29978 -27215
- package/dist/stories/Button.stories.d.ts +1 -1
- package/dist/stories/Header.stories.d.ts +1 -1
- package/dist/stories/Page.stories.d.ts +1 -1
- package/dist/useDataTableImport-COVnvslz.js +9 -0
- package/dist/useDataTableImport-DAlxBY8w.mjs +237 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/logger.d.ts +9 -0
- package/package.json +6 -5
- package/src/blocks/antivirus-dashboard/AntivirusDashboard.stories.tsx +291 -0
- package/src/blocks/antivirus-dashboard/index.tsx +525 -0
- package/src/blocks/clamav-service-status/ClamAVServiceStatus.stories.tsx +195 -0
- package/src/blocks/clamav-service-status/index.tsx +370 -0
- package/src/blocks/file-scan-uploader/FileScanUploader.stories.tsx +257 -0
- package/src/blocks/file-scan-uploader/index.tsx +311 -0
- package/src/blocks/index.ts +163 -11
- package/src/blocks/quarantine-manager/QuarantineManager.stories.tsx +209 -0
- package/src/blocks/quarantine-manager/index.tsx +435 -0
- package/src/blocks/scan-history-log/ScanHistoryLog.stories.tsx +231 -0
- package/src/blocks/scan-history-log/index.tsx +406 -0
- package/src/blocks/scan-policy-editor/ScanPolicyEditor.stories.tsx +106 -0
- package/src/blocks/scan-policy-editor/index.tsx +418 -0
- package/src/blocks/scan-report-generator/ScanReportGenerator.stories.tsx +232 -0
- package/src/blocks/scan-report-generator/index.tsx +612 -0
- package/src/blocks/sidebar/index.tsx +2 -1
- package/src/blocks/signature-database-manager/SignatureDatabaseManager.stories.tsx +279 -0
- package/src/blocks/signature-database-manager/index.tsx +470 -0
- package/src/blocks/theme-creator-block/index.tsx +16 -2
- package/src/blocks/threat-alert-banner/ThreatAlertBanner.stories.tsx +152 -0
- package/src/blocks/threat-alert-banner/index.tsx +320 -0
- package/src/components/DataTable/DataTable.stories.tsx +203 -0
- package/src/components/DataTable/hooks/useDataTableExport.ts +38 -31
- package/src/components/DataTable/hooks/useDataTableImport.ts +31 -20
- package/src/components/error-boundary/ErrorBoundary.stories.tsx +125 -0
- package/src/components/index.ts +45 -4
- package/src/components/language-selector/LanguageSelector.stories.tsx +112 -0
- package/src/components/theme-selector/ThemeSelector.stories.tsx +77 -0
- package/src/components/toaster/Toaster.stories.tsx +67 -0
- package/src/components/waka-activity-feed/WakaActivityFeed.stories.tsx +116 -0
- package/src/components/waka-ad-banner/WakaAdBanner.stories.tsx +102 -0
- package/src/components/waka-ad-fallback/WakaAdFallback.stories.tsx +117 -0
- package/src/components/waka-ad-inline/WakaAdInline.stories.tsx +105 -0
- package/src/components/waka-ad-interstitial/WakaAdInterstitial.stories.tsx +92 -0
- package/src/components/waka-ad-placeholder/WakaAdPlaceholder.stories.tsx +89 -0
- package/src/components/waka-ad-provider/WakaAdProvider.stories.tsx +110 -0
- package/src/components/waka-ad-sidebar/WakaAdSidebar.stories.tsx +89 -0
- package/src/components/waka-ad-sidebar/index.tsx +3 -2
- package/src/components/waka-ad-sticky-footer/WakaAdStickyFooter.stories.tsx +88 -0
- package/src/components/waka-address-autocomplete/WakaAddressAutocomplete.stories.tsx +46 -0
- package/src/components/waka-admincrumb/WakaAdmincrumb.stories.tsx +166 -0
- package/src/components/waka-alert-panel/WakaAlertPanel.stories.tsx +45 -0
- package/src/components/waka-alert-stack/WakaAlertStack.stories.tsx +62 -0
- package/src/components/waka-allocation-matrix/WakaAllocationMatrix.stories.tsx +68 -0
- package/src/components/waka-approval-chain/WakaApprovalChain.stories.tsx +63 -0
- package/src/components/waka-audit-log/WakaAuditLog.stories.tsx +73 -0
- package/src/components/waka-autocomplete/WakaAutocomplete.stories.tsx +132 -172
- package/src/components/waka-biometric-prompt/WakaBiometricPrompt.stories.tsx +48 -0
- package/src/components/waka-breadcrumb/WakaBreadcrumb.stories.tsx +74 -191
- package/src/components/waka-breadcrumb-path/WakaBreadcrumbPath.stories.tsx +40 -0
- package/src/components/waka-budget-burn/WakaBudgetBurn.stories.tsx +86 -0
- package/src/components/waka-capacity-planner/WakaCapacityPlanner.stories.tsx +273 -0
- package/src/components/waka-cart-summary/WakaCartSummary.stories.tsx +176 -0
- package/src/components/waka-cart-summary/index.tsx +19 -10
- package/src/components/waka-challenge-timer/WakaChallengeTimer.stories.tsx +98 -0
- package/src/components/waka-chat-bubble/WakaChatBubble.stories.tsx +118 -0
- package/src/components/waka-checklist/WakaChecklist.stories.tsx +71 -0
- package/src/components/waka-checkout-stepper/WakaCheckoutStepper.stories.tsx +102 -0
- package/src/components/waka-cohort-table/WakaCohortTable.stories.tsx +56 -0
- package/src/components/waka-color-picker/WakaColorPicker.stories.tsx +99 -155
- package/src/components/waka-combo-counter/WakaComboCounter.stories.tsx +128 -0
- package/src/components/waka-command-bar/WakaCommandBar.stories.tsx +45 -0
- package/src/components/waka-compare-period/WakaComparePeriod.stories.tsx +76 -0
- package/src/components/waka-config-comparator/WakaConfigComparator.stories.tsx +143 -0
- package/src/components/waka-connection-matrix/WakaConnectionMatrix.stories.tsx +52 -0
- package/src/components/waka-content-recommendation/WakaContentRecommendation.stories.tsx +41 -0
- package/src/components/waka-coupon-input/WakaCouponInput.stories.tsx +126 -0
- package/src/components/waka-credit-card-input/WakaCreditCardInput.stories.tsx +120 -0
- package/src/components/waka-datetime-picker.form-integration/WakaDateTimePickerForm.stories.tsx +79 -0
- package/src/components/waka-dependency-tree/WakaDependencyTree.stories.tsx +72 -0
- package/src/components/waka-device-trust/WakaDeviceTrust.stories.tsx +109 -0
- package/src/components/waka-empty-state/WakaEmptyState.stories.tsx +87 -0
- package/src/components/waka-feature-announcement/WakaFeatureAnnouncement.stories.tsx +47 -0
- package/src/components/waka-feature-flag-row/WakaFeatureFlagRow.stories.tsx +188 -0
- package/src/components/waka-file-upload/WakaFileUpload.stories.tsx +118 -174
- package/src/components/waka-floating-nav/WakaFloatingNav.stories.tsx +53 -0
- package/src/components/waka-goal-progress/WakaGoalProgress.stories.tsx +137 -0
- package/src/components/waka-hotspot/WakaHotspot.stories.tsx +56 -0
- package/src/components/waka-invoice-preview/WakaInvoicePreview.stories.tsx +169 -0
- package/src/components/waka-kpi-dashboard/WakaKpiDashboard.stories.tsx +46 -0
- package/src/components/waka-level-progress/WakaLevelProgress.stories.tsx +94 -75
- package/src/components/waka-liquid-button/WakaLiquidButton.stories.tsx +45 -0
- package/src/components/waka-magic-link/WakaMagicLink.stories.tsx +61 -0
- package/src/components/waka-magnetic-button/WakaMagneticButton.stories.tsx +40 -0
- package/src/components/waka-mention-input/WakaMentionInput.stories.tsx +140 -0
- package/src/components/waka-milestone-road/WakaMilestoneRoad.stories.tsx +143 -0
- package/src/components/waka-orbital-menu/WakaOrbitalMenu.stories.tsx +54 -0
- package/src/components/waka-order-tracker/WakaOrderTracker.stories.tsx +163 -0
- package/src/components/waka-outstream-video/WakaOutstreamVideo.stories.tsx +94 -0
- package/src/components/waka-pagination/WakaPagination.stories.tsx +110 -280
- package/src/components/waka-password-strength/WakaPasswordStrength.stories.tsx +132 -268
- package/src/components/waka-payment-method-picker/WakaPaymentMethodPicker.stories.tsx +141 -0
- package/src/components/waka-permission-matrix/WakaPermissionMatrix.stories.tsx +124 -0
- package/src/components/waka-phone-input/WakaPhoneInput.stories.tsx +56 -0
- package/src/components/waka-points-popup/WakaPointsPopup.stories.tsx +96 -0
- package/src/components/waka-power-up/WakaPowerUp.stories.tsx +121 -0
- package/src/components/waka-presence-indicator/WakaPresenceIndicator.stories.tsx +49 -0
- package/src/components/waka-pricing-table/WakaPricingTable.stories.tsx +159 -0
- package/src/components/waka-product-card/WakaProductCard.stories.tsx +202 -0
- package/src/components/waka-progress-onboarding/WakaProgressOnboarding.stories.tsx +57 -0
- package/src/components/waka-pull-to-refresh/WakaPullToRefresh.stories.tsx +51 -0
- package/src/components/waka-rank-badge/WakaRankBadge.stories.tsx +108 -0
- package/src/components/waka-rating-input/WakaRatingInput.stories.tsx +51 -0
- package/src/components/waka-reaction-picker/WakaReactionPicker.stories.tsx +52 -0
- package/src/components/waka-region-map/WakaRegionMap.stories.tsx +181 -0
- package/src/components/waka-resource-pool/WakaResourcePool.stories.tsx +70 -0
- package/src/components/waka-rich-text-editor/WakaRichTextEditor.stories.tsx +108 -197
- package/src/components/waka-rollback-slider/WakaRollbackSlider.stories.tsx +41 -0
- package/src/components/waka-schedule-picker/WakaSchedulePicker.stories.tsx +64 -0
- package/src/components/waka-season-pass/WakaSeasonPass.stories.tsx +107 -0
- package/src/components/waka-security-scan-result/WakaSecurityScanResult.stories.tsx +146 -0
- package/src/components/waka-security-score/WakaSecurityScore.stories.tsx +63 -0
- package/src/components/waka-session-manager/WakaSessionManager.stories.tsx +68 -0
- package/src/components/waka-signature-pad/WakaSignaturePad.stories.tsx +159 -0
- package/src/components/waka-signature-pad/index.tsx +5 -3
- package/src/components/waka-sla-tracker/WakaSlaTracker.stories.tsx +65 -0
- package/src/components/waka-slider-range/WakaSliderRange.stories.tsx +66 -0
- package/src/components/waka-sponsored-badge/WakaSponsoredBadge.stories.tsx +60 -0
- package/src/components/waka-sponsored-card/WakaSponsoredCard.stories.tsx +64 -0
- package/src/components/waka-sponsored-feed/WakaSponsoredFeed.stories.tsx +58 -0
- package/src/components/waka-spotlight/WakaSpotlight.stories.tsx +53 -0
- package/src/components/waka-stats-hexagon/WakaStatsHexagon.stories.tsx +161 -0
- package/src/components/waka-stepper/WakaStepper.stories.tsx +137 -410
- package/src/components/waka-swipe-card/WakaSwipeCard.stories.tsx +51 -0
- package/src/components/waka-tag-input/WakaTagInput.stories.tsx +224 -0
- package/src/components/waka-team-banner/WakaTeamBanner.stories.tsx +50 -0
- package/src/components/waka-theme-creator/WakaThemeCreator.stories.tsx +58 -0
- package/src/components/waka-theme-manager/WakaThemeManager.stories.tsx +298 -0
- package/src/components/waka-theme-manager/index.tsx +6 -11
- package/src/components/waka-thread-view/WakaThreadView.stories.tsx +143 -0
- package/src/components/waka-timeline/WakaTimeline.stories.tsx +171 -324
- package/src/components/waka-tooltip-tour/WakaTooltipTour.stories.tsx +92 -0
- package/src/components/waka-tour-guide/WakaTourGuide.stories.tsx +89 -0
- package/src/components/waka-treemap-chart/WakaTreemapChart.stories.tsx +234 -129
- package/src/components/waka-treemap-chart/index.tsx +2 -2
- package/src/components/waka-two-factor-setup/WakaTwoFactorSetup.stories.tsx +142 -0
- package/src/components/waka-typing-indicator/WakaTypingIndicator.stories.tsx +134 -0
- package/src/components/waka-video-ad/WakaVideoAd.stories.tsx +138 -0
- package/src/components/waka-video-call/WakaVideoCall.stories.tsx +186 -0
- package/src/components/waka-video-overlay/WakaVideoOverlay.stories.tsx +100 -0
- package/src/components/waka-voice-message/WakaVoiceMessage.stories.tsx +190 -0
- package/src/components/waka-welcome-modal/WakaWelcomeModal.stories.tsx +87 -0
- package/src/components/waka-xp-bar/WakaXPBar.stories.tsx +29 -29
- package/dist/useDataTableImport-D8R2HQl6.mjs +0 -229
- package/dist/useDataTableImport-S_hhA5Wo.js +0 -9
- package/src/components/DataTable/README.md +0 -446
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react"
|
|
2
|
+
import { SignatureDatabaseManager } from "."
|
|
3
|
+
|
|
4
|
+
const meta: Meta<typeof SignatureDatabaseManager> = {
|
|
5
|
+
title: "Blocks/Antivirus/SignatureDatabaseManager",
|
|
6
|
+
component: SignatureDatabaseManager,
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: "padded",
|
|
9
|
+
},
|
|
10
|
+
tags: ["autodocs"],
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default meta
|
|
14
|
+
type Story = StoryObj<typeof SignatureDatabaseManager>
|
|
15
|
+
|
|
16
|
+
export const Default: Story = {
|
|
17
|
+
args: {
|
|
18
|
+
databases: [
|
|
19
|
+
{
|
|
20
|
+
name: "main.cvd",
|
|
21
|
+
version: "62",
|
|
22
|
+
signatureCount: 6647427,
|
|
23
|
+
size: 162.5 * 1024 * 1024,
|
|
24
|
+
lastUpdated: new Date("2024-12-15T10:30:00"),
|
|
25
|
+
buildTime: new Date("2024-12-15T08:00:00"),
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "daily.cvd",
|
|
29
|
+
version: "27458",
|
|
30
|
+
signatureCount: 2145789,
|
|
31
|
+
size: 89.3 * 1024 * 1024,
|
|
32
|
+
lastUpdated: new Date("2025-01-15T14:20:00"),
|
|
33
|
+
buildTime: new Date("2025-01-15T12:00:00"),
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: "bytecode.cvd",
|
|
37
|
+
version: "334",
|
|
38
|
+
signatureCount: 52438,
|
|
39
|
+
size: 2.8 * 1024 * 1024,
|
|
40
|
+
lastUpdated: new Date("2025-01-10T09:15:00"),
|
|
41
|
+
buildTime: new Date("2025-01-10T06:00:00"),
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
updates: [
|
|
45
|
+
{
|
|
46
|
+
id: "upd-1",
|
|
47
|
+
date: new Date("2025-01-15T14:20:00"),
|
|
48
|
+
fromVersion: "27457",
|
|
49
|
+
toVersion: "27458",
|
|
50
|
+
newSignatures: 1247,
|
|
51
|
+
removedSignatures: 89,
|
|
52
|
+
duration: 45,
|
|
53
|
+
status: "success",
|
|
54
|
+
source: "daily.cvd",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: "upd-2",
|
|
58
|
+
date: new Date("2025-01-14T14:15:00"),
|
|
59
|
+
fromVersion: "27456",
|
|
60
|
+
toVersion: "27457",
|
|
61
|
+
newSignatures: 2134,
|
|
62
|
+
removedSignatures: 156,
|
|
63
|
+
duration: 52,
|
|
64
|
+
status: "success",
|
|
65
|
+
source: "daily.cvd",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
id: "upd-3",
|
|
69
|
+
date: new Date("2025-01-13T14:10:00"),
|
|
70
|
+
fromVersion: "27455",
|
|
71
|
+
toVersion: "27456",
|
|
72
|
+
newSignatures: 1876,
|
|
73
|
+
removedSignatures: 203,
|
|
74
|
+
duration: 48,
|
|
75
|
+
status: "success",
|
|
76
|
+
source: "daily.cvd",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
id: "upd-4",
|
|
80
|
+
date: new Date("2025-01-12T14:05:00"),
|
|
81
|
+
fromVersion: "27454",
|
|
82
|
+
toVersion: "27455",
|
|
83
|
+
newSignatures: 0,
|
|
84
|
+
removedSignatures: 0,
|
|
85
|
+
duration: 12,
|
|
86
|
+
status: "failed",
|
|
87
|
+
source: "daily.cvd",
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
id: "upd-5",
|
|
91
|
+
date: new Date("2025-01-11T14:00:00"),
|
|
92
|
+
fromVersion: "27453",
|
|
93
|
+
toVersion: "27454",
|
|
94
|
+
newSignatures: 3245,
|
|
95
|
+
removedSignatures: 178,
|
|
96
|
+
duration: 67,
|
|
97
|
+
status: "success",
|
|
98
|
+
source: "daily.cvd",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id: "upd-6",
|
|
102
|
+
date: new Date("2025-01-10T14:00:00"),
|
|
103
|
+
fromVersion: "333",
|
|
104
|
+
toVersion: "334",
|
|
105
|
+
newSignatures: 458,
|
|
106
|
+
removedSignatures: 23,
|
|
107
|
+
duration: 34,
|
|
108
|
+
status: "success",
|
|
109
|
+
source: "bytecode.cvd",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
id: "upd-7",
|
|
113
|
+
date: new Date("2025-01-09T14:00:00"),
|
|
114
|
+
fromVersion: "27452",
|
|
115
|
+
toVersion: "27453",
|
|
116
|
+
newSignatures: 1987,
|
|
117
|
+
removedSignatures: 134,
|
|
118
|
+
duration: 56,
|
|
119
|
+
status: "success",
|
|
120
|
+
source: "daily.cvd",
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
id: "upd-8",
|
|
124
|
+
date: new Date("2025-01-08T14:00:00"),
|
|
125
|
+
fromVersion: "27451",
|
|
126
|
+
toVersion: "27452",
|
|
127
|
+
newSignatures: 2456,
|
|
128
|
+
removedSignatures: 189,
|
|
129
|
+
duration: 61,
|
|
130
|
+
status: "success",
|
|
131
|
+
source: "daily.cvd",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
id: "upd-9",
|
|
135
|
+
date: new Date("2025-01-07T14:00:00"),
|
|
136
|
+
fromVersion: "27450",
|
|
137
|
+
toVersion: "27451",
|
|
138
|
+
newSignatures: 1678,
|
|
139
|
+
removedSignatures: 92,
|
|
140
|
+
duration: 43,
|
|
141
|
+
status: "success",
|
|
142
|
+
source: "daily.cvd",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
id: "upd-10",
|
|
146
|
+
date: new Date("2025-01-06T14:00:00"),
|
|
147
|
+
fromVersion: "27449",
|
|
148
|
+
toVersion: "27450",
|
|
149
|
+
newSignatures: 2234,
|
|
150
|
+
removedSignatures: 167,
|
|
151
|
+
duration: 58,
|
|
152
|
+
status: "success",
|
|
153
|
+
source: "daily.cvd",
|
|
154
|
+
},
|
|
155
|
+
],
|
|
156
|
+
freshclamConfig: {
|
|
157
|
+
updateFrequency: 24,
|
|
158
|
+
mirror: "database.clamav.net",
|
|
159
|
+
lastCheck: new Date("2025-01-15T14:20:00"),
|
|
160
|
+
checksToday: 12,
|
|
161
|
+
proxyEnabled: false,
|
|
162
|
+
},
|
|
163
|
+
totalSignatures: 8845654,
|
|
164
|
+
isUpdating: false,
|
|
165
|
+
onUpdateNow: () => console.log("Update now clicked"),
|
|
166
|
+
onScheduleUpdate: (frequency: number) => console.log("Schedule update:", frequency),
|
|
167
|
+
onViewChangelog: (updateId: string) => console.log("View changelog:", updateId),
|
|
168
|
+
},
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export const Updating: Story = {
|
|
172
|
+
args: {
|
|
173
|
+
...Default.args,
|
|
174
|
+
isUpdating: true,
|
|
175
|
+
},
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export const WithProxy: Story = {
|
|
179
|
+
args: {
|
|
180
|
+
...Default.args,
|
|
181
|
+
freshclamConfig: {
|
|
182
|
+
updateFrequency: 12,
|
|
183
|
+
mirror: "database.clamav.net",
|
|
184
|
+
lastCheck: new Date("2025-01-15T14:20:00"),
|
|
185
|
+
checksToday: 24,
|
|
186
|
+
proxyEnabled: true,
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export const UpdateInProgress: Story = {
|
|
192
|
+
args: {
|
|
193
|
+
...Default.args,
|
|
194
|
+
updates: [
|
|
195
|
+
{
|
|
196
|
+
id: "upd-0",
|
|
197
|
+
date: new Date(),
|
|
198
|
+
fromVersion: "27458",
|
|
199
|
+
toVersion: "27459",
|
|
200
|
+
newSignatures: 0,
|
|
201
|
+
removedSignatures: 0,
|
|
202
|
+
duration: 0,
|
|
203
|
+
status: "in_progress",
|
|
204
|
+
source: "daily.cvd",
|
|
205
|
+
},
|
|
206
|
+
...(Default.args?.updates || []),
|
|
207
|
+
],
|
|
208
|
+
},
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export const WithScheduled: Story = {
|
|
212
|
+
args: {
|
|
213
|
+
...Default.args,
|
|
214
|
+
updates: [
|
|
215
|
+
{
|
|
216
|
+
id: "upd-0",
|
|
217
|
+
date: new Date(Date.now() + 3600000),
|
|
218
|
+
fromVersion: "27458",
|
|
219
|
+
toVersion: "27459",
|
|
220
|
+
newSignatures: 0,
|
|
221
|
+
removedSignatures: 0,
|
|
222
|
+
duration: 0,
|
|
223
|
+
status: "scheduled",
|
|
224
|
+
source: "daily.cvd",
|
|
225
|
+
},
|
|
226
|
+
...(Default.args?.updates || []),
|
|
227
|
+
],
|
|
228
|
+
},
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export const FrequentChecks: Story = {
|
|
232
|
+
args: {
|
|
233
|
+
...Default.args,
|
|
234
|
+
freshclamConfig: {
|
|
235
|
+
updateFrequency: 4,
|
|
236
|
+
mirror: "eu.database.clamav.net",
|
|
237
|
+
lastCheck: new Date(),
|
|
238
|
+
checksToday: 48,
|
|
239
|
+
proxyEnabled: false,
|
|
240
|
+
},
|
|
241
|
+
},
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export const SingleDatabase: Story = {
|
|
245
|
+
args: {
|
|
246
|
+
...Default.args,
|
|
247
|
+
databases: [
|
|
248
|
+
{
|
|
249
|
+
name: "daily.cvd",
|
|
250
|
+
version: "27458",
|
|
251
|
+
signatureCount: 2145789,
|
|
252
|
+
size: 89.3 * 1024 * 1024,
|
|
253
|
+
lastUpdated: new Date("2025-01-15T14:20:00"),
|
|
254
|
+
buildTime: new Date("2025-01-15T12:00:00"),
|
|
255
|
+
},
|
|
256
|
+
],
|
|
257
|
+
totalSignatures: 2145789,
|
|
258
|
+
},
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export const RecentFailure: Story = {
|
|
262
|
+
args: {
|
|
263
|
+
...Default.args,
|
|
264
|
+
updates: [
|
|
265
|
+
{
|
|
266
|
+
id: "upd-0",
|
|
267
|
+
date: new Date(),
|
|
268
|
+
fromVersion: "27458",
|
|
269
|
+
toVersion: "27459",
|
|
270
|
+
newSignatures: 0,
|
|
271
|
+
removedSignatures: 0,
|
|
272
|
+
duration: 8,
|
|
273
|
+
status: "failed",
|
|
274
|
+
source: "daily.cvd",
|
|
275
|
+
},
|
|
276
|
+
...(Default.args?.updates || []),
|
|
277
|
+
],
|
|
278
|
+
},
|
|
279
|
+
}
|