Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added List component to the sistent components page #6086

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
143 changes: 143 additions & 0 deletions feature_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,149 @@
"Theme (also: Keychain Name)": "Support and Deployment"
}
},
{
"pricing_page": "true",
"entire_row": {
"Category": "Pattern Support: Istio",
"Documented?": "",
"Feature": "VirtualService",
"Function": "VirtualService",
"Pricing page?": "X",
"Subscription Tier": "Free",
"Tech": "Adapter",
"Theme (also: Keychain Name)": "Configuration Management"
}
},
{
"pricing_page": "true",
"entire_row": {
"Category": "Pattern Support: Istio",
"Documented?": "",
"Feature": "DestinationRule",
"Function": "DestinationRule",
"Pricing page?": "X",
"Subscription Tier": "Free",
"Tech": "Adapter",
"Theme (also: Keychain Name)": "Configuration Management"
}
},
{
"pricing_page": "true",
"entire_row": {
"Category": "Pattern Support: Istio",
"Documented?": "",
"Feature": "mTLS (PeerAuthentication)",
"Function": "mTLS (PeerAuthentication)",
"Pricing page?": "X",
"Subscription Tier": "Free",
"Tech": "Adapter",
"Theme (also: Keychain Name)": "Configuration Management"
}
},
{
"pricing_page": "true",
"entire_row": {
"Category": "Pattern Support: Istio",
"Documented?": "",
"Feature": "AuthorizationPolicy",
"Function": "AuthorizationPolicy",
"Pricing page?": "X",
"Subscription Tier": "Free",
"Tech": "Adapter",
"Theme (also: Keychain Name)": "Configuration Management"
}
},
{
"pricing_page": "true",
"entire_row": {
"Category": "Pattern Support: Istio",
"Documented?": "",
"Feature": "EnvoyFilters",
"Function": "EnvoyFilters",
"Pricing page?": "X",
"Subscription Tier": "Free",
"Tech": "Adapter",
"Theme (also: Keychain Name)": "Configuration Management"
}
},
{
"pricing_page": "true",
"entire_row": {
"Category": "Pattern Support: Istio",
"Documented?": "",
"Feature": "Istio Operator",
"Function": "Istio Operator",
"Pricing page?": "X",
"Subscription Tier": "Free",
"Tech": "Adapter",
"Theme (also: Keychain Name)": "Configuration Management"
}
},
{
"pricing_page": "true",
"entire_row": {
"Category": "Pattern Support: Istio",
"Documented?": "",
"Feature": "Ingress Gateway (Gateways)",
"Function": "Ingress Gateway (Gateways)",
"Pricing page?": "X",
"Subscription Tier": "Free",
"Tech": "Adapter",
"Theme (also: Keychain Name)": "Configuration Management"
}
},
{
"pricing_page": "true",
"entire_row": {
"Category": "Pattern Support: Istio",
"Documented?": "",
"Feature": "Egress Gateway (Gateways)",
"Function": "Egress Gateway (Gateways)",
"Pricing page?": "X",
"Subscription Tier": "Free",
"Tech": "Adapter",
"Theme (also: Keychain Name)": "Configuration Management"
}
},
{
"pricing_page": "true",
"entire_row": {
"Category": "Pattern Support: Istio",
"Documented?": "",
"Feature": "Custom Configuration",
"Function": "Custom Configuration",
"Pricing page?": "X",
"Subscription Tier": "Free",
"Tech": "Adapter",
"Theme (also: Keychain Name)": "Configuration Management"
}
},
{
"pricing_page": "true",
"entire_row": {
"Category": "Pattern Support: Kubernetes",
"Documented?": "",
"Feature": "Ingress",
"Function": "Ingress",
"Pricing page?": "X",
"Subscription Tier": "Free",
"Tech": "Adapter",
"Theme (also: Keychain Name)": "Configuration Management"
}
},
{
"pricing_page": "true",
"entire_row": {
"Category": "Multi-Mesh",
"Documented?": "",
"Feature": "Canary Rollout",
"Function": "Canary Rollout",
"Pricing page?": "X",
"Subscription Tier": "Free",
"Tech": "Adapter",
"Theme (also: Keychain Name)": "Configuration Management"
}
},
{
"pricing_page": "true",
"entire_row": {
Expand Down
8 changes: 8 additions & 0 deletions src/pages/projects/sistent/components/list/code.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from "react";
import { ListCode } from "../../../../../sections/Projects/Sistent/components/list/code";

const ListCodePage = () => {
return <ListCode />;
};

export default ListCodePage;
7 changes: 7 additions & 0 deletions src/pages/projects/sistent/components/list/guidance.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from "react";
import { ListGuidance } from "../../../../../sections/Projects/Sistent/components/list/guidance";

const ListGuidancePage = () => {
return <ListGuidance />;
};
export default ListGuidancePage;
6 changes: 6 additions & 0 deletions src/pages/projects/sistent/components/list/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import React from "react";
import SistentList from "../../../../../sections/Projects/Sistent/components/list";
const SistentListPage = () => {
return <SistentList/>;
};
export default SistentListPage;
7 changes: 7 additions & 0 deletions src/sections/Projects/Sistent/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ const componentsData = [
"Box is used as a flexible container for layout and styling, allowing quick customization and responsive design adjustments.",
url: "/projects/sistent/components/box",
},
{
id: 11,
name: "List",
description:
"Lists are essential UI elements that allow items to be organized sequentially in a structured and readable way. They help users view, select, and interact with multiple items conveniently.",
url: "/projects/sistent/components/list",
},
];

const SistentComponents = () => {
Expand Down
21 changes: 21 additions & 0 deletions src/sections/Projects/Sistent/components/list/code-block.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React, { useState } from "react";
import Code from "../../../../../components/CodeBlock";

export const CodeBlock = ({ name, code }) => {
const [showCode, setShowCode] = useState(false);
const onChange = () => {
setShowCode((prev) => !prev);
};

return (
<div className="show-code">
<input type="checkbox" name={name} id={name} onChange={onChange} />
<label htmlFor={name} className="label">
Show Code
</label>
{showCode && (
<Code codeString={code} language="javascript" />
)}
</div>
);
};
Loading