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

Update deprecated scenario endpoints #330

Open
wants to merge 227 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
227 commits
Select commit Hold shift + click to select a range
31d7068
Remove postmark
DavidTParks Apr 26, 2023
3abdf9e
Backup init design
DavidTParks Apr 26, 2023
0230843
Update landing page
DavidTParks Apr 27, 2023
4681273
backup
DavidTParks Apr 27, 2023
b49eb37
Init scenario generation
DavidTParks Apr 28, 2023
4f210cf
Payments work!
DavidTParks Apr 29, 2023
f467c73
Dark mode credit purchase
DavidTParks Apr 29, 2023
fb3d1fe
Fix build
DavidTParks Apr 29, 2023
2844392
Remove pnpm lock
DavidTParks Apr 29, 2023
c0e34be
Update stripe pricing tables to prod, allow switching generation styles
DavidTParks Apr 29, 2023
5d40b11
Fix next script issue
DavidTParks Apr 29, 2023
f7dff6c
Push other updates
DavidTParks Apr 30, 2023
5a3eb2a
add next analytics app dir
DavidTParks Apr 30, 2023
747bf02
Revalidate marketing layout
DavidTParks Apr 30, 2023
5f4b221
add og image
DavidTParks Apr 30, 2023
3c7ad83
Fix OG image
DavidTParks Apr 30, 2023
e7ea72d
Advanced options for generation form
DavidTParks Apr 30, 2023
6937475
Loading state for generations page
DavidTParks Apr 30, 2023
b5ea239
Remove image amount selector
DavidTParks Apr 30, 2023
c360105
Add examples
DavidTParks Apr 30, 2023
3164973
Escape apostrophe
DavidTParks Apr 30, 2023
cec4a2e
Remove extra top padding on example page
DavidTParks Apr 30, 2023
fb5a911
Update readme
DavidTParks Apr 30, 2023
fd2097e
Add TOS and Privacy policy
DavidTParks Apr 30, 2023
ea2b4af
Remove legacy readme about GNU license
DavidTParks Apr 30, 2023
36b4a7c
Remove license shield
DavidTParks Apr 30, 2023
45e3d2b
Update link in readme
DavidTParks Apr 30, 2023
6ee5b5b
Remove no unescaped entities
DavidTParks Apr 30, 2023
418ff21
Pregenerate example pages
DavidTParks Apr 30, 2023
3fa527e
Robots .txt and sitemap
DavidTParks Apr 30, 2023
f42e41b
Fix sitemap
DavidTParks Apr 30, 2023
7d0a3cc
Number of images selector, decrement credits if
DavidTParks May 1, 2023
1051a88
Credit pluralization
DavidTParks May 1, 2023
12b2fa5
Add full text search for generations via prompt search
DavidTParks May 1, 2023
a914eef
Remove console logs and unnecessary page
DavidTParks May 1, 2023
1a361c9
Refresh router after pushing to URL
DavidTParks May 1, 2023
2ac7601
Encode search URI
DavidTParks May 1, 2023
8a7b603
Fix type error
DavidTParks May 1, 2023
34be190
Revert full text search as PlanetScale doesn't seem to be compatible
DavidTParks May 1, 2023
ecc6dc0
Clean up form layout
DavidTParks May 1, 2023
aa10b54
Bump react types, refactor pagination to separate component
DavidTParks May 1, 2023
3f28900
Remove fulltext search for now
DavidTParks May 1, 2023
16b4557
show dashboard link if user is logged in, remove unnecessary async im…
DavidTParks May 1, 2023
7b67819
Login link for example page
DavidTParks May 1, 2023
adb3af9
Fix nav
DavidTParks May 1, 2023
5ee12e1
Prevent render blocking layout call to get user and use client login …
DavidTParks May 1, 2023
14710b8
Clean up code layout marketing
DavidTParks May 1, 2023
b9c8ea1
Fix aspect ratio for loading images
DavidTParks May 1, 2023
5268d71
Fix aspect ratio again
DavidTParks May 1, 2023
c31d7fc
Fix medium breakpoint marketing page grid
DavidTParks May 1, 2023
9e9043b
Init prompt builder, rate limiting for endpoints
DavidTParks May 1, 2023
9cfdd9f
Fix build config
DavidTParks May 1, 2023
6cba7ca
Remove dead code
DavidTParks May 1, 2023
1079f92
Use tooltip for prompt builder info
DavidTParks May 1, 2023
bb8954d
Tune prompt
DavidTParks May 1, 2023
e20acb5
tune prompt, longText for prompt in DB
DavidTParks May 2, 2023
a218068
Update marketing page
DavidTParks May 2, 2023
08d3645
Anime example update, landing page copy update
DavidTParks May 2, 2023
66bde98
Set value only after the prompt generation is a success. Remove setti…
DavidTParks May 2, 2023
683202a
Update readme
DavidTParks May 2, 2023
9e96f24
Store images in blob storage instead of base64 for storage limit conc…
DavidTParks May 2, 2023
52a6b04
Update readme with Supabase
DavidTParks May 2, 2023
58a29cf
Revert back to full text search
DavidTParks May 2, 2023
646a30c
Test open graph gen and route interception
DavidTParks May 3, 2023
702cbcb
Fix type errors
DavidTParks May 3, 2023
583ebee
Update metadata, push
DavidTParks May 3, 2023
ada1ce8
Merge pull request #1 from DavidTParks/og-test
DavidTParks May 3, 2023
c2016de
Remove intercepted route test
DavidTParks May 3, 2023
7526103
Add more space between button and prompt in preview modal
DavidTParks May 3, 2023
2edecc5
Add producthunt to footer
DavidTParks May 3, 2023
3cd370f
Control grid size
DavidTParks May 3, 2023
a6b3e37
Bring grid size to main options
DavidTParks May 3, 2023
38cc3a0
Mobile spacing for generation form
DavidTParks May 3, 2023
8734d16
Fix spacing
DavidTParks May 3, 2023
f0f91ca
Fix sitemap and robots
DavidTParks May 3, 2023
5d4ab85
Include examples in sitemap, optimize query for inner image pages
DavidTParks May 3, 2023
0e6f39e
Remove intercepted route for now since it's a little buggy, add more …
DavidTParks May 3, 2023
a465538
Include normalized model ID on detail page
DavidTParks May 3, 2023
abf57ff
Reduce size of download image button
DavidTParks May 3, 2023
83086c5
Update homepage examples
DavidTParks May 3, 2023
379f485
Remove settings from nav for now
DavidTParks May 3, 2023
f931d89
Dead code removal from user account nav
DavidTParks May 3, 2023
e802af8
Suspense state for inner image page
DavidTParks May 3, 2023
99c59c5
Fix open graph for pixelfy
DavidTParks May 3, 2023
970a282
Use 55 as the length cutoff for OG title
DavidTParks May 3, 2023
6ec31b0
Fix min of 10 for sampling steps input
DavidTParks May 3, 2023
a15363d
Reorg marketing features to more prominently feature controlling grid…
DavidTParks May 3, 2023
0d3b85a
Fix OG cutoff
DavidTParks May 3, 2023
ea38700
Prio and unoptimized for detail page
DavidTParks May 3, 2023
0f13dfd
Don't optimize homepage featured pixel art and example pixel art
DavidTParks May 3, 2023
12ab703
Testimonials section
DavidTParks May 3, 2023
9625407
Fix Pixelfy spelling
DavidTParks May 3, 2023
c030697
Marketing banner for launch special
DavidTParks May 3, 2023
721f79b
Include credits marketing banner on layout
DavidTParks May 3, 2023
9ed2fbd
Ship reference image advanced option
DavidTParks May 3, 2023
1f67dd4
Reference images feature
DavidTParks May 3, 2023
e780e04
Bring reference image input up, make widths more consistent
DavidTParks May 3, 2023
6f55b19
Ship remove background, mobile credit display
DavidTParks May 3, 2023
8e1aee6
Remove Jimp from remove route
DavidTParks May 4, 2023
16f929d
Update remove background feature on homepage
DavidTParks May 4, 2023
7803aee
Make the BG transparent instead of white
DavidTParks May 4, 2023
1cd209a
Push new generators
davidthomasparks May 4, 2023
2935584
More examples, fix prompt bootstrap for fantasy rpg
DavidTParks May 4, 2023
78f26de
More pixel portrait examples
DavidTParks May 4, 2023
ae68147
Trim down featured section
DavidTParks May 4, 2023
e56d0f8
Open source license
DavidTParks May 4, 2023
2ab2698
License and Twitter badge to readme
DavidTParks May 4, 2023
d9467fd
Remove shield + icon generator for now until it's tighter
DavidTParks May 5, 2023
eef8043
Ship skill art, no examples yet
DavidTParks May 6, 2023
a72fdd2
Ship skill art examples
DavidTParks May 6, 2023
611c98f
Add skill art example
DavidTParks May 7, 2023
220fbbb
add env.example file, unoptimize generations page, supplemental promp…
DavidTParks May 8, 2023
818d62f
Remove pop culture pre-render
DavidTParks May 8, 2023
d8ccf8a
remove launch offer
DavidTParks May 8, 2023
b78513b
Add supplemental prompt to RPG generator
DavidTParks May 8, 2023
7a43f4a
Add google adsense script
DavidTParks May 8, 2023
753ee29
Update fantasy RPG style
DavidTParks May 8, 2023
dddd7f4
Add CTA for buying credits once usage is depleted
DavidTParks May 9, 2023
a4d9aaf
Push up CTA action dropdown on generation page
DavidTParks May 9, 2023
0523ae3
enhance 16x16 pixel portrait generator with new class training
DavidTParks May 9, 2023
c838e4e
add space for supplemental prompt map
DavidTParks May 9, 2023
6fa3935
Revert pixel art model
DavidTParks May 9, 2023
5426701
Add yo-hokki pixel art feature, optimize examples page
DavidTParks May 10, 2023
c2eca4e
Fix login button on examples page
DavidTParks May 10, 2023
676a93e
Change from dashboard to create
DavidTParks May 10, 2023
bb9d527
Revert
DavidTParks May 10, 2023
0c2681e
Fix Yo-Hokki style label
DavidTParks May 10, 2023
17bdc89
more yo-hokki examples
DavidTParks May 10, 2023
28a1941
Fix prompt generator to use supplemental prompt map instead of normal…
DavidTParks May 10, 2023
b77646c
Make default credits 5 instead of 3
DavidTParks May 10, 2023
e78e5c5
default credits to 10
DavidTParks May 10, 2023
820a20f
Change upvote CTA to ProductHunt review CTA
DavidTParks May 10, 2023
b687651
revert to 4 credit default for users
DavidTParks May 10, 2023
e4c337a
Update welcome and sign in emails
DavidTParks May 11, 2023
f37ebf7
Revert sign in link for now
DavidTParks May 11, 2023
cc40669
Revert custom login link email
DavidTParks May 11, 2023
5b1da07
Try secure true for transport initilization
DavidTParks May 11, 2023
b2f3266
Add greeting timeout to transactional email nodemailer
DavidTParks May 11, 2023
d18a5af
Try pool and secure
DavidTParks May 11, 2023
2f8b0bb
Fix port, remove greeting timeout
DavidTParks May 11, 2023
4d9d927
make send mail async for weird vercel quirk
DavidTParks May 11, 2023
ff4e26b
Remove secure now
DavidTParks May 11, 2023
8d75698
Convert to async function and await send mail
DavidTParks May 11, 2023
f3cd66d
Merge pull request #3 from DavidTParks/custom-login-link-email
DavidTParks May 11, 2023
3821f32
remove concept art from fantasy rpg generator
DavidTParks May 11, 2023
f163793
Remove fantasy RPG entirely from fantasy RPG
DavidTParks May 11, 2023
33b00aa
add carbon ads
DavidTParks May 12, 2023
f1a749e
border top to ad text placement
DavidTParks May 12, 2023
a1bcb15
Merge pull request #4 from DavidTParks/carbon-ads
DavidTParks May 12, 2023
57b67b6
Add ads to example page as well
DavidTParks May 12, 2023
05b2754
Make ad less invasive on Dashboard
DavidTParks May 12, 2023
787a392
Adjust placement again
DavidTParks May 12, 2023
4aeef83
Add Twitter link to footer
DavidTParks May 12, 2023
5ede925
disable 16x16 for certain generators
DavidTParks May 12, 2023
c91d245
Add basic event tracking for some stuff
DavidTParks May 12, 2023
56c6458
Ship improved pixelization denoising algo using Scenario API
DavidTParks May 12, 2023
a32b9ce
Add more examples
DavidTParks May 12, 2023
078e3b6
Update landscape portrait featured image
DavidTParks May 12, 2023
ba511ab
Revert scenario bug
DavidTParks May 12, 2023
1c5a12a
Use pixelization APi with fallback to regular method
DavidTParks May 15, 2023
89996ee
fix null modality bug if not in map
DavidTParks May 15, 2023
3c428e7
Add influence slider for img2img generations
DavidTParks May 16, 2023
98ec9bc
Init being able to generate multiple image sets at once
DavidTParks May 17, 2023
c957926
Generate multiple sets at once, qstash cron to timeout old generation…
DavidTParks May 17, 2023
09db22a
Badge and model for active generations
DavidTParks May 17, 2023
8bd291a
Copy for toasts, default sampling steps to 30
DavidTParks May 17, 2023
38e7568
Merge pull request #5 from DavidTParks/multiple-generations-at-once
DavidTParks May 17, 2023
e7fb0dc
Dynamic placeholder text for which model is selected
DavidTParks May 18, 2023
0316965
Gather feedback module for generation cards
DavidTParks May 18, 2023
633745a
Merge pull request #6 from DavidTParks/gather-feedback-module
DavidTParks May 18, 2023
7546029
disable feedback submit if no comment, remove usehooks dep
DavidTParks May 18, 2023
196f150
default to asset diffusion flexible model as base
DavidTParks May 18, 2023
fdb7601
Typo
DavidTParks May 18, 2023
af61e91
Default back to fantasy RPG from asset diffusion beta model
DavidTParks May 18, 2023
01aceeb
Fix credit layout from render blocking async calls that are unnecessary
DavidTParks May 18, 2023
1fe26ee
remove isometric from negative prompt
DavidTParks May 21, 2023
893afb1
Referral system init
DavidTParks May 24, 2023
adbe169
Fix 20 dollar subtotal credit increment amount
DavidTParks May 24, 2023
dfe7a67
Referral stats and FAQ
DavidTParks May 24, 2023
11aa528
revert credit pricing table
DavidTParks May 24, 2023
ccc47a6
Update favicons for manifest
DavidTParks May 24, 2023
b2095a7
Language, copy
DavidTParks May 24, 2023
5704115
Merge pull request #7 from DavidTParks/referral-system
DavidTParks May 24, 2023
e20ef0a
Add memorial day banner to every page
DavidTParks May 25, 2023
0b6c429
add event tracking for copy link button
DavidTParks May 25, 2023
28bd21d
Update apple touch icon
DavidTParks May 25, 2023
6b872e0
capitalize Memorial Day
DavidTParks May 25, 2023
99e9e0b
Ship pixel background generator
DavidTParks May 27, 2023
83ce182
Fix example link
DavidTParks May 27, 2023
c80747b
update author in package.json
DavidTParks May 27, 2023
09dc915
Remove memorial day offer
DavidTParks May 31, 2023
49be080
Bump Prisma, remove sampling steps selector and default to 30
DavidTParks Jun 9, 2023
41cb57a
Enable color palette selection in generation step
DavidTParks Jun 9, 2023
bd2f088
Merge pull request #8 from DavidTParks/color-palette-option
DavidTParks Jun 9, 2023
83b327d
Color palette control marketing feature
DavidTParks Jun 9, 2023
4cb13df
Scenario referral link
DavidTParks Jun 9, 2023
a093b6b
Test remove freemium
DavidTParks Jun 12, 2023
b69d901
Refer users CTA when out of credits
DavidTParks Jun 12, 2023
8ca6e17
SEO audit
DavidTParks Jun 13, 2023
8693a5e
Fix remove background
DavidTParks Jun 14, 2023
f098efa
Fix route export
DavidTParks Jun 14, 2023
0fbe355
Bump gpt turbo 16k token model
DavidTParks Jun 17, 2023
ecc2283
Add cozy character generator
DavidTParks Jul 1, 2023
83a5dbd
Ship world builder examples
DavidTParks Jul 1, 2023
010133e
Fix examples
DavidTParks Jul 1, 2023
b4a2487
Add jRPG adventure generator
DavidTParks Jul 20, 2023
500dc2c
Update avatar style generator
DavidTParks Jul 20, 2023
75f8cf7
Update jRPG examples
DavidTParks Jul 20, 2023
908dd86
Add scenario referral link to welcome email from Pixelfy
DavidTParks Nov 29, 2023
bbd1798
Revert welcome email link
DavidTParks Nov 29, 2023
b33b7d4
Ship blocky cartoon generator
DavidTParks Mar 29, 2024
acc4983
Merge pull request #9 from DavidTParks/blocky-cartoon-generator
DavidTParks Mar 29, 2024
acb02f6
Add social proof hero header
DavidTParks Apr 22, 2024
3003ec3
Merge pull request #11 from DavidTParks/social-proof-hero
DavidTParks Apr 22, 2024
b70d64f
Key div
DavidTParks Apr 22, 2024
c6b1856
Merge pull request #12 from DavidTParks/fix-social-proof-key
DavidTParks Apr 22, 2024
8d2ccd5
New hero
DavidTParks Apr 22, 2024
475717e
Organize imports
DavidTParks Apr 22, 2024
77b02e1
Merge pull request #13 from DavidTParks/new-hero
DavidTParks Apr 22, 2024
b30cbd8
fix example link on homepage
DavidTParks Apr 22, 2024
b58aa7f
Merge branch 'main' of https://github.com/DavidTParks/pixelfy
DavidTParks Apr 22, 2024
8f7523e
Init upgrade scenario endpoint
DavidTParks Jan 11, 2025
7f80186
Fix bug
DavidTParks Jan 11, 2025
a09221b
Fix types
DavidTParks Jan 11, 2025
8144173
fix native typescript
DavidTParks Jan 11, 2025
8ad89ce
remove logs
DavidTParks Jan 11, 2025
0cf570a
remove console logs
DavidTParks Jan 11, 2025
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
49 changes: 38 additions & 11 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,34 +1,61 @@
# -----------------------------------------------------------------------------
# App
# -----------------------------------------------------------------------------
NEXT_PUBLIC_APP_URL=http://localhost:3000
NEXT_PUBLIC_APP_URL=

