Skip to content

Commit

Permalink
Merge pull request #56 from just4fun/switch-to-https
Browse files Browse the repository at this point in the history
v1.7.3
  • Loading branch information
just4fun authored Aug 21, 2020
2 parents 8ff19ba + ee782f7 commit 9fc3521
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@

## What

An iOS client for http://bbs.uestc.edu.cn/ written in [react-native](https://facebook.github.io/react-native/), [redux](http://redux.js.org/) and [redux-observable](https://redux-observable.js.org/), which has been [recommended officially](http://bbs.uestc.edu.cn/forum.php?mod=viewthread&tid=1554255) as one of the best 3rd party iOS clients.
An iOS client for https://bbs.uestc.edu.cn/ written in [react-native](https://facebook.github.io/react-native/), [redux](http://redux.js.org/) and [redux-observable](https://redux-observable.js.org/), which has been [recommended officially](https://bbs.uestc.edu.cn/forum.php?mod=viewthread&tid=1554255) as one of the best 3rd party iOS clients.

APIs are provided by [appbyme/mobcent-discuz](https://github.com/appbyme/mobcent-discuz) and partly documented by [UESTC-BBS/API-Docs](https://github.com/UESTC-BBS/API-Docs/wiki/Mobcent-API).

## Status (v1.7.2)
## Status (v1.7.3)

[<img width="250" alt="download_on_the_app_store" src="https://user-images.githubusercontent.com/7512625/27969868-353f554c-637f-11e7-869d-3963933461ca.png">](https://itunes.apple.com/cn/app/qing-shui-he-pan-stuhome/id1190564355)

Expand Down
2 changes: 1 addition & 1 deletion ios/stuhome/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.7.2</string>
<string>1.7.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "stuhome",
"version": "1.7.2",
"description": "An iOS client for http://bbs.uestc.edu.cn/ written in react-native, redux and redux-observable.",
"version": "1.7.3",
"description": "An iOS client for https://bbs.uestc.edu.cn/ written in react-native, redux and redux-observable.",
"author": "just4fun <houritsunohikari@gmail.com>",
"scripts": {
"start": "node_modules/react-native/scripts/packager.sh",
Expand Down
4 changes: 2 additions & 2 deletions src/components/Content/Content.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class Content extends Component {
return content.slice(1);
}

// http://bbs.uestc.edu.cn/home.php?mod=space&uid=32044
// https://bbs.uestc.edu.cn/home.php?mod=space&uid=32044
isAtSomebody(url) {
if (!url) { return false; }

Expand All @@ -68,7 +68,7 @@ export default class Content extends Component {
return !!(/https?:\/\/.+uid=(\d+)/.exec(url));
}

// http://bbs.uestc.edu.cn/forum.php?mod=viewthread&tid=1554255
// https://bbs.uestc.edu.cn/forum.php?mod=viewthread&tid=1554255
isTopicLink(url) {
if (!url) { return false; }
return !!(/https?:\/\/.+tid=(\d+)/.exec(url));
Expand Down
14 changes: 7 additions & 7 deletions src/config/app.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
module.exports = {
DOMAIN_ROOT: 'http://bbs.uestc.edu.cn',
DOMAIN_ROOT: 'https://bbs.uestc.edu.cn',

API_ROOT: 'http://bbs.uestc.edu.cn/mobcent/app/web/index.php?r=',
API_ROOT: 'https://bbs.uestc.edu.cn/mobcent/app/web/index.php?r=',

AVATAR_ROOT: 'http://bbs.uestc.edu.cn/uc_server/avatar.php?size=middle',
AVATAR_ROOT: 'https://bbs.uestc.edu.cn/uc_server/avatar.php?size=middle',

TOPIC_URL_ROOT: 'http://bbs.uestc.edu.cn/forum.php?mod=viewthread',
TOPIC_URL_ROOT: 'https://bbs.uestc.edu.cn/forum.php?mod=viewthread',

DEFAULT_EMOJI_ROOT: 'http://bbs.uestc.edu.cn/mobcent/app/data/phiz/default',
DEFAULT_EMOJI_ROOT: 'https://bbs.uestc.edu.cn/mobcent/app/data/phiz/default',

REGISTER_URL: 'http://bbs.uestc.edu.cn/member.php?mod=register',
REGISTER_URL: 'https://bbs.uestc.edu.cn/member.php?mod=register',

APP_AUTH_KEY: 'appbyme_key',

Expand All @@ -21,7 +21,7 @@ module.exports = {

MAX_UPLOAD_IMAGES_COUNT: 9,

VERSION: 'v1.7.2',
VERSION: 'v1.7.3',

AUTHOR_ID: 32044,

Expand Down
20 changes: 10 additions & 10 deletions src/constants/emojis.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/modules/topic/topic/topic.ducks.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const fetchTopicFailure = createAction(TOPIC_FETCH_FAILURE);
// topic content in `componentDidMount` to overwrite the old one.
//
// 2. If we nagivate from topic A --> topic B --> topic A, or topic A --> topic A
// (try it out in http://bbs.uestc.edu.cn/forum.php?mod=viewthread&tid=1705815),
// (try it out in https://bbs.uestc.edu.cn/forum.php?mod=viewthread&tid=1705815),
// when we touch back button to first topic A page, we will see nothing,
// since the content of topic A has been `reset/clear` in the last topic A
// page's `componentWillUnmount`.
Expand Down
4 changes: 2 additions & 2 deletions tests/components/TopicList.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('<TopicList />', () => {
top: 0,
topic_id: 1675973,
type_id: 5,
userAvatar: 'http://bbs.uestc.edu.cn/uc_server/avatar.php?uid=32044&size=middle',
userAvatar: 'https://bbs.uestc.edu.cn/uc_server/avatar.php?uid=32044&size=middle',
user_id: 32044,
user_nick_name: '法律之光'
},
Expand All @@ -45,7 +45,7 @@ describe('<TopicList />', () => {
top: 0,
topic_id: 1675973,
type_id: 5,
userAvatar: 'http://bbs.uestc.edu.cn/uc_server/avatar.php?uid=0&size=middle',
userAvatar: 'https://bbs.uestc.edu.cn/uc_server/avatar.php?uid=0&size=middle',
user_id: 0,
user_nick_name: ''
}
Expand Down

0 comments on commit 9fc3521

Please sign in to comment.