tangning hace 10 meses
padre
commit
4bdbc0282b
Se han modificado 6 ficheros con 8 adiciones y 8 borrados
  1. 2 2
      .env
  2. 1 1
      build/vite/plugin/html.ts
  3. 1 1
      build/vite/plugin/pwa.ts
  4. 1 1
      src/hooks/setting/index.ts
  5. 1 1
      src/utils/env.ts
  6. 2 2
      src/utils/log.ts

+ 2 - 2
.env

@@ -2,7 +2,7 @@
 VITE_PORT = 3100
 
 # spa-title
-VITE_GLOB_APP_TITLE = '\& Meta'
+VITE_GLOB_APP_TITLE = 'Meta'
 
 # spa shortname
-VITE_GLOB_APP_SHORT_NAME = '\& Meta'
+VITE_GLOB_APP_SHORT_NAME = 'Meta'

+ 1 - 1
build/vite/plugin/html.ts

@@ -21,7 +21,7 @@ export function configHtmlPlugin(env: ViteEnv, isBuild: boolean) {
     inject: {
       // Inject data into ejs template
       data: {
-        title: VITE_GLOB_APP_TITLE,
+        title: '& Meta',
       },
       // Embed the generated app.config.js file
       tags: isBuild

+ 1 - 1
build/vite/plugin/pwa.ts

@@ -11,7 +11,7 @@ export function configPwaConfig(env: ViteEnv) {
     // vite-plugin-pwa
     const pwaPlugin = VitePWA({
       manifest: {
-        name: VITE_GLOB_APP_TITLE,
+        name: '& Meta',
         short_name: VITE_GLOB_APP_SHORT_NAME,
         icons: [
           {

+ 1 - 1
src/hooks/setting/index.ts

@@ -20,7 +20,7 @@ export const useGlobSetting = (): Readonly<GlobConfig> => {
 
   // Take global configuration
   const glob: Readonly<GlobConfig> = {
-    title: VITE_GLOB_APP_TITLE,
+    title: '& Meta',
     apiUrl: VITE_GLOB_API_URL,
     shortName: VITE_GLOB_APP_SHORT_NAME,
     urlPrefix: VITE_GLOB_API_URL_PREFIX,

+ 1 - 1
src/utils/env.ts

@@ -37,7 +37,7 @@ export function getAppEnvConfig() {
   }
 
   return {
-    VITE_GLOB_APP_TITLE,
+    '& Meta',
     VITE_GLOB_API_URL,
     VITE_GLOB_APP_SHORT_NAME,
     VITE_GLOB_API_URL_PREFIX,

+ 2 - 2
src/utils/log.ts

@@ -1,9 +1,9 @@
 const projectName = import.meta.env.VITE_GLOB_APP_TITLE;
 
 export function warn(message: string) {
-  console.warn(`[${projectName} warn]:${message}`);
+  console.warn(`[& Meta warn]:${message}`);
 }
 
 export function error(message: string) {
-  throw new Error(`[${projectName} error]:${message}`);
+  throw new Error(`[& Meta error]:${message}`);
 }