@featurevisor/site 1.32.0 → 1.34.1
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.
- package/CHANGELOG.md +19 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/HistoryTimeline.tsx +2 -2
- package/src/components/ListAttributes.tsx +4 -1
- package/src/components/ListFeatures.tsx +1 -1
- package/src/components/ListSegments.tsx +4 -1
- package/src/components/ShowAttribute.tsx +4 -4
- package/src/components/ShowFeature.tsx +6 -6
- package/src/components/ShowSegment.tsx +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@featurevisor/site",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.34.1",
|
|
4
4
|
"description": "Static site for Featurevisor",
|
|
5
5
|
"main": "dist",
|
|
6
6
|
"scripts": {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"webpack-merge": "^5.10.0"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@featurevisor/types": "1.
|
|
62
|
+
"@featurevisor/types": "1.33.0"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "c33593eb5b172e5bbc7a44bfd5abf699383cc13f"
|
|
65
65
|
}
|
|
@@ -24,7 +24,7 @@ function Activity(props) {
|
|
|
24
24
|
<>
|
|
25
25
|
{entry.entities[0].type}{" "}
|
|
26
26
|
<Link
|
|
27
|
-
to={`/${entry.entities[0].type}s/${entry.entities[0].key}`}
|
|
27
|
+
to={`/${entry.entities[0].type}s/${encodeURIComponent(entry.entities[0].key)}`}
|
|
28
28
|
className="font-semibold text-gray-600"
|
|
29
29
|
>
|
|
30
30
|
{entry.entities[0].key}
|
|
@@ -50,7 +50,7 @@ function Activity(props) {
|
|
|
50
50
|
<li key={index}>
|
|
51
51
|
<span className="text-gray-400">{entity.type}</span>{" "}
|
|
52
52
|
<Link
|
|
53
|
-
to={`/${entity.type}s/${entity.key}`}
|
|
53
|
+
to={`/${entity.type}s/${encodeURIComponent(entity.key)}`}
|
|
54
54
|
className="font-semibold text-gray-500"
|
|
55
55
|
>
|
|
56
56
|
{entity.key}
|
|
@@ -25,7 +25,10 @@ export function ListAttributes() {
|
|
|
25
25
|
<ul className="diving-gray-200 divide-y">
|
|
26
26
|
{attributes.map((attribute: any) => (
|
|
27
27
|
<li key={attribute.key}>
|
|
28
|
-
<Link
|
|
28
|
+
<Link
|
|
29
|
+
to={`/attributes/${encodeURIComponent(attribute.key)}`}
|
|
30
|
+
className="block hover:bg-gray-50"
|
|
31
|
+
>
|
|
29
32
|
<div className="px-6 py-4">
|
|
30
33
|
<div className="flex items-center justify-between">
|
|
31
34
|
<p className="text-md relative font-bold text-slate-600">
|
|
@@ -28,7 +28,7 @@ export function ListFeatures() {
|
|
|
28
28
|
<ul className="diving-gray-200 divide-y">
|
|
29
29
|
{features.map((feature: any) => (
|
|
30
30
|
<li key={feature.key}>
|
|
31
|
-
<Link to={`/features/${feature.key}`}>
|
|
31
|
+
<Link to={`/features/${encodeURIComponent(feature.key)}`}>
|
|
32
32
|
<div className="block hover:bg-gray-50">
|
|
33
33
|
<div className="px-6 py-4">
|
|
34
34
|
<div className="flex items-center justify-between">
|
|
@@ -25,7 +25,10 @@ export function ListSegments() {
|
|
|
25
25
|
<ul className="diving-gray-200 divide-y">
|
|
26
26
|
{segments.map((segment: any) => (
|
|
27
27
|
<li key={segment.key}>
|
|
28
|
-
<Link
|
|
28
|
+
<Link
|
|
29
|
+
to={`/segments/${encodeURIComponent(segment.key)}`}
|
|
30
|
+
className="block hover:bg-gray-50"
|
|
31
|
+
>
|
|
29
32
|
<div className="px-6 py-4">
|
|
30
33
|
<div className="flex items-center justify-between">
|
|
31
34
|
<p className="text-md relative font-bold text-slate-600">
|
|
@@ -84,7 +84,7 @@ export function DisplayAttributeUsage() {
|
|
|
84
84
|
{attribute.usedInFeatures.map((feature) => {
|
|
85
85
|
return (
|
|
86
86
|
<li key={feature}>
|
|
87
|
-
<Link to={`/features/${feature}`}>{feature}</Link>
|
|
87
|
+
<Link to={`/features/${encodeURIComponent(feature)}`}>{feature}</Link>
|
|
88
88
|
</li>
|
|
89
89
|
);
|
|
90
90
|
})}
|
|
@@ -116,15 +116,15 @@ export function ShowAttribute() {
|
|
|
116
116
|
const tabs = [
|
|
117
117
|
{
|
|
118
118
|
title: "Overview",
|
|
119
|
-
to: `/attributes/${attributeKey}`,
|
|
119
|
+
to: `/attributes/${encodeURIComponent(attributeKey)}`,
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
122
|
title: "Usage",
|
|
123
|
-
to: `/attributes/${attributeKey}/usage`,
|
|
123
|
+
to: `/attributes/${encodeURIComponent(attributeKey)}/usage`,
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
126
|
title: "History",
|
|
127
|
-
to: `/attributes/${attributeKey}/history`,
|
|
127
|
+
to: `/attributes/${encodeURIComponent(attributeKey)}/history`,
|
|
128
128
|
},
|
|
129
129
|
];
|
|
130
130
|
|
|
@@ -490,28 +490,28 @@ export function ShowFeature() {
|
|
|
490
490
|
const tabs = [
|
|
491
491
|
{
|
|
492
492
|
title: "Overview",
|
|
493
|
-
to: `/features/${featureKey}`,
|
|
493
|
+
to: `/features/${encodeURIComponent(featureKey)}`,
|
|
494
494
|
end: true,
|
|
495
495
|
},
|
|
496
496
|
{
|
|
497
497
|
title: "Variations",
|
|
498
|
-
to: `/features/${featureKey}/variations`,
|
|
498
|
+
to: `/features/${encodeURIComponent(featureKey)}/variations`,
|
|
499
499
|
},
|
|
500
500
|
{
|
|
501
501
|
title: "Variables",
|
|
502
|
-
to: `/features/${featureKey}/variables`,
|
|
502
|
+
to: `/features/${encodeURIComponent(featureKey)}/variables`,
|
|
503
503
|
},
|
|
504
504
|
{
|
|
505
505
|
title: "Rules",
|
|
506
|
-
to: `/features/${featureKey}/rules`,
|
|
506
|
+
to: `/features/${encodeURIComponent(featureKey)}/rules`,
|
|
507
507
|
},
|
|
508
508
|
{
|
|
509
509
|
title: "Force",
|
|
510
|
-
to: `/features/${featureKey}/force`,
|
|
510
|
+
to: `/features/${encodeURIComponent(featureKey)}/force`,
|
|
511
511
|
},
|
|
512
512
|
{
|
|
513
513
|
title: "History",
|
|
514
|
-
to: `/features/${featureKey}/history`,
|
|
514
|
+
to: `/features/${encodeURIComponent(featureKey)}/history`,
|
|
515
515
|
},
|
|
516
516
|
];
|
|
517
517
|
|
|
@@ -64,7 +64,7 @@ export function DisplaySegmentUsage() {
|
|
|
64
64
|
{segment.usedInFeatures.map((feature) => {
|
|
65
65
|
return (
|
|
66
66
|
<li key={feature}>
|
|
67
|
-
<Link to={`/features/${feature}`}>{feature}</Link>
|
|
67
|
+
<Link to={`/features/${encodeURIComponent(feature)}`}>{feature}</Link>
|
|
68
68
|
</li>
|
|
69
69
|
);
|
|
70
70
|
})}
|
|
@@ -96,15 +96,15 @@ export function ShowSegment() {
|
|
|
96
96
|
const tabs = [
|
|
97
97
|
{
|
|
98
98
|
title: "Overview",
|
|
99
|
-
to: `/segments/${segmentKey}`,
|
|
99
|
+
to: `/segments/${encodeURIComponent(segmentKey)}`,
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
title: "Usage",
|
|
103
|
-
to: `/segments/${segmentKey}/usage`,
|
|
103
|
+
to: `/segments/${encodeURIComponent(segmentKey)}/usage`,
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
title: "History",
|
|
107
|
-
to: `/segments/${segmentKey}/history`,
|
|
107
|
+
to: `/segments/${encodeURIComponent(segmentKey)}/history`,
|
|
108
108
|
},
|
|
109
109
|
];
|
|
110
110
|
|