Skip to content

Commit ad79696

Browse files
committed
Refactor code structure for improved readability and maintainability
1 parent d04b37d commit ad79696

8 files changed

Lines changed: 14 additions & 7 deletions

File tree

Translator/web/index.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
5+
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
6+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
7+
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
68
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Vite + React + TS</title>
9+
<meta name="description" content="Modern translation tool powered by Azure AI - 基于 Azure AI 的现代翻译工具" />
10+
<meta name="theme-color" content="#0078d4" />
11+
<title>Translator</title>
812
</head>
913
<body>
1014
<div id="root"></div>
33.1 KB
Loading

Translator/web/public/favicon.ico

14.7 KB
Binary file not shown.

Translator/web/public/favicon.svg

Lines changed: 3 additions & 0 deletions
Loading

Translator/web/public/vite.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.
37.6 KB
Loading
165 KB
Loading

Translator/web/vite.config.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default defineConfig({
88
react(),
99
VitePWA({
1010
registerType: 'autoUpdate',
11-
includeAssets: ['favicon.ico', 'apple-touch-icon.png', 'mask-icon.svg'],
11+
includeAssets: ['favicon.ico', 'favicon.svg', 'apple-touch-icon.png'],
1212
manifest: {
1313
name: 'Azure Translator',
1414
short_name: 'Translator',
@@ -18,14 +18,15 @@ export default defineConfig({
1818
display: 'standalone',
1919
icons: [
2020
{
21-
src: 'pwa-192x192.png',
21+
src: 'web-app-manifest-192x192.png',
2222
sizes: '192x192',
2323
type: 'image/png'
2424
},
2525
{
26-
src: 'pwa-512x512.png',
26+
src: 'web-app-manifest-512x512.png',
2727
sizes: '512x512',
28-
type: 'image/png'
28+
type: 'image/png',
29+
purpose: 'any maskable'
2930
}
3031
]
3132
}

0 commit comments

Comments
 (0)