# -----------------------------------------------------------------------------
# Authentication (NextAuth.js)
# -----------------------------------------------------------------------------
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_URL=
NEXTAUTH_SECRET=

GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_ACCESS_TOKEN=
# -----------------------------------------------------------------------------
# Authentication Google OAuth
# -----------------------------------------------------------------------------
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=

# -----------------------------------------------------------------------------
# Database (MySQL - PlanetScale)
# Database production (MySQL - PlanetScale)
# -----------------------------------------------------------------------------
DATABASE_URL="mysql://root:root@localhost:3306/taxonomy?schema=public"
DATABASE_URL=

# -----------------------------------------------------------------------------
# Email (Postmark)
# -----------------------------------------------------------------------------
SMTP_FROM=
POSTMARK_API_TOKEN=
POSTMARK_SIGN_IN_TEMPLATE=
POSTMARK_ACTIVATION_TEMPLATE=
EMAIL_SERVER_HOST=
EMAIL_SERVER_PORT=
EMAIL_SERVER_USER=
EMAIL_SERVER_PASSWORD=
EMAIL_FROM=

# -----------------------------------------------------------------------------
# Subscriptions (Stripe)
# -----------------------------------------------------------------------------
STRIPE_API_KEY=
STRIPE_WEBHOOK_SECRET=
STRIPE_PRO_MONTHLY_PLAN_ID=
STRIPE_PRO_MONTHLY_PLAN_ID=

