@modern-js/main-doc 2.58.1 → 2.58.2

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.
@@ -56,31 +56,37 @@ export default function Home() {
56
56
 
57
57
  const features = [
58
58
  {
59
+ id: 'feature1',
59
60
  title: t('feature1'),
60
61
  href: useUrl('/guides/concept/builder'),
61
62
  desc: t('featureDesc1'),
62
63
  },
63
64
  {
65
+ id: 'feature2',
64
66
  title: t('feature2'),
65
67
  href: useUrl('/guides/advanced-features/bff/index'),
66
68
  desc: t('featureDesc2'),
67
69
  },
68
70
  {
71
+ id: 'feature3',
69
72
  title: t('feature3'),
70
73
  href: useUrl('/guides/basic-features/routes'),
71
74
  desc: t('featureDesc3'),
72
75
  },
73
76
  {
77
+ id: 'feature4',
74
78
  title: t('feature4'),
75
79
  href: useUrl('/guides/advanced-features/ssr'),
76
80
  desc: t('featureDesc4'),
77
81
  },
78
82
  {
83
+ id: 'feature5',
79
84
  title: t('feature5'),
80
85
  href: useUrl('/guides/basic-features/css'),
81
86
  desc: t('featureDesc5'),
82
87
  },
83
88
  {
89
+ id: 'feature6',
84
90
  title: t('feature6'),
85
91
  href: useUrl('/configure/app/usage'),
86
92
  desc: t('featureDesc6'),
@@ -90,11 +96,13 @@ export default function Home() {
90
96
  const lang = useLang();
91
97
  const solutions = [
92
98
  {
99
+ id: 'framework',
93
100
  title: 'Modern.js Framework',
94
101
  href: useUrl('/guides/get-started/introduction'),
95
102
  desc: t('solutionsDesc1'),
96
103
  },
97
104
  {
105
+ id: 'module',
98
106
  title: 'Modern.js Module',
99
107
  href: `https://modernjs.dev/module-tools${lang === 'en' ? '/en' : ''}`,
100
108
  desc: t('solutionsDesc2'),
@@ -104,7 +112,7 @@ export default function Home() {
104
112
  return (
105
113
  <div>
106
114
  <Helmet>
107
- <html className="dark"></html>
115
+ <html className="dark" />
108
116
  <script>window.MODERN_THEME = 'dark';</script>
109
117
  <style type="text/css">{`
110
118
  .rspress-doc-appearance {
@@ -117,9 +125,9 @@ export default function Home() {
117
125
  <FeatureLayout>
118
126
  <SecondaryTitle>{t('solutions')}</SecondaryTitle>
119
127
  <div className={styles.cardContainer}>
120
- {solutions.map((card, cardIndex) => (
128
+ {solutions.map(card => (
121
129
  <ContentCard
122
- key={cardIndex}
130
+ key={card.id}
123
131
  title={card.title}
124
132
  desc={card.desc}
125
133
  href={card.href}
@@ -141,9 +149,9 @@ export default function Home() {
141
149
  <FeatureLayout>
142
150
  <SecondaryTitle>Modern.js Framework</SecondaryTitle>
143
151
  <div className={styles.cardContainer}>
144
- {features.map((card, cardIndex) => (
152
+ {features.map(card => (
145
153
  <ContentCard
146
- key={cardIndex}
154
+ key={card.id}
147
155
  title={card.title}
148
156
  desc={card.desc}
149
157
  href={card.href}
@@ -1,3 +0,0 @@
1
- {
2
- "extends": ["@modern-js-app"]
3
- }