Skip to content

Commit 5abc758

Browse files
committed
docs: add changelog about inspector & refine landing page
1 parent 2420355 commit 5abc758

File tree

10 files changed

+74
-45
lines changed

10 files changed

+74
-45
lines changed

pages/changelog.mdx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { getPagesUnderRoute } from "nextra/context";
22
import Link from "next/link";
3-
import {useState,useEffect} from 'react'
4-
import {ChangelogComponent} from "@components/changelog"
3+
import { useState, useEffect } from 'react'
4+
import { ChangelogComponent } from "@components/changelog"
55
export function ChangelogHeader() {
66
return (
77
<div className="max-w-screen-lg mx-auto pt-4 pb-8 mb-8 border-b border-gray-400 border-opacity-20 text-center">
@@ -10,11 +10,11 @@ export function ChangelogHeader() {
1010
</h1>
1111
<div className="mt-4 lg:text-md">
1212
<p>You can subscribe the changelog by
13-
<span className="text-sky-600 ml-1"><Link href="/changelog.xml">RSS</Link></span>
13+
<span className="text-sky-600 ml-1"><Link href="/changelog.xml">RSS</Link></span>
1414
</p>
1515
<p className="mt-2">or join our
1616
<span className=" text-sky-600 ml-1">
17-
<Link href="https://discord.gg/tUsBSVfqzf">Discord Community</Link>
17+
<Link href="https://discord.gg/tUsBSVfqzf">Discord Community</Link>
1818
</span>
1919
</p>
2020
</div>
@@ -30,18 +30,18 @@ export function ChangelogIndex() {
3030
}
3131
});
3232

33-
return pages.map((page) => {
34-
const Mdx = dynamic(import(`pages/changelog/${page.name}.mdx`), {ssr: false})
35-
return (
36-
<ChangelogComponent
37-
key={page.frontMatter.title}
38-
date={page.frontMatter?.date}
39-
mdx={<Mdx />}
40-
title={page.frontMatter.title}
41-
url={page.route}
42-
/>
43-
)
44-
})
33+
return pages.map((page) => {
34+
const Mdx = dynamic(import(`pages/changelog/${page.name}.mdx`), { ssr: false })
35+
return (
36+
<ChangelogComponent
37+
key={page.frontMatter.title}
38+
date={page.frontMatter?.date}
39+
mdx={<Mdx />}
40+
title={page.frontMatter.title}
41+
url={page.route}
42+
/>
43+
)
44+
})
4545

4646
}
4747

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
version: "v0.1.0"
3+
title: "Release Loro Inspector v0.1.0"
4+
date: 2025/04/30
5+
---
6+
7+
Try it here: [Loro Inspector](https://inspector.loro.dev/)
8+
9+
Now you can directly browse the current state and complete edit history of your Loro
10+
documents in the browser. You can also use this tool to time travel to any version
11+
in the history of your Loro document.
12+
13+
import { ReactPlayer } from "components/video";
14+
15+
<ReactPlayer
16+
url="/static/loro-inspector.mp4"
17+
style={{maxWidth: "calc(100vw - 40px)", "margin": "2em auto"}}
18+
width={"100%"}
19+
height={"auto"}
20+
muted={true}
21+
loop={true}
22+
controls={true}
23+
/>

pages/changelog/v1.0.0-beta.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
version: "v1.0.0"
3-
title: "release v1.0.0"
3+
title: "Release Loro v1.0.0"
44
date: 2024/10/21
55
# breakingChange: false
66
# category: ["Encoding", "Tree"]

pages/changelog/v1.1.0.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
version: "v1.1.0"
3-
title: "release v1.1.0"
3+
title: "Release Loro v1.1.0"
44
date: 2024/11/09
55
---
66

pages/changelog/v1.2.0.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
version: "v1.2.0"
3-
title: "release v1.2.0"
3+
title: "Release Loro v1.2.0"
44
date: 2024/12/10
55
---
66

@@ -29,4 +29,4 @@ date: 2024/12/10
2929
## Fix
3030

3131
- fix: getOrCreateContainer should not throw if value is null [#576](https://github.com/loro-dev/loro/pull/576)
32-
- fix: dead loop when importing updates [#570](https://github.com/loro-dev/loro/pull/570)
32+
- fix: dead loop when importing updates [#570](https://github.com/loro-dev/loro/pull/570)

pages/changelog/v1.3.0.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
version: "v1.3.0"
3-
title: "release v1.3.0"
3+
title: "Release Loro v1.3.0"
44
date: 2025/01/09
55
---
66

@@ -22,4 +22,4 @@ date: 2025/01/09
2222
- fix: should commit before travel_change_ancestors [#599](https://github.com/loro-dev/loro/pull/599)
2323
- fix: panic when detach then attach [#592](https://github.com/loro-dev/loro/pull/592)
2424
- fix: move child in current parent [#589](https://github.com/loro-dev/loro/pull/589)
25-
- fix: panic when returned non-boolean value from text.iter(f) [#578](https://github.com/loro-dev/loro/pull/578)
25+
- fix: panic when returned non-boolean value from text.iter(f) [#578](https://github.com/loro-dev/loro/pull/578)

pages/changelog/v1.4.0.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
version: "v1.4.0"
3-
title: "release v1.4.0"
3+
title: "Release Loro v1.4.0"
44
date: 2025/02/13
55
---
66

@@ -13,4 +13,4 @@ date: 2025/02/13
1313
- fix: getting values by path in LoroTree [#643](https://github.com/loro-dev/loro/pull/643)
1414
- fix: should be able to call subscription after diffing [#637]
1515
- fix: update long text may fail [#633](https://github.com/loro-dev/loro/pull/633)
16-
- fix: map.keys() may return keys from deleted entries [#618](https://github.com/loro-dev/loro/pull/618)
16+
- fix: map.keys() may return keys from deleted entries [#618](https://github.com/loro-dev/loro/pull/618)

pages/changelog/v1.4.7.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
version: "v1.4.7"
3-
title: "release v1.4.7"
3+
title: "Release Loro v1.4.7"
44
date: 2025/04/01
55
---
66

@@ -19,4 +19,4 @@ date: 2025/04/01
1919
- fix: memory leak issue [#647](https://github.com/loro-dev/loro/pull/647)
2020
- fix: mark err on detached LoroText [#659](https://github.com/loro-dev/loro/pull/659)
2121
- fix: detached loro text issues [#665](https://github.com/loro-dev/loro/pull/665)
22-
- fix: entity index when the tree is empty [#670](https://github.com/loro-dev/loro/pull/670)
22+
- fix: entity index when the tree is empty [#670](https://github.com/loro-dev/loro/pull/670)

pages/changelog/v1.5.0.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
version: "v1.5.0"
3-
title: "release v1.5.0"
3+
title: "Release Loro v1.5.0"
44
date: 2025/04/04
55
---
66

pages/index.mdx

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,18 @@ import Testimonial from "@components/Testimonial";
2222
<div style={{ maxWidth: 1600, margin: "0 auto" }}>
2323
<Hero />
2424
<section className="px-5 md:px-15 mt-10 z-10 relative flex justify-center">
25-
<a
26-
href="/docs/tutorial/get_started"
27-
className="px-6 py-3 text-lg font-medium text-white bg-gradient-to-r from-blue-500/70 to-green-400/70 hover:from-blue-500/80 hover:to-green-400/80 transition duration-300 ease-in-out rounded-md flex items-center gap-2"
28-
>
29-
Get Started
30-
<svg xmlns="http://www.w3.org/2000/svg" className="h-4 w-4 opacity-80" viewBox="0 0 20 20" fill="currentColor">
31-
<path fillRule="evenodd" d="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z" clipRule="evenodd" />
32-
</svg>
33-
</a>
25+
<div className="relative group">
26+
<div className="absolute -inset-0.5 bg-gradient-to-r from-blue-500 to-green-400 rounded-lg blur opacity-60 group-hover:opacity-100 transition duration-300"></div>
27+
<a
28+
href="/docs/tutorial/get_started"
29+
className="relative px-6 py-3 text-lg font-medium text-white bg-zinc-900 rounded-md flex items-center gap-2"
30+
>
31+
Get Started
32+
<svg xmlns="http://www.w3.org/2000/svg" className="h-4 w-4" viewBox="0 0 20 20" fill="currentColor">
33+
<path fillRule="evenodd" d="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z" clipRule="evenodd" />
34+
</svg>
35+
</a>
36+
</div>
3437
</section>
3538
<Separator
3639
className="mt-4 md:mt-10 mx-5 md:mx-15 border-t border-separator"
@@ -214,15 +217,18 @@ import Testimonial from "@components/Testimonial";
214217
```
215218

216219
<div className="mt-8 flex">
217-
<a
218-
href="/docs/tutorial/get_started"
219-
className="px-6 py-3 text-lg font-medium text-white bg-gradient-to-r from-blue-500/70 to-green-400/70 hover:from-blue-500/80 hover:to-green-400/80 transition duration-300 ease-in-out rounded-md flex items-center gap-2"
220-
>
221-
Get Started
222-
<svg xmlns="http://www.w3.org/2000/svg" className="h-4 w-4 opacity-80" viewBox="0 0 20 20" fill="currentColor">
223-
<path fillRule="evenodd" d="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z" clipRule="evenodd" />
224-
</svg>
225-
</a>
220+
<div className="relative group">
221+
<div className="absolute -inset-0.5 bg-gradient-to-r from-blue-500 to-green-400 rounded-lg blur opacity-60 group-hover:opacity-100 transition duration-300"></div>
222+
<a
223+
href="/docs/tutorial/get_started"
224+
className="relative px-6 py-3 text-lg font-medium text-white bg-zinc-900 rounded-md flex items-center gap-2"
225+
>
226+
Get Started
227+
<svg xmlns="http://www.w3.org/2000/svg" className="h-4 w-4" viewBox="0 0 20 20" fill="currentColor">
228+
<path fillRule="evenodd" d="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z" clipRule="evenodd" />
229+
</svg>
230+
</a>
231+
</div>
226232
</div>
227233
</section>
228234

0 commit comments

Comments
 (0)