# -----------------------------------------------------------------------------
# Scenario API Token
# -----------------------------------------------------------------------------
SCENARIO_API_TOKEN=
SCENARIO_SECRET=

# -----------------------------------------------------------------------------
# Chat GPT API Key
# -----------------------------------------------------------------------------
OPENAI_API_KEY=

# -----------------------------------------------------------------------------
# Upstash Redis
# -----------------------------------------------------------------------------
UPSTASH_REDIS_REST_URL=
UPSTASH_REDIS_REST_TOKEN=

# -----------------------------------------------------------------------------
# Supabase API
# -----------------------------------------------------------------------------
SUPABASE_URL=
SUPABASE_KEY=
57 changes: 29 additions & 28 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
{
"$schema": "https://json.schemastore.org/eslintrc",
"root": true,
"extends": [
"next/core-web-vitals",
"prettier",
"plugin:tailwindcss/recommended"
],
"plugins": ["tailwindcss"],
"rules": {
"@next/next/no-html-link-for-pages": "off",
"react/jsx-key": "off",
"tailwindcss/no-custom-classname": "off",
"tailwindcss/classnames-order": "error"
},
"settings": {
"tailwindcss": {
"callees": ["cn"],
"config": "tailwind.config.js"
"$schema": "https://json.schemastore.org/eslintrc",
"root": true,
"extends": [
"next/core-web-vitals",
"prettier",
"plugin:tailwindcss/recommended"
],
"plugins": ["tailwindcss"],
"rules": {
"@next/next/no-html-link-for-pages": "off",
"react/jsx-key": "off",
"tailwindcss/no-custom-classname": "off",
"tailwindcss/classnames-order": "off",
"react/no-unescaped-entities": "off"
},
"next": {
"rootDir": true
}
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parser": "@typescript-eslint/parser"
}
]
"settings": {
"tailwindcss": {
"callees": ["cn"],
"config": "tailwind.config.js"
},
"next": {
"rootDir": true
}
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parser": "@typescript-eslint/parser"
}
]
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ yarn-error.log*
next-env.d.ts

.vscode
.contentlayer
.contentlayer
.mailing
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"endOfLine": "lf",
"semi": false,
"singleQuote": false,
"tabWidth": 4,
"trailingComma": "es5"
}
Loading