Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
c4dc7b0
chore: merge dev to main (#77)
ymc9 Nov 9, 2022
5b5b691
chore: merge dev to main (#80)
ymc9 Nov 10, 2022
fb50682
chore: add intro video to README (#81) (#82)
ymc9 Nov 11, 2022
9ccff2f
chore: add bug report template (#84)
ymc9 Nov 11, 2022
74814c0
chore: add feature request template (#85) (#86)
ymc9 Nov 12, 2022
40228fd
chore: update video in README (#87) (#88)
ymc9 Nov 12, 2022
f86a5ad
chore: update CLI npm description, update README to include TODO samp…
ymc9 Nov 12, 2022
3667bd5
chore: add white background to logo, optimize README (#92) (#93)
ymc9 Nov 13, 2022
d2297e8
core: update cover image (#96) (#97)
ymc9 Nov 14, 2022
b43f8bb
release v0.4.0 (#129)
ymc9 Dec 1, 2022
158c6de
chore: release version, update doc link (#130) (#131)
ymc9 Dec 1, 2022
aba3803
update twitter image
ymc9 Dec 1, 2022
0f4eed5
update banner image
ymc9 Dec 1, 2022
487a5ba
update twitter card image
ymc9 Dec 1, 2022
deb1de0
update og images
ymc9 Dec 1, 2022
e34c403
update image
ymc9 Dec 1, 2022
230f30c
update banner dimension
ymc9 Dec 1, 2022
960a094
fix typo
ymc9 Dec 1, 2022
7d64286
Merge remote-tracking branch 'origin/main' into docs/release
ymc9 Dec 2, 2022
1339a3b
update next-auth related docs
ymc9 Dec 2, 2022
5023d97
Merge remote-tracking branch 'origin/dev' into docs/release
ymc9 Dec 2, 2022
6a7270d
change to history route mode
ymc9 Dec 5, 2022
3422ad1
vercel rewrite rules
ymc9 Dec 5, 2022
d8bd6d9
disable navbar cn entry
ymc9 Dec 5, 2022
403e8c5
add robots.txt
ymc9 Dec 6, 2022
3178a7d
update meta
ymc9 Dec 6, 2022
01f78f1
update meta
ymc9 Dec 6, 2022
111899b
update meta
ymc9 Dec 6, 2022
b0632e6
update title
ymc9 Dec 6, 2022
82c841b
Add bing verification file
ymc9 Dec 7, 2022
ab2ca9f
Delete CNAME
ymc9 Dec 7, 2022
256d14a
Update vercel.json
ymc9 Dec 7, 2022
4c79317
fix copy-paste error
ymc9 Dec 7, 2022
a0bf181
add sitemap
ymc9 Dec 8, 2022
11b601b
update sitemap script
ymc9 Dec 8, 2022
1548ebb
add static pages
ymc9 Dec 10, 2022
58ded44
update vercel.json
ymc9 Dec 10, 2022
81487a1
update vercel.json
ymc9 Dec 10, 2022
afba87e
try rewrite
ymc9 Dec 10, 2022
77b4465
try
ymc9 Dec 10, 2022
d4b1a12
rewrites
ymc9 Dec 10, 2022
fe75cb1
try
ymc9 Dec 10, 2022
00eb9d6
update
ymc9 Dec 10, 2022
4328e5a
include bingbot
ymc9 Dec 11, 2022
e8c3ffa
update ssg
ymc9 Dec 11, 2022
574763d
more try
ymc9 Dec 11, 2022
660f2b3
fix
ymc9 Dec 11, 2022
b5f4e59
try
ymc9 Dec 11, 2022
df58d67
Update vercel.json
ymc9 Dec 12, 2022
0dd1d1c
use next.js to serve docs
ymc9 Dec 12, 2022
4565148
update
ymc9 Dec 15, 2022
64e458f
chore: bump version and fix test
ymc9 Dec 16, 2022
4e4b728
Merge branch 'docs/release' into chore/verup
ymc9 Dec 16, 2022
70b00c2
update changelog
ymc9 Dec 16, 2022
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
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# 0.5.0 (2022-12-15)

### Features

- Serialization between client (hooks) and server now uses [superjson](https://github.com/blitz-js/superjson), [[#139](https://github.com/zenstackhq/zenstack/issues/139)]

### Fixes and improvements

- Fixed goto definition issue in VSCode extension, [[#69](https://github.com/zenstackhq/zenstack/issues/69)]

### Breaking changes

- Next-auth adapter and helper are moved to a separate package `@zenstackhq/next-auth`.

# 0.4.0 (2022-12-01)

### Features
Expand Down
3 changes: 3 additions & 0 deletions doc-serve/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
36 changes: 36 additions & 0 deletions doc-serve/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
34 changes: 34 additions & 0 deletions doc-serve/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.

[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.

The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
31 changes: 31 additions & 0 deletions doc-serve/middleware.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { NextRequest, NextResponse } from 'next/server';

export const config = {
matcher: '/:path*',
};

const botUAPattern = /.*(Googlebot|bingbot).*/i;

export default async function middleware(req: NextRequest) {
const url = req.nextUrl;

if (url.pathname.includes('.')) {
return NextResponse.next();
}

const ua = req.headers.get('user-agent');

if (ua && botUAPattern.test(ua)) {
const trimmed = url.pathname.replace(/^\//, '');
if (trimmed === '' || trimmed === '/') {
url.pathname = '/static/index.html';
} else {
url.pathname = `/static/${trimmed}.html`;
}
console.log(`REWRITE: ua - ${ua}, url - ${url.pathname}`);
return NextResponse.rewrite(url);
} else {
url.pathname = '/index.html';
return NextResponse.rewrite(url);
}
}
7 changes: 7 additions & 0 deletions doc-serve/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
}

module.exports = nextConfig
Loading