-
Notifications
You must be signed in to change notification settings - Fork 501
Support React 18 #980
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
Support React 18 #980
Changes from all commits
b8eba81
c349911
56d8ab7
f95d4ca
3686a1e
6676f2c
058186e
78f85bc
ba53a88
1ead657
ef5c402
1ff1c5f
d53b6d5
e327cbc
d5a71b4
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 |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Contains the credentials for the internal project of Stack's default development environment setup. | ||
| # Do not use in a production environment, instead replace it with actual values gathered from https://app.stack-auth.com. | ||
|
|
||
| VITE_STACK_API_URL=http://localhost:${NEXT_PUBLIC_STACK_PORT_PREFIX:-81}02 | ||
| VITE_STACK_PROJECT_ID=internal | ||
| VITE_STACK_PUBLISHABLE_CLIENT_KEY=this-publishable-client-key-is-for-local-development-only |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # Logs | ||
| logs | ||
| *.log | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| pnpm-debug.log* | ||
| lerna-debug.log* | ||
|
|
||
| node_modules | ||
| dist | ||
| dist-ssr | ||
| *.local | ||
|
|
||
| # Editor directories and files | ||
| .vscode/* | ||
| !.vscode/extensions.json | ||
| .idea | ||
| .DS_Store | ||
| *.suo | ||
| *.ntvs* | ||
| *.njsproj | ||
| *.sln | ||
| *.sw? |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "mcpServers": { | ||
| "stack-auth": { | ||
| "type": "http", | ||
| "url": "https://mcp.stack-auth.com/" | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| # Welcome to your Lovable project | ||
|
|
||
| ## Project info | ||
|
|
||
| **URL**: https://lovable.dev/projects/216a06f3-619b-4a7a-848e-54b52396418a | ||
|
|
||
| ## How can I edit this code? | ||
|
|
||
| There are several ways of editing your application. | ||
|
|
||
| **Use Lovable** | ||
N2D4 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| Simply visit the [Lovable Project](https://lovable.dev/projects/216a06f3-619b-4a7a-848e-54b52396418a) and start prompting. | ||
|
|
||
| Changes made via Lovable will be committed automatically to this repo. | ||
|
|
||
| **Use your preferred IDE** | ||
|
|
||
| If you want to work locally using your own IDE, you can clone this repo and push changes. Pushed changes will also be reflected in Lovable. | ||
|
|
||
| The only requirement is having Node.js & npm installed - [install with nvm](https://github.com/nvm-sh/nvm#installing-and-updating) | ||
|
|
||
| Follow these steps: | ||
|
|
||
| ```sh | ||
| # Step 1: Clone the repository using the project's Git URL. | ||
| git clone <YOUR_GIT_URL> | ||
|
|
||
| # Step 2: Navigate to the project directory. | ||
| cd <YOUR_PROJECT_NAME> | ||
|
|
||
| # Step 3: Install the necessary dependencies. | ||
| npm i | ||
|
|
||
| # Step 4: Start the development server with auto-reloading and an instant preview. | ||
| npm run dev | ||
| ``` | ||
|
|
||
| **Edit a file directly in GitHub** | ||
|
|
||
| - Navigate to the desired file(s). | ||
| - Click the "Edit" button (pencil icon) at the top right of the file view. | ||
| - Make your changes and commit the changes. | ||
|
|
||
| **Use GitHub Codespaces** | ||
|
|
||
| - Navigate to the main page of your repository. | ||
| - Click on the "Code" button (green button) near the top right. | ||
| - Select the "Codespaces" tab. | ||
| - Click on "New codespace" to launch a new Codespace environment. | ||
| - Edit files directly within the Codespace and commit and push your changes once you're done. | ||
|
|
||
| ## What technologies are used for this project? | ||
|
|
||
| This project is built with: | ||
|
|
||
| - Vite | ||
| - TypeScript | ||
| - React | ||
| - shadcn-ui | ||
| - Tailwind CSS | ||
|
|
||
| ## How can I deploy this project? | ||
|
|
||
| Simply open [Lovable](https://lovable.dev/projects/216a06f3-619b-4a7a-848e-54b52396418a) and click on Share -> Publish. | ||
|
|
||
| ## Can I connect a custom domain to my Lovable project? | ||
|
|
||
| Yes, you can! | ||
|
|
||
| To connect a domain, navigate to Project > Settings > Domains and click Connect Domain. | ||
|
|
||
| Read more here: [Setting up a custom domain](https://docs.lovable.dev/features/custom-domain#custom-domain) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "$schema": "https://ui.shadcn.com/schema.json", | ||
| "style": "default", | ||
| "rsc": false, | ||
| "tsx": true, | ||
| "tailwind": { | ||
| "config": "tailwind.config.ts", | ||
| "css": "src/index.css", | ||
| "baseColor": "slate", | ||
| "cssVariables": true, | ||
| "prefix": "" | ||
| }, | ||
| "aliases": { | ||
| "components": "@/components", | ||
| "utils": "@/lib/utils", | ||
| "ui": "@/components/ui", | ||
| "lib": "@/lib", | ||
| "hooks": "@/hooks" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>Build Something Extraordinary</title> | ||
| <meta name="description" content="Transform your ideas into reality with cutting-edge technology and innovative solutions" /> | ||
| <meta name="author" content="Lovable" /> | ||
|
|
||
| <meta property="og:title" content="216a06f3-619b-4a7a-848e-54b52396418a" /> | ||
| <meta property="og:description" content="Lovable Generated Project" /> | ||
| <meta property="og:type" content="website" /> | ||
| <meta property="og:image" content="https://lovable.dev/opengraph-image-p98pqg.png" /> | ||
|
|
||
| <meta name="twitter:card" content="summary_large_image" /> | ||
| <meta name="twitter:site" content="@lovable_dev" /> | ||
| <meta name="twitter:image" content="https://lovable.dev/opengraph-image-p98pqg.png" /> | ||
| </head> | ||
|
|
||
| <body> | ||
| <div id="root"></div> | ||
| <script type="module" src="/src/main.tsx"></script> | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,85 @@ | ||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||
| "name": "@stackframe/lovable-react-18-example", | ||||||||||||||||||||||||||||||||||||||||||||
| "private": true, | ||||||||||||||||||||||||||||||||||||||||||||
| "version": "0.0.0", | ||||||||||||||||||||||||||||||||||||||||||||
| "type": "module", | ||||||||||||||||||||||||||||||||||||||||||||
| "scripts": { | ||||||||||||||||||||||||||||||||||||||||||||
| "dev": "vite", | ||||||||||||||||||||||||||||||||||||||||||||
| "build": "vite build", | ||||||||||||||||||||||||||||||||||||||||||||
| "build:dev": "vite build --mode development", | ||||||||||||||||||||||||||||||||||||||||||||
| "lint": "echo 'No linting for this example'", | ||||||||||||||||||||||||||||||||||||||||||||
| "preview": "vite preview", | ||||||||||||||||||||||||||||||||||||||||||||
| "clean": "rimraf dist && rimraf node_modules" | ||||||||||||||||||||||||||||||||||||||||||||
N2D4 marked this conversation as resolved.
Show resolved
Hide resolved
Contributor
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. Add The Apply this diff: "devDependencies": {
"@eslint/js": "^9.32.0",
"@tailwindcss/typography": "^0.5.16",
"@types/node": "^22.16.5",
"@types/react": "^18.3.23",
"@types/react-dom": "^18.3.7",
"@vitejs/plugin-react": "^4.3.4",
"autoprefixer": "^10.4.21",
"eslint": "^9.32.0",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.20",
"globals": "^15.15.0",
"lovable-tagger": "^1.1.11",
"postcss": "^8.5.6",
+ "rimraf": "^6.0.1",
"tailwindcss": "^3.4.17",
"typescript": "^5.8.3",
"typescript-eslint": "^8.38.0",
"vite": "^5.4.19"
}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||
| "dependencies": { | ||||||||||||||||||||||||||||||||||||||||||||
| "@hookform/resolvers": "^3.10.0", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-accordion": "^1.2.11", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-alert-dialog": "^1.1.14", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-aspect-ratio": "^1.1.7", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-avatar": "^1.1.10", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-checkbox": "^1.3.2", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-collapsible": "^1.1.11", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-context-menu": "^2.2.15", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-dialog": "^1.1.14", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-dropdown-menu": "^2.1.15", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-hover-card": "^1.1.14", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-label": "^2.1.7", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-menubar": "^1.1.15", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-navigation-menu": "^1.2.13", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-popover": "^1.1.14", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-progress": "^1.1.7", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-radio-group": "^1.3.7", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-scroll-area": "^1.2.9", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-select": "^2.2.5", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-separator": "^1.1.7", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-slider": "^1.3.5", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-slot": "^1.2.3", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-switch": "^1.2.5", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-tabs": "^1.1.12", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-toast": "^1.2.14", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-toggle": "^1.1.9", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-toggle-group": "^1.1.10", | ||||||||||||||||||||||||||||||||||||||||||||
| "@radix-ui/react-tooltip": "^1.2.7", | ||||||||||||||||||||||||||||||||||||||||||||
| "@tanstack/react-query": "^5.83.0", | ||||||||||||||||||||||||||||||||||||||||||||
| "class-variance-authority": "^0.7.1", | ||||||||||||||||||||||||||||||||||||||||||||
| "clsx": "^2.1.1", | ||||||||||||||||||||||||||||||||||||||||||||
| "cmdk": "^1.1.1", | ||||||||||||||||||||||||||||||||||||||||||||
| "date-fns": "^3.6.0", | ||||||||||||||||||||||||||||||||||||||||||||
| "embla-carousel-react": "^8.6.0", | ||||||||||||||||||||||||||||||||||||||||||||
| "input-otp": "^1.4.2", | ||||||||||||||||||||||||||||||||||||||||||||
| "lucide-react": "^0.462.0", | ||||||||||||||||||||||||||||||||||||||||||||
| "next-themes": "^0.3.0", | ||||||||||||||||||||||||||||||||||||||||||||
| "react": "^18.3.1", | ||||||||||||||||||||||||||||||||||||||||||||
| "react-day-picker": "^8.10.1", | ||||||||||||||||||||||||||||||||||||||||||||
| "react-dom": "^18.3.1", | ||||||||||||||||||||||||||||||||||||||||||||
| "react-hook-form": "^7.61.1", | ||||||||||||||||||||||||||||||||||||||||||||
| "react-resizable-panels": "^2.1.9", | ||||||||||||||||||||||||||||||||||||||||||||
| "react-router-dom": "^6.30.1", | ||||||||||||||||||||||||||||||||||||||||||||
| "recharts": "^2.15.4", | ||||||||||||||||||||||||||||||||||||||||||||
| "sonner": "^1.7.4", | ||||||||||||||||||||||||||||||||||||||||||||
| "tailwind-merge": "^2.6.0", | ||||||||||||||||||||||||||||||||||||||||||||
| "tailwindcss-animate": "^1.0.7", | ||||||||||||||||||||||||||||||||||||||||||||
| "vaul": "^0.9.9", | ||||||||||||||||||||||||||||||||||||||||||||
| "zod": "^3.25.76", | ||||||||||||||||||||||||||||||||||||||||||||
| "@stackframe/react": "workspace:*" | ||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||
| "devDependencies": { | ||||||||||||||||||||||||||||||||||||||||||||
| "@eslint/js": "^9.32.0", | ||||||||||||||||||||||||||||||||||||||||||||
| "@tailwindcss/typography": "^0.5.16", | ||||||||||||||||||||||||||||||||||||||||||||
| "@types/node": "^22.16.5", | ||||||||||||||||||||||||||||||||||||||||||||
| "@types/react": "^18.3.23", | ||||||||||||||||||||||||||||||||||||||||||||
| "@types/react-dom": "^18.3.7", | ||||||||||||||||||||||||||||||||||||||||||||
| "@vitejs/plugin-react": "^4.3.4", | ||||||||||||||||||||||||||||||||||||||||||||
| "autoprefixer": "^10.4.21", | ||||||||||||||||||||||||||||||||||||||||||||
| "eslint": "^9.32.0", | ||||||||||||||||||||||||||||||||||||||||||||
| "eslint-plugin-react-hooks": "^5.2.0", | ||||||||||||||||||||||||||||||||||||||||||||
| "eslint-plugin-react-refresh": "^0.4.20", | ||||||||||||||||||||||||||||||||||||||||||||
| "globals": "^15.15.0", | ||||||||||||||||||||||||||||||||||||||||||||
| "lovable-tagger": "^1.1.11", | ||||||||||||||||||||||||||||||||||||||||||||
| "postcss": "^8.5.6", | ||||||||||||||||||||||||||||||||||||||||||||
| "tailwindcss": "^3.4.17", | ||||||||||||||||||||||||||||||||||||||||||||
| "typescript": "^5.8.3", | ||||||||||||||||||||||||||||||||||||||||||||
| "typescript-eslint": "^8.38.0", | ||||||||||||||||||||||||||||||||||||||||||||
| "vite": "^5.4.19" | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| export default { | ||
| plugins: { | ||
| tailwindcss: {}, | ||
| autoprefixer: {}, | ||
| }, | ||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| User-agent: Googlebot | ||
| Allow: / | ||
|
|
||
| User-agent: Bingbot | ||
| Allow: / | ||
|
|
||
| User-agent: Twitterbot | ||
| Allow: / | ||
|
|
||
| User-agent: facebookexternalhit | ||
| Allow: / | ||
|
|
||
| User-agent: * | ||
| Allow: / |
Uh oh!
There was an error while loading. Please reload this page.