-
Notifications
You must be signed in to change notification settings - Fork 141
add !STARTERCONF for demo elements #604
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
VITE_IS_DEMO: false | ||
BETTER_AUTH_SECRET: fyXjLxjXJowjicI2BAjxOaUsQd1QafdegZDciJE/xM8= | ||
EMAIL_SERVER: smtp://username:password@localhost:1025 | ||
EMAIL_FROM: Start UI <[email protected]> | ||
EMAIL_FROM: Example <[email protected]> | ||
services: | ||
postgres: | ||
image: postgres | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { envClient } from '@/env/client'; | ||
|
||
export const AUTH_SIGNUP_ENABLED = envClient.VITE_IS_DEMO ? false : true; | ||
export const AUTH_SIGNUP_ENABLED = envClient.VITE_IS_DEMO ? false : true; // !STARTERCONF [demoMode] Remove the envClient.VITE_IS_DEMO condition. You can | ||
export const AUTH_EMAIL_OTP_MOCKED = '000000'; | ||
export const AUTH_EMAIL_OTP_EXPIRATION_IN_MINUTES = 5; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// !STARTERCONF [demoMode] Remove the demo folder | ||
import { create } from 'zustand'; | ||
|
||
import { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,16 +10,15 @@ export const LoginEmailHint = () => { | |
const form = useFormContext(); | ||
const mockedEmail = '[email protected]'; | ||
|
||
// !STARTERCONF [demoMode] Remove the `&& !envClient.VITE_IS_DEMO` condition | ||
if (import.meta.env.PROD && !envClient.VITE_IS_DEMO) { | ||
return null; | ||
} | ||
|
||
return ( | ||
<Alert dir="ltr"> | ||
<TerminalIcon className="size-4" /> | ||
<AlertTitle> | ||
{envClient.VITE_IS_DEMO ? 'Demo mode' : 'Dev mode'} | ||
</AlertTitle> | ||
<AlertTitle>Dev mode</AlertTitle> | ||
<AlertDescription className="flex flex-wrap text-sm leading-4"> | ||
You can login with{' '} | ||
<button | ||
|
@@ -41,16 +40,15 @@ export const LoginEmailHint = () => { | |
export const LoginEmailOtpHint = () => { | ||
const form = useFormContext(); | ||
|
||
// !STARTERCONF [demoMode] Remove the `&& !envClient.VITE_IS_DEMO` condition | ||
if (import.meta.env.PROD && !envClient.VITE_IS_DEMO) { | ||
return null; | ||
} | ||
|
||
return ( | ||
<Alert dir="ltr"> | ||
<TerminalIcon className="size-4" /> | ||
<AlertTitle> | ||
{envClient.VITE_IS_DEMO ? 'Demo mode' : 'Dev mode'} | ||
</AlertTitle> | ||
<AlertTitle>Dev mode</AlertTitle> | ||
<AlertDescription className="flex text-sm leading-4"> | ||
Use the code{' '} | ||
<button | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ import book from './book.json' assert { type: 'json' }; | |
import buildInfo from './build-info.json' assert { type: 'json' }; | ||
import common from './common.json' assert { type: 'json' }; | ||
import components from './components.json' assert { type: 'json' }; | ||
import demo from './demo.json' assert { type: 'json' }; | ||
import demo from './demo.json' assert { type: 'json' }; // !STARTERCONF [demoMode] Remove this import and the file | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Move starter comment above the import/export to satisfy Biome. Biome now fails with - import demo from './demo.json' assert { type: 'json' }; // !STARTERCONF [demoMode] Remove this import and the file
+// !STARTERCONF [demoMode] Remove this import and the file
+import demo from './demo.json' assert { type: 'json' };
- demo, // !STARTERCONF [demoMode] Remove this export
+ // !STARTERCONF [demoMode] Remove this export
+ demo, Also applies to: 23-23 🧰 Tools🪛 Biome (2.1.2)[error] 10-10: Expected a semicolon or an implicit semicolon after a statement, but found none An explicit or implicit semicolon is expected here... ...Which is required to end this statement (parse) [error] 10-10: Expected a semicolon or an implicit semicolon after a statement, but found none An explicit or implicit semicolon is expected here... ...Which is required to end this statement (parse) 🤖 Prompt for AI Agents
|
||
import emails from './emails.json' assert { type: 'json' }; | ||
import genre from './genre.json' assert { type: 'json' }; | ||
import layout from './layout.json' assert { type: 'json' }; | ||
|
@@ -20,7 +20,7 @@ export default { | |
buildInfo, | ||
common, | ||
components, | ||
demo, | ||
demo, // !STARTERCONF [demoMode] Remove this export | ||
emails, | ||
genre, | ||
layout, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ import book from './book.json' assert { type: 'json' }; | |
import buildInfo from './build-info.json' assert { type: 'json' }; | ||
import common from './common.json' assert { type: 'json' }; | ||
import components from './components.json' assert { type: 'json' }; | ||
import demo from './demo.json' assert { type: 'json' }; | ||
import demo from './demo.json' assert { type: 'json' }; // !STARTERCONF [demoMode] Remove this import and the file | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same Biome parse error: relocate the inline starter comment. Biome reports the identical parse failure here because the starter annotation trails the - import demo from './demo.json' assert { type: 'json' }; // !STARTERCONF [demoMode] Remove this import and the file
+// !STARTERCONF [demoMode] Remove this import and the file
+import demo from './demo.json' assert { type: 'json' };
- demo, // !STARTERCONF [demoMode] Remove this export
+ // !STARTERCONF [demoMode] Remove this export
+ demo, Also applies to: 23-23 🧰 Tools🪛 Biome (2.1.2)[error] 10-10: Expected a semicolon or an implicit semicolon after a statement, but found none An explicit or implicit semicolon is expected here... ...Which is required to end this statement (parse) [error] 10-10: Expected a semicolon or an implicit semicolon after a statement, but found none An explicit or implicit semicolon is expected here... ...Which is required to end this statement (parse) 🤖 Prompt for AI Agents
|
||
import emails from './emails.json' assert { type: 'json' }; | ||
import genre from './genre.json' assert { type: 'json' }; | ||
import layout from './layout.json' assert { type: 'json' }; | ||
|
@@ -20,7 +20,7 @@ export default { | |
buildInfo, | ||
common, | ||
components, | ||
demo, | ||
demo, // !STARTERCONF [demoMode] Remove this export | ||
emails, | ||
genre, | ||
layout, | ||
|
Uh oh!
There was an error while loading. Please reload this page.