-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement app-router architecture updated layouts (#123)
* chore: initial app router work with navbar and menu * refactor: move various caches to app router and delete custom express server * chore: rename _api folder with better description * chore: fetch data on initial server-side load * refactor: split out shared image modal into separate page * chore: initial work moving advanced options panel into app router * chore: move panel to app router * chore: move more components into app router * chore: move pending and image pages over to app router * chore: move settings page to app router * chore: initial work to get image modal working with app router * fix: image modal broke * chore: fix css * chore: move more components into app router * chore: move InfoPage to app router * feat: implement new landing page * feat: create new landing page * chore: remove chat option * chore: remove a bunch of unneeded code * chore: remove a whole bunch of code * refactor: consolidate advanced options panel * chore: css fixes * chore: add additional images to landing page * chore: move controlnet page over to app router * feat: add dropdowns to various advanced options panels * chore: update steps component to use new dropdown option * feat: better filters for model selection * feat: better filter for select model dropdown * feat: debug page for outputting database * chore: add new metadata pattern * feat: implement dry-run calculation * feat: toggle model favorites from options panel * feat: add accordion component * chore: fix types * chore: fix and update lora selection * chore: update livepaint and controlnet pages * feat: implement new primary window controller * fix: pending jobs disappear on page reload * stash work * feat: initial work on supporting multip clip and multi skip * stash work * feat: multi clip skip and multi-denoise * feat: initial work on adding kudos calcs to jobs * chore: fix issue with error pages * initial build passes * chore: update clsx * chore: update packages * fix build * chore: initial work on keyword dropdown * feat: Add loras * fix: disable keyword button * refactor: move model details and image orientation into dropdowns * fix: keyword button disabled * chore: remove unneeded code * chore: add option to change pathname * chore: add scaffolding for dimension management * fix: spacing issues with buttons * feat: attempt to add dynamic height to dropdown * chore: work on toast popover * chore: handle modal size * fix: trying to fix linting errors and issue with dropdown sizes * remove file * ux work on settings page * feat add concurrency option * initial work on model info panel * fix: order for checking if page is active * stash work * stash work * stash work * fix: typo in url * fix: broken confirmation modal * fix: build issues * fix styles * stash work * pass model into modelsinfo * feat: hide and fave models * fix: tighten model info logic * fix: hidden models * fix: issue with samplers * feat: create page settings dropdown * feat: add slow workers to misc options * fix: mobile styling issues with prompt input * fix: fav models number does not update * fix: more incorrect styles * chore: update metadata fields * refactor: update pending page layout * fix: base path * fix: shared links broken * revert to older version of nexths * fix: missing mobile footer * feat: add support for custom color themes * fix: refresh image gallery after delete * restore GA * fix: mobile navbar links * fix: theme * fix: more style fixes * feat: new alert panel * chore: update front page * app update component * fix: shuffled array * more fixes * fix host * fix: UI on Mobile devices * chore: fix GA * chore: pending page improvements * chore: remove file
- Loading branch information
1 parent
5ffc42f
commit 74b0899
Showing
440 changed files
with
13,687 additions
and
12,883 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// const baseHost = 'http://staging.tinybots.net' | ||
const baseHost = 'https://tinybots.net' | ||
const basePath = '/artbot' | ||
|
||
module.exports = { | ||
baseHost, | ||
basePath | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import AboutPage from 'app/_pages/AboutPage' | ||
import { Metadata } from 'next' | ||
|
||
export const metadata: Metadata = { | ||
title: 'About - ArtBot for Stable Diffusion', | ||
openGraph: { | ||
title: 'ArtBot - About' | ||
} | ||
} | ||
|
||
export default function Page() { | ||
return <AboutPage /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import ChangelogPage from 'app/_pages/ChangelogPage' | ||
import { Metadata } from 'next' | ||
|
||
export const metadata: Metadata = { | ||
title: 'Changelog - ArtBot for Stable Diffusion', | ||
openGraph: { | ||
title: 'ArtBot - Changelog' | ||
} | ||
} | ||
|
||
export default function Page() { | ||
return <ChangelogPage /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { baseHost, basePath } from 'BASE_PATH' | ||
import ContactPage from 'app/_pages/ContactPage' | ||
import { Metadata } from 'next' | ||
|
||
export const metadata: Metadata = { | ||
title: 'Contact Us - ArtBot for Stable Diffusion', | ||
openGraph: { | ||
type: 'website', | ||
url: `${baseHost}${basePath}`, | ||
title: 'ArtBot - Contact Form', | ||
images: [ | ||
{ | ||
url: '/artbot/robots_communicating.jpg' | ||
} | ||
] | ||
}, | ||
twitter: { | ||
card: 'summary_large_image', | ||
creator: '@davely', | ||
images: `${baseHost}${basePath}/robots_communicating.jpg` | ||
} | ||
} | ||
|
||
export default function Page() { | ||
return <ContactPage /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { baseHost, basePath } from 'BASE_PATH' | ||
import ControlNet from 'app/_pages/ControlNetPage' | ||
import { Metadata } from 'next' | ||
|
||
export const metadata: Metadata = { | ||
title: 'ControlNet - ArtBot for Stable Diffusion', | ||
openGraph: { | ||
type: 'website', | ||
url: `${baseHost}${basePath}`, | ||
title: 'ArtBot - ControlNet', | ||
description: | ||
'Use a source image and text prompt to better control diffusion models, and create amazing images with generative AI powered by Stable Diffusion.', | ||
images: [ | ||
{ | ||
url: `${baseHost}${basePath}/robot_control.jpg` | ||
} | ||
] | ||
}, | ||
twitter: { | ||
card: 'summary_large_image', | ||
creator: '@davely', | ||
images: `${baseHost}${basePath}/robot_control.jpg` | ||
} | ||
} | ||
|
||
export default function Page() { | ||
return <ControlNet /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { basePath } from 'BASE_PATH' | ||
import CreatePage from 'app/_pages/CreatePage' | ||
|
||
async function getPageData() { | ||
let availableModels: Array<any> = [] | ||
let modelDetails: any = {} | ||
|
||
try { | ||
const availableModelsRes = await fetch( | ||
`http://localhost:${process.env.PORT}${basePath}/api/models-available` | ||
) | ||
const availableModelsData = (await availableModelsRes.json()) || {} | ||
availableModels = availableModelsData.models | ||
|
||
const modelDetailsRes = await fetch( | ||
`http://localhost:${process.env.PORT}${basePath}/api/model-details` | ||
) | ||
const modelDetailsData = (await modelDetailsRes.json()) || {} | ||
modelDetails = modelDetailsData.models | ||
} catch (err) {} | ||
|
||
return { | ||
availableModels, | ||
modelDetails | ||
} | ||
} | ||
|
||
export default async function Page() { | ||
// Fetch data directly in a Server Component | ||
const { availableModels, modelDetails } = await getPageData() | ||
|
||
// Forward fetched data to your Client Component | ||
return ( | ||
<CreatePage availableModels={availableModels} modelDetails={modelDetails} /> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import LastResort from 'app/_pages/SettingsPage/LastResort' | ||
|
||
export default function Page() { | ||
return <LastResort /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import DrawPage from 'app/_pages/DrawPage' | ||
|
||
export default function Page() { | ||
return <DrawPage /> | ||
} |
Oops, something went wrong.