Skip to content

Commit ce2aeea

Browse files
committed
fix bug counting thumbupdown wrong
1 parent f4beb14 commit ce2aeea

File tree

9 files changed

+1079
-1030
lines changed

9 files changed

+1079
-1030
lines changed

README-EN.md

Lines changed: 92 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,93 @@
1-
# Mobile App for BYR BBS
2-
[bbs.byr.cn](https://bbs.byr.cn)
3-
4-
[中文](README.md)|EN
5-
6-
## Compile and Run
7-
- Install [Flutter](https://flutter.dev/docs/get-started/), version 1.17.5
8-
- Configure Secrets
9-
- Apply for *clientID**OAuth URL**identifier*, etc under [open api board](https://bbs.byr.cn/#!board/BBSOpenAPI) of BYR BBS
10-
- Create a new repository of name *Secrets* with following project structure
11-
```
12-
lib/secrets.dart
13-
pubspec.yaml
14-
```
15-
Save the following content in ```lib/secrets.dart```, fields start with ! should be acquired from BBS Admin mentioned above
16-
```
17-
class Secrets {
18-
static const String clientID = !CLIENT ID
19-
static const String appleID = APPLE ID
20-
static const String bundleID = BUNDLE ID
21-
static const String identifier = !IDENTIFIER
22-
static const String welcomeSalt = !WELCOME SALT
23-
static const String tokenDir = !OAUTH URL
24-
static const String androidDevUpdateLink = ANDROID APP DEV UPDATE LINK
25-
static const String androidStableUpdateLink = ANDROID APP STABLE UPDATE LINK
26-
static const String androidVersionsLink = ANDROID VERSIONS LINK
27-
}
28-
```
29-
- replace the following content in ```/pubspec.yaml``` of this repository with the URL of the repository from above step
30-
```
31-
secrets:
32-
git:
33-
url: ssh://[email protected]/BYR-App-Dev/secrets.git
34-
```
35-
- Run ```flutter pub get``` under the root of project to fetch dependencies
36-
- Run application
37-
- Debug ```flutter run --debug```
38-
- Release ```flutter run --release```
39-
- Build iOS ```./ios_build_cmd.sh```
40-
- Build Android ```./android_build_cmd.sh```
41-
42-
## Project Structure
43-
- [resources/](resources/)
44-
- resources files
45-
- [lib/](lib/)
46-
- [configurations/](lib/configurations/) configurations of the app
47-
- [customizations/](lib/customizations/) customizations, e.g. themes, languages
48-
- [data_structures/](lib/data_structures/) internal data classes
49-
- [helper/](lib/helper/) helper functions
50-
- [local_objects/](lib/local_objects/) local data storage
51-
- [networking/](lib/networking/) network requests
52-
- [nforum/](lib/nforum/) NForum API related functions and data models
53-
- [pages/](lib/pages/) page classes
54-
- [reusable_components/](lib/reusable_components/) components used in pages
55-
- [shared_objects/](lib/shared_objects/) shared objects in runtime
56-
- [tasks/](lib/tasks/) tasks during startup
57-
- [main.dart](lib/main.dart) entry of the app
58-
59-
## Open Source Library Credits
60-
- [hive](https://pub.dev/packages/hive)
61-
- [get](https://pub.dev/packages/get)
62-
- [flutter_cache_manager](https://pub.dev/packages/flutter_cache_manager)
63-
- [universal_platform](https://pub.dev/packages/universal_platform)
64-
- [transparent_image](https://pub.dev/packages/transparent_image)
65-
- [cached_network_image](https://pub.dev/packages/cached_network_image)
66-
- [font_awesome_flutter](https://pub.dev/packages/font_awesome_flutter)
67-
- [pull_to_refresh](https://pub.dev/packages/pull_to_refresh)
68-
- [flutter_gifimage](https://pub.dev/packages/flutter_gifimage)
69-
- [shimmer](https://pub.dev/packages/shimmer)
70-
- [qr_flutter](https://pub.dev/packages/qr_flutter)
71-
- [fast_gbk](https://pub.dev/packages/fast_gbk)
72-
- [image_picker](https://pub.dev/packages/image_picker)
73-
- [extended_text_field](https://pub.dev/packages/extended_text_field)
74-
- [extended_image](https://pub.dev/packages/extended_image)
75-
- [audioplayers](https://pub.dev/packages/audioplayers)
76-
- [file_picker](https://pub.dev/packages/file_picker)
77-
- [permission_handler](https://pub.dev/packages/permission_handler)
78-
- [flutter_audio_recorder](https://pub.dev/packages/flutter_audio_recorder)
79-
- [flutter_staggered_grid_view](https://pub.dev/packages/flutter_staggered_grid_view)
80-
- [flutter_icons](https://pub.dev/packages/flutter_icons)
81-
- [ota_update](https://pub.dev/packages/ota_update)
82-
- [uni_links](https://pub.dev/packages/uni_links)
83-
- [modal_bottom_sheet](https://pub.dev/packages/modal_bottom_sheet)
84-
- [toast](https://pub.dev/packages/toast)
85-
- [speech_recognition](https://pub.dev/packages/speech_recognition)
86-
- [like_button](https://pub.dev/packages/like_button)
87-
- [gallery_saver](https://pub.dev/packages/gallery_saver)
88-
- [scroll_to_index](https://pub.dev/packages/scroll_to_index)
89-
- [tinycolor](https://pub.dev/packages/tinycolor)
90-
- [filesize](https://pub.dev/packages/filesize)
91-
- [screenshot](https://pub.dev/packages/screenshot)
92-
- [overlay_widget](https://takeroro.github.io/2019/07/28/Flutter-Overlay/)
1+
# Mobile App for BYR BBS
2+
[bbs.byr.cn](https://bbs.byr.cn)
3+
4+
[中文](README.md)|EN
5+
6+
## Compile and Run
7+
- Install [Flutter](https://flutter.dev/docs/get-started/), version ^2.2.0
8+
- Configure Secrets
9+
- Apply for *clientID**OAuth URL**identifier*, etc under [open api board](https://bbs.byr.cn/#!board/BBSOpenAPI) of BYR BBS
10+
- Create a new repository of name *Secrets* with following project structure
11+
```
12+
lib/secrets.dart
13+
pubspec.yaml
14+
```
15+
Save the following content in ```lib/secrets.dart```, fields start with ! should be acquired from BBS Admin mentioned above
16+
```
17+
class Secrets {
18+
static const String clientID = !CLIENT ID
19+
static const String appleID = APPLE ID
20+
static const String bundleID = BUNDLE ID
21+
static const String identifier = !IDENTIFIER
22+
static const String welcomeSalt = !WELCOME SALT
23+
static const String tokenDir = !OAUTH URL
24+
static const String androidDevUpdateLink = ANDROID APP DEV UPDATE LINK
25+
static const String androidStableUpdateLink = ANDROID APP STABLE UPDATE LINK
26+
static const String androidVersionsLink = ANDROID VERSIONS LINK
27+
}
28+
```
29+
- replace the following content in ```/pubspec.yaml``` of this repository with the URL of the repository from above step
30+
```
31+
secrets:
32+
git:
33+
url: ssh://[email protected]/BYR-App-Dev/secrets.git
34+
```
35+
- Run ```flutter pub get``` under the root of project to fetch dependencies
36+
- Run application
37+
- Debug ```flutter run --debug```
38+
- Release ```flutter run --release```
39+
- Build iOS ```./ios_build_cmd.sh```
40+
- Build Android ```./android_build_cmd.sh```
41+
42+
## Project Structure
43+
- [resources/](resources/)
44+
- resources files
45+
- [lib/](lib/)
46+
- [configurations/](lib/configurations/) configurations of the app
47+
- [customizations/](lib/customizations/) customizations, e.g. themes, languages
48+
- [data_structures/](lib/data_structures/) internal data classes
49+
- [helper/](lib/helper/) helper functions
50+
- [local_objects/](lib/local_objects/) local data storage
51+
- [networking/](lib/networking/) network requests
52+
- [nforum/](lib/nforum/) NForum API related functions and data models
53+
- [pages/](lib/pages/) page classes
54+
- [reusable_components/](lib/reusable_components/) components used in pages
55+
- [shared_objects/](lib/shared_objects/) shared objects in runtime
56+
- [tasks/](lib/tasks/) tasks during startup
57+
- [main.dart](lib/main.dart) entry of the app
58+
59+
## Open Source Library Credits
60+
- [hive](https://pub.dev/packages/hive)
61+
- [get](https://pub.dev/packages/get)
62+
- [flutter_cache_manager](https://pub.dev/packages/flutter_cache_manager)
63+
- [universal_platform](https://pub.dev/packages/universal_platform)
64+
- [transparent_image](https://pub.dev/packages/transparent_image)
65+
- [cached_network_image](https://pub.dev/packages/cached_network_image)
66+
- [font_awesome_flutter](https://pub.dev/packages/font_awesome_flutter)
67+
- [pull_to_refresh](https://pub.dev/packages/pull_to_refresh)
68+
- [flutter_gifimage](https://pub.dev/packages/flutter_gifimage)
69+
- [shimmer](https://pub.dev/packages/shimmer)
70+
- [qr_flutter](https://pub.dev/packages/qr_flutter)
71+
- [fast_gbk](https://pub.dev/packages/fast_gbk)
72+
- [image_picker](https://pub.dev/packages/image_picker)
73+
- [extended_text_field](https://pub.dev/packages/extended_text_field)
74+
- [extended_image](https://pub.dev/packages/extended_image)
75+
- [audioplayers](https://pub.dev/packages/audioplayers)
76+
- [file_picker](https://pub.dev/packages/file_picker)
77+
- [permission_handler](https://pub.dev/packages/permission_handler)
78+
- [flutter_audio_recorder](https://pub.dev/packages/flutter_audio_recorder)
79+
- [flutter_staggered_grid_view](https://pub.dev/packages/flutter_staggered_grid_view)
80+
- [flutter_icons](https://pub.dev/packages/flutter_icons)
81+
- [ota_update](https://pub.dev/packages/ota_update)
82+
- [uni_links](https://pub.dev/packages/uni_links)
83+
- [modal_bottom_sheet](https://pub.dev/packages/modal_bottom_sheet)
84+
- [toast](https://pub.dev/packages/toast)
85+
- [speech_recognition](https://pub.dev/packages/speech_recognition)
86+
- [like_button](https://pub.dev/packages/like_button)
87+
- [gallery_saver](https://pub.dev/packages/gallery_saver)
88+
- [scroll_to_index](https://pub.dev/packages/scroll_to_index)
89+
- [tinycolor](https://pub.dev/packages/tinycolor)
90+
- [filesize](https://pub.dev/packages/filesize)
91+
- [screenshot](https://pub.dev/packages/screenshot)
92+
- [overlay_widget](https://takeroro.github.io/2019/07/28/Flutter-Overlay/)
9393
- [pull_to_refresh_notification](https://pub.dev/packages/pull_to_refresh_notification)

README.md

Lines changed: 92 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,93 @@
1-
# 北邮人论坛手机客户端
2-
[bbs.byr.cn](https://bbs.byr.cn)
3-
4-
中文|[EN](README-EN.md)
5-
6-
## 编译并运行
7-
- 安装[Flutter](https://flutter.dev/docs/get-started/),中国大陆地区用户可访问[官方中国大陆地区网站](https://flutter.cn/docs/get-started/)版本1.17.5
8-
- 配置Secrets
9-
- 在北邮人论坛[相关版面](https://bbs.byr.cn/#!board/BBSOpenAPI)申请*clientID**认证链接**identifier*等信息
10-
- 新建一个私有仓库命名为*Secrets*包含如下文件结构
11-
```
12-
lib/secrets.dart
13-
pubspec.yaml
14-
```
15-
在```lib/secrets.dart```保存如下内容,!起始的是需要向论坛管理员申请的内容
16-
```
17-
class Secrets {
18-
static const String clientID = !CLIENT ID
19-
static const String appleID = APPLE ID
20-
static const String bundleID = BUNDLE ID
21-
static const String identifier = !IDENTIFIER
22-
static const String welcomeSalt = !WELCOME SALT
23-
static const String tokenDir = !OAUTH URL
24-
static const String androidDevUpdateLink = ANDROID APP DEV UPDATE LINK
25-
static const String androidStableUpdateLink = ANDROID APP STABLE UPDATE LINK
26-
static const String androidVersionsLink = ANDROID VERSIONS LINK
27-
}
28-
```
29-
- 替换此项目```/pubspec.yaml```的如下内容为上步所建仓库的URL
30-
```
31-
secrets:
32-
git:
33-
url: ssh://[email protected]/BYR-App-Dev/secrets.git
34-
```
35-
- 项目根目录执行```flutter pub get```以获取依赖
36-
- 运行
37-
- Debug ```flutter run --debug```
38-
- Release ```flutter run --release```
39-
- Build iOS ```./ios_build_cmd.sh```
40-
- Build Android ```./android_build_cmd.sh```
41-
42-
## 项目文件结构
43-
- [resources/](resources/)
44-
- 项目相关的资源文件
45-
- [lib/](lib/)
46-
- [configurations/](lib/configurations/) 应用的配置
47-
- [customizations/](lib/customizations/) 应用的定制化 如配色、语言等
48-
- [data_structures/](lib/data_structures/) 应用内部用到的数据类
49-
- [helper/](lib/helper/) 辅助性函数
50-
- [local_objects/](lib/local_objects/) 本地数据存储
51-
- [networking/](lib/networking/) 网络请求函数
52-
- [nforum/](lib/nforum/) NForum接口相关的函数和数据类
53-
- [pages/](lib/pages/) 页面显示相关类
54-
- [reusable_components/](lib/reusable_components/) 在页面中使用的组件
55-
- [shared_objects/](lib/shared_objects/) 运行时应用内共享的数据
56-
- [tasks/](lib/tasks/) 应用启动时的任务
57-
- [main.dart](lib/main.dart) 应用入口
58-
59-
## 使用的开源库
60-
- [hive](https://pub.dev/packages/hive)
61-
- [get](https://pub.dev/packages/get)
62-
- [flutter_cache_manager](https://pub.dev/packages/flutter_cache_manager)
63-
- [universal_platform](https://pub.dev/packages/universal_platform)
64-
- [transparent_image](https://pub.dev/packages/transparent_image)
65-
- [cached_network_image](https://pub.dev/packages/cached_network_image)
66-
- [font_awesome_flutter](https://pub.dev/packages/font_awesome_flutter)
67-
- [pull_to_refresh](https://pub.dev/packages/pull_to_refresh)
68-
- [flutter_gifimage](https://pub.dev/packages/flutter_gifimage)
69-
- [shimmer](https://pub.dev/packages/shimmer)
70-
- [qr_flutter](https://pub.dev/packages/qr_flutter)
71-
- [fast_gbk](https://pub.dev/packages/fast_gbk)
72-
- [image_picker](https://pub.dev/packages/image_picker)
73-
- [extended_text_field](https://pub.dev/packages/extended_text_field)
74-
- [extended_image](https://pub.dev/packages/extended_image)
75-
- [audioplayers](https://pub.dev/packages/audioplayers)
76-
- [file_picker](https://pub.dev/packages/file_picker)
77-
- [permission_handler](https://pub.dev/packages/permission_handler)
78-
- [flutter_audio_recorder](https://pub.dev/packages/flutter_audio_recorder)
79-
- [flutter_staggered_grid_view](https://pub.dev/packages/flutter_staggered_grid_view)
80-
- [flutter_icons](https://pub.dev/packages/flutter_icons)
81-
- [ota_update](https://pub.dev/packages/ota_update)
82-
- [uni_links](https://pub.dev/packages/uni_links)
83-
- [modal_bottom_sheet](https://pub.dev/packages/modal_bottom_sheet)
84-
- [toast](https://pub.dev/packages/toast)
85-
- [speech_recognition](https://pub.dev/packages/speech_recognition)
86-
- [like_button](https://pub.dev/packages/like_button)
87-
- [gallery_saver](https://pub.dev/packages/gallery_saver)
88-
- [scroll_to_index](https://pub.dev/packages/scroll_to_index)
89-
- [tinycolor](https://pub.dev/packages/tinycolor)
90-
- [filesize](https://pub.dev/packages/filesize)
91-
- [screenshot](https://pub.dev/packages/screenshot)
92-
- [overlay_widget](https://takeroro.github.io/2019/07/28/Flutter-Overlay/)
1+
# 北邮人论坛手机客户端
2+
[bbs.byr.cn](https://bbs.byr.cn)
3+
4+
中文|[EN](README-EN.md)
5+
6+
## 编译并运行
7+
- 安装[Flutter](https://flutter.dev/docs/get-started/),中国大陆地区用户可访问[官方中国大陆地区网站](https://flutter.cn/docs/get-started/)版本^2.2.0
8+
- 配置Secrets
9+
- 在北邮人论坛[相关版面](https://bbs.byr.cn/#!board/BBSOpenAPI)申请*clientID**认证链接**identifier*等信息
10+
- 新建一个私有仓库命名为*Secrets*包含如下文件结构
11+
```
12+
lib/secrets.dart
13+
pubspec.yaml
14+
```
15+
在```lib/secrets.dart```保存如下内容,!起始的是需要向论坛管理员申请的内容
16+
```
17+
class Secrets {
18+
static const String clientID = !CLIENT ID
19+
static const String appleID = APPLE ID
20+
static const String bundleID = BUNDLE ID
21+
static const String identifier = !IDENTIFIER
22+
static const String welcomeSalt = !WELCOME SALT
23+
static const String tokenDir = !OAUTH URL
24+
static const String androidDevUpdateLink = ANDROID APP DEV UPDATE LINK
25+
static const String androidStableUpdateLink = ANDROID APP STABLE UPDATE LINK
26+
static const String androidVersionsLink = ANDROID VERSIONS LINK
27+
}
28+
```
29+
- 替换此项目```/pubspec.yaml```的如下内容为上步所建仓库的URL
30+
```
31+
secrets:
32+
git:
33+
url: ssh://[email protected]/BYR-App-Dev/secrets.git
34+
```
35+
- 项目根目录执行```flutter pub get```以获取依赖
36+
- 运行
37+
- Debug ```flutter run --debug```
38+
- Release ```flutter run --release```
39+
- Build iOS ```./ios_build_cmd.sh```
40+
- Build Android ```./android_build_cmd.sh```
41+
42+
## 项目文件结构
43+
- [resources/](resources/)
44+
- 项目相关的资源文件
45+
- [lib/](lib/)
46+
- [configurations/](lib/configurations/) 应用的配置
47+
- [customizations/](lib/customizations/) 应用的定制化 如配色、语言等
48+
- [data_structures/](lib/data_structures/) 应用内部用到的数据类
49+
- [helper/](lib/helper/) 辅助性函数
50+
- [local_objects/](lib/local_objects/) 本地数据存储
51+
- [networking/](lib/networking/) 网络请求函数
52+
- [nforum/](lib/nforum/) NForum接口相关的函数和数据类
53+
- [pages/](lib/pages/) 页面显示相关类
54+
- [reusable_components/](lib/reusable_components/) 在页面中使用的组件
55+
- [shared_objects/](lib/shared_objects/) 运行时应用内共享的数据
56+
- [tasks/](lib/tasks/) 应用启动时的任务
57+
- [main.dart](lib/main.dart) 应用入口
58+
59+
## 使用的开源库
60+
- [hive](https://pub.dev/packages/hive)
61+
- [get](https://pub.dev/packages/get)
62+
- [flutter_cache_manager](https://pub.dev/packages/flutter_cache_manager)
63+
- [universal_platform](https://pub.dev/packages/universal_platform)
64+
- [transparent_image](https://pub.dev/packages/transparent_image)
65+
- [cached_network_image](https://pub.dev/packages/cached_network_image)
66+
- [font_awesome_flutter](https://pub.dev/packages/font_awesome_flutter)
67+
- [pull_to_refresh](https://pub.dev/packages/pull_to_refresh)
68+
- [flutter_gifimage](https://pub.dev/packages/flutter_gifimage)
69+
- [shimmer](https://pub.dev/packages/shimmer)
70+
- [qr_flutter](https://pub.dev/packages/qr_flutter)
71+
- [fast_gbk](https://pub.dev/packages/fast_gbk)
72+
- [image_picker](https://pub.dev/packages/image_picker)
73+
- [extended_text_field](https://pub.dev/packages/extended_text_field)
74+
- [extended_image](https://pub.dev/packages/extended_image)
75+
- [audioplayers](https://pub.dev/packages/audioplayers)
76+
- [file_picker](https://pub.dev/packages/file_picker)
77+
- [permission_handler](https://pub.dev/packages/permission_handler)
78+
- [flutter_audio_recorder](https://pub.dev/packages/flutter_audio_recorder)
79+
- [flutter_staggered_grid_view](https://pub.dev/packages/flutter_staggered_grid_view)
80+
- [flutter_icons](https://pub.dev/packages/flutter_icons)
81+
- [ota_update](https://pub.dev/packages/ota_update)
82+
- [uni_links](https://pub.dev/packages/uni_links)
83+
- [modal_bottom_sheet](https://pub.dev/packages/modal_bottom_sheet)
84+
- [toast](https://pub.dev/packages/toast)
85+
- [speech_recognition](https://pub.dev/packages/speech_recognition)
86+
- [like_button](https://pub.dev/packages/like_button)
87+
- [gallery_saver](https://pub.dev/packages/gallery_saver)
88+
- [scroll_to_index](https://pub.dev/packages/scroll_to_index)
89+
- [tinycolor](https://pub.dev/packages/tinycolor)
90+
- [filesize](https://pub.dev/packages/filesize)
91+
- [screenshot](https://pub.dev/packages/screenshot)
92+
- [overlay_widget](https://takeroro.github.io/2019/07/28/Flutter-Overlay/)
9393
- [pull_to_refresh_notification](https://pub.dev/packages/pull_to_refresh_notification)

0 commit comments

Comments
 (0)