Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
CS-Tao committed Jan 6, 2020
2 parents c914175 + 873a6d5 commit 824d7c2
Show file tree
Hide file tree
Showing 13 changed files with 34 additions and 23 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

> 武汉大学图书馆抢座软件 - 桌面端
> Android 版本[https://github.com/CS-Tao/whu-library-seat-mobile](https://github.com/CS-Tao/whu-library-seat-mobile)
> 移动端[https://github.com/CS-Tao/whu-library-seat-mobile](https://github.com/CS-Tao/whu-library-seat-mobile)
## 使用说明

Expand All @@ -23,9 +23,9 @@

### 最新版本下载

[![Windows 版本下载链接 v1.9.2](https://img.shields.io/badge/v1.9.2-Windows-limegreen.svg)](https://github.com/CS-Tao/whu-library-seat/releases/download/v1.9.2/whu-library-seat-setup-1.9.2.exe)
[![Mac OS 版本下载链接 v1.9.2](https://img.shields.io/badge/v1.9.2-Mac%20OS-limegreen.svg)](https://github.com/CS-Tao/whu-library-seat/releases/download/v1.9.2/whu-library-seat-1.9.2.dmg)
[![Linux 版本下载链接 v1.9.2](https://img.shields.io/badge/v1.9.2-Linux-limegreen.svg)](https://github.com/CS-Tao/whu-library-seat/releases/download/v1.9.2/whu-library-seat-1.9.2-x86_64.AppImage)
[![Windows 版本下载链接 v1.9.3](https://img.shields.io/badge/v1.9.3-Windows-limegreen.svg)](https://github.com/CS-Tao/whu-library-seat/releases/download/v1.9.3/whu-library-seat-setup-1.9.3.exe)
[![Mac OS 版本下载链接 v1.9.3](https://img.shields.io/badge/v1.9.3-Mac%20OS-limegreen.svg)](https://github.com/CS-Tao/whu-library-seat/releases/download/v1.9.3/whu-library-seat-1.9.3.dmg)
[![Linux 版本下载链接 v1.9.3](https://img.shields.io/badge/v1.9.3-Linux-limegreen.svg)](https://github.com/CS-Tao/whu-library-seat/releases/download/v1.9.3/whu-library-seat-1.9.3-x86_64.AppImage)

### 安装软件

Expand Down
6 changes: 3 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ footer: Copyright © since 2018 CS-Tao

- 桌面端

[![桌面端下载链接](https://img.shields.io/badge/下载链接-Windows%20/%20MacOS%20/%20Linux-limegreen.svg)](https://github.com/CS-Tao/whu-library-seat#最新版本下载)
[![桌面端下载链接](https://img.shields.io/badge/下载链接-Windows%20/%20MacOS%20/%20Linux-limegreen.svg)](https://github.com/CS-Tao/whu-library-seat/blob/master/README.md#最新版本下载)

- 移动端

[![移动端下载链接](https://img.shields.io/badge/下载链接-Android-limegreen.svg)](https://github.com/CS-Tao/whu-library-seat#最新版本下载)
[![移动端下载链接](https://img.shields.io/badge/下载链接-Android-limegreen.svg)](https://github.com/CS-Tao/whu-library-seat-mobile/blob/master/README.md#最新版本下载)

二维码:

![安卓版本二维码](https://raw.githubusercontent.com/CS-Tao/whu-library-seat/user-validation/last-android-qr.jpg)
![安卓版本二维码](https://home.cs-tao.cc/github-content/contents/github/whu-library-seat/user-validation/last-android-qr.jpg)

#### 用户认证

Expand Down
2 changes: 2 additions & 0 deletions docs/project/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
next: false
---
# 项目说明

:::tip
本页面针对开发者
:::
Expand Down
13 changes: 5 additions & 8 deletions docs/specification/README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
# 快速使用

## 下载软件

本软件是针对`武汉大学`图书馆预约系统开发的抢座软件,支持 Windows、Mac OS、Linux、Android 等操作系统

- 桌面端

[![桌面端下载链接](https://img.shields.io/badge/下载链接-Windows%20/%20MacOS%20/%20Linux-limegreen.svg)](https://github.com/CS-Tao/whu-library-seat#最新版本下载)

<!-- 安装包链接: [https://github.com/CS-Tao/whu-library-seat#最新版本下载](https://github.com/CS-Tao/whu-library-seat#最新版本下载) -->
[![桌面端下载链接](https://img.shields.io/badge/下载链接-Windows%20/%20MacOS%20/%20Linux-limegreen.svg)](https://github.com/CS-Tao/whu-library-seat/blob/master/README.md#最新版本下载)

- 移动端

[![移动端下载链接](https://img.shields.io/badge/下载链接-Android-limegreen.svg)](https://github.com/CS-Tao/whu-library-seat#最新版本下载)

<!-- 安装包链接:[https://github.com/CS-Tao/whu-library-seat-mobile#最新版本下载](https://github.com/CS-Tao/whu-library-seat-mobile#最新版本下载) -->
[![移动端下载链接](https://img.shields.io/badge/下载链接-Android-limegreen.svg)](https://github.com/CS-Tao/whu-library-seat-mobile/blob/master/README.md#最新版本下载)

二维码:

![安卓版本二维码](https://raw.githubusercontent.com/CS-Tao/whu-library-seat/user-validation/last-android-qr.jpg)
![安卓版本二维码](https://home.cs-tao.cc/github-content/contents/github/whu-library-seat/user-validation/last-android-qr.jpg)

## 安装软件

Expand All @@ -26,7 +24,6 @@

> v1.8.0 已移除本功能,改为 GitHub Star 认证,具体请查看 [GitHub Star 认证](./auth.html)

## 软件更新

![图片加载失败](https://home.cs-tao.cc/github-content/contents/github/whu-library-seat/update.png)
Expand Down
2 changes: 2 additions & 0 deletions docs/specification/menu.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# 菜单说明

:::warning 注意
本页面针对桌面端
:::
Expand Down
2 changes: 1 addition & 1 deletion docs/specification/monitor.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### 座位监控
# 座位监控

#### 功能说明

Expand Down
2 changes: 2 additions & 0 deletions docs/specification/others.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# 其他功能

### 查看个人信息

登录成功后,点击软件下方的用户按钮,可以查看您的个人信息
Expand Down
2 changes: 1 addition & 1 deletion docs/specification/protect.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### 座位保护
# 座位保护

出馆前可设置一段时间后更改此座位的时间,即通过定时执行"座位更改"功能实现座位保护

Expand Down
2 changes: 2 additions & 0 deletions docs/specification/reservation.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# 定时预约

## 登录到图书馆

启动软件,输入用户名和密码(点击输入框旁边的小锁图标可以保存用户名或密码),点击`登录`按钮登录到图书馆
Expand Down
2 changes: 2 additions & 0 deletions docs/specification/seatoperate.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# 位置操作

## 取消预约

`预约历史`界面,如果您有处于`预约`状态的座位,可以点击对应记录后面的`取消预约`的按钮取消预约
Expand Down
2 changes: 2 additions & 0 deletions docs/specification/settings.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# 软件设置

### 进入设置界面

启动程序,在未登录的状态下,点击软件右上角的设置按钮即可进入设置界面
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "whu-library-seat",
"version": "1.9.2",
"version": "1.9.3",
"author": "CS-Tao <whucstao@qq.com>",
"description": "武汉大学图书馆抢座软件",
"license": null,
Expand All @@ -24,7 +24,7 @@
"postinstall": "npm run lint:fix"
},
"build": {
"productName": "whu-library-seat",
"productName": "图书馆助手",
"appId": "cc.cs-tao.whu-library-seat",
"directories": {
"output": "build"
Expand All @@ -36,6 +36,7 @@
"static"
],
"dmg": {
"artifactName": "${name}-${version}.${ext}",
"contents": [
{
"x": 410,
Expand All @@ -51,12 +52,15 @@
]
},
"mac": {
"artifactName": "${name}-${version}-${os}.${ext}",
"icon": "build/icons/icon.icns"
},
"win": {
"artifactName": "${name}-${version}.${ext}",
"icon": "build/icons/icon.ico"
},
"linux": {
"artifactName": "${name}-${version}-${arch}.${ext}",
"icon": "build/icons"
}
},
Expand Down
6 changes: 2 additions & 4 deletions src/renderer/api/usage.api.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ const appVersion = remote.app.getVersion()
export default {
// 登录状态
loginState: (account, state, code, message = null) => {
// let usageRecordEnable = store.get('usageRecordEnable', true)
var usageRecordEnable = false
let usageRecordEnable = store.get('usageRecordEnable', true)
if (usageRecordEnable) {
let githubUserInfo = store.get('authInfo_githubUserInfo', null)
let githubid = (githubUserInfo && githubUserInfo.id) ? githubUserInfo.id : null
Expand All @@ -47,8 +46,7 @@ export default {
},
// 抢座状态
grabState: (account, state, code, message = null) => {
// let usageRecordEnable = store.get('usageRecordEnable', true)
var usageRecordEnable = false
let usageRecordEnable = store.get('usageRecordEnable', true)
if (usageRecordEnable) {
let githubUserInfo = store.get('authInfo_githubUserInfo', null)
let githubid = (githubUserInfo && githubUserInfo.id) ? githubUserInfo.id : null
Expand Down

0 comments on commit 824d7c2

Please sign in to comment.