kdxcxs
09c29e1ba5
refactor: pass `this` to YooForumUI when YooForumTopicUI is clicked
As feature is growing fast, it needs to pass to many args, so i decide to pass this instead.
4 years ago
kdxcxs
c139df8fdf
fix(YooBackground): make background image also move in the first 10 seconds
4 years ago
kdxcxs
eea7e722bd
chore: update TODO
4 years ago
kdxcxs
2f7f2e13f1
fix(YooLogin): avoid input from being hidden under virtual keyboard
For some reason, components is not reachable as children of `Animated.View`, so I create some Animated components to replace the originals.
4 years ago
kdxcxs
9b11b74477
chore: update TODO
4 years ago
kdxcxs
63fd23a718
fix(YooForum): now the position of reply is changed with topic title height instead of a fixed value
4 years ago
kdxcxs
d61e064b9b
feat(YooForum): support getting more topics in the bottom of topic list
4 years ago
kdxcxs
bda9548b66
refactor(YooForum): make topic list a separate function component
4 years ago
kdxcxs
a5e1d8b06a
refactor(YooForum): change `getTopicList` function
4 years ago
kdxcxs
997a24b3ef
chore: set height of screenshot in readme to 500
4 years ago
kdxcxs
ce0b7a1a1a
feat: support displaying topic detail
YooMooc is now actually usable!
🎉 🎉 🎉
4 years ago
kdxcxs
14bf63f35b
refactor: pass specific variables instead of `this` to YooForumUI, toggle `detailShowing` state as a callback of animation
4 years ago
kdxcxs
57f58ca599
feat: change all animation duration from 500 to 250
4 years ago
kdxcxs
408cbef27f
chore: add screenshot
4 years ago
kdxcxs
b485273576
feat: support go to detail view of a topic by pressing in the topic list view
4 years ago
kdxcxs
f7b87abd9e
feat: support getting and showing topics from umooc
4 years ago
kdxcxs
fe8683d46b
feat: show error info in toast when login failed
4 years ago
kdxcxs
70bfda1368
fix: init forum after login successfully instead of componentDidMount
4 years ago
kdxcxs
bc2c6534a4
feat: send preparative requests on YooForum did mount
4 years ago
kdxcxs
a9d1fcd03b
refactor: replace `post` function in `api/HTTP.js` with `gbkFetch` function to support both POST and GET
BREAKING CHANGE: getting decoded gbk post data has changed.
Before:
import {post} from 'api/HTTP';
post('http://foo.bar ', {header: {}, body: 'foo'});
After:
import {bgkFetch} from 'api/HTTP';
gbkFetch('POST', 'http://foo.bar ', {header: {}, body: 'foo'});
Since fetching data and decoding them from gbk by GET or POST method is barely the same, it's no need to make them two functions.
4 years ago
kdxcxs
c717f14b2a
chore: rename `Router.js` to `YooRouter.js`
4 years ago
kdxcxs
f0183fe925
feat: add splash page
4 years ago
kdxcxs
876ad88b9f
feat: lock device orientation in Android
4 years ago
kdxcxs
13ecd52e52
feat: init Router and YooForum, add forgotten files
4 years ago
kdxcxs
4f3c790917
chore: export and import components through `component/index.js`
4 years ago
kdxcxs
bbb9e1356c
fix: apply paddingTop only for ios
4 years ago
kdxcxs
df16af519c
feat: keep the background img moving
4 years ago
kdxcxs
2ff829d31d
chore: update TODO
4 years ago
kdxcxs
9c2f80a269
feat: support login request
4 years ago
kdxcxs
fb2da7da94
feat: init YooLogin with ui
4 years ago
kdxcxs
c43d86b55a
feat: show a toast when login fails
4 years ago
kdxcxs
5a720434f9
feat: bind input values to logical YooLogin component
4 years ago
kdxcxs
6713dc02ec
feat: show ActivityIndicator when pending login request
4 years ago
kdxcxs
29c986f19e
feat: change the style of login button
4 years ago
kdxcxs
bd7e388b76
chore: update TODO
4 years ago
kdxcxs
3d4af0c18a
feat: init login ui
4 years ago
kdxcxs
5f2723d082
chore: add readme
4 years ago