You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Unauthorized access - shown when authentication is required. */
26
+
exportconstUnauthorized: Story={
27
+
args: {
28
+
error: {
29
+
status: 401,
30
+
}asNuxtError,
31
+
},
32
+
}
33
+
34
+
/** Generic server error with default message. */
35
+
exportconstServerError: Story={
36
+
args: {
37
+
error: {
38
+
status: 500,
39
+
}asNuxtError,
40
+
},
41
+
}
42
+
43
+
/** Service unavailable - occurs when external services (jsDelivr, npm registry) fail. */
44
+
exportconstServiceUnavailable: Story={
45
+
args: {
46
+
error: {
47
+
status: 503,
48
+
}asNuxtError,
49
+
},
50
+
}
51
+
52
+
exportconstTeapot: Story={
53
+
args: {
54
+
error: {
55
+
status: 418,
56
+
}asNuxtError,
57
+
},
58
+
}
59
+
60
+
/** Error with a message. */
61
+
exportconstWithMessage: Story={
62
+
args: {
63
+
error: {
64
+
status: 404,
65
+
message: 'The page you are looking for does not exist.',
66
+
}asNuxtError,
67
+
},
68
+
}
69
+
70
+
/** Error with a detailed message to test text wrapping and layout. */
71
+
exportconstLongMessage: Story={
72
+
args: {
73
+
error: {
74
+
status: 500,
75
+
message:
76
+
'Internal server error. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean tristique ex ac nisi dapibus maximus. Curabitur feugiat lorem eros, sed eleifend purus facilisis at.',
/** `/lunaria/status.json` is intercepted by MSW. Showing a variety of completion level translation statuses for a subset of locales. */
21
+
exportconstDefault: Story={}
22
+
23
+
/** No API response — the fetch never succeeds so `fetchStatus` stays as `'pending'`. Shows skeleton blocks in the locale list and skeleton inlines in body text. */
0 commit comments