Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
m1k1o
GitHub Repository: m1k1o/neko
Path: blob/master/webpage/docs/customization/browsers.tsx
1007 views
1
import React from 'react';
2
import browsers from './browsers.json';
3
import Link from '@docusaurus/Link';
4
5
export function ProfileDirectoryPaths({flavors, ...props}: { flavors: string[] }) {
6
if (!flavors) {
7
flavors = [];
8
}
9
return (
10
<table {...props}>
11
<thead>
12
<tr>
13
<th>Browser</th>
14
<th>Profile Directory Path</th>
15
</tr>
16
</thead>
17
<tbody>
18
{browsers.filter(({ flavor }) => flavors.length == 0 || flavors.includes(flavor)).map(({ tag, profileDir }) => (
19
<tr key={tag}>
20
<td><Link to={`/docs/v3/installation/docker-images#${tag}`} ><strong>{tag}</strong></Link></td>
21
<td>
22
{profileDir ? <code>{profileDir}</code> : <i>Does not support profiles.</i>}
23
</td>
24
</tr>
25
))}
26
</tbody>
27
</table>
28
);
29
}
30
31
export function PolicyFilePaths({flavors, ...props}: { flavors: string[] }) {
32
if (!flavors) {
33
flavors = [];
34
}
35
return (
36
<table {...props}>
37
<thead>
38
<tr>
39
<th>Browser</th>
40
<th>Policy File Path</th>
41
</tr>
42
</thead>
43
<tbody>
44
{browsers.filter(({ flavor }) => flavors.length == 0 || flavors.includes(flavor)).map(({ tag, policiesFile }) => (
45
<tr key={tag}>
46
<td><Link to={`/docs/v3/installation/docker-images#${tag}`} ><strong>{tag}</strong></Link></td>
47
<td>
48
{policiesFile ? <code>{policiesFile}</code> : <i>Does not support policies.</i>}
49
</td>
50
</tr>
51
))}
52
</tbody>
53
</table>
54
);
55
}
56
57