changes in input fields
This commit is contained in:
42
frontend/src/app/agents/add/page.jsx
Normal file
42
frontend/src/app/agents/add/page.jsx
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
import React from "react";
|
||||||
|
import TextField from "@/app/components/fields/textfield";
|
||||||
|
// import Prompts from "@/app/components/prompts/Prompts";
|
||||||
|
import TopHeader from "@/app/components/topHeader/TopHeader";
|
||||||
|
import TopToolTip from "@/app/components/topToolTip/TopToolTip";
|
||||||
|
import globalStyle from "../../globalStyle.module.css";
|
||||||
|
import createAgentStyle from "./styles.module.css";
|
||||||
|
|
||||||
|
const page = () => {
|
||||||
|
return (
|
||||||
|
<div className={globalStyle.section}>
|
||||||
|
<div className={globalStyle.mainContainer}>
|
||||||
|
<div className={globalStyle.container}>
|
||||||
|
<TopHeader
|
||||||
|
buttonText="Save"
|
||||||
|
cancelButtonText="Cancel"
|
||||||
|
topbarTitle="Create New Agent"
|
||||||
|
state="add"
|
||||||
|
/>
|
||||||
|
{/* Create Crediantial Container */}
|
||||||
|
<div className={createAgentStyle.createAgentContainer}>
|
||||||
|
<TopToolTip />
|
||||||
|
<div className={createAgentStyle.inputContainer}>
|
||||||
|
{/* Header */}
|
||||||
|
<div></div>
|
||||||
|
{/* Agent name input */}
|
||||||
|
<div></div>
|
||||||
|
{/* Kubernetes API input */}
|
||||||
|
<div></div>
|
||||||
|
{/* Checkbox */}
|
||||||
|
<div></div>
|
||||||
|
{/* Agent endpoint */}
|
||||||
|
<div></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default page;
|
||||||
17
frontend/src/app/agents/add/styles.module.css
Normal file
17
frontend/src/app/agents/add/styles.module.css
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
.createAgentContainer {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
gap: 48px;
|
||||||
|
flex: 1 0 0;
|
||||||
|
align-self: stretch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.inputContainer {
|
||||||
|
display: flex;
|
||||||
|
padding: 24px;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 24px;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
@@ -47,7 +47,7 @@ const Page = () => {
|
|||||||
<div className={createCredStyle.projectName}>
|
<div className={createCredStyle.projectName}>
|
||||||
<div className={createCredStyle.label}>
|
<div className={createCredStyle.label}>
|
||||||
<p className={createCredStyle.labelTxt}>Project Name</p>
|
<p className={createCredStyle.labelTxt}>Project Name</p>
|
||||||
<p className={createCredStyle.required}>*</p>
|
{/* <p className={createCredStyle.required}>*</p> */}
|
||||||
</div>
|
</div>
|
||||||
{/* Content */}
|
{/* Content */}
|
||||||
<div className={createCredStyle.credInputField}>
|
<div className={createCredStyle.credInputField}>
|
||||||
|
|||||||
@@ -50,6 +50,51 @@
|
|||||||
gap: 8px;
|
gap: 8px;
|
||||||
align-self: stretch;
|
align-self: stretch;
|
||||||
}
|
}
|
||||||
|
.credInputField > input {
|
||||||
|
display: flex;
|
||||||
|
height: 44px;
|
||||||
|
padding: 12px 16px;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: flex-start;
|
||||||
|
background: none;
|
||||||
|
gap: 10px;
|
||||||
|
align-self: stretch;
|
||||||
|
border-radius: 6px;
|
||||||
|
border: 1px solid #616583;
|
||||||
|
border: 1px solid color(display-p3 0.3843 0.3961 0.5057);
|
||||||
|
}
|
||||||
|
.credInputField > input:hover {
|
||||||
|
border: 1px solid #616583;
|
||||||
|
border: 1px solid color(display-p3 0.3843 0.3961 0.5057);
|
||||||
|
background: rgba(75, 79, 109, 0.05);
|
||||||
|
background: color(display-p3 0.298 0.3098 0.4196 / 0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
.credInputField input:focus {
|
||||||
|
outline: none;
|
||||||
|
border-radius: 6px;
|
||||||
|
border: 1px solid #959aff;
|
||||||
|
border: 1px solid color(display-p3 0.5892 0.6031 0.9766);
|
||||||
|
background: rgba(75, 79, 109, 0.25);
|
||||||
|
background: color(display-p3 0.298 0.3098 0.4196 / 0.25);
|
||||||
|
caret-color: #959aff;
|
||||||
|
}
|
||||||
|
.credInputField input:focus::placeholder {
|
||||||
|
color: #4b4f6d;
|
||||||
|
color: color(display-p3 0.298 0.3098 0.4196);
|
||||||
|
}
|
||||||
|
|
||||||
|
.placeholderTxt::placeholder {
|
||||||
|
color: #85869b;
|
||||||
|
color: color(display-p3 0.5216 0.5255 0.6);
|
||||||
|
font-family: Inter;
|
||||||
|
font-size: 16px;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: normal;
|
||||||
|
}
|
||||||
|
|
||||||
.uploadFile {
|
.uploadFile {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import TopHeader from "../components/topHeader/TopHeader";
|
|||||||
import globalStyle from "../globalStyle.module.css";
|
import globalStyle from "../globalStyle.module.css";
|
||||||
import styles from "./styles.module.css";
|
import styles from "./styles.module.css";
|
||||||
import DeleteIcon from "../components/icons/delete";
|
import DeleteIcon from "../components/icons/delete";
|
||||||
|
import SuccessToast from "../components/toast/success/successToast";
|
||||||
const CredentialsPage = () => {
|
const CredentialsPage = () => {
|
||||||
const sampleData = [
|
const sampleData = [
|
||||||
{
|
{
|
||||||
@@ -56,6 +57,7 @@ const CredentialsPage = () => {
|
|||||||
];
|
];
|
||||||
return (
|
return (
|
||||||
<div className={globalStyle.section}>
|
<div className={globalStyle.section}>
|
||||||
|
<SuccessToast message="New Credential added successfully!" />
|
||||||
<div className={globalStyle.mainContainer}>
|
<div className={globalStyle.mainContainer}>
|
||||||
<div className={globalStyle.container}>
|
<div className={globalStyle.container}>
|
||||||
<TopHeader buttonText="Add Credentials" topbarTitle="Credentials" />
|
<TopHeader buttonText="Add Credentials" topbarTitle="Credentials" />
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import React from "react";
|
|||||||
import TopHeader from "@/app/components/topHeader/TopHeader";
|
import TopHeader from "@/app/components/topHeader/TopHeader";
|
||||||
import globalStyle from "../../globalStyle.module.css";
|
import globalStyle from "../../globalStyle.module.css";
|
||||||
import editRoleStyle from "./styles.module.css";
|
import editRoleStyle from "./styles.module.css";
|
||||||
|
import TextField from "@/app/components/fields/textfield";
|
||||||
|
|
||||||
const page = () => {
|
const page = () => {
|
||||||
const sampleData = [
|
const sampleData = [
|
||||||
@@ -47,13 +48,8 @@ const page = () => {
|
|||||||
</div>
|
</div>
|
||||||
{/* Input field */}
|
{/* Input field */}
|
||||||
<div className={editRoleStyle.inputField}>
|
<div className={editRoleStyle.inputField}>
|
||||||
<input
|
{/* Static */}
|
||||||
type="text"
|
<TextField placeHolder="organization-owner" />
|
||||||
name=""
|
|
||||||
id=""
|
|
||||||
placeholder="organization-owner" //static
|
|
||||||
className={editRoleStyle.placeholderTxt}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -66,13 +62,8 @@ const page = () => {
|
|||||||
</div>
|
</div>
|
||||||
{/* Input field */}
|
{/* Input field */}
|
||||||
<div className={editRoleStyle.inputField}>
|
<div className={editRoleStyle.inputField}>
|
||||||
<input
|
{/* Static */}
|
||||||
type="text"
|
<TextField placeHolder="67160a5ae69144ff19aafb86" />
|
||||||
name=""
|
|
||||||
id=""
|
|
||||||
placeholder="67160a5ae69144ff19aafb86" //static
|
|
||||||
className={editRoleStyle.placeholderTxt}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import React from "react";
|
|||||||
import TopHeader from "@/app/components/topHeader/TopHeader";
|
import TopHeader from "@/app/components/topHeader/TopHeader";
|
||||||
import globalStyle from "../../globalStyle.module.css";
|
import globalStyle from "../../globalStyle.module.css";
|
||||||
import addRoleStyle from "./styles.module.css";
|
import addRoleStyle from "./styles.module.css";
|
||||||
|
import TextField from "@/app/components/fields/textfield";
|
||||||
|
|
||||||
const page = () => {
|
const page = () => {
|
||||||
return (
|
return (
|
||||||
@@ -36,13 +37,7 @@ const page = () => {
|
|||||||
</div>
|
</div>
|
||||||
{/* Input field */}
|
{/* Input field */}
|
||||||
<div className={addRoleStyle.inputField}>
|
<div className={addRoleStyle.inputField}>
|
||||||
<input
|
<TextField placeHolder="Enter name" />
|
||||||
type="text"
|
|
||||||
name=""
|
|
||||||
id=""
|
|
||||||
placeholder="Enter name"
|
|
||||||
className={addRoleStyle.placeholderTxt}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -55,13 +50,7 @@ const page = () => {
|
|||||||
</div>
|
</div>
|
||||||
{/* Input field */}
|
{/* Input field */}
|
||||||
<div className={addRoleStyle.inputField}>
|
<div className={addRoleStyle.inputField}>
|
||||||
<input
|
<TextField placeHolder="Enter organization ID" />
|
||||||
type="text"
|
|
||||||
name=""
|
|
||||||
id=""
|
|
||||||
placeholder="Enter organization ID"
|
|
||||||
className={addRoleStyle.placeholderTxt}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import styles from "./styles.module.css";
|
|||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import ViewIcon from "../components/icons/view";
|
import ViewIcon from "../components/icons/view";
|
||||||
import DeleteIcon from "../components/icons/delete";
|
import DeleteIcon from "../components/icons/delete";
|
||||||
|
import SuccessToast from "../components/toast/success/successToast";
|
||||||
|
|
||||||
const RolesPage = () => {
|
const RolesPage = () => {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
@@ -45,6 +46,7 @@ const RolesPage = () => {
|
|||||||
];
|
];
|
||||||
return (
|
return (
|
||||||
<div className={globalStyle.section}>
|
<div className={globalStyle.section}>
|
||||||
|
<SuccessToast message="New Role added successfully!" />
|
||||||
<div className={globalStyle.mainContainer}>
|
<div className={globalStyle.mainContainer}>
|
||||||
<div className={globalStyle.container}>
|
<div className={globalStyle.container}>
|
||||||
<TopHeader buttonText="Add Role" topbarTitle="Roles" />
|
<TopHeader buttonText="Add Role" topbarTitle="Roles" />
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import globalStyle from "../../globalStyle.module.css";
|
|||||||
import editUserStyle from "./styles.module.css";
|
import editUserStyle from "./styles.module.css";
|
||||||
import Prompts from "@/app/components/prompts/Prompts";
|
import Prompts from "@/app/components/prompts/Prompts";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
import TextField from "@/app/components/fields/textfield";
|
||||||
|
|
||||||
const Page = () => {
|
const Page = () => {
|
||||||
const sampleData = [
|
const sampleData = [
|
||||||
@@ -23,8 +24,6 @@ const Page = () => {
|
|||||||
// { permission: "service.update" },
|
// { permission: "service.update" },
|
||||||
];
|
];
|
||||||
|
|
||||||
const [showPrompt, setShowPrompt] = useState(false);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={globalStyle.section}>
|
<div className={globalStyle.section}>
|
||||||
<div className={globalStyle.mainContainer}>
|
<div className={globalStyle.mainContainer}>
|
||||||
@@ -73,15 +72,11 @@ const Page = () => {
|
|||||||
</div>
|
</div>
|
||||||
{/* Input field */}
|
{/* Input field */}
|
||||||
<div className={editUserStyle.inputField}>
|
<div className={editUserStyle.inputField}>
|
||||||
<input
|
<TextField
|
||||||
type="text"
|
placeHolder="nino.moonshot@gmail.com" //static
|
||||||
name=""
|
|
||||||
id=""
|
|
||||||
placeholder="nino.moonshot@gmail.com" //static
|
|
||||||
className={editUserStyle.placeholderTxt}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<Prompts show={showPrompt} />
|
<Prompts show={false} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/* Full Name */}
|
{/* Full Name */}
|
||||||
@@ -94,15 +89,11 @@ const Page = () => {
|
|||||||
</div>
|
</div>
|
||||||
{/* Input field */}
|
{/* Input field */}
|
||||||
<div className={editUserStyle.inputField}>
|
<div className={editUserStyle.inputField}>
|
||||||
<input
|
<TextField
|
||||||
type="text"
|
placeHolder="Nino Paul Cervantes" //static
|
||||||
name=""
|
|
||||||
id=""
|
|
||||||
placeholder="Nino Paul Cervantes" //static
|
|
||||||
className={editUserStyle.placeholderTxt}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<Prompts show={showPrompt} />
|
<Prompts show={false} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import React from "react";
|
|||||||
import TopHeader from "@/app/components/topHeader/TopHeader";
|
import TopHeader from "@/app/components/topHeader/TopHeader";
|
||||||
import globalStyle from "../../globalStyle.module.css";
|
import globalStyle from "../../globalStyle.module.css";
|
||||||
import addUserStyle from "./styles.module.css";
|
import addUserStyle from "./styles.module.css";
|
||||||
|
import TextField from "@/app/components/fields/textfield";
|
||||||
|
|
||||||
const page = () => {
|
const page = () => {
|
||||||
return (
|
return (
|
||||||
@@ -55,13 +56,7 @@ const page = () => {
|
|||||||
</div>
|
</div>
|
||||||
{/* Input field */}
|
{/* Input field */}
|
||||||
<div className={addUserStyle.inputField}>
|
<div className={addUserStyle.inputField}>
|
||||||
<input
|
<TextField placeHolder="Enter email" />
|
||||||
type="text"
|
|
||||||
name=""
|
|
||||||
id=""
|
|
||||||
placeholder="Enter Email"
|
|
||||||
className={addUserStyle.placeholderTxt}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -74,13 +69,7 @@ const page = () => {
|
|||||||
</div>
|
</div>
|
||||||
{/* Input field */}
|
{/* Input field */}
|
||||||
<div className={addUserStyle.inputField}>
|
<div className={addUserStyle.inputField}>
|
||||||
<input
|
<TextField placeHolder="Enter full name" />
|
||||||
type="text"
|
|
||||||
name=""
|
|
||||||
id=""
|
|
||||||
placeholder="Enter full name"
|
|
||||||
className={addUserStyle.placeholderTxt}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import styles from "./styles.module.css";
|
|||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import ViewIcon from "../components/icons/view";
|
import ViewIcon from "../components/icons/view";
|
||||||
import DeleteIcon from "../components/icons/delete";
|
import DeleteIcon from "../components/icons/delete";
|
||||||
|
import SuccessToast from "../components/toast/success/successToast";
|
||||||
|
|
||||||
const UsersPage = () => {
|
const UsersPage = () => {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
@@ -32,6 +33,7 @@ const UsersPage = () => {
|
|||||||
];
|
];
|
||||||
return (
|
return (
|
||||||
<div className={globalStyle.section}>
|
<div className={globalStyle.section}>
|
||||||
|
<SuccessToast message="New User added successfully" />
|
||||||
<div className={globalStyle.mainContainer}>
|
<div className={globalStyle.mainContainer}>
|
||||||
<div className={globalStyle.container}>
|
<div className={globalStyle.container}>
|
||||||
<TopHeader buttonText="Add User" topbarTitle="Users" />
|
<TopHeader buttonText="Add User" topbarTitle="Users" />
|
||||||
|
|||||||
Reference in New Issue
Block a user