home icon indicating copy to clipboard operation
home copied to clipboard

Add: New

Open WavesMan opened this issue 1 year ago • 1 comments

  • 1.添加公安网备案号显示功能;
  • 2.添加时钟等宽字体支持(不支持LED字体);
  • 3.添加时钟可选字体功能

实现部分

  1. .env新增配置项:

    Line 39-46

    # 公安网备案号
    ## 若不需要,请设为空即可
    VITE_SITE_PSR = "皖公网安备34040002000514号"
    
    # 时间字体
    ## 默认值为 'UnidreamLED' ,使用该字体无法实现等宽字体,(注意字体名引号)
    ## 添加字体请在 .\public\font 添加字体文件
    VITE_TIME_FRONT = "'UnidreamLED'"
    
  2. ./src/components/Footer.vue实现页脚展示公安网备案号

    Line 30-36

    <!-- 添加:公安备案 -->
    <span>
      &amp;
        <a v-if="sitePsr" href="https://beian.mps.gov.cn/#/query/webSearch" target="_blank">
          {{ sitePsr }}
        </a>
    </span>
    

    Line 66-67

    // 添加:公安备案
    const sitePsr = ref(import.meta.env.VITE_SITE_PSR); 
    
  3. ./src/views/Func/index.vue实现时钟可选字体功能与等宽字体支持

    Line 52-53

    // 引入配置项
    const timefornt = ref(import.meta.env.VITE_TIME_FRONT); 
    

    Line 191-132

    font-family: v-bind(timefornt); 
    font-variant-numeric: tabular-nums; // 强制数字等宽
    

WavesMan avatar Apr 23 '25 12:04 WavesMan

@WavesMan is attempting to deploy a commit to the imsyy's projects Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Apr 23 '25 12:04 vercel[bot]