mirror of
https://github.com/Afilmory/afilmory
synced 2026-02-01 22:48:17 +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
|
```json
|
||||||
{
|
{
|
||||||
"name": "My Photo Gallery",
|
"name": "My Afilmory",
|
||||||
"title": "My Photo Gallery",
|
"title": "My Afilmory",
|
||||||
"description": "Capturing beautiful moments in life",
|
"description": "Capturing beautiful moments in life",
|
||||||
"url": "https://gallery.example.com",
|
"url": "https://afilmory.example.com",
|
||||||
"accentColor": "#007bff", // Optional, set theme color
|
"accentColor": "#007bff", // Optional, set theme color
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Your Name", // Required, set author name
|
"name": "Your Name", // Required, set author name
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Photo Gallery",
|
"name": "Afilmory",
|
||||||
"short_name": "Gallery",
|
"short_name": "Afilmory",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "/android-chrome-192x192.png",
|
"src": "/android-chrome-192x192.png",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Innei's Photo Gallery",
|
"name": "Innei's Afilmory",
|
||||||
"title": "Innei's Photo Gallery",
|
"title": "Innei's Afilmory",
|
||||||
"description": "Capturing beautiful moments in life, documenting daily warmth and emotions through my lens.",
|
"description": "Capturing beautiful moments in life, documenting daily warmth and emotions through my lens.",
|
||||||
"url": "https://afilmory.innei.in/",
|
"url": "https://afilmory.innei.in/",
|
||||||
"accentColor": "#007bff",
|
"accentColor": "#007bff",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Photo Gallery Builder
|
# Afilmory Builder
|
||||||
|
|
||||||
这是照片库构建系统的核心模块,采用模块化设计,将不同功能分离到各自的模块中。
|
这是照片库构建系统的核心模块,采用模块化设计,将不同功能分离到各自的模块中。
|
||||||
|
|
||||||
|
|||||||
@@ -13,9 +13,9 @@ interface OGImagePluginOptions {
|
|||||||
|
|
||||||
export function ogImagePlugin(options: OGImagePluginOptions = {}): Plugin {
|
export function ogImagePlugin(options: OGImagePluginOptions = {}): Plugin {
|
||||||
const {
|
const {
|
||||||
title = 'Photo Gallery',
|
title = 'Afilmory',
|
||||||
description = 'Beautiful photo collection and gallery',
|
description = 'Capturing beautiful moments in life, documenting daily warmth and emotions through my lens.',
|
||||||
siteName = 'Photo Gallery',
|
siteName = 'Afilmory',
|
||||||
siteUrl,
|
siteUrl,
|
||||||
} = options
|
} = options
|
||||||
|
|
||||||
|
|||||||
@@ -111,8 +111,8 @@ export async function generateFavicons() {
|
|||||||
|
|
||||||
// 生成 site.webmanifest
|
// 生成 site.webmanifest
|
||||||
const manifest = {
|
const manifest = {
|
||||||
name: 'Photo Gallery',
|
name: 'Afilmory',
|
||||||
short_name: 'Gallery',
|
short_name: 'Afilmory',
|
||||||
icons: [
|
icons: [
|
||||||
{
|
{
|
||||||
src: '/android-chrome-192x192.png',
|
src: '/android-chrome-192x192.png',
|
||||||
|
|||||||
@@ -388,15 +388,3 @@ export async function generateOGImage(options: OGImageOptions) {
|
|||||||
throw error
|
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 = [
|
const testTexts = [
|
||||||
'Photo Gallery',
|
'Afilmory',
|
||||||
'Beautiful photo collection and gallery',
|
'Capturing beautiful moments in life, documenting daily warmth and emotions through my lens.',
|
||||||
'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
|
'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
|
||||||
'abcdefghijklmnopqrstuvwxyz',
|
'abcdefghijklmnopqrstuvwxyz',
|
||||||
'0123456789',
|
'0123456789',
|
||||||
@@ -82,7 +82,7 @@ async function generateTestImages() {
|
|||||||
</text>
|
</text>
|
||||||
|
|
||||||
<text x="60" y="128" font-family="Arial, sans-serif" font-size="48" font-weight="bold" fill="white">
|
<text x="60" y="128" font-family="Arial, sans-serif" font-size="48" font-weight="bold" fill="white">
|
||||||
Photo Gallery
|
Afilmory
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
<text x="60" y="198" font-family="Arial, sans-serif" font-size="32" fill="rgba(255,255,255,0.9)">
|
<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