Commit 39b4dfd5 authored by Sparkf's avatar Sparkf 🏙️ Committed by GitHub
Browse files

Merge pull request #44 from SUSTC/vuepress2

Update to vuepress2
parents 7a517dbb 901e84ea
Loading
Loading
Loading
Loading

docs/.gitignore

0 → 100644
+2 −0
Original line number Diff line number Diff line
.temp
.cache
+155 −45
Original line number Diff line number Diff line
@@ -45,51 +45,117 @@ module.exports = {
  ],
  plugins: [
    // [
    //   '@vuepress/google-analytics',
    //   '@vuepress/plugin-search',
    //   {
    //     'ga': 'G-1BQBXDGY3R' // UA-00000000-0
    //     locales: {
    //       '/': {
    //         placeholder: 'Search',
    //       },
    //       '/zh/': {
    //         placeholder: '搜索',
    //       },
    //     },
    //   },
    // ],
    'fulltext-search',
    '@vuepress/medium-zoom',
    '@vuepress/nprogress',
    '@vuepress/back-to-top',
    [
      '@vuepress/pwa',
      '@vuepress/plugin-docsearch',
      {
        serviceWorker: true,
        updatePopup: {
          message: "手册内容有更新!",
          buttonText: "刷新"
        appId: '72QKXPCF9X',
        apiKey: '552989af61cfaf1e2d114956c326aef1',
        indexName: 'sustech-online-vp2',
        locales: {
          '/': {
            placeholder: 'Search Documentation',
          },
          '/zh/': {
            placeholder: '搜索文档',
          },
        },
        generateSWConfig: {
          importWorkboxFrom: 'local'
        }
      },
    ],
    [
      '@vuepress/last-updated',
      '@vuepress/plugin-google-analytics',
      {
        transformer: (timestamp, lang) => {
          // 不要忘了安装 moment
          const moment = require('moment')
          moment.locale(lang)
          return moment(timestamp).format("YYYY-MM-DD HH:mm")
        id: 'G-1BQBXDGY3R',
      },
    ],
    '@vuepress/medium-zoom',
    [
      '@vuepress/plugin-pwa',
      {
        skipWaiting: true,
      },
      {
      generateSWConfig: {
        importWorkboxFrom: 'local'
      }
    }
      
    ],
    [
      'sitemap',
      '@vuepress/plugin-pwa-popup',
      {
        hostname: 'https://sustech.online'
        locales: {
          '/': {
            message: 'New content is available.',
            buttonText: 'Refresh',
          },
          '/zh/': {
            message: '发现新内容可用',
            buttonText: '刷新',
          },
        },
      },
    ],
    '@vuepress/plugin-nprogress',
    '@vuepress/back-to-top',
    '@vuepress/plugin-git',
    // [
    //   '@vuepress/google-analytics',
    //   {
    //     'ga': 'G-1BQBXDGY3R' // UA-00000000-0
    //   },
    // ],
  //   'fulltext-search',
  //   '@vuepress/medium-zoom',
  //   '@vuepress/nprogress',
  //   '@vuepress/back-to-top',
  //   [
  //     '@vuepress/pwa',
  //     {
  //       serviceWorker: true,
  //       updatePopup: {
  //         message: "手册内容有更新!",
  //         buttonText: "刷新"
  //       },
  //       generateSWConfig: {
  //         importWorkboxFrom: 'local'
  //       }
  //     },
  //   ],
  //   [
  //     '@vuepress/last-updated',
  //     {
  //       transformer: (timestamp, lang) => {
  //         // 不要忘了安装 moment
  //         const moment = require('moment')
  //         moment.locale(lang)
  //         return moment(timestamp).format("YYYY-MM-DD HH:mm")
  //       },
  //     },
  //   ],
  //   [
  //     'sitemap',
  //     {
  //       hostname: 'https://sustech.online'
  //     },
  //   ],
  ],
  theme: 'default-prefers-color-scheme',
  // theme: 'default-prefers-color-scheme',
  themeConfig: {
    nav: [
    navbar: [
      { text: '主页', link: '/' },
      { text: '关于', link: '/about/' },
      { text: '关于', link: '/about.md' },
      { text: '站点帮助', link: '/site-help/' },
      { text: '更新日志', link: '/news/' },
    ],
@@ -106,37 +172,81 @@ module.exports = {
      '/facility/',
      '/contact/',
      {
        title: '📅校历',   // 必要的
        path: '/calendar/',      // 可选的, 标题的跳转链接,应为绝对路径且必须存在
        // collapsable: false, // 可选的, 默认值是 true,
        sidebarDepth: 1,    // 可选的, 默认值是 1
        text: '📅校历',
        link: '/calendar/',
        children: [
          ['/calendar/', '2020-2021 学年'],
          // SidebarItem
          {
            title: '历史校历(存档)',
            text: '历史校历(存档)',
            children: [
              ['/calendar/2021-2022.md', '2021-2022 学年'],
              ['/calendar/2020-2021.md', '2020-2021 学年'],
              ['/calendar/2019-2020.md', '2019-2020 学年'],
              ['/calendar/2018-2019.md', '2018-2019 学年'],
              {
                text: '2021-2022 学年',
                link: '/calendar/2021-2022.md',
                children: [],
              },
              {
                text: '2020-2021 学年',
                link: '/calendar/2020-2021.md',
                children: [],
              },
            ]
          }
          },
        ],
      },
      // {
      //   title: '📅校历',   // 必要的
      //   path: '/calendar/',      // 可选的, 标题的跳转链接,应为绝对路径且必须存在
      //   // collapsable: false, // 可选的, 默认值是 true,
      //   sidebarDepth: 1,    // 可选的, 默认值是 1
      //   children: [
      //     ['/calendar/', '2020-2021 学年'],
      //     {
      //       title: '历史校历(存档)',
      //       children: [
      //         ['/calendar/2021-2022.md', '2021-2022 学年'],
      //         ['/calendar/2020-2021.md', '2020-2021 学年'],
      //         ['/calendar/2019-2020.md', '2019-2020 学年'],
      //         ['/calendar/2018-2019.md', '2018-2019 学年'],
      //       ]
      //     }
      //   ],
      // },
      '/service/',
      '/life/',
      '/study/',
      '/organizations/',
      '/media/',
      // {
      //   title: '🚄交通',   // 必要的
      //   path: '/transport/',      // 可选的, 标题的跳转链接,应为绝对路径且必须存在
      //   // collapsable: false, // 可选的, 默认值是 true,
      //   sidebarDepth: 1,    // 可选的, 默认值是 1
      //   children: [
      //     ['/transport/workday.md', '🚌校园巴士-工作日'],
      //     ['/transport/holiday.md', '🚌校园巴士-节假日'],
      //     ['/transport/', '周围交通'],
      //   ],
      // },
      {
        title: '🚄交通',   // 必要的
        path: '/transport/',      // 可选的, 标题的跳转链接,应为绝对路径且必须存在
        // collapsable: false, // 可选的, 默认值是 true,
        sidebarDepth: 1,    // 可选的, 默认值是 1
        text: '🚄交通',
        link: '/transport/',
        children: [
          ['/transport/workday.md', '🚌校园巴士-工作日'],
          ['/transport/holiday.md', '🚌校园巴士-节假日'],
          ['/transport/', '周围交通'],
          // SidebarItem
          {
            text: '🚌校园巴士-工作日',
            link: '/transport/workday.md',
            children: [],
          },
          {
            text: '🚌校园巴士-节假日',
            link: '/transport/holiday.md',
            children: [],
          },
          {
            text: '周围交通',
            link: '/transport/',
            children: [],
          },
        ],
      },      
      '/surroundings/',
+2 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
    移动端须点击左上角, 打开目录。<br>
    <br>
    <a href="/about" target="_blank" rel="noopener noreferrer">内容有问题?<br>功能提建议?<br>手册招维护!</a></th>
    <th class="tg-baqh">微信小程序 - 南科手册Times<br><img src="./qr-code.jpg"  max-width="200"/><br>
    <th class="tg-baqh">微信小程序 - 南科手册Times<br><img src="qr-code.jpg"  max-width="200"/><br>
    微信小程序无法跳转到第三方链接,体验完整版请访问 https://sustech.online。</th>
  </tr>
</thead>
@@ -70,6 +70,7 @@


<div class="emergency"><p><a href="./emergency">遇到紧急情况?点击此处进入「应急处理」页面<svg aria-hidden="true" x="0px" y="0px" width="15" height="15" class="icon outbound"><use href="#link-icon" /></svg></a></p></div>

<style type="text/css">
div.emergency {
  border-style: solid;
+22 −22
Original line number Diff line number Diff line
@@ -77,19 +77,19 @@ sidebar: auto

3. 前往打印点打印文件:点击自助打印,转换页面后在感应区放置校园卡(若打印多张需多次放置)即可到打印机旁等待任务完成,取走文件。

<img src="./print-2.jpeg" width="400"/>
<img src="print-2.jpeg" width="400"/>

初始界面

<img src="./print-3.jpeg" width="400"/>
<img src="print-3.jpeg" width="400"/>

打印初始界面

<img src="./print-4.jpeg" width="400"/>
<img src="print-4.jpeg" width="400"/>

打印确认(多个任务需重复刷卡)

<img src="./print-5.jpeg" width="400"/>
<img src="print-5.jpeg" width="400"/>

打印成功界面

@@ -98,25 +98,25 @@ sidebar: auto
1. 携带校园卡及所需打印文件至打印点;
2. 点击自助复印,转换页面后在感应区放置校园卡,然后到打印机电子版面进行操作。

<img src="./copy-1.jpeg" width="400"/>
<img src="copy-1.jpeg" width="400"/>

3. 点击快速复印图标进入如下页面可对复印进行编辑,其中其他栏中包括缩小放大,双面复印,多合一等功能,在这里不做过多介绍,大家可以自行尝试。

<img src="./copy-2.jpeg" width="400"/>
<img src="copy-2.jpeg" width="400"/>

复印初始界面

4. 点击开始按键即可开始复印(注意:如若需要正反扫描,或是多合一时要在第一张扫描完成且屏幕上方弹出提示窗口后对文件进行手动翻面并再次点击开始图标)。

<img src="./copy-3.jpeg" width="400"/>
<img src="copy-3.jpeg" width="400"/>

其他栏

<img src="./copy-4.jpeg" width="400"/>
<img src="copy-4.jpeg" width="400"/>

双面(正反面复印)

<img src="./copy-5.jpeg" width="400"/>
<img src="copy-5.jpeg" width="400"/>

多合一(将所需复印的多面文件复印至单面)

@@ -134,27 +134,27 @@ sidebar: auto

3. 如果出来的是这个让人看起来就很绝望想把机器砸了的界面

    <img src="./unifound-1.jpeg" width="400"/>
    <img src="unifound-1.jpeg" width="400"/>

    先冷静一下,点击右边的 `简单画面` 。

    <img src="./unifound-2.jpeg" width="200"/>
    <img src="unifound-2.jpeg" width="200"/>

    然后就会变得很友好了:

    <img src="./unifound-3.jpeg" width="400"/>
    <img src="unifound-3.jpeg" width="400"/>

4. 清晰度设置

    点击左上角的 `扫描设置`,设置扫描清晰度,一般直接设成最高(600dpi):

    <img src="./unifound-4.png" width="400"/>
    <img src="unifound-4.png" width="400"/>

5. 设置文件类型

    点击左下角的 `文件类型`

    <img src="./unifound-5.jpeg" width="400"/>
    <img src="unifound-5.jpeg" width="400"/>

    * 单页:扫描结果会变成每份只有一面内容的 pdf 上传
    * 多页:扫描结果会合并成一个多面的 pdf 上传
@@ -163,29 +163,29 @@ sidebar: auto

6. 设置文件上传位置

    <img src="./unifound-6.jpeg" width="400"/>
    <img src="unifound-6.jpeg" width="400"/>

    文件夹 → SCAN

    文件会保存在你刷的校园卡的联创里,如图:

    <img src="./unifound-7.jpeg" width="400"/>
    <img src="unifound-7.jpeg" width="400"/>

    亦可选择直接发到自己的邮箱中,不过需要先再点击一开始的 `简单模式`,进入设置界面:

    <img src="./unifound-8.jpeg" width="400"/>
    <img src="unifound-8.jpeg" width="400"/>

    选择 `手动输入`,输入自己的邮箱

7. 点击机器上的开始

    <img src="./unifound-9.jpeg" width="100"/>
    <img src="unifound-9.jpeg" width="100"/>

8. 结束扫描

    需先点击 `#` 键,再刷卡退出

    <img src="./unifound-10.png" width="400"/>
    <img src="unifound-10.png" width="400"/>

### 富士机型

@@ -193,13 +193,13 @@ sidebar: auto

2.点击自助扫描,转换页面后在感应区放置校园卡,然后到打印机电子版面进行操作。

<img src="./scan-2-0.jpeg" width="400"/>
<img src="scan-2-0.jpeg" width="400"/>

扫描准备页面

3.点击快速扫描图标进入如下页面,点击目的地进行接收地址填写

<img src="./scan-2-1.jpeg" width="400"/>
<img src="scan-2-1.jpeg" width="400"/>

初始页面

@@ -209,7 +209,7 @@ sidebar: auto

6.页面转跳后进入初始页面,并可看到将要接收扫描邮件的电子邮箱。在此页面可设置扫描参数,并可继续添加电子邮件地址。确认无误后点击开始按键即开始扫描。

<img src="./scan-2-4.jpeg" width="400"/>
<img src="scan-2-4.jpeg" width="400"/>

## 参考资料

+2 −2
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
<div class='bt-sub'><a href="./holiday.html">💤 节假日</a></div>
</div>

<ClientOnly>
<!-- <ClientOnly> -->
<style>
.bt-sub {
    margin-top: 1%;
@@ -17,7 +17,7 @@
    text-align: center;
}
</style>
</ClientOnly>
<!-- </ClientOnly> -->

### 校园巴士实时位置<Badge text="Beta" type="tip"/>

Loading