mirror of
https://github.com/Afilmory/afilmory
synced 2026-02-01 14:44:48 +00:00
chore: rename project to Afilmory and update related configurations
- Changed project name and title from "Photo Gallery" to "Afilmory" across multiple files including configuration, README, and web manifest. - Updated descriptions and URLs to reflect the new branding. - Adjusted OG image plugin and favicon generation scripts to align with the new project name. Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
@@ -116,10 +116,10 @@ Edit `config.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "My Photo Gallery",
|
||||
"title": "My Photo Gallery",
|
||||
"name": "My Afilmory",
|
||||
"title": "My Afilmory",
|
||||
"description": "Capturing beautiful moments in life",
|
||||
"url": "https://gallery.example.com",
|
||||
"url": "https://afilmory.example.com",
|
||||
"accentColor": "#007bff", // Optional, set theme color
|
||||
"author": {
|
||||
"name": "Your Name", // Required, set author name
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Photo Gallery",
|
||||
"short_name": "Gallery",
|
||||
"name": "Afilmory",
|
||||
"short_name": "Afilmory",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/android-chrome-192x192.png",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Innei's Photo Gallery",
|
||||
"title": "Innei's Photo Gallery",
|
||||
"name": "Innei's Afilmory",
|
||||
"title": "Innei's Afilmory",
|
||||
"description": "Capturing beautiful moments in life, documenting daily warmth and emotions through my lens.",
|
||||
"url": "https://afilmory.innei.in/",
|
||||
"accentColor": "#007bff",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Photo Gallery Builder
|
||||
# Afilmory Builder
|
||||
|
||||
这是照片库构建系统的核心模块,采用模块化设计,将不同功能分离到各自的模块中。
|
||||
|
||||
|
||||
@@ -13,9 +13,9 @@ interface OGImagePluginOptions {
|
||||
|
||||
export function ogImagePlugin(options: OGImagePluginOptions = {}): Plugin {
|
||||
const {
|
||||
title = 'Photo Gallery',
|
||||
description = 'Beautiful photo collection and gallery',
|
||||
siteName = 'Photo Gallery',
|
||||
title = 'Afilmory',
|
||||
description = 'Capturing beautiful moments in life, documenting daily warmth and emotions through my lens.',
|
||||
siteName = 'Afilmory',
|
||||
siteUrl,
|
||||
} = options
|
||||
|
||||
|
||||
@@ -111,8 +111,8 @@ export async function generateFavicons() {
|
||||
|
||||
// 生成 site.webmanifest
|
||||
const manifest = {
|
||||
name: 'Photo Gallery',
|
||||
short_name: 'Gallery',
|
||||
name: 'Afilmory',
|
||||
short_name: 'Afilmory',
|
||||
icons: [
|
||||
{
|
||||
src: '/android-chrome-192x192.png',
|
||||
|
||||
@@ -388,15 +388,3 @@ export async function generateOGImage(options: OGImageOptions) {
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
||||
// 如果直接运行此脚本
|
||||
if (import.meta.url === `file://${process.argv[1]}`) {
|
||||
const timestamp = Date.now()
|
||||
generateOGImage({
|
||||
title: 'Photo Gallery',
|
||||
description: 'Beautiful photo collection and gallery',
|
||||
outputPath: `og-image-${timestamp}.png`,
|
||||
includePhotos: true,
|
||||
photoCount: 4,
|
||||
}).catch(console.error)
|
||||
}
|
||||
|
||||
@@ -15,8 +15,8 @@ async function generateTestImages() {
|
||||
|
||||
// 测试文本
|
||||
const testTexts = [
|
||||
'Photo Gallery',
|
||||
'Beautiful photo collection and gallery',
|
||||
'Afilmory',
|
||||
'Capturing beautiful moments in life, documenting daily warmth and emotions through my lens.',
|
||||
'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
|
||||
'abcdefghijklmnopqrstuvwxyz',
|
||||
'0123456789',
|
||||
@@ -82,7 +82,7 @@ async function generateTestImages() {
|
||||
</text>
|
||||
|
||||
<text x="60" y="128" font-family="Arial, sans-serif" font-size="48" font-weight="bold" fill="white">
|
||||
Photo Gallery
|
||||
Afilmory
|
||||
</text>
|
||||
|
||||
<text x="60" y="198" font-family="Arial, sans-serif" font-size="32" fill="rgba(255,255,255,0.9)">
|
||||
|
||||
Reference in New Issue
Block a user