Skip to content

Commit

Permalink
organizing
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenNaihin committed Feb 17, 2024
1 parent 1b0dd16 commit 16b099e
Show file tree
Hide file tree
Showing 26 changed files with 16 additions and 62 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getSupabaseClient } from '@/app/components/stacks/utils/stack-db';
import { getSupabaseClient } from '@/app/components/stacks/v1/utils/stack-db';

import getFileFromGithub from './get-file-from-github';
import pushMultipleFilesToBranch from './push-multiple-files-to-branch';
Expand Down
2 changes: 1 addition & 1 deletion ui/app/build/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useEffect, useState } from 'react';
import tw from 'tailwind-styled-components';

import Action from '../../components/build/stack/Action';
import type { Stack } from './types';
import type { Stack } from '../../components/build/types';

const Workflow: React.FC = ({ params }: { params: { slug: string } }) => {
const [stackInfo, setStackInfo] = useState<Stack | null>(null);
Expand Down
2 changes: 1 addition & 1 deletion ui/app/components/build/stack/Action.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import tw from 'tailwind-styled-components';

import type { StackItem } from '../../../build/[slug]/types';
import type { StackItem } from '../types';

interface ActionProps {
actionInfo: StackItem;
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion ui/app/components/stacks/v1/create-ai-canvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const CreateAICanvas: React.FC = () => {
sync_mode: true,
image_url: dataUriImage,
strength: 0.65,
enable_safety_checks: true,
enable_safety_checks: false,
});
}, [dataUriImage, imagePrompt]);

Expand Down
4 changes: 2 additions & 2 deletions ui/app/components/stacks/v1/create-stack-boilerplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { useEffect, useState } from 'react';
import Link from 'next/link';
import SignIn from '@/app/components/stacks/utils/signIn';
import { supabaseClient } from '@/app/components/stacks/utils/stack-db';
import SignIn from '@/app/components/stacks/v1/utils/signIn';
import { supabaseClient } from '@/app/components/stacks/v1/utils/stack-db';

export const BasicForm = () => {
const [formData, setFormData] = useState({
Expand Down
2 changes: 1 addition & 1 deletion ui/app/components/stacks/v1/creation/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useState } from 'react';
import { useFormState } from 'react-dom';
import tw from 'tailwind-styled-components';

import { callStack, parseFormData } from '../../utils/actions';
import { callStack, parseFormData } from '../utils/actions';
import InputWithButton from './input-with-button';
import Inputs from './Inputs';
import Outputs from './outputs';
Expand Down
2 changes: 1 addition & 1 deletion ui/app/components/stacks/v1/creation/input-with-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { IoSend } from 'react-icons/io5';
import tw from 'tailwind-styled-components';

// import SearchStacks from './search-stacks';
import { StackDescription } from '../../utils/stack-db';
import { StackDescription } from '../utils/stack-db';

export const SubmitButton = () => {
const { pending } = useFormStatus();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion ui/app/stacks/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import tw from 'tailwind-styled-components';
import {
getStackDB,
type StackDescription,
} from '../../components/stacks/utils/stack-db';
} from '../../components/stacks/v1/utils/stack-db';

// Lazy load ClipboardComponent
const ClipboardComponent = lazy(
Expand Down
4 changes: 2 additions & 2 deletions ui/app/stacks/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { FaStar } from 'react-icons/fa';
import { IoLogoGithub } from 'react-icons/io';
import tw from 'tailwind-styled-components';

import MainContent from '../components/stacks/v1/creation/main-content';
import {
getStackDB,
statusesToDisplay,
type StackDescription,
} from '../components/stacks/utils/stack-db';
import MainContent from '../components/stacks/v1/creation/main-content';
} from '../components/stacks/v1/utils/stack-db';

export const fetchCache = 'force-no-store'; // TODO: remove this line to enable caching but without making the app completely static
export const revalidate = 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getSupabaseClient } from '@/app/components/stacks/utils/stack-db';
import { getSupabaseClient } from '@/app/components/stacks/v1/utils/stack-db';

import getFileFromGithub from './get-file-from-github';
import pushMultipleFilesToBranch from './push-multiple-files-to-branch';
Expand Down
46 changes: 0 additions & 46 deletions ui/public/stacks/utils/ContactButton.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions ui/public/stacks/v1/create-stack-boilerplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { useEffect, useState } from 'react';
import Link from 'next/link';
import SignIn from '@/app/components/stacks/utils/signIn';
import { supabaseClient } from '@/app/components/stacks/utils/stack-db';
import SignIn from '@/app/components/stacks/v1/utils/signIn';
import { supabaseClient } from '@/app/components/stacks/v1/utils/stack-db';

export const BasicForm = () => {
const [formData, setFormData] = useState({
Expand Down
2 changes: 1 addition & 1 deletion ui/public/stacks/v1/creation/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useState } from 'react';
import { useFormState } from 'react-dom';
import tw from 'tailwind-styled-components';

import { callStack, parseFormData } from '../../utils/actions';
import { callStack, parseFormData } from '../utils/actions';
import InputWithButton from './input-with-button';
import Inputs from './Inputs';
import Outputs from './outputs';
Expand Down
2 changes: 1 addition & 1 deletion ui/public/stacks/v1/creation/input-with-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { IoSend } from 'react-icons/io5';
import tw from 'tailwind-styled-components';

// import SearchStacks from './search-stacks';
import { StackDescription } from '../../utils/stack-db';
import { StackDescription } from '../utils/stack-db';

export const SubmitButton = () => {
const { pending } = useFormStatus();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 16b099e

Please sign in to comment.