@brillout/docpress 0.5.38 → 0.5.40-commit-1ba896e

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.
Files changed (143) hide show
  1. package/MobileHeader.tsx +68 -0
  2. package/PageLayout.css +42 -0
  3. package/PageLayout.tsx +39 -0
  4. package/algolia/DocSearch.css +34 -0
  5. package/algolia/DocSearch.ts +62 -0
  6. package/autoScrollNav.ts +36 -0
  7. package/components/CodeBlockTransformer.css +9 -0
  8. package/components/CodeBlockTransformer.tsx +18 -0
  9. package/components/Comment.tsx +7 -0
  10. package/components/Consulting.tsx +47 -0
  11. package/components/Contributors.tsx +113 -0
  12. package/components/EditPageNote.tsx +18 -0
  13. package/components/HorizontalLine.tsx +20 -0
  14. package/components/ImportMeta.tsx +11 -0
  15. package/components/Link.tsx +144 -0
  16. package/components/Note.css +54 -0
  17. package/components/Note.tsx +78 -0
  18. package/components/P.css +8 -0
  19. package/components/P.tsx +8 -0
  20. package/components/ReadingRecommendation.tsx +56 -0
  21. package/components/RepoLink.tsx +24 -0
  22. package/components/Sponsors/label.draft.svg +108 -0
  23. package/components/Sponsors.tsx +218 -0
  24. package/components/Supporters.tsx +136 -0
  25. package/{dist/components → components}/features/FeatureList.css +10 -2
  26. package/components/features/FeatureList.tsx +114 -0
  27. package/components/features/initFeatureList.ts +66 -0
  28. package/components/index.ts +15 -0
  29. package/config/getConfig.ts +18 -0
  30. package/config/resolveConfig/resolveHeading.ts +0 -0
  31. package/config/resolvePageContext.ts +186 -0
  32. package/css/button.css +7 -0
  33. package/css/code/block.css +36 -0
  34. package/css/code/inline.css +27 -0
  35. package/css/code.css +20 -0
  36. package/css/colorize-on-hover.css +29 -0
  37. package/css/font.css +25 -0
  38. package/css/heading.css +45 -0
  39. package/css/index.css +12 -0
  40. package/css/link.css +17 -0
  41. package/css/reset.css +12 -0
  42. package/css/table.css +14 -0
  43. package/css/tooltip.css +11 -0
  44. package/data/maintainersList.tsx +92 -0
  45. package/data/sponsorsList.ts +147 -0
  46. package/dist/markdownHeadingsVitePlugin.d.ts +13 -0
  47. package/dist/markdownHeadingsVitePlugin.js +170 -0
  48. package/dist/utils/assert.d.ts +6 -0
  49. package/dist/utils/assert.js +48 -0
  50. package/dist/utils/determineSectionUrlHash.d.ts +4 -0
  51. package/dist/utils/determineSectionUrlHash.js +38 -0
  52. package/dist/vite.config.d.ts +3 -0
  53. package/dist/vite.config.js +32 -0
  54. package/index.ts +4 -0
  55. package/installSectionUrlHashs.ts +60 -0
  56. package/markdownHeadingsVitePlugin.ts +150 -0
  57. package/navigation/Navigation-highlight.css +41 -0
  58. package/navigation/Navigation-items.css +119 -0
  59. package/navigation/Navigation-layout.css +127 -0
  60. package/navigation/Navigation.client.ts +43 -0
  61. package/navigation/Navigation.css +3 -0
  62. package/navigation/Navigation.tsx +211 -0
  63. package/navigation/NavigationHeader.tsx +111 -0
  64. package/navigation/navigation-fullscreen/NavigationFullscreenButton.css +32 -0
  65. package/navigation/navigation-fullscreen/NavigationFullscreenButton.tsx +44 -0
  66. package/navigation/navigation-fullscreen/initNavigationFullscreen.ts +116 -0
  67. package/package.json +27 -47
  68. package/parseEmojis.ts +35 -0
  69. package/parseTitle.ts +139 -0
  70. package/renderer/client.ts +4 -0
  71. package/renderer/onRenderHtml.tsx +69 -0
  72. package/renderer/usePageContext.tsx +25 -0
  73. package/tsconfig.json +15 -0
  74. package/tsconfig.vite-config.json +7 -0
  75. package/types/Config.ts +46 -0
  76. package/types/Heading.ts +49 -0
  77. package/utils/Emoji/Emoji.ts +224 -0
  78. package/utils/Emoji/assets.ts +9 -0
  79. package/utils/Emoji/index.ts +1 -0
  80. package/utils/Emoji/mountain.svg +1 -0
  81. package/utils/assert.ts +51 -0
  82. package/utils/client.ts +2 -0
  83. package/utils/determineSectionUrlHash.ts +44 -0
  84. package/utils/filesystemPathHandling.ts +42 -0
  85. package/utils/filter.ts +12 -0
  86. package/utils/isBrowser.ts +5 -0
  87. package/utils/jsxToTextContent.ts +11 -0
  88. package/utils/objectAssign.ts +9 -0
  89. package/utils/server.ts +7 -0
  90. package/vite.config.ts +36 -0
  91. package/bin.js +0 -3
  92. package/dist/chunk-2ZTPUQGS.js +0 -58
  93. package/dist/chunk-3QC7HYIF.js +0 -7
  94. package/dist/chunk-MGOI4AFO.js +0 -165
  95. package/dist/chunk-NVJING6T.js +0 -91
  96. package/dist/chunk-QWL3MA4E.js +0 -171
  97. package/dist/chunk-UN23G34B.js +0 -157
  98. package/dist/cli/index.d.ts +0 -1
  99. package/dist/cli/index.js +0 -34
  100. package/dist/components/features/FeatureList.d.ts +0 -13
  101. package/dist/components/features/FeatureList.js +0 -7
  102. package/dist/components/features/initFeatureList.d.ts +0 -3
  103. package/dist/components/features/initFeatureList.js +0 -59
  104. package/dist/devServer-JKH6U5PF.js +0 -36
  105. package/dist/index.css +0 -120
  106. package/dist/index.d.ts +0 -225
  107. package/dist/index.js +0 -949
  108. package/dist/renderer/_default.page.client.css +0 -318
  109. package/dist/renderer/_default.page.client.d.ts +0 -1
  110. package/dist/renderer/_default.page.client.js +0 -218
  111. package/dist/renderer/_default.page.server.css +0 -310
  112. package/dist/renderer/_default.page.server.d.ts +0 -22
  113. package/dist/renderer/_default.page.server.js +0 -665
  114. package/readme.md +0 -5
  115. /package/{dist/label-MP75CTIA.svg → components/Sponsors/label.svg} +0 -0
  116. /package/{dist/medalBronze-CO4CTUR4.svg → components/Sponsors/medalBronze.svg} +0 -0
  117. /package/{dist/medalGold-UP6A73FL.svg → components/Sponsors/medalGold.svg} +0 -0
  118. /package/{dist/medalSilver-FAPGGOBN.svg → components/Sponsors/medalSilver.svg} +0 -0
  119. /package/{dist/chevron-R2IYJD62.svg → components/features/chevron.svg} +0 -0
  120. /package/{dist/Inter-Var-IOAEQULN.ttf → css/Inter-Var.ttf} +0 -0
  121. /package/{dist/alignable-B4QZV4X7.svg → data/sponsorsList/companyLogos/alignable.svg} +0 -0
  122. /package/{dist/bluefin-JQABZFGV.svg → data/sponsorsList/companyLogos/bluefin.svg} +0 -0
  123. /package/{dist/burdaforward-EUGURYZY.png → data/sponsorsList/companyLogos/burdaforward.png} +0 -0
  124. /package/{dist/contra-WLZBOPBV.svg → data/sponsorsList/companyLogos/contra.svg} +0 -0
  125. /package/{dist/ecosia-OYRLTR5T.svg → data/sponsorsList/companyLogos/ecosia.svg} +0 -0
  126. /package/{dist/inlang-GFRWND6X.png → data/sponsorsList/companyLogos/inlang.png} +0 -0
  127. /package/{dist/optimizers-SFEZF3NW.svg → data/sponsorsList/companyLogos/optimizers.svg} +0 -0
  128. /package/{dist/sourcegraph-YR2HADLS.svg → data/sponsorsList/companyLogos/sourcegraph.svg} +0 -0
  129. /package/{dist/changelog-IPI5F42D.svg → icons/changelog.svg} +0 -0
  130. /package/{dist/discord-JD33TUSF.svg → icons/discord.svg} +0 -0
  131. /package/{dist/github-P5ZSKN2N.svg → icons/github.svg} +0 -0
  132. /package/{dist/heart-OINVKOXO.svg → icons/heart.svg} +0 -0
  133. /package/{dist/languages-KXPKJFQL.svg → icons/languages.svg} +0 -0
  134. /package/{dist/people-72KKQHU4.svg → icons/people.svg} +0 -0
  135. /package/{dist/twitter-I7DXDN3J.svg → icons/twitter.svg} +0 -0
  136. /package/{dist/chevron-K3WPYLOP.svg → navigation/navigation-fullscreen/chevron.svg} +0 -0
  137. /package/{dist/close-IQXTDOHV.svg → navigation/navigation-fullscreen/close.svg} +0 -0
  138. /package/{dist/compass-2RWQU3E4.svg → utils/Emoji/compass.svg} +0 -0
  139. /package/{dist/engine-6Q6VSCVA.png → utils/Emoji/engine.png} +0 -0
  140. /package/{dist/mechanical-arm-TR7IQQMG.svg → utils/Emoji/mechanical-arm.svg} +0 -0
  141. /package/{dist/road-fork-3WZLW3HB.svg → utils/Emoji/road-fork.svg} +0 -0
  142. /package/{dist/shield-CU45RG5C.svg → utils/Emoji/shield.svg} +0 -0
  143. /package/{dist/typescript-ALIPKLRM.svg → utils/Emoji/typescript.svg} +0 -0
package/dist/index.js DELETED
@@ -1,949 +0,0 @@
1
- import {
2
- RepoLink,
3
- isRepoLink,
4
- parseTitle,
5
- usePageContext
6
- } from "./chunk-MGOI4AFO.js";
7
- import {
8
- FeatureList
9
- } from "./chunk-NVJING6T.js";
10
- import {
11
- Emoji,
12
- crawlAllFiles,
13
- determineSectionTitle,
14
- determineSectionUrlHash,
15
- filter,
16
- jsxToTextContent,
17
- objectAssign
18
- } from "./chunk-UN23G34B.js";
19
- import {
20
- assert,
21
- assertUsage,
22
- assertWarning,
23
- isBrowser
24
- } from "./chunk-2ZTPUQGS.js";
25
- import "./chunk-3QC7HYIF.js";
26
-
27
- // src/components/Link.tsx
28
- import React from "react";
29
- function Link({
30
- href,
31
- text,
32
- noBreadcrumb,
33
- doNotInferSectionTitle,
34
- children
35
- }) {
36
- assertUsage(
37
- href.startsWith("/") || href.startsWith("#"),
38
- `<Link href /> prop \`href==='${href}'\` but should start with '/' or '#'`
39
- );
40
- assertUsage(!text || !children, "Cannot use both `text` or `children`");
41
- if (isRepoLink(href)) {
42
- return /* @__PURE__ */ React.createElement(RepoLink, {
43
- path: href,
44
- text
45
- });
46
- } else {
47
- const pageContext = usePageContext();
48
- return /* @__PURE__ */ React.createElement("a", {
49
- href
50
- }, children || text || getLinkText({ href, noBreadcrumb, pageContext, doNotInferSectionTitle }));
51
- }
52
- }
53
- function getLinkText({
54
- href,
55
- noBreadcrumb,
56
- pageContext,
57
- doNotInferSectionTitle
58
- }) {
59
- let urlHash = null;
60
- let hrefWithoutHash = href;
61
- if (href.includes("#")) {
62
- ;
63
- [hrefWithoutHash, urlHash] = href.split("#");
64
- assert(hrefWithoutHash || urlHash);
65
- }
66
- let heading;
67
- let isLinkOnSamePage = false;
68
- if (hrefWithoutHash) {
69
- heading = findHeading(hrefWithoutHash, pageContext);
70
- if (heading.url === pageContext.urlPathname) {
71
- isLinkOnSamePage = true;
72
- heading = pageContext.activeHeading;
73
- }
74
- } else {
75
- assert(urlHash);
76
- isLinkOnSamePage = true;
77
- heading = pageContext.activeHeading;
78
- }
79
- assert(heading);
80
- assert(isLinkOnSamePage === (heading.url === pageContext.urlPathname));
81
- assert(isLinkOnSamePage === (heading.url === pageContext.activeHeading.url));
82
- assert(isLinkOnSamePage === (heading === pageContext.activeHeading));
83
- const breadcrumbParts = [];
84
- if (heading.headingsBreadcrumb) {
85
- breadcrumbParts.push(
86
- ...(heading.headingsBreadcrumb ?? []).slice().reverse().map(({ title }) => title)
87
- );
88
- }
89
- breadcrumbParts.push(heading.title);
90
- if (urlHash) {
91
- let sectionTitle = void 0;
92
- assert(!urlHash.startsWith("#"));
93
- if (isLinkOnSamePage) {
94
- const pageHeading = findHeading(`#${urlHash}`, pageContext);
95
- sectionTitle = pageHeading.title;
96
- } else if ("sectionTitles" in heading && heading.sectionTitles) {
97
- heading.sectionTitles.forEach((title) => {
98
- if (determineSectionUrlHash(title) === urlHash) {
99
- sectionTitle = parseTitle(title);
100
- }
101
- });
102
- }
103
- if (!sectionTitle) {
104
- assertUsage(
105
- !doNotInferSectionTitle,
106
- `Page section title not found for <Link href="\`${href}\`" doNotInferSectionTitle={true} />.`
107
- );
108
- sectionTitle = determineSectionTitle(href);
109
- }
110
- breadcrumbParts.push(sectionTitle);
111
- }
112
- {
113
- if (noBreadcrumb || isLinkOnSamePage) {
114
- return breadcrumbParts[breadcrumbParts.length - 1];
115
- }
116
- }
117
- return /* @__PURE__ */ React.createElement(React.Fragment, null, breadcrumbParts.map((title, i) => {
118
- const seperator = i === 0 ? /* @__PURE__ */ React.createElement(React.Fragment, null) : " > ";
119
- return /* @__PURE__ */ React.createElement(React.Fragment, {
120
- key: i
121
- }, seperator, title);
122
- }));
123
- }
124
- function findHeading(href, pageContext) {
125
- assert(href.startsWith("/") || href.startsWith("#"));
126
- const { headingsAll } = pageContext;
127
- const heading = headingsAll.find(({ url }) => href === url);
128
- if (href.startsWith("#")) {
129
- assertUsage(heading, `Couldn't find ${href} in ${pageContext.urlPathname}, does it exist?`);
130
- } else {
131
- assertUsage(heading, `Couldn't find heading for ${href}, did you define the heading for ${href}?`);
132
- }
133
- return heading;
134
- }
135
-
136
- // src/components/P.tsx
137
- import React2 from "react";
138
- function P(props) {
139
- return /* @__PURE__ */ React2.createElement("div", {
140
- ...props,
141
- className: "paragraph"
142
- });
143
- }
144
-
145
- // src/components/ReadingRecommendation.tsx
146
- import React3 from "react";
147
- function ReadingRecommendation({ tour, links }) {
148
- links ?? (links = []);
149
- if (!links.length)
150
- tour = true;
151
- const multiple = links.length + (tour ? 1 : 0) > 1;
152
- const intro = /* @__PURE__ */ React3.createElement("b", null, "Reading Recommendation", multiple ? "." : ": ");
153
- return /* @__PURE__ */ React3.createElement("blockquote", null, (() => {
154
- if (!multiple) {
155
- const link = tour ? /* @__PURE__ */ React3.createElement(TourLink, null) : /* @__PURE__ */ React3.createElement(Link, {
156
- href: links[0]
157
- });
158
- return /* @__PURE__ */ React3.createElement("p", null, intro, link);
159
- }
160
- return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement("p", null, " ", intro), /* @__PURE__ */ React3.createElement("ul", {
161
- style: {
162
- marginLeft: 18,
163
- marginTop: 11
164
- }
165
- }, tour && /* @__PURE__ */ React3.createElement("li", null, /* @__PURE__ */ React3.createElement(TourLink, null)), links.map((link, i) => /* @__PURE__ */ React3.createElement("li", {
166
- key: i
167
- }, /* @__PURE__ */ React3.createElement(Link, {
168
- href: link
169
- })))));
170
- })());
171
- }
172
- function TourLink() {
173
- return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(Link, {
174
- href: "/react-tour",
175
- noBreadcrumb: true
176
- }), " or ", /* @__PURE__ */ React3.createElement(Link, {
177
- href: "/vue-tour",
178
- noBreadcrumb: true
179
- }));
180
- }
181
-
182
- // src/components/Note.tsx
183
- import React4 from "react";
184
- function Warning({ children }) {
185
- return /* @__PURE__ */ React4.createElement(NoteGeneric, {
186
- type: "warning"
187
- }, children);
188
- }
189
- function Construction({ children }) {
190
- return /* @__PURE__ */ React4.createElement(NoteGeneric, {
191
- type: "construction"
192
- }, children);
193
- }
194
- function Danger({ children }) {
195
- return /* @__PURE__ */ React4.createElement(NoteGeneric, {
196
- type: "danger"
197
- }, children);
198
- }
199
- function NoteWithoutIcon({ children }) {
200
- return /* @__PURE__ */ React4.createElement(NoteGeneric, {
201
- icon: null
202
- }, children);
203
- }
204
- function NoteWithCustomIcon({ icon, children }) {
205
- if (!icon)
206
- throw new Error(`<NoteWithCustomIcon icon={/*...*/}> property 'icon' is \`${icon}\` which is forbidden`);
207
- return /* @__PURE__ */ React4.createElement(NoteGeneric, {
208
- icon
209
- }, children);
210
- }
211
- function NoteGeneric({
212
- type,
213
- icon,
214
- children
215
- }) {
216
- assert(icon === null || icon || type, { icon, type });
217
- let className = "custom-icon";
218
- if (type) {
219
- className = `${className} type-${type}`;
220
- }
221
- if (!icon && type) {
222
- let classColor = "";
223
- if (type === "danger") {
224
- icon = ":no_entry:";
225
- classColor = "note-color-red";
226
- }
227
- if (type === "warning") {
228
- icon = ":warning:";
229
- classColor = "note-color-yellow";
230
- }
231
- if (type === "construction") {
232
- icon = ":construction:";
233
- classColor = "note-color-yellow";
234
- }
235
- assert(icon);
236
- assert(classColor);
237
- className = `${className} ${classColor}`;
238
- }
239
- return /* @__PURE__ */ React4.createElement("blockquote", {
240
- className
241
- }, /* @__PURE__ */ React4.createElement("div", {
242
- style: { marginBottom: 20 }
243
- }), icon, " ", /* @__PURE__ */ React4.createElement("div", {
244
- className: "blockquote-content"
245
- }, children), /* @__PURE__ */ React4.createElement("div", {
246
- style: { marginTop: 20 }
247
- }));
248
- }
249
-
250
- // src/components/ImportMeta.tsx
251
- import React5 from "react";
252
- function ImportMeta({ prop }) {
253
- assert(!prop.startsWith("import"));
254
- assert(!prop.startsWith("."));
255
- const text = "import.meta." + prop;
256
- return /* @__PURE__ */ React5.createElement("code", null, text);
257
- }
258
-
259
- // src/components/HorizontalLine.tsx
260
- import React6 from "react";
261
- function HorizontalLine({ primary }) {
262
- return /* @__PURE__ */ React6.createElement("div", {
263
- className: "header-separator-line " + (primary ? "primary" : ""),
264
- style: { textAlign: "center" }
265
- }, /* @__PURE__ */ React6.createElement("hr", {
266
- style: {
267
- display: "inline-block",
268
- margin: 0,
269
- border: 0,
270
- borderTop: "1px solid #eee",
271
- maxWidth: 500,
272
- width: "80%"
273
- }
274
- }));
275
- }
276
-
277
- // src/components/Supporters.tsx
278
- import React7 from "react";
279
- function SupporterSection({ children }) {
280
- return /* @__PURE__ */ React7.createElement("div", {
281
- style: {
282
- textAlign: "center",
283
- marginTop: 19
284
- }
285
- }, children);
286
- }
287
- function SectionDescription({ children }) {
288
- return /* @__PURE__ */ React7.createElement("div", {
289
- style: {
290
- maxWidth: 400,
291
- display: "inline-block",
292
- marginTop: 12,
293
- marginBottom: 12
294
- }
295
- }, children);
296
- }
297
- function Individuals({ children }) {
298
- return /* @__PURE__ */ React7.createElement("div", {
299
- style: {
300
- display: "flex",
301
- flexWrap: "wrap",
302
- justifyContent: "center",
303
- alignItems: "end",
304
- margin: "17px auto",
305
- maxWidth: 700
306
- }
307
- }, children);
308
- }
309
- function Supporter({ username, avatarUrl }) {
310
- const website = `https://github.com/${username}`;
311
- const width = 30;
312
- const height = 30;
313
- const marginWidth = 5;
314
- const marginHeight = 5;
315
- return /* @__PURE__ */ React7.createElement("a", {
316
- href: website,
317
- style: {
318
- margin: `${marginHeight}px ${marginWidth}px`
319
- }
320
- }, /* @__PURE__ */ React7.createElement("div", {
321
- style: {
322
- borderRadius: 7,
323
- overflow: "hidden",
324
- width,
325
- height,
326
- display: "flex",
327
- alignItems: "center",
328
- flexDirection: "column",
329
- justifyContent: "center"
330
- }
331
- }, /* @__PURE__ */ React7.createElement(SupporterImg, {
332
- ...{ username, avatarUrl, width, height }
333
- })));
334
- }
335
- function SupporterImg({
336
- imgSrc,
337
- avatarUrl,
338
- username,
339
- imgAlt,
340
- width,
341
- height,
342
- padding = 0
343
- }) {
344
- const size = Math.max(width, height);
345
- if (avatarUrl) {
346
- imgSrc = imgSrc || `${avatarUrl}&size=${size}`;
347
- }
348
- if (username) {
349
- imgSrc = imgSrc || `https://github.com/${username}.png?size=${size}`;
350
- imgAlt = imgAlt || username;
351
- }
352
- return /* @__PURE__ */ React7.createElement("img", {
353
- style: { width: `calc(100% - ${padding}px)`, height: height - padding, zIndex: 2, objectFit: "contain" },
354
- src: imgSrc,
355
- alt: imgAlt
356
- });
357
- }
358
- function CallToAction({ iconUrl, text, href }) {
359
- return /* @__PURE__ */ React7.createElement("a", {
360
- className: "button",
361
- style: {
362
- color: "inherit",
363
- display: "inline-flex",
364
- alignItems: "center",
365
- padding: "5px 10px",
366
- marginBottom: 10
367
- },
368
- href
369
- }, /* @__PURE__ */ React7.createElement("img", {
370
- src: iconUrl,
371
- height: 22
372
- }), " ", /* @__PURE__ */ React7.createElement("span", {
373
- style: { marginLeft: 7, fontSize: "1.07em" }
374
- }, text));
375
- }
376
-
377
- // src/components/Sponsors.tsx
378
- import React8 from "react";
379
-
380
- // src/icons/heart.svg
381
- var heart_default = "/assets/heart-OINVKOXO.svg";
382
-
383
- // src/components/Sponsors/medalGold.svg
384
- var medalGold_default = "/assets/medalGold-UP6A73FL.svg";
385
-
386
- // src/components/Sponsors/medalSilver.svg
387
- var medalSilver_default = "/assets/medalSilver-FAPGGOBN.svg";
388
-
389
- // src/components/Sponsors/medalBronze.svg
390
- var medalBronze_default = "/assets/medalBronze-CO4CTUR4.svg";
391
-
392
- // src/components/Sponsors/label.svg
393
- var label_default = "/assets/label-MP75CTIA.svg";
394
-
395
- // src/data/sponsorsList/companyLogos/contra.svg
396
- var contra_default = "/assets/contra-WLZBOPBV.svg";
397
-
398
- // src/data/sponsorsList/companyLogos/optimizers.svg
399
- var optimizers_default = "/assets/optimizers-SFEZF3NW.svg";
400
-
401
- // src/data/sponsorsList/companyLogos/sourcegraph.svg
402
- var sourcegraph_default = "/assets/sourcegraph-YR2HADLS.svg";
403
-
404
- // src/data/sponsorsList/companyLogos/burdaforward.png
405
- var burdaforward_default = "/assets/burdaforward-EUGURYZY.png";
406
-
407
- // src/data/sponsorsList/companyLogos/ecosia.svg
408
- var ecosia_default = "/assets/ecosia-OYRLTR5T.svg";
409
-
410
- // src/data/sponsorsList/companyLogos/inlang.png
411
- var inlang_default = "/assets/inlang-GFRWND6X.png";
412
-
413
- // src/data/sponsorsList/companyLogos/bluefin.svg
414
- var bluefin_default = "/assets/bluefin-JQABZFGV.svg";
415
-
416
- // src/data/sponsorsList/companyLogos/alignable.svg
417
- var alignable_default = "/assets/alignable-B4QZV4X7.svg";
418
-
419
- // src/data/sponsorsList.ts
420
- var individuals = [
421
- { username: "arp" },
422
- { username: "tlancina" },
423
- { username: "shishkin17" },
424
- { username: "royalswe" },
425
- { username: "lebretont" },
426
- { username: "xar" },
427
- { username: "NicoZweifel" },
428
- { username: "mariuslian" },
429
- { username: "shortpoet" },
430
- { username: "sqs" },
431
- { username: "dylmye" },
432
- { username: "isakura313" },
433
- { username: "rivatove" },
434
- { username: "SMKJALLAD" },
435
- { username: "routinghub" },
436
- { username: "LostCrew" },
437
- { username: "jakubfiala" },
438
- { username: "HarshwardhanSingh" },
439
- { username: "d3x7r0" },
440
- { username: "ChristophP" },
441
- { username: "msiegenthaler" },
442
- { username: "linkyard" },
443
- { username: "AnukarOP" },
444
- { username: "RoyMcCrain" },
445
- { username: "chrisvander" },
446
- { username: "EralChen" },
447
- { username: "3dyuval" },
448
- { username: "talzion12" },
449
- { username: "felixhaeberle" },
450
- { username: "apappas1129" },
451
- { username: "agalbenus" },
452
- { username: "phiberber" },
453
- { username: "cookieplace" },
454
- { username: "JiangWeixian" },
455
- { username: "harrytran998" },
456
- { username: "alexturpin" },
457
- { username: "gu-stav" },
458
- { username: "YannBirba" },
459
- { username: "fi3ework" },
460
- { username: "EJM-Company" },
461
- { username: "Nelie-Taylor" },
462
- { username: "fortezhuo" },
463
- { username: "nshelia" },
464
- { username: "marcusway" },
465
- { username: "edikdeisling" },
466
- { username: "AurelienLourot" },
467
- { username: "jahredhope" },
468
- { username: "charlieforward9" },
469
- { username: "leonmondria" },
470
- { username: "jscottsf" },
471
- { username: "micah-redwood" },
472
- { username: "nicka-redwood" },
473
- { username: "ser1us" },
474
- { username: "nikitavoloboev" },
475
- { username: "samuelstroschein" },
476
- { username: "npacucci" },
477
- { username: "szarapka" },
478
- { username: "techniath" },
479
- { username: "DannyZB" },
480
- { username: "pieperz" },
481
- { username: "hemengke1997" },
482
- { username: "spacedawwwg" },
483
- { username: "arthurgailes" },
484
- { username: "stackblitz" },
485
- { username: "codthing" },
486
- { username: "Junaidhkn" },
487
- { username: "zgfdev" }
488
- ];
489
- var companies = [
490
- {
491
- companyName: "Contra",
492
- companyLogo: contra_default,
493
- plan: "silver",
494
- website: "https://contra.com",
495
- github: "contra"
496
- },
497
- {
498
- companyName: "Inlang",
499
- companyLogo: inlang_default,
500
- plan: "silver",
501
- website: "https://inlang.com/",
502
- github: "opral"
503
- },
504
- {
505
- companyName: "Alignable",
506
- companyLogo: alignable_default,
507
- plan: "silver",
508
- website: "https://www.alignable.com/",
509
- github: "AlignableUser"
510
- },
511
- {
512
- companyName: "Sourcegraph",
513
- companyLogo: sourcegraph_default,
514
- plan: "bronze",
515
- website: "https://sourcegraph.com",
516
- github: "sourcegraph"
517
- },
518
- {
519
- companyName: "Optimizers",
520
- companyLogo: optimizers_default,
521
- plan: "bronze",
522
- website: "https://www.optimizers.nl/",
523
- divSize: {
524
- padding: 20
525
- },
526
- github: "OptimizersGroup"
527
- },
528
- {
529
- companyName: "BurdaFoward",
530
- companyLogo: burdaforward_default,
531
- plan: "bronze",
532
- website: "https://www.burda-forward.de",
533
- github: "BurdaForward"
534
- },
535
- {
536
- companyName: "Ecosia",
537
- companyLogo: ecosia_default,
538
- plan: "bronze",
539
- website: "https://ecosia.org",
540
- github: "ecosia"
541
- },
542
- {
543
- companyName: "Bluefin",
544
- companyLogo: bluefin_default,
545
- plan: "indie",
546
- website: "https://www.bluefin.one",
547
- github: "bluefin-clinical"
548
- }
549
- ];
550
- var sponsorsList = [...companies, ...individuals];
551
-
552
- // src/components/Sponsors.tsx
553
- function Sponsors() {
554
- const pageContext = usePageContext();
555
- const { projectInfo } = pageContext.config;
556
- const sponsorGithubAccount = pageContext.config.sponsorGithubAccount || "brillout";
557
- const sponsorsCompanies = sponsorsList.filter(isCompany);
558
- const sponsorsIndividuals = sponsorsList.filter(isIndividual);
559
- return /* @__PURE__ */ React8.createElement(SupporterSection, null, /* @__PURE__ */ React8.createElement(CallToAction, {
560
- iconUrl: heart_default,
561
- text: "Sponsor",
562
- href: `https://github.com/sponsors/${sponsorGithubAccount}`
563
- }), /* @__PURE__ */ React8.createElement("div", null), /* @__PURE__ */ React8.createElement(SectionDescription, null, projectInfo.projectName, " is free and open source, made possible by wonderful sponsors."), /* @__PURE__ */ React8.createElement("div", {
564
- style: { display: "flex", flexWrap: "wrap", justifyContent: "space-evenly", alignItems: "end" }
565
- }, sponsorsCompanies.map((sponsor, i) => /* @__PURE__ */ React8.createElement(SponsorDiv, {
566
- sponsor,
567
- key: i
568
- }))), /* @__PURE__ */ React8.createElement(Individuals, null, sponsorsIndividuals.map((sponsor, i) => /* @__PURE__ */ React8.createElement(SponsorDiv, {
569
- sponsor,
570
- key: i
571
- }))));
572
- }
573
- function SponsorDiv({ sponsor }) {
574
- if (isIndividual(sponsor)) {
575
- return /* @__PURE__ */ React8.createElement(Supporter, {
576
- username: sponsor.username
577
- });
578
- }
579
- return /* @__PURE__ */ React8.createElement(CompanyDiv, {
580
- sponsor
581
- });
582
- }
583
- function CompanyDiv({ sponsor }) {
584
- assert(isCompany(sponsor));
585
- const imgSrc = sponsor.companyLogo;
586
- const imgAlt = sponsor.companyName;
587
- const { width, height, padding } = getSize(sponsor);
588
- const marginHeight = 20;
589
- const marginWidth = 10;
590
- return /* @__PURE__ */ React8.createElement("a", {
591
- href: sponsor.website,
592
- style: {
593
- margin: `${marginHeight}px ${marginWidth}px`
594
- }
595
- }, /* @__PURE__ */ React8.createElement(Label, {
596
- sponsor
597
- }), /* @__PURE__ */ React8.createElement("div", {
598
- style: {
599
- backgroundColor: "#f0f0f0",
600
- borderRadius: 7,
601
- overflow: "hidden",
602
- width,
603
- maxWidth: `calc(100vw - 2 * var(--main-view-padding) - 2 * ${marginWidth}px)`,
604
- height,
605
- display: "flex",
606
- alignItems: "center",
607
- flexDirection: "column",
608
- justifyContent: "center"
609
- }
610
- }, /* @__PURE__ */ React8.createElement(SupporterImg, {
611
- ...{ imgSrc, imgAlt, width, height, padding }
612
- })));
613
- }
614
- function Label({ sponsor }) {
615
- assert(isCompany(sponsor));
616
- const labelBg = getLabelBg(sponsor);
617
- const labelIcon = getLabelIcon(sponsor);
618
- const labelText = getLabelText(sponsor);
619
- return /* @__PURE__ */ React8.createElement("div", {
620
- style: {
621
- top: 0,
622
- display: "flex",
623
- justifyContent: "center",
624
- alignItems: "center",
625
- position: "relative",
626
- paddingBottom: 1
627
- }
628
- }, labelBg, labelIcon, labelText);
629
- }
630
- function getLabelBg(sponsor) {
631
- const height = sponsor.plan === "platinum" ? 32 : 24;
632
- return /* @__PURE__ */ React8.createElement("img", {
633
- src: label_default,
634
- style: { height, position: "absolute", bottom: 0, zIndex: -1 }
635
- });
636
- }
637
- function getLabelText(sponsor) {
638
- if (sponsor.plan === "platinum") {
639
- return /* @__PURE__ */ React8.createElement(React8.Fragment, null);
640
- }
641
- let letterSpacing = void 0;
642
- if (["bronze", "silver", "gold", "indie"].includes(sponsor.plan)) {
643
- letterSpacing = 1;
644
- }
645
- return /* @__PURE__ */ React8.createElement(React8.Fragment, null, " ", /* @__PURE__ */ React8.createElement("span", {
646
- style: {
647
- zIndex: 1,
648
- fontSize: "0.82em",
649
- position: "relative",
650
- top: 0,
651
- fontWeight: 500,
652
- color: "#666",
653
- letterSpacing
654
- }
655
- }, capitalizeFirstLetter(sponsor.plan)));
656
- }
657
- function getLabelIcon(sponsor) {
658
- let medalSrc;
659
- if (sponsor.plan === "platinum") {
660
- return /* @__PURE__ */ React8.createElement(Emoji, {
661
- name: "trophy",
662
- style: { fontSize: "1.3em" }
663
- });
664
- } else if (sponsor.plan === "indie") {
665
- return /* @__PURE__ */ React8.createElement(Emoji, {
666
- name: "ribbon",
667
- style: { fontSize: "0.9em" }
668
- });
669
- } else if (sponsor.plan === "gold") {
670
- medalSrc = medalGold_default;
671
- } else if (sponsor.plan === "silver") {
672
- medalSrc = medalSilver_default;
673
- } else if (sponsor.plan === "bronze") {
674
- medalSrc = medalBronze_default;
675
- } else {
676
- assert(false);
677
- }
678
- return /* @__PURE__ */ React8.createElement("img", {
679
- src: medalSrc,
680
- style: { height: 15, zIndex: 1, marginRight: 5 }
681
- });
682
- }
683
- function getSize(sponsor) {
684
- const { plan } = sponsor;
685
- let divSize;
686
- if (plan === "platinum") {
687
- divSize = { width: 500, height: 180, padding: 100 };
688
- }
689
- if (plan === "gold") {
690
- divSize = { width: 400, height: 150, padding: 95 };
691
- }
692
- if (plan === "silver") {
693
- divSize = { width: 300, height: 100, padding: 45 };
694
- }
695
- if (plan === "bronze") {
696
- divSize = { width: 200, height: 70, padding: 30 };
697
- }
698
- if (plan === "indie") {
699
- divSize = { width: 140, height: 50, padding: 20 };
700
- }
701
- assert(divSize);
702
- if (sponsor.divSize) {
703
- Object.assign(divSize, sponsor.divSize);
704
- }
705
- return divSize;
706
- }
707
- function capitalizeFirstLetter(word) {
708
- return word[0].toUpperCase() + word.slice(1);
709
- }
710
- function isCompany(sponsor) {
711
- return !isIndividual(sponsor);
712
- }
713
- function isIndividual(sponsor) {
714
- return "username" in sponsor;
715
- }
716
-
717
- // src/components/Contributors.tsx
718
- import React10 from "react";
719
-
720
- // src/data/maintainersList.tsx
721
- import React9 from "react";
722
- var maintainers = [
723
- {
724
- username: "brillout",
725
- firstName: "Rom",
726
- roles: [
727
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, "Vike Core (Lead Maintainer, Creator)"),
728
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("code", null, "vike-react"), " (Lead Maintainer, Creator)"),
729
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("code", null, "vike-vue"), " (Contributor)")
730
- ]
731
- },
732
- {
733
- username: "magne4000",
734
- firstName: "Jo\xEBl",
735
- roles: [
736
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, "Bati (Lead Maintainer, Creator)"),
737
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("code", null, "vike-solid"), " (Lead Maintainer, Creator)"),
738
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, "Vike Core (Contributor)")
739
- ]
740
- },
741
- {
742
- username: "AurelienLourot",
743
- firstName: "Aur\xE9lien",
744
- roles: [
745
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("code", null, "vike-vue"), " (Lead Maintainer, Creator)"),
746
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("code", null, "vike-react"), " (Contributor)"),
747
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, "Vike Core (Contributor)")
748
- ],
749
- consultingUrl: "https://lourot.dev/"
750
- },
751
- {
752
- username: "nitedani",
753
- firstName: "D\xE1niel",
754
- roles: [
755
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("code", null, "vike-react-query"), " (Lead Maintainer, Creator)"),
756
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("code", null, "vike-angular"), " (Lead Maintainer, Creator)"),
757
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, "Vike Core (Contributor)")
758
- ]
759
- },
760
- {
761
- username: "phonzammi",
762
- firstName: "Muhammad",
763
- roles: [
764
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("code", null, "vike-vue"), " (Contributor)"),
765
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("code", null, "vike-solid"), " (Contributor)"),
766
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("code", null, "vike-react"), " (Contributor)")
767
- ]
768
- },
769
- {
770
- username: "4350pChris",
771
- firstName: "Chris",
772
- roles: [
773
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("code", null, "vike-pinia"), " (Lead Maintainer, Creator)"),
774
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("code", null, "vike-vue"), " (Contributor)"),
775
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, "Vike Core (Contributor)")
776
- ]
777
- }
778
- ];
779
-
780
- // src/components/Contributors.tsx
781
- import { contributors } from "vike-contributors";
782
- function Contributors() {
783
- const pageContext = usePageContext();
784
- const { projectInfo } = pageContext.config;
785
- return /* @__PURE__ */ React10.createElement(SupporterSection, null, /* @__PURE__ */ React10.createElement(SectionDescription, null, projectInfo.projectName, " is built and maintained by passionate contributors."), /* @__PURE__ */ React10.createElement("div", {
786
- style: { display: "flex", flexWrap: "wrap", justifyContent: "space-evenly", alignItems: "end" }
787
- }, maintainers.map((maintainer, i) => /* @__PURE__ */ React10.createElement(Maintainer, {
788
- maintainer,
789
- key: i
790
- }))), /* @__PURE__ */ React10.createElement(Individuals, null, contributors.filter((contributor) => {
791
- return !contributor.login.includes("[bot]") && !maintainers.map((m) => m.username).includes(contributor.login);
792
- }).map((contributor, i) => /* @__PURE__ */ React10.createElement(Supporter, {
793
- username: contributor.login,
794
- avatarUrl: contributor.avatarUrl,
795
- key: i
796
- }))));
797
- }
798
- function Maintainer({ maintainer }) {
799
- const marginHeight = 20;
800
- const marginWidth = 10;
801
- const imgSize = 50;
802
- const githubUrl = `https://github.com/${maintainer.username}`;
803
- return /* @__PURE__ */ React10.createElement("div", {
804
- style: {
805
- borderRadius: 7,
806
- borderWidth: 1,
807
- borderStyle: "solid",
808
- borderColor: "#e0e0e0",
809
- overflow: "hidden",
810
- width: 430,
811
- maxWidth: `calc(100vw - 2 * var(--main-view-padding) - 2 * ${marginWidth}px)`,
812
- margin: `${marginHeight}px ${marginWidth}px`,
813
- display: "flex",
814
- flexWrap: "wrap",
815
- padding: 20,
816
- gap: 20,
817
- textAlign: "left"
818
- }
819
- }, /* @__PURE__ */ React10.createElement("a", {
820
- href: githubUrl
821
- }, /* @__PURE__ */ React10.createElement("div", {
822
- style: { width: imgSize, height: imgSize, borderRadius: imgSize / 2, overflow: "hidden" }
823
- }, /* @__PURE__ */ React10.createElement(SupporterImg, {
824
- username: maintainer.username,
825
- avatarUrl: getAvatarUrl(maintainer),
826
- imgAlt: maintainer.firstName,
827
- width: imgSize,
828
- height: imgSize
829
- }))), /* @__PURE__ */ React10.createElement("div", null, /* @__PURE__ */ React10.createElement("b", null, maintainer.firstName), " \xB7", " ", /* @__PURE__ */ React10.createElement("a", {
830
- href: githubUrl
831
- }, /* @__PURE__ */ React10.createElement("i", {
832
- style: { fontSize: ".9em", color: "#505050" }
833
- }, maintainer.username)), maintainer.consultingUrl ? /* @__PURE__ */ React10.createElement(React10.Fragment, null, " ", "\xB7", " ", /* @__PURE__ */ React10.createElement("a", {
834
- href: maintainer.consultingUrl
835
- }, /* @__PURE__ */ React10.createElement("b", {
836
- style: {
837
- fontSize: ".7em",
838
- color: "white",
839
- backgroundColor: "#305090",
840
- padding: "1px 5px 2px 5px",
841
- verticalAlign: "text-top",
842
- borderRadius: 3
843
- }
844
- }, "consulting"))) : null, /* @__PURE__ */ React10.createElement("ul", {
845
- style: { fontSize: ".8em", paddingLeft: 15, marginTop: 5, marginBottom: 0 }
846
- }, maintainer.roles.map((role, i) => /* @__PURE__ */ React10.createElement("li", {
847
- key: i
848
- }, role)))));
849
- }
850
- function getAvatarUrl(maintainer) {
851
- for (const contributor of contributors) {
852
- if (maintainer.username === contributor.login) {
853
- return contributor.avatarUrl;
854
- }
855
- }
856
- throw new Error(`Maintainer ${maintainer.username} not found in contributors' list.`);
857
- }
858
-
859
- // src/components/Consulting.tsx
860
- import React11 from "react";
861
-
862
- // src/icons/people.svg
863
- var people_default = "/assets/people-72KKQHU4.svg";
864
-
865
- // src/components/Consulting.tsx
866
- var consultingPageHref = "/consulting";
867
- function Consulting() {
868
- const pageContext = usePageContext();
869
- const { projectInfo } = pageContext.config;
870
- const { projectName } = projectInfo;
871
- return /* @__PURE__ */ React11.createElement(SupporterSection, null, /* @__PURE__ */ React11.createElement(CallToAction, {
872
- iconUrl: people_default,
873
- text: "Consulting",
874
- href: consultingPageHref
875
- }), /* @__PURE__ */ React11.createElement("div", null), /* @__PURE__ */ React11.createElement(SectionDescription, null, "For questions and issues related to ", projectName, ", open a", " ", /* @__PURE__ */ React11.createElement("a", {
876
- href: projectInfo.githubDiscussions || projectInfo.githubIssues
877
- }, "GitHub Discussion"), ". For advanced help or help not directly related to ", projectName, ", the ", projectName, " team offers", " ", /* @__PURE__ */ React11.createElement(Link, {
878
- href: consultingPageHref,
879
- noBreadcrumb: true
880
- }, "consulting"), "."));
881
- }
882
- function Consultants() {
883
- return /* @__PURE__ */ React11.createElement(SupporterSection, null, /* @__PURE__ */ React11.createElement("div", {
884
- style: { display: "flex", flexWrap: "wrap", alignItems: "end" }
885
- }, maintainers.filter((maintainer) => {
886
- return !!maintainer.consultingUrl;
887
- }).map((maintainer, i) => /* @__PURE__ */ React11.createElement(Maintainer, {
888
- maintainer,
889
- key: i
890
- }))));
891
- }
892
-
893
- // src/components/CodeBlockTransformer.tsx
894
- import React12 from "react";
895
- function CodeBlockTransformer({ children, lineBreak }) {
896
- assert(
897
- lineBreak === "white-space" || lineBreak === "break-word",
898
- "`lineBreak` is currently the only use case for <CodeBlockTransformer>"
899
- );
900
- const className = `with-line-break_${lineBreak}`;
901
- return /* @__PURE__ */ React12.createElement("div", {
902
- className
903
- }, children);
904
- }
905
-
906
- // src/components/Comment.tsx
907
- import React13 from "react";
908
- function Comment({ children }) {
909
- return /* @__PURE__ */ React13.createElement(React13.Fragment, null);
910
- }
911
- export {
912
- CallToAction,
913
- CodeBlockTransformer,
914
- Comment,
915
- Construction,
916
- Consultants,
917
- Consulting,
918
- Contributors,
919
- Danger,
920
- Emoji,
921
- FeatureList,
922
- HorizontalLine,
923
- ImportMeta,
924
- Individuals,
925
- Link,
926
- Maintainer,
927
- NoteWithCustomIcon,
928
- NoteWithoutIcon,
929
- P,
930
- ReadingRecommendation,
931
- RepoLink,
932
- SectionDescription,
933
- Sponsors,
934
- Supporter,
935
- SupporterImg,
936
- SupporterSection,
937
- Warning,
938
- assert,
939
- assertUsage,
940
- assertWarning,
941
- crawlAllFiles,
942
- determineSectionTitle,
943
- determineSectionUrlHash,
944
- filter,
945
- isBrowser,
946
- isRepoLink,
947
- jsxToTextContent,
948
- objectAssign
949
- };