diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index a2d6891e..c04b9ea1 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -9,4 +9,4 @@ updates:
directory: "/"
schedule:
interval: "daily"
- open-pull-requests-limit: 10
\ No newline at end of file
+ open-pull-requests-limit: 10
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index a88f6c0a..ee923832 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -1,14 +1,19 @@
### WHAT
+
copilot:summary
copilot:poem
### WHY
+
### HOW
+
copilot:walkthrough
### CLAIM REWARDS
+
+
For first-time contributors, please leave your xLog address and Discord ID below to claim your rewards.
diff --git a/.github/workflows/nextjs_bundle_analysis.yml b/.github/workflows/nextjs_bundle_analysis.yml
index 127a0098..f6ab9ad9 100644
--- a/.github/workflows/nextjs_bundle_analysis.yml
+++ b/.github/workflows/nextjs_bundle_analysis.yml
@@ -94,4 +94,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: pr
- path: ./pr-id.txt
\ No newline at end of file
+ path: ./pr-id.txt
diff --git a/README.md b/README.md
index 32cbdb21..526934a9 100644
--- a/README.md
+++ b/README.md
@@ -32,4 +32,4 @@ We will provide some small gifts to contributors as a token of appreciation, cur
- [Mix Space](https://github.com/mx-space): Another excellent blogging platform integrated with xLog.
- [xLog mobile](https://github.com/Crossbell-Box/xLog-mobile): The mobile app for xLog.
- [xLog custom css debugger](https://github.com/birdgg/xLog-custom-css-debugger): A convenient chrome extension for debugging custom CSS in Xlog.
-- [xLog card](https://github.com/Alex-Programer/xlog-card): Card component for displaying xLog information.
\ No newline at end of file
+- [xLog card](https://github.com/Alex-Programer/xlog-card): Card component for displaying xLog information.
diff --git a/data/filter.json b/data/filter.json
index f41d7846..2f49437d 100644
--- a/data/filter.json
+++ b/data/filter.json
@@ -1,4 +1,7 @@
{
- "latest": [151, 53994, 54570, 54481, 54537, 54302, 53944, 55768, 55855, 56592, 54986, 56875, 56873, 56666, 55996],
+ "latest": [
+ 151, 53994, 54570, 54481, 54537, 54302, 53944, 55768, 55855, 56592, 54986,
+ 56875, 56873, 56666, 55996
+ ],
"comment": [54986]
-}
\ No newline at end of file
+}
diff --git a/data/titles.json b/data/titles.json
index 3158390c..e16d5618 100644
--- a/data/titles.json
+++ b/data/titles.json
@@ -5,8 +5,8 @@
"list": [
10, 30, 12, 32022, 32179, 45, 19, 4583, 4381, 32168, 33446, 33492, 52055,
153, 50143, 51470, 31132, 45089, 50351, 52343, 5825, 51406, 53864, 43086,
- 47393, 54315, 50131, 54939, 55096, 55081, 45828, 4565, 50088, 55399, 52323,
- 55960
+ 47393, 54315, 50131, 54939, 55096, 55081, 45828, 4565, 50088, 55399,
+ 52323, 55960
]
}
]
diff --git a/data/topics.json b/data/topics.json
index 517d1205..15230c1e 100644
--- a/data/topics.json
+++ b/data/topics.json
@@ -2,18 +2,12 @@
{
"name": "xLog",
"description": "Let's talk about xLog, whether to praise or criticize it.",
- "includeTags": [
- "xLog"
- ],
- "includeKeywords": [
- "xLog"
- ]
+ "includeTags": ["xLog"],
+ "includeKeywords": ["xLog"]
},
{
"name": "Web3",
- "includeTags": [
- "Web3"
- ],
+ "includeTags": ["Web3"],
"includeKeywords": [
"Web3",
"Blockchain",
@@ -35,24 +29,13 @@
{
"name": "Artificial Intelligence",
"description": "The world is undergoing changes, and we are at the center of it.",
- "includeTags": [
- "AI"
- ],
- "includeKeywords": [
- "GPT",
- "Midjourney",
- "AIGC",
- " AI ",
- "OpenAI"
- ]
+ "includeTags": ["AI"],
+ "includeKeywords": ["GPT", "Midjourney", "AIGC", " AI ", "OpenAI"]
},
{
"name": "Life Journal",
"description": "Discover new perspectives and insights in others' weekly, monthly, or yearly journal.",
- "includeTags": [
- "Life",
- "生活"
- ],
+ "includeTags": ["Life", "生活"],
"includeKeywords": [
"Review",
"Weekly",
@@ -66,10 +49,7 @@
{
"name": "Fiction",
"description": "Experience a world of imagination through these fiction stories.",
- "includeTags": [
- "Fiction",
- "小说"
- ],
+ "includeTags": ["Fiction", "小说"],
"notes": [
"55405-3",
"54513-24",
@@ -121,10 +101,7 @@
},
{
"name": "Coding",
- "includeTags": [
- "Coding",
- "编程"
- ],
+ "includeTags": ["Coding", "编程"],
"includeKeywords": [
"Coding",
"编程",
diff --git a/package.json b/package.json
index 4d440367..dd7ab5df 100644
--- a/package.json
+++ b/package.json
@@ -196,7 +196,7 @@
"lint-staged": "13.2.3",
"postcss-import": "15.1.0",
"postcss-prune-var": "1.1.1",
- "prettier": "2.8.8",
+ "prettier": "3.0.0",
"prettier-package-json": "2.8.0",
"prisma": "4.16.2",
"tailwindcss": "3.3.2",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 6c7ac0c5..6c4acc19 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -396,7 +396,7 @@ devDependencies:
version: 13.4.9
'@trivago/prettier-plugin-sort-imports':
specifier: 4.1.1
- version: 4.1.1(prettier@2.8.8)
+ version: 4.1.1(prettier@3.0.0)
'@types/async-lock':
specifier: 1.4.0
version: 1.4.0
@@ -500,8 +500,8 @@ devDependencies:
specifier: 1.1.1
version: 1.1.1
prettier:
- specifier: 2.8.8
- version: 2.8.8
+ specifier: 3.0.0
+ version: 3.0.0
prettier-package-json:
specifier: 2.8.0
version: 2.8.0
@@ -4241,7 +4241,7 @@ packages:
engines: {node: '>= 10'}
dev: false
- /@trivago/prettier-plugin-sort-imports@4.1.1(prettier@2.8.8):
+ /@trivago/prettier-plugin-sort-imports@4.1.1(prettier@3.0.0):
resolution: {integrity: sha512-dQ2r2uzNr1x6pJsuh/8x0IRA3CBUB+pWEW3J/7N98axqt7SQSm+2fy0FLNXvXGg77xEDC7KHxJlHfLYyi7PDcw==}
peerDependencies:
'@vue/compiler-sfc': 3.x
@@ -4256,7 +4256,7 @@ packages:
'@babel/types': 7.17.0
javascript-natural-sort: 0.7.1
lodash: 4.17.21
- prettier: 2.8.8
+ prettier: 3.0.0
transitivePeerDependencies:
- supports-color
dev: true
@@ -11028,9 +11028,9 @@ packages:
sort-order: 1.0.1
dev: true
- /prettier@2.8.8:
- resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==}
- engines: {node: '>=10.13.0'}
+ /prettier@3.0.0:
+ resolution: {integrity: sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g==}
+ engines: {node: '>=14'}
hasBin: true
dev: true
diff --git a/src/app/dashboard/[subdomain]/editor/page-component.tsx b/src/app/dashboard/[subdomain]/editor/page-component.tsx
index 50f08af8..07f8f9e5 100644
--- a/src/app/dashboard/[subdomain]/editor/page-component.tsx
+++ b/src/app/dashboard/[subdomain]/editor/page-component.tsx
@@ -300,9 +300,8 @@ export default function SubdomainEditor() {
if (createPage.data?.noteId) {
router.replace(
- `/dashboard/${subdomain}/editor?id=${
- createPage.data?.noteId
- }&type=${searchParams?.get("type")}`,
+ `/dashboard/${subdomain}/editor?id=${createPage.data
+ ?.noteId}&type=${searchParams?.get("type")}`,
)
}
const modalId = "publish-modal"
diff --git a/src/app/dashboard/[subdomain]/page-component.tsx b/src/app/dashboard/[subdomain]/page-component.tsx
index 53894cf0..bfa336b4 100644
--- a/src/app/dashboard/[subdomain]/page-component.tsx
+++ b/src/app/dashboard/[subdomain]/page-component.tsx
@@ -203,9 +203,8 @@ export default function SubdomainIndex() {
{pages.data?.pages[0]?.list.map((item) => (
diff --git a/src/components/dashboard/PagesManager.tsx b/src/components/dashboard/PagesManager.tsx
index 55ad795a..caef7f9c 100644
--- a/src/components/dashboard/PagesManager.tsx
+++ b/src/components/dashboard/PagesManager.tsx
@@ -239,123 +239,126 @@ export const PagesManager = ({ isPost }: { isPost: boolean }) => {
)}
- {pages.data?.pages.map((page) =>
- page.list?.map((page) => {
- currentLength++
- return (
-
-
-