Skip to content

Commit 5fdb854

Browse files
committedMar 26, 2025··
Add loading indicator
1 parent d236bf0 commit 5fdb854

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed
 

Diff for: ‎bun.lock

+3
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"bun-types": "^1.1.20",
7575
"classnames": "^2.5.1",
7676
"framer-motion": "^10.16.14",
77+
"holy-loader": "^2.3.13",
7778
"js-cookie": "^3.0.5",
7879
"jsontoxml": "^1.0.1",
7980
"jwt-decode": "^4.0.0",
@@ -1957,6 +1958,8 @@
19571958

19581959
"highlightjs-vue": ["highlightjs-vue@1.0.0", "", {}, "sha512-PDEfEF102G23vHmPhLyPboFCD+BkMGu+GuJe2d9/eH4FsCwvgBpnc9n0pGE+ffKdph38s6foEZiEjdgHdzp+IA=="],
19591960

1961+
"holy-loader": ["holy-loader@2.3.13", "", { "peerDependencies": { "react": ">= 16.0.0" } }, "sha512-SnQ06sfMgbhiRGkHZ0RFMbexSpZN3i6tgItt3q8GWNba3mOdsq1RNJXkoqsWkqPIAmyroj2/xIOHu1hCFnjkBQ=="],
1962+
19601963
"hookable": ["hookable@5.5.3", "", {}, "sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ=="],
19611964

19621965
"hookified": ["hookified@1.8.1", "", {}, "sha512-GrO2l93P8xCWBSTBX9l2BxI78VU/MAAYag+pG8curS3aBGy0++ZlxrQ7PdUOUVMbn5BwkGb6+eRrnf43ipnFEA=="],

Diff for: ‎packages/gitbook/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"bun-types": "^1.1.20",
4040
"classnames": "^2.5.1",
4141
"framer-motion": "^10.16.14",
42+
"holy-loader": "^2.3.13",
4243
"js-cookie": "^3.0.5",
4344
"jsontoxml": "^1.0.1",
4445
"jwt-decode": "^4.0.0",

Diff for: ‎packages/gitbook/src/components/RootLayout/CustomizationRootLayout.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ import {
2121
hexToRgb,
2222
} from '@gitbook/colors';
2323
import { IconStyle, IconsProvider } from '@gitbook/icons';
24+
import HolyLoader from 'holy-loader';
2425
import * as ReactDOM from 'react-dom';
2526

2627
import { getFontData } from '@/fonts';
2728
import { fontNotoColorEmoji, ibmPlexMono } from '@/fonts/default';
2829
import { getSpaceLanguage } from '@/intl/server';
2930
import { getAssetURL } from '@/lib/assets';
3031
import { tcls } from '@/lib/tailwind';
31-
3232
import { ClientContexts } from './ClientContexts';
3333

3434
import '@gitbook/icons/style.css';
@@ -151,6 +151,7 @@ export async function CustomizationRootLayout(props: {
151151
}
152152
`}</style>
153153
</head>
154+
<HolyLoader color="rgb(var(--primary-9))" height={1} />
154155
<body
155156
className={tcls(
156157
'bg-tint-base',

0 commit comments

Comments
 (0)
Please sign in to comment.