diff --git a/README.md b/README.md index ee74d4a..7ac3632 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,20 @@ -# veact-admin +# surmon.admin [![nodepress](https://raw.githubusercontent.com/surmon-china/nodepress/main/badge.svg)](https://github.com/surmon-china/nodepress)   [![veact](https://img.shields.io/badge/WITH-VEACT-42a97a?style=for-the-badge&labelColor=35495d)](https://github.com/veactjs/veact)   -[![GitHub stars](https://img.shields.io/github/stars/surmon-china/veact-admin.svg?style=for-the-badge)](https://github.com/surmon-china/veact-admin/stargazers) +[![GitHub stars](https://img.shields.io/github/stars/surmon-china/surmon.admin.svg?style=for-the-badge)](https://github.com/surmon-china/surmon.admin/stargazers)   -[![GitHub issues](https://img.shields.io/github/issues/surmon-china/veact-admin.svg?style=for-the-badge)](https://github.com/surmon-china/veact-admin/issues) +[![GitHub issues](https://img.shields.io/github/issues/surmon-china/surmon.admin.svg?style=for-the-badge)](https://github.com/surmon-china/surmon.admin/issues)   -[![GitHub license](https://img.shields.io/github/license/surmon-china/veact-admin.svg?style=for-the-badge)](/LICENSE) +[![GitHub license](https://img.shields.io/github/license/surmon-china/surmon.admin.svg?style=for-the-badge)](/LICENSE) Admin client for [surmon.me](https://github.com/surmon-china/surmon.me) blog, powered by [`React`](https://github.com/facebook/react) and [`Veact`](https://github.com/veactjs/veact). **适用于 [surmon.me](https://github.com/surmon-china/surmon.me) 博客的管理员后台应用,使用 [`React`](https://github.com/facebook/react) 和 [`Veact`](https://github.com/veactjs/veact) 进行开发。** -**在线预览:[Online demo site](https://github.surmon.me/veact-admin)** +**在线预览:[Online demo site](https://github.surmon.me/surmon.admin)** --- diff --git a/index.html b/index.html index fa163af..7ced5f3 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ - + { - return fetch(`/veact-admin/__demo__/mock/${filePath}.json`).then((response) => response.json()) + return fetch(`/surmon.admin/__demo__/mock/${filePath}.json`).then((response) => response.json()) } // first fetch cache data map diff --git a/public/__demo__/mock/article/61030f5fcf1faa098ee126b2.json b/public/__demo__/mock/article/61030f5fcf1faa098ee126b2.json index a624d8a..13640aa 100644 --- a/public/__demo__/mock/article/61030f5fcf1faa098ee126b2.json +++ b/public/__demo__/mock/article/61030f5fcf1faa098ee126b2.json @@ -15,7 +15,7 @@ "title": "旅途感想", "description": "没有整理好的旅途感想", "content": "\n旅途的开始,心情是轻松的。\n\n此处省略一万字...\n", - "thumbnail": "/veact-admin/images/thumbnail.jpg", + "thumbnail": "/surmon.admin/images/thumbnail.jpg", "extends": [], "meta": { "likes": 51, "views": 11672, "comments": 39 }, "updated_at": "2019-07-24T15:53:33.133Z", diff --git a/public/__demo__/mock/article/610c29438a907384c63fef00.json b/public/__demo__/mock/article/610c29438a907384c63fef00.json index dfe6a9f..74c137c 100644 --- a/public/__demo__/mock/article/610c29438a907384c63fef00.json +++ b/public/__demo__/mock/article/610c29438a907384c63fef00.json @@ -15,7 +15,7 @@ "title": "今日日记", "description": "今天发生的一些事情", "content": "\n今天上海的天气非常好,万里无云。\n\n此处省略一万字...\n", - "thumbnail": "/veact-admin/images/thumbnail.jpg", + "thumbnail": "/surmon.admin/images/thumbnail.jpg", "extends": [], "meta": { "likes": 51, "views": 11672, "comments": 39 }, "updated_at": "2019-07-24T15:53:33.133Z", diff --git a/public/__demo__/mock/article/612c81321a53290533a7b782.json b/public/__demo__/mock/article/612c81321a53290533a7b782.json index 18bb885..245fe48 100644 --- a/public/__demo__/mock/article/612c81321a53290533a7b782.json +++ b/public/__demo__/mock/article/612c81321a53290533a7b782.json @@ -14,7 +14,7 @@ "title": "JavaScript 权威指南小结", "description": "学习总结", "content": "\n《JavaScript权威指南》是2007年机械工业出版社出版的图书,作者是弗拉纳根(David Flanagan,美)。\n\n本书全面介绍了JavaScript语言的核心,以及Web浏览器中实现的遗留和标准的DOM。\n由于本书封面上是一只“爪哇犀牛”(封面上印上动物是原书出版公司O'Reilly一贯的风格),读者亲切地称其为“犀牛书”。\n\n此处省略一万字...\n", - "thumbnail": "/veact-admin/images/thumbnail.jpg", + "thumbnail": "/surmon.admin/images/thumbnail.jpg", "extends": [], "meta": { "likes": 51, "views": 11672, "comments": 39 }, "updated_at": "2019-07-24T15:53:33.133Z", diff --git a/public/__demo__/mock/article/list.json b/public/__demo__/mock/article/list.json index 07447aa..64e0372 100644 --- a/public/__demo__/mock/article/list.json +++ b/public/__demo__/mock/article/list.json @@ -64,7 +64,7 @@ "_id": "612c81321a53290533a7b782", "title": "JavaScript 权威指南小结", "description": "学习总结", - "thumbnail": "/veact-admin/images/thumbnail.jpg", + "thumbnail": "/surmon.admin/images/thumbnail.jpg", "extends": [], "featured": true, "meta": { "likes": 14, "views": 297, "comments": 2 }, @@ -133,7 +133,7 @@ "_id": "610c29438a907384c63fef00", "title": "今日日记", "description": "今天发生的一些事情", - "thumbnail": "/veact-admin/images/thumbnail.jpg", + "thumbnail": "/surmon.admin/images/thumbnail.jpg", "featured": true, "extends": [], "meta": { "likes": 9, "views": 915, "comments": 11 }, @@ -202,7 +202,7 @@ "_id": "61030f5fcf1faa098ee126b2", "title": "旅途感想", "description": "没有整理好的旅途感想", - "thumbnail": "/veact-admin/images/thumbnail.jpg", + "thumbnail": "/surmon.admin/images/thumbnail.jpg", "extends": [], "meta": { "likes": 15, "views": 771, "comments": 9 }, "created_at": "2021-07-29T20:28:15.700Z", diff --git a/public/__demo__/mock/auth/admin.json b/public/__demo__/mock/auth/admin.json index dda5d5b..26b8b0c 100644 --- a/public/__demo__/mock/auth/admin.json +++ b/public/__demo__/mock/auth/admin.json @@ -5,6 +5,6 @@ "name": "Admin", "slogan": "Surmon.me admin system", "email": "admin@example.com", - "avatar": "/veact-admin/images/nodepress.png" + "avatar": "/surmon.admin/images/nodepress.png" } } diff --git a/src/config.ts b/src/config.ts index b2da947..835da43 100644 --- a/src/config.ts +++ b/src/config.ts @@ -8,7 +8,7 @@ import { Language } from '@/contexts/Locale' export const APP_TITLE = 'Surmon.me' export const BLOG_URL = `https://surmon.me` -export const GITHUB_REPO_URL = 'https://github.com/surmon-china/veact-admin' +export const GITHUB_REPO_URL = 'https://github.com/surmon-china/surmon.admin' export const APP_AUTH_HEADER_KEY = 'Authorization' export const APP_CONTENT_SPACE_SIZE: SizeType = 'middle' diff --git a/vite.config.demo.ts b/vite.config.demo.ts index 8f875b3..da2bc23 100644 --- a/vite.config.demo.ts +++ b/vite.config.demo.ts @@ -1,6 +1,6 @@ import { UserConfig } from 'vite' -const DEMO_BASE_PATH = '/veact-admin/' +const DEMO_BASE_PATH = '/surmon.admin/' const GOOGLE_ANALYTICS_MEASUREMENT_ID = 'G-WNSSKPKKMG' const GOOGLE_ADSENSE_CLIENT_ID = 'ca-pub-4710915636313788'