Skip to content

Commit c7978f7

Browse files
committed
[optimize] simplify MDX loader with latest WebCell & Cell Router
[fix] WebCell logo URL
1 parent 6c5c701 commit c7978f7

File tree

13 files changed

+118
-125
lines changed

13 files changed

+118
-125
lines changed

create-index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ console.time(title);
3030
sourceCode.push(`{
3131
path: '${path.replace(MDXPattern, '')}',
3232
${meta},
33-
component: lazy(loadMDX(() => import('./${path}')))
33+
component: loadMDX(() => import('./${path}'))
3434
}`);
3535
}
3636

@@ -39,8 +39,6 @@ console.time(title);
3939
`// This file is created by "${title}" script,
4040
// please don't edit it manually!
4141
42-
import { lazy } from 'web-cell';
43-
4442
import { loadMDX } from '../utility';
4543
4644
export default [

document/source/components/Form/HTMLEditor.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ render(
3939
new Promise(resolve =>
4040
setTimeout(
4141
() =>
42-
resolve('https://web-cell.dev/WebCell-1.fb612fdb.png'),
42+
resolve('https://web-cell.dev/WebCell-0.a6336415.png'),
4343
1000
4444
)
4545
)
@@ -60,7 +60,7 @@ render(
6060
new Promise(resolve =>
6161
setTimeout(
6262
() =>
63-
resolve('https://web-cell.dev/WebCell-1.fb612fdb.png'),
63+
resolve('https://web-cell.dev/WebCell-0.a6336415.png'),
6464
1000
6565
)
6666
)

document/source/components/Form/MarkdownEditor.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ You can **paste** or **drop** images into the editor, and **upload** them on `<f
3030
<FileUploader
3131
transport={() => ({
3232
path: Promise.resolve(
33-
'https://web-cell.dev/WebCell-1.fb612fdb.png'
33+
'https://web-cell.dev/WebCell-0.a6336415.png'
3434
)
3535
})}
3636
>
@@ -58,7 +58,7 @@ render(
5858
<FileUploader
5959
transport={() => ({
6060
path: Promise.resolve(
61-
'https://web-cell.dev/WebCell-1.fb612fdb.png'
61+
'https://web-cell.dev/WebCell-0.a6336415.png'
6262
)
6363
})}
6464
>

document/source/components/Media/Image.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ In addition to our [border-radius utilities][1], you can use `thumbnail` propert
4141
<Example>
4242
<Image
4343
thumbnail
44-
src="https://web-cell.dev/WebCell-0.f1ffd28b.png"
44+
src="https://web-cell.dev/WebCell-0.a6336415.png"
4545
alt="Thumbnail image"
4646
/>
4747
</Example>
@@ -53,7 +53,7 @@ import { Image } from 'boot-cell/source/Media/Image';
5353
render(
5454
<Image
5555
thumbnail
56-
src="https://web-cell.dev/WebCell-0.f1ffd28b.png"
56+
src="https://web-cell.dev/WebCell-0.a6336415.png"
5757
alt="Thumbnail image"
5858
/>
5959
);

document/source/components/Navigator/NavBar.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ import { Example } from '../../../../source/component/Example';
2222

2323
Here’s what you need to know before getting started with the navbar:
2424

25-
- Navbars and their contents are fluid by default.
26-
- Use our [spacing][1] and [flex][2] utility classes for controlling spacing and alignment within navbars.
27-
- Navbars are responsive by default, but you can easily modify them to change that.
28-
- Navbars are hidden by default when printing. Force them to be printed by adding `.d-print` to the `<NavBar />`. See the [display][3] utility class.
25+
- Navbars and their contents are fluid by default.
26+
- Use our [spacing][1] and [flex][2] utility classes for controlling spacing and alignment within navbars.
27+
- Navbars are responsive by default, but you can easily modify them to change that.
28+
- Navbars are hidden by default when printing. Force them to be printed by adding `.d-print` to the `<NavBar />`. See the [display][3] utility class.
2929

3030
In addition, `<NavBar />` uses [`ResizeObserver`][4] to detect **Viewport resizing**, so a polyfill may be required:
3131

@@ -42,8 +42,8 @@ Read on for an example and list of supported sub-components.
4242

4343
Navbars come with built-in support for a handful of sub-components. Choose from the following as needed:
4444

45-
- `<Form inline />` for any form controls and actions.
46-
- `.navbar-text` for adding vertically centered strings of text.
45+
- `<Form inline />` for any form controls and actions.
46+
- `.navbar-text` for adding vertically centered strings of text.
4747

4848
Here’s an example of all the sub-components included in a responsive light-themed navbar
4949
that automatically collapses at the `lg` (large) breakpoint.
@@ -160,7 +160,7 @@ Here are some examples to demonstrate.
160160
brand={
161161
<Image
162162
style={{ width: '30px', height: '30px' }}
163-
src="https://web-cell.dev/WebCell-0.f1ffd28b.png"
163+
src="https://web-cell.dev/WebCell-0.a6336415.png"
164164
/>
165165
}
166166
/>
@@ -171,7 +171,7 @@ Here are some examples to demonstrate.
171171
<Image
172172
className="d-inline-block align-top"
173173
style={{ width: '30px', height: '30px' }}
174-
src="https://web-cell.dev/WebCell-0.f1ffd28b.png"
174+
src="https://web-cell.dev/WebCell-0.a6336415.png"
175175
/>
176176
BootCell
177177
</>
@@ -189,15 +189,15 @@ render(
189189
<NavBar brand={
190190
<Image
191191
style={{ width: '30px', height: '30px' }}
192-
src="https://web-cell.dev/WebCell-0.f1ffd28b.png"
192+
src="https://web-cell.dev/WebCell-0.a6336415.png"
193193
/>
194194
} />
195195
<NavBar brand={
196196
<>
197197
<Image
198198
className="d-inline-block align-top"
199199
style={{ width: '30px', height: '30px' }}
200-
src="https://web-cell.dev/WebCell-0.f1ffd28b.png"
200+
src="https://web-cell.dev/WebCell-0.a6336415.png"
201201
/>
202202
BootCell
203203
</>

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
},
88
"dependencies": {
99
"boot-cell": "^2.0.0-rc.19",
10-
"cell-router": "^4.0.3",
10+
"cell-router": "^4.0.4",
1111
"classnames": "^2.5.1",
1212
"dom-renderer": "^2.6.2",
1313
"github-web-widget": "^4.0.0",
1414
"iterable-observer": "^1.1.0",
1515
"mobx": "^6.15.0",
1616
"mobx-github": "^0.5.1",
17-
"web-cell": "^3.2.1",
17+
"web-cell": "^3.2.2",
1818
"web-utility": "^4.6.1"
1919
},
2020
"devDependencies": {

0 commit comments

Comments
 (0)