@brillout/docpress 0.5.39 → 0.5.40-commit-51be4fa

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 +26 -48
  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 -948
  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,948 +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: "phiberber" },
452
- { username: "cookieplace" },
453
- { username: "JiangWeixian" },
454
- { username: "harrytran998" },
455
- { username: "alexturpin" },
456
- { username: "gu-stav" },
457
- { username: "YannBirba" },
458
- { username: "fi3ework" },
459
- { username: "EJM-Company" },
460
- { username: "Nelie-Taylor" },
461
- { username: "fortezhuo" },
462
- { username: "nshelia" },
463
- { username: "marcusway" },
464
- { username: "edikdeisling" },
465
- { username: "AurelienLourot" },
466
- { username: "jahredhope" },
467
- { username: "charlieforward9" },
468
- { username: "leonmondria" },
469
- { username: "jscottsf" },
470
- { username: "micah-redwood" },
471
- { username: "nicka-redwood" },
472
- { username: "ser1us" },
473
- { username: "nikitavoloboev" },
474
- { username: "samuelstroschein" },
475
- { username: "npacucci" },
476
- { username: "szarapka" },
477
- { username: "techniath" },
478
- { username: "DannyZB" },
479
- { username: "pieperz" },
480
- { username: "hemengke1997" },
481
- { username: "spacedawwwg" },
482
- { username: "arthurgailes" },
483
- { username: "stackblitz" },
484
- { username: "codthing" },
485
- { username: "Junaidhkn" },
486
- { username: "zgfdev" }
487
- ];
488
- var companies = [
489
- {
490
- companyName: "Contra",
491
- companyLogo: contra_default,
492
- plan: "silver",
493
- website: "https://contra.com",
494
- github: "contra"
495
- },
496
- {
497
- companyName: "Inlang",
498
- companyLogo: inlang_default,
499
- plan: "silver",
500
- website: "https://inlang.com/",
501
- github: "opral"
502
- },
503
- {
504
- companyName: "Alignable",
505
- companyLogo: alignable_default,
506
- plan: "silver",
507
- website: "https://www.alignable.com/",
508
- github: "AlignableUser"
509
- },
510
- {
511
- companyName: "Sourcegraph",
512
- companyLogo: sourcegraph_default,
513
- plan: "bronze",
514
- website: "https://sourcegraph.com",
515
- github: "sourcegraph"
516
- },
517
- {
518
- companyName: "Optimizers",
519
- companyLogo: optimizers_default,
520
- plan: "bronze",
521
- website: "https://www.optimizers.nl/",
522
- divSize: {
523
- padding: 20
524
- },
525
- github: "OptimizersGroup"
526
- },
527
- {
528
- companyName: "BurdaFoward",
529
- companyLogo: burdaforward_default,
530
- plan: "bronze",
531
- website: "https://www.burda-forward.de",
532
- github: "BurdaForward"
533
- },
534
- {
535
- companyName: "Ecosia",
536
- companyLogo: ecosia_default,
537
- plan: "bronze",
538
- website: "https://ecosia.org",
539
- github: "ecosia"
540
- },
541
- {
542
- companyName: "Bluefin",
543
- companyLogo: bluefin_default,
544
- plan: "indie",
545
- website: "https://www.bluefin.one",
546
- github: "bluefin-clinical"
547
- }
548
- ];
549
- var sponsorsList = [...companies, ...individuals];
550
-
551
- // src/components/Sponsors.tsx
552
- function Sponsors() {
553
- const pageContext = usePageContext();
554
- const { projectInfo } = pageContext.config;
555
- const sponsorGithubAccount = pageContext.config.sponsorGithubAccount || "brillout";
556
- const sponsorsCompanies = sponsorsList.filter(isCompany);
557
- const sponsorsIndividuals = sponsorsList.filter(isIndividual);
558
- return /* @__PURE__ */ React8.createElement(SupporterSection, null, /* @__PURE__ */ React8.createElement(CallToAction, {
559
- iconUrl: heart_default,
560
- text: "Sponsor",
561
- href: `https://github.com/sponsors/${sponsorGithubAccount}`
562
- }), /* @__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", {
563
- style: { display: "flex", flexWrap: "wrap", justifyContent: "space-evenly", alignItems: "end" }
564
- }, sponsorsCompanies.map((sponsor, i) => /* @__PURE__ */ React8.createElement(SponsorDiv, {
565
- sponsor,
566
- key: i
567
- }))), /* @__PURE__ */ React8.createElement(Individuals, null, sponsorsIndividuals.map((sponsor, i) => /* @__PURE__ */ React8.createElement(SponsorDiv, {
568
- sponsor,
569
- key: i
570
- }))));
571
- }
572
- function SponsorDiv({ sponsor }) {
573
- if (isIndividual(sponsor)) {
574
- return /* @__PURE__ */ React8.createElement(Supporter, {
575
- username: sponsor.username
576
- });
577
- }
578
- return /* @__PURE__ */ React8.createElement(CompanyDiv, {
579
- sponsor
580
- });
581
- }
582
- function CompanyDiv({ sponsor }) {
583
- assert(isCompany(sponsor));
584
- const imgSrc = sponsor.companyLogo;
585
- const imgAlt = sponsor.companyName;
586
- const { width, height, padding } = getSize(sponsor);
587
- const marginHeight = 20;
588
- const marginWidth = 10;
589
- return /* @__PURE__ */ React8.createElement("a", {
590
- href: sponsor.website,
591
- style: {
592
- margin: `${marginHeight}px ${marginWidth}px`
593
- }
594
- }, /* @__PURE__ */ React8.createElement(Label, {
595
- sponsor
596
- }), /* @__PURE__ */ React8.createElement("div", {
597
- style: {
598
- backgroundColor: "#f0f0f0",
599
- borderRadius: 7,
600
- overflow: "hidden",
601
- width,
602
- maxWidth: `calc(100vw - 2 * var(--main-view-padding) - 2 * ${marginWidth}px)`,
603
- height,
604
- display: "flex",
605
- alignItems: "center",
606
- flexDirection: "column",
607
- justifyContent: "center"
608
- }
609
- }, /* @__PURE__ */ React8.createElement(SupporterImg, {
610
- ...{ imgSrc, imgAlt, width, height, padding }
611
- })));
612
- }
613
- function Label({ sponsor }) {
614
- assert(isCompany(sponsor));
615
- const labelBg = getLabelBg(sponsor);
616
- const labelIcon = getLabelIcon(sponsor);
617
- const labelText = getLabelText(sponsor);
618
- return /* @__PURE__ */ React8.createElement("div", {
619
- style: {
620
- top: 0,
621
- display: "flex",
622
- justifyContent: "center",
623
- alignItems: "center",
624
- position: "relative",
625
- paddingBottom: 1
626
- }
627
- }, labelBg, labelIcon, labelText);
628
- }
629
- function getLabelBg(sponsor) {
630
- const height = sponsor.plan === "platinum" ? 32 : 24;
631
- return /* @__PURE__ */ React8.createElement("img", {
632
- src: label_default,
633
- style: { height, position: "absolute", bottom: 0, zIndex: -1 }
634
- });
635
- }
636
- function getLabelText(sponsor) {
637
- if (sponsor.plan === "platinum") {
638
- return /* @__PURE__ */ React8.createElement(React8.Fragment, null);
639
- }
640
- let letterSpacing = void 0;
641
- if (["bronze", "silver", "gold", "indie"].includes(sponsor.plan)) {
642
- letterSpacing = 1;
643
- }
644
- return /* @__PURE__ */ React8.createElement(React8.Fragment, null, " ", /* @__PURE__ */ React8.createElement("span", {
645
- style: {
646
- zIndex: 1,
647
- fontSize: "0.82em",
648
- position: "relative",
649
- top: 0,
650
- fontWeight: 500,
651
- color: "#666",
652
- letterSpacing
653
- }
654
- }, capitalizeFirstLetter(sponsor.plan)));
655
- }
656
- function getLabelIcon(sponsor) {
657
- let medalSrc;
658
- if (sponsor.plan === "platinum") {
659
- return /* @__PURE__ */ React8.createElement(Emoji, {
660
- name: "trophy",
661
- style: { fontSize: "1.3em" }
662
- });
663
- } else if (sponsor.plan === "indie") {
664
- return /* @__PURE__ */ React8.createElement(Emoji, {
665
- name: "ribbon",
666
- style: { fontSize: "0.9em" }
667
- });
668
- } else if (sponsor.plan === "gold") {
669
- medalSrc = medalGold_default;
670
- } else if (sponsor.plan === "silver") {
671
- medalSrc = medalSilver_default;
672
- } else if (sponsor.plan === "bronze") {
673
- medalSrc = medalBronze_default;
674
- } else {
675
- assert(false);
676
- }
677
- return /* @__PURE__ */ React8.createElement("img", {
678
- src: medalSrc,
679
- style: { height: 15, zIndex: 1, marginRight: 5 }
680
- });
681
- }
682
- function getSize(sponsor) {
683
- const { plan } = sponsor;
684
- let divSize;
685
- if (plan === "platinum") {
686
- divSize = { width: 500, height: 180, padding: 100 };
687
- }
688
- if (plan === "gold") {
689
- divSize = { width: 400, height: 150, padding: 95 };
690
- }
691
- if (plan === "silver") {
692
- divSize = { width: 300, height: 100, padding: 45 };
693
- }
694
- if (plan === "bronze") {
695
- divSize = { width: 200, height: 70, padding: 30 };
696
- }
697
- if (plan === "indie") {
698
- divSize = { width: 140, height: 50, padding: 20 };
699
- }
700
- assert(divSize);
701
- if (sponsor.divSize) {
702
- Object.assign(divSize, sponsor.divSize);
703
- }
704
- return divSize;
705
- }
706
- function capitalizeFirstLetter(word) {
707
- return word[0].toUpperCase() + word.slice(1);
708
- }
709
- function isCompany(sponsor) {
710
- return !isIndividual(sponsor);
711
- }
712
- function isIndividual(sponsor) {
713
- return "username" in sponsor;
714
- }
715
-
716
- // src/components/Contributors.tsx
717
- import React10 from "react";
718
-
719
- // src/data/maintainersList.tsx
720
- import React9 from "react";
721
- var maintainers = [
722
- {
723
- username: "brillout",
724
- firstName: "Rom",
725
- roles: [
726
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, "Vike Core (Lead Maintainer, Creator)"),
727
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("code", null, "vike-react"), " (Lead Maintainer, Creator)"),
728
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("code", null, "vike-vue"), " (Contributor)")
729
- ]
730
- },
731
- {
732
- username: "magne4000",
733
- firstName: "Jo\xEBl",
734
- roles: [
735
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, "Bati (Lead Maintainer, Creator)"),
736
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("code", null, "vike-solid"), " (Lead Maintainer, Creator)"),
737
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, "Vike Core (Contributor)")
738
- ]
739
- },
740
- {
741
- username: "AurelienLourot",
742
- firstName: "Aur\xE9lien",
743
- roles: [
744
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("code", null, "vike-vue"), " (Lead Maintainer, Creator)"),
745
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("code", null, "vike-react"), " (Contributor)"),
746
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, "Vike Core (Contributor)")
747
- ],
748
- consultingUrl: "https://lourot.dev/"
749
- },
750
- {
751
- username: "nitedani",
752
- firstName: "D\xE1niel",
753
- roles: [
754
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("code", null, "vike-react-query"), " (Lead Maintainer, Creator)"),
755
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("code", null, "vike-angular"), " (Lead Maintainer, Creator)"),
756
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, "Vike Core (Contributor)")
757
- ]
758
- },
759
- {
760
- username: "phonzammi",
761
- firstName: "Muhammad",
762
- roles: [
763
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("code", null, "vike-vue"), " (Contributor)"),
764
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("code", null, "vike-solid"), " (Contributor)"),
765
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("code", null, "vike-react"), " (Contributor)")
766
- ]
767
- },
768
- {
769
- username: "4350pChris",
770
- firstName: "Chris",
771
- roles: [
772
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("code", null, "vike-pinia"), " (Lead Maintainer, Creator)"),
773
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("code", null, "vike-vue"), " (Contributor)"),
774
- /* @__PURE__ */ React9.createElement(React9.Fragment, null, "Vike Core (Contributor)")
775
- ]
776
- }
777
- ];
778
-
779
- // src/components/Contributors.tsx
780
- import { contributors } from "vike-contributors";
781
- function Contributors() {
782
- const pageContext = usePageContext();
783
- const { projectInfo } = pageContext.config;
784
- return /* @__PURE__ */ React10.createElement(SupporterSection, null, /* @__PURE__ */ React10.createElement(SectionDescription, null, projectInfo.projectName, " is built and maintained by passionate contributors."), /* @__PURE__ */ React10.createElement("div", {
785
- style: { display: "flex", flexWrap: "wrap", justifyContent: "space-evenly", alignItems: "end" }
786
- }, maintainers.map((maintainer, i) => /* @__PURE__ */ React10.createElement(Maintainer, {
787
- maintainer,
788
- key: i
789
- }))), /* @__PURE__ */ React10.createElement(Individuals, null, contributors.filter((contributor) => {
790
- return !contributor.login.includes("[bot]") && !maintainers.map((m) => m.username).includes(contributor.login);
791
- }).map((contributor, i) => /* @__PURE__ */ React10.createElement(Supporter, {
792
- username: contributor.login,
793
- avatarUrl: contributor.avatarUrl,
794
- key: i
795
- }))));
796
- }
797
- function Maintainer({ maintainer }) {
798
- const marginHeight = 20;
799
- const marginWidth = 10;
800
- const imgSize = 50;
801
- const githubUrl = `https://github.com/${maintainer.username}`;
802
- return /* @__PURE__ */ React10.createElement("div", {
803
- style: {
804
- borderRadius: 7,
805
- borderWidth: 1,
806
- borderStyle: "solid",
807
- borderColor: "#e0e0e0",
808
- overflow: "hidden",
809
- width: 430,
810
- maxWidth: `calc(100vw - 2 * var(--main-view-padding) - 2 * ${marginWidth}px)`,
811
- margin: `${marginHeight}px ${marginWidth}px`,
812
- display: "flex",
813
- flexWrap: "wrap",
814
- padding: 20,
815
- gap: 20,
816
- textAlign: "left"
817
- }
818
- }, /* @__PURE__ */ React10.createElement("a", {
819
- href: githubUrl
820
- }, /* @__PURE__ */ React10.createElement("div", {
821
- style: { width: imgSize, height: imgSize, borderRadius: imgSize / 2, overflow: "hidden" }
822
- }, /* @__PURE__ */ React10.createElement(SupporterImg, {
823
- username: maintainer.username,
824
- avatarUrl: getAvatarUrl(maintainer),
825
- imgAlt: maintainer.firstName,
826
- width: imgSize,
827
- height: imgSize
828
- }))), /* @__PURE__ */ React10.createElement("div", null, /* @__PURE__ */ React10.createElement("b", null, maintainer.firstName), " \xB7", " ", /* @__PURE__ */ React10.createElement("a", {
829
- href: githubUrl
830
- }, /* @__PURE__ */ React10.createElement("i", {
831
- style: { fontSize: ".9em", color: "#505050" }
832
- }, maintainer.username)), maintainer.consultingUrl ? /* @__PURE__ */ React10.createElement(React10.Fragment, null, " ", "\xB7", " ", /* @__PURE__ */ React10.createElement("a", {
833
- href: maintainer.consultingUrl
834
- }, /* @__PURE__ */ React10.createElement("b", {
835
- style: {
836
- fontSize: ".7em",
837
- color: "white",
838
- backgroundColor: "#305090",
839
- padding: "1px 5px 2px 5px",
840
- verticalAlign: "text-top",
841
- borderRadius: 3
842
- }
843
- }, "consulting"))) : null, /* @__PURE__ */ React10.createElement("ul", {
844
- style: { fontSize: ".8em", paddingLeft: 15, marginTop: 5, marginBottom: 0 }
845
- }, maintainer.roles.map((role, i) => /* @__PURE__ */ React10.createElement("li", {
846
- key: i
847
- }, role)))));
848
- }
849
- function getAvatarUrl(maintainer) {
850
- for (const contributor of contributors) {
851
- if (maintainer.username === contributor.login) {
852
- return contributor.avatarUrl;
853
- }
854
- }
855
- throw new Error(`Maintainer ${maintainer.username} not found in contributors' list.`);
856
- }
857
-
858
- // src/components/Consulting.tsx
859
- import React11 from "react";
860
-
861
- // src/icons/people.svg
862
- var people_default = "/assets/people-72KKQHU4.svg";
863
-
864
- // src/components/Consulting.tsx
865
- var consultingPageHref = "/consulting";
866
- function Consulting() {
867
- const pageContext = usePageContext();
868
- const { projectInfo } = pageContext.config;
869
- const { projectName } = projectInfo;
870
- return /* @__PURE__ */ React11.createElement(SupporterSection, null, /* @__PURE__ */ React11.createElement(CallToAction, {
871
- iconUrl: people_default,
872
- text: "Consulting",
873
- href: consultingPageHref
874
- }), /* @__PURE__ */ React11.createElement("div", null), /* @__PURE__ */ React11.createElement(SectionDescription, null, "For questions and issues related to ", projectName, ", open a", " ", /* @__PURE__ */ React11.createElement("a", {
875
- href: projectInfo.githubDiscussions || projectInfo.githubIssues
876
- }, "GitHub Discussion"), ". For advanced help or help not directly related to ", projectName, ", the ", projectName, " team offers", " ", /* @__PURE__ */ React11.createElement(Link, {
877
- href: consultingPageHref,
878
- noBreadcrumb: true
879
- }, "consulting"), "."));
880
- }
881
- function Consultants() {
882
- return /* @__PURE__ */ React11.createElement(SupporterSection, null, /* @__PURE__ */ React11.createElement("div", {
883
- style: { display: "flex", flexWrap: "wrap", alignItems: "end" }
884
- }, maintainers.filter((maintainer) => {
885
- return !!maintainer.consultingUrl;
886
- }).map((maintainer, i) => /* @__PURE__ */ React11.createElement(Maintainer, {
887
- maintainer,
888
- key: i
889
- }))));
890
- }
891
-
892
- // src/components/CodeBlockTransformer.tsx
893
- import React12 from "react";
894
- function CodeBlockTransformer({ children, lineBreak }) {
895
- assert(
896
- lineBreak === "white-space" || lineBreak === "break-word",
897
- "`lineBreak` is currently the only use case for <CodeBlockTransformer>"
898
- );
899
- const className = `with-line-break_${lineBreak}`;
900
- return /* @__PURE__ */ React12.createElement("div", {
901
- className
902
- }, children);
903
- }
904
-
905
- // src/components/Comment.tsx
906
- import React13 from "react";
907
- function Comment({ children }) {
908
- return /* @__PURE__ */ React13.createElement(React13.Fragment, null);
909
- }
910
- export {
911
- CallToAction,
912
- CodeBlockTransformer,
913
- Comment,
914
- Construction,
915
- Consultants,
916
- Consulting,
917
- Contributors,
918
- Danger,
919
- Emoji,
920
- FeatureList,
921
- HorizontalLine,
922
- ImportMeta,
923
- Individuals,
924
- Link,
925
- Maintainer,
926
- NoteWithCustomIcon,
927
- NoteWithoutIcon,
928
- P,
929
- ReadingRecommendation,
930
- RepoLink,
931
- SectionDescription,
932
- Sponsors,
933
- Supporter,
934
- SupporterImg,
935
- SupporterSection,
936
- Warning,
937
- assert,
938
- assertUsage,
939
- assertWarning,
940
- crawlAllFiles,
941
- determineSectionTitle,
942
- determineSectionUrlHash,
943
- filter,
944
- isBrowser,
945
- isRepoLink,
946
- jsxToTextContent,
947
- objectAssign
948
- };