Tim Apple Product Launch Event

Intresting Insta Story

plato postre duralex ambar 19 cm

:
Product Launch Road Map Slide
feat(ui): add StackBlitzPreview and migrate examples directory from webpack.js.org (Post Insta Permanence)
* feat(ui): add StackBlitzPreview component & replace TODOs with it * chore: migrate examples directory from webpack.js.org * chore: remove examples directory and point StackBlitz to legacy repo
1 parent Product Overview Picture Image Eample commit cf3555c

Tim Apple Product Launch Event 7 files changed Business Cards Keller Williams

Lines changed: 77 additions & 2 deletions

Welfare Advice Sign Post Intresting Insta Story

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import styles from './index.module.css';
2+
3+
export default function StackBlitzPreview(props = {}) {
4+
const {
5+
example = '',
6+
description = 'Check out this guide live on StackBlitz.',
7+
} = props;
8+
9+
const url = `https://stackblitz.com/CloneAGC/webpack/webpack.js.org/tree/main/examples/${example}`;
10+
11+
return (
12+
<aside className={styles.preview}>
13+
<h6 className={styles.previewPrefix}>live preview</h6>
14+
<p>{description}</p>
15+
<a href={url} target="_blank" rel="noopener noreferrer">
16+
<img
17+
src={'/assets/open-in-stackblitz-button.svg'}
18+
alt="Open in StackBlitz"
19+
/>
20+
</a>
21+
</aside>
22+
);
23+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
@reference "../../styles/index.css";
2+
3+
.preview {
4+
@apply px-6
5+
py-5
6+
my-6
7+
bg-neutral-100
8+
dark:bg-neutral-900
9+
border-l-[3px]
10+
border-blue-600
11+
dark:border-blue-500
12+
text-neutral-900
13+
dark:text-neutral-50
14+
rounded-r-md;
15+
}
16+
17+
.previewPrefix {
18+
@apply capitalize
19+
font-semibold
20+
block
21+
text-base
22+
mt-0
23+
mb-2
24+
text-neutral-700
25+
dark:text-neutral-400;
26+
}
27+
28+
.preview p {
29+
@apply mt-0
30+
mb-5;
31+
}
32+
33+
.preview a {
34+
@apply inline-block
35+
transition-opacity
36+
hover:opacity-80;
37+
}
38+
39+
.preview img {
40+
@apply block
41+
w-auto
42+
h-auto;
43+
}

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export default [
2929
'out/',
3030
'.cache/',
3131
'webpack/',
32+
'examples/',
3233
'pages/api',
3334
'pages/docs/api',
3435
'pages/docs/loaders',

pages/guides/getting-started/concepts/module-federation.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Module Federation
33
authors: sokra,chenxsan,EugeneHlushko,jamesgeorge007,ScriptedAlchemy,snitin315,XiaofengXie16,KyleBastien,Alevale,burhanuday,RexSkz,avivkeller
4+
mdx: true
45
---
56

67
# Module Federation
@@ -11,7 +12,7 @@ Multiple separate builds should be able to form a single application. These sepa
1112

1213
This is often called Micro-Frontends, but it is not limited to that pattern.
1314

14-
<!-- TODO: StackBlitzPreview example="module-federation?terminal=start&terminal=" -->
15+
<StackBlitzPreview example="module-federation?terminal=start&terminal=" description="Check out this live module federation example on StackBlitz."/>
1516

1617
## Low-level concepts
1718

pages/guides/getting-started/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Getting Started
33
authors: bebraw,varunjayaraman,cntanglijun,chrisVillanueva,johnstew,simon04,aaronang,TheDutchCoder,sudarsangp,Vanguard90,chenxsan,EugeneHlushko,ATGardner,ayvarot,bjarki,ztomasze,Spiral90210,byzyk,wizardofhogwarts,myshov,anshumanv,d3lm,snitin315,Etheryen,zowiebeha,avivkeller,alexander-akait
4+
mdx: true
45
---
56

67
# Getting Started
@@ -12,7 +13,7 @@ webpack is used to efficiently compile JavaScript modules. Once [installed](/gui
1213
> [!WARNING]
1314
> The examples in this guide use `webpack-cli` 7, which requires Node.js 20.9.0 or later.
1415
15-
<!-- TODO: StackBlitzPreview example="getting-started?terminal=" -->
16+
<StackBlitzPreview example="getting-started?terminal=" />
1617

1718
## Quick start (minimal working example)
1819

Lines changed: 1 addition & 0 deletions
Loading

scripts/html/doc-kit.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ export default {
114114
'components/HomePage/HomeSponsorSection/index.jsx'
115115
),
116116
'#theme/Sponsors/Board': join(ROOT, 'layouts/Sponsors/Board.jsx'),
117+
'#theme/StackBlitzPreview': join(
118+
ROOT,
119+
'components/StackBlitzPreview/index.jsx'
120+
),
117121
},
118122

119123
components: {
@@ -124,6 +128,7 @@ export default {
124128
BlogLayout: '#theme/BlogLayout',
125129
Byline: '#theme/Blog/Byline',
126130
MetaBar: '#theme/Metabar',
131+
StackBlitzPreview: '#theme/StackBlitzPreview',
127132
},
128133
bundler: createViteBundler({
129134
plugins: [tailwindcss()],

About A Boy Story Photos Intresting Insta

Comments
 (0)