Skip to content

Commit

Permalink
fix bug and add functionality to drag component icons
Browse files Browse the repository at this point in the history
  • Loading branch information
mohit-fsdet committed Jan 25, 2024
2 parents c05ae2a + 8c5fe2d commit 02aef50
Show file tree
Hide file tree
Showing 60 changed files with 1,143 additions and 32,061 deletions.
4 changes: 2 additions & 2 deletions app/assets/aws/compute/appRunnerIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';

function AppRunnerIcon() {
function AppRunnerIcon({ className }) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="40"
height="40"
className="w-6 h-6"
className={className}
>
<defs>
<linearGradient
Expand Down
4 changes: 2 additions & 2 deletions app/assets/aws/compute/autoScalingIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';

function AutoScalingIcon() {
function AutoScalingIcon({ className }) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="40"
height="40"
className="w-6 h-6"
className={className}
>
<defs>
<linearGradient
Expand Down
4 changes: 2 additions & 2 deletions app/assets/aws/compute/awsBatchIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';

const AwsBatchIcon = () => {
const AwsBatchIcon = ({ className }) => {
return (
<svg
className="w-6 h-6"
className={className}
height="40"
width="40"
xmlns="http://www.w3.org/2000/svg"
Expand Down
4 changes: 2 additions & 2 deletions app/assets/aws/compute/containersIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';

function ContainerIcon() {
function ContainerIcon({ className }) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="48"
height="48"
className="w-6 h-6"
className={className}
>
<path
fill="#D45B07"
Expand Down
4 changes: 2 additions & 2 deletions app/assets/aws/compute/ec2Icon.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';

function Ec2Icon() {
function Ec2Icon({ className }) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="40"
height="40"
className="w-6 h-6"
className={className}
>
<defs>
<linearGradient
Expand Down
4 changes: 2 additions & 2 deletions app/assets/aws/compute/elasticBeanStalkIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';

function ElasticBeanStalkIcon() {
function ElasticBeanStalkIcon({ className }) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="40"
height="40"
className="w-6 h-6"
className={className}
>
<defs>
<linearGradient
Expand Down
4 changes: 2 additions & 2 deletions app/assets/aws/compute/imageBuilderIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';

function ImageBuilder() {
function ImageBuilder({ className }) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="40"
height="40"
className="w-6 h-6"
className={className}
>
<defs>
<linearGradient
Expand Down
4 changes: 2 additions & 2 deletions app/assets/aws/compute/lambdaIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';

function Lambda() {
function Lambda({ className }) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="40"
height="40"
className="w-6 h-6"
className={className}
>
<defs>
<linearGradient
Expand Down
4 changes: 2 additions & 2 deletions app/assets/aws/compute/sailIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';

function SailIcon() {
function SailIcon({ className }) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="40"
height="40"
className="w-6 h-6"
className={className}
>
<defs>
<linearGradient
Expand Down
30 changes: 30 additions & 0 deletions app/assets/logo/aws.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import React, { SVGProps } from 'react';

interface AWSProps extends SVGProps<SVGSVGElement> {
size?: number | string;
}

const AWS: React.FC<AWSProps> = ({ className }) => (
<svg
id="Layer_1"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 300.7 179.8"
className={className}
>
<style>{`.st0{fill:#000000}.st1{fill:#f90}`}</style>
<path
className="st0"
d="M84.7 65.3c0 3.7.4 6.7 1.1 8.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1"
d="M271.8 142.6c-32.9 24.3-80.7 37.2-121.8 37.2-57.6 0-109.5-21.3-148.7-56.7-3.1-2.8-.3-6.6 3.4-4.4 42.4 24.6 94.7 39.5 148.8 39.5 36.5 0 76.6-7.6 113.5-23.2 5.5-2.5 10.2 3.6 4.8 7.6z"
/>
<path
className="st1"
d="M285.5 127c-4.2-5.4-27.8-2.6-38.5-1.3-3.2.4-3.7-2.4-.8-4.5 18.8-13.2 49.7-9.4 53.3-5 3.6 4.5-1 35.4-18.6 50.2-2.7 2.3-5.3 1.1-4.1-1.9 4-9.9 12.9-32.2 8.7-37.5z"
/>
</svg>
);

export default React.memo<AWSProps>(AWS);
48 changes: 48 additions & 0 deletions app/assets/logo/gcp.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import React, { SVGProps } from 'react';

interface GCPProps extends SVGProps<SVGSVGElement> {
size?: number | string;
}

const GCP: React.FC<GCPProps> = ({ className }) => (
<svg
xmlns="http://www.w3.org/2000/svg"
x="0px"
y="0px"
className={className}
viewBox="0 0 48 48"
>
<path
fill="#1976d2"
d="M38.193,18.359c-0.771-2.753-2.319-5.177-4.397-7.03l-4.598,4.598 c1.677,1.365,2.808,3.374,3.014,5.648v1.508c0.026,0,0.05-0.008,0.076-0.008c2.322,0,4.212,1.89,4.212,4.212S34.61,31.5,32.288,31.5 c-0.026,0-0.05-0.007-0.076-0.008V31.5h-6.666H24V38h8.212v-0.004c0.026,0,0.05,0.004,0.076,0.004C38.195,38,43,33.194,43,27.288 C43,23.563,41.086,20.279,38.193,18.359z"
></path>
<path
fill="#ffe082"
d="M19.56,25.59l4.72-4.72c-0.004-0.005-0.008-0.009-0.011-0.013l-4.717,4.717 C19.554,25.579,19.557,25.584,19.56,25.59z"
opacity=".5"
></path>
<path
fill="#90caf9"
d="M19.56,25.59l4.72-4.72c-0.004-0.005-0.008-0.009-0.011-0.013l-4.717,4.717 C19.554,25.579,19.557,25.584,19.56,25.59z"
opacity=".5"
></path>
<path
fill="#ff3d00"
d="M24,7.576c-8.133,0-14.75,6.617-14.75,14.75c0,0.233,0.024,0.46,0.035,0.69h6.5 c-0.019-0.228-0.035-0.457-0.035-0.69c0-4.549,3.701-8.25,8.25-8.25c1.969,0,3.778,0.696,5.198,1.851l4.598-4.598 C31.188,9.003,27.761,7.576,24,7.576z"
></path>
<path
fill="#90caf9"
d="M15.712,31.5L15.712,31.5c-0.001,0-0.001,0-0.002,0c-0.611,0-1.188-0.137-1.712-0.373 l-4.71,4.71C11.081,37.188,13.301,38,15.71,38c0.001,0,0.001,0,0.002,0v0H24v-6.5H15.712z"
opacity=".5"
></path>
<path
fill="#4caf50"
d="M15.712,31.5L15.712,31.5c-0.001,0-0.001,0-0.002,0c-0.611,0-1.188-0.137-1.712-0.373l-4.71,4.71 C11.081,37.188,13.301,38,15.71,38c0.001,0,0.001,0,0.002,0v0H24v-6.5H15.712z"
></path>
<path
fill="#ffc107"
d="M11.5,27.29c0-2.32,1.89-4.21,4.21-4.21c1.703,0,3.178,1.023,3.841,2.494l4.717-4.717 c-1.961-2.602-5.065-4.277-8.559-4.277C9.81,16.58,5,21.38,5,27.29c0,3.491,1.691,6.59,4.288,8.547l4.71-4.71 C12.53,30.469,11.5,28.999,11.5,27.29z"
></path>
</svg>
);
export default React.memo<GCPProps>(GCP);
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion app/components/drag/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { MdGridOn } from 'react-icons/md';
import { RiZoomInLine, RiZoomOutLine } from 'react-icons/ri';
import { HiOutlineViewfinderCircle } from 'react-icons/hi2';
import { LuRedo, LuUndo, LuKeyboard } from 'react-icons/lu';
import {} from 'react-icons/lu';
import { FiFileText } from 'react-icons/fi';
import { Tooltip } from '@mantine/core';
import Draggable from 'react-draggable';
Expand Down
Loading

0 comments on commit 02aef50

Please sign in to comment.