File tree Expand file tree Collapse file tree 9 files changed +30
-504
lines changed
Expand file tree Collapse file tree 9 files changed +30
-504
lines changed Original file line number Diff line number Diff line change 11import Intro from "@/components/intro"
22import Layout from "@/components/layout"
33import { CMS_NAME } from "@/lib/constants"
4- import GettingStarted from "@/components/getting-started"
5- import AutoUis from "@/components/auto-uis"
64import type { Metadata } from 'next'
75
86export const metadata : Metadata = {
@@ -15,11 +13,6 @@ export default function Index() {
1513 < Layout >
1614 < div className = "max-w-7xl mx-auto px-5" >
1715 < Intro />
18- < div className = "mb-32 flex justify-center" >
19- < GettingStarted template = "next-static" />
20- </ div >
21-
22- < AutoUis className = "mt-60" />
2316 </ div >
2417 </ Layout >
2518 )
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33import { useState , useEffect } from "react"
44import { TextInput , useClient } from "@servicestack/react"
55import { ApiResult } from "@servicestack/client"
6+ import { GettingStarted , AutoUis } from "react-net-templates"
67import { CMS_NAME } from "@/lib/constants"
78import { Hello , HelloResponse } from "@/lib/dtos"
89
@@ -22,9 +23,9 @@ const HelloApi = ({ name }:any) => {
2223 : < div className = "ml-3 mt-2 text-gray-900 dark:text-gray-100" > { api . response ?. result ?? 'loading...' } </ div >
2324}
2425
25- const Intro = ( ) => {
26+ export default function Intro ( ) {
2627 const [ inputValue , setInputValue ] = useState < string > ( "Next.js" ) ;
27- return (
28+ return ( < >
2829 < section className = "flex-col md:flex-row flex items-center md:justify-between mt-16 mb-16 md:mb-12" >
2930 < h1 className = "text-6xl md:text-8xl font-bold tracking-tighter leading-tight md:pr-8 text-gray-900 dark:text-gray-100" >
3031 Next.js
@@ -49,7 +50,11 @@ const Intro = () => {
4950 </ div >
5051 </ div >
5152 </ section >
52- )
53+ < div >
54+ < div className = "mb-32 flex justify-center" >
55+ < GettingStarted template = "next-static" />
56+ </ div >
57+ < AutoUis className = "mt-60" />
58+ </ div >
59+ </ > )
5360}
54-
55- export default Intro
Original file line number Diff line number Diff line change 2121 "next" : " ^16.0.3" ,
2222 "react" : " ^19.2.0" ,
2323 "react-dom" : " ^19.2.0" ,
24+ "react-net-templates" : " ^0.0.1" ,
2425 "tailwind-merge" : " ^3.4.0"
2526 },
2627 "devDependencies" : {
Original file line number Diff line number Diff line change 11@import "tailwindcss" ;
22@source "../node_modules/@servicestack/react/dist/servicestack-react.mjs" ;
3+ @source "../../node_modules/react-net-templates/dist/index.js" ;
34
45@variant dark (.dark & );
56
Original file line number Diff line number Diff line change 4747{
4848 app . UseDeveloperExceptionPage ( ) ;
4949 app . UseMigrationsEndPoint ( ) ;
50-
50+
5151 app . MapNotFoundToNode ( nodeProxy ) ;
5252}
5353else
6262app . MapCleanUrls ( ) ;
6363
6464app . UseHttpsRedirection ( ) ;
65- app . UseWebSockets ( ) ;
6665app . UseAuthorization ( ) ;
6766app . MapRazorPages ( ) ;
6867
7372// Proxy development HMR WebSocket and fallback routes to the Next server
7473if ( app . Environment . IsDevelopment ( ) )
7574{
75+ app . UseWebSockets ( ) ;
7676 app . MapNextHmr ( nodeProxy ) ;
7777
7878 // Start the Next.js dev server if the Next.js lockfile does not exist
Original file line number Diff line number Diff line change @@ -291,6 +291,7 @@ enable deploying all your Repositories to the same server.
291291** Optional** :
292292
293293| Variable | Example | Description |
294+ | ----------| ---------| -------------|
294295| ` SERVICESTACK_LICENSE ` | ` ... ` | ServiceStack license key |
295296
296297** Inferred** (from GitHub Action context):
You can’t perform that action at this time.
0 commit comments