Commit Graph

834 Commits

Author SHA1 Message Date
27e3ffd293 Update dependencies 2019-10-13 11:23:49 +03:00
7f867562ca Merge remote-tracking branch 'refs/remotes/ppy/master' into comments_api 2019-10-13 11:15:43 +03:00
475815df04 Update ranking display to handle new osu-web request format 2019-10-11 13:09:21 +09:00
f6b78ad661 Overall cleanups 2019-10-10 11:43:45 +03:00
107d39c3e9 Add DeletedChildsPlaceholder to the bottom of the comments container 2019-10-09 14:10:05 +03:00
7e3c97f496 Implement DeletedChildsPlaceholder component 2019-10-09 13:37:07 +03:00
b2bd78308d Handle deleted comments 2019-10-09 12:18:49 +03:00
ad99a3236f Handle edited comments 2019-10-09 11:32:17 +03:00
0a56b041fd Implement ShowChildsButton 2019-10-09 11:07:56 +03:00
faef4d932d Improve message parsing 2019-10-09 10:17:14 +03:00
29b0eacc82 Implement SortSelector component 2019-10-08 22:46:42 +03:00
4230b00110 Rename APIComments to APICommentsController 2019-10-08 19:22:23 +03:00
000e4a563c Parse parent comments 2019-10-08 19:09:02 +03:00
451a7342ce Parse child comments 2019-10-08 15:39:03 +03:00
801b5b474e Add a User property to the comment for easy access 2019-10-08 13:45:13 +03:00
4b1a40daba Implement temp fix to get the actual message 2019-10-08 13:31:49 +03:00
cc6bf2f173 Add IsDeleted property 2019-10-07 18:45:22 +03:00
aa8df0fa20 Hook up api and implement some visual comments representation 2019-10-07 18:26:07 +03:00
738580ec61 Add IsTopLevel property 2019-10-07 16:58:24 +03:00
76db200bd3 Implement GetCommentsRequest 2019-10-07 16:48:05 +03:00
b161aa22c3 Merge branch 'master' into simplify-exit-logic-of-screens 2019-10-02 18:13:57 +09:00
b6dd610af8 Apply reviews 2019-10-01 23:18:03 +07:00
5f700f2ae9 Simplify exit logic of screens with textboxes using back button receptor 2019-10-01 08:26:34 -07:00
208b9a4eba Add new virtual float for username to timestamp padding 2019-10-01 20:47:53 +07:00
c83db94eb7 Use isolated storage/api 2019-09-25 15:00:08 +09:00
573da7b1e7 Implement ChangelogEntryType 2019-09-19 20:34:37 +03:00
e2f7d4bc62 Remove unnecessary ToMetric avoidance 2019-09-19 15:45:43 +09:00
098e89cb66 Improve state reset flow 2019-09-19 15:23:33 +09:00
4967ffd8e5 Move inside leaderboard 2019-09-19 14:52:31 +09:00
2e0a85c2f6 Merge remote-tracking branch 'upstream/master' into songselect-best-user-score 2019-09-19 12:57:30 +09:00
77ac186cf8 Add spacing to mod icons on leaderboards 2019-09-11 16:08:01 -07:00
a1c580f27e Create "none selected" placeholder state 2019-09-05 05:56:21 +03:00
08350a1aca Add parenthesis handling to old link format
Allow users to put both balanced round parentheses, as well as
unbalanced escaped ones, in old style link text. The implementation
is the same as for Markdown and new style links, except for swapping
all instances of

    \[\]

to

    \(\)

for obvious reasons (different type of parenthesis requiring escaping).
Tests also included.
2019-09-04 00:21:27 +02:00
f04add6d9e Add bracket handling to Markdown link format
Allow users to put both balanced brackets, as well as unbalanced
escaped ones, in Markdown link text. The implementation is the exact
same as in the case of new format links.

For completion's sake, tests also included.
2019-09-04 00:07:00 +02:00
24d4f0372c Refactor link parsing regexes to use named groups
For the sake of readability, consistency and to make further changes
easier, introduce named groups (?<text>) and (?<url>) to all link
parsing regexes which have parts containing the desired link text
and (optionally) URL.

The introduction of the named groups additionally simplifies
handleMatches() and makes all calls to it consistent.
2019-09-04 00:06:52 +02:00
a8f16503e2 Add backslash escaping to new link format
For users to be able to add square brackets inside of links using
the new format, the regular expression used for parsing those links
contained a balancing group, which can be used for matching pairs
of tokens (in this case, opening and closing brackets, in that order).
However, this means that users could not post links with unmatched
brackets inside of them (ie. ones that contain single brackets, or
a closing bracket and then an opening one). Allow for escaping opening
and closing brackets using the backslash character.

The change substitutes this old fragment of the regex in the display
text group:

    [^\[\]]*        // any character other than closing/opening bracket

for this one:

    (((?<=\\)[\[\]])|[^\[\]])*

The second pattern in the alternative remains the same; the first one
performs the escaping, as follows:

    (
        (?<=\\)     // positive lookbehind expression:
                    // this match will succeed, if the next expression
                    // is preceded by a single backslash
        [\[\]]      // either an opening or closing brace
    )

Since the entire display group is matched, unfortunately the lookbehind
expression does not actually strip the backslashes, so they are
manually stripped in handleMatches.

As demonstrated in the unit tests attached, this also allows balanced
brackets to be mixed with escaped ones.
2019-09-03 23:18:39 +02:00
d21d68b36c Refactor to match web implementation 1:1 2019-09-02 17:04:38 +09:00
0985b1679f Move enum to response class 2019-09-02 15:57:55 +09:00
3d551b08a9 Rename legacy actions 2019-09-02 15:57:23 +09:00
13fadec6ec Merge remote-tracking branch 'upstream/master' into kudosu-info 2019-09-02 15:25:41 +09:00
72dbeaec16 Fix the comment 2019-08-30 10:26:11 +03:00
b03b520818 Move Absing from the APIKudosuHistory 2019-08-30 10:13:21 +03:00
d303083179 Update to match api 2019-08-29 12:29:31 +03:00
3347ee8170 Merge branch 'master' into beatmapset-genre-language 2019-08-29 09:57:53 +03:00
ed827d514f Add comments 2019-08-27 15:36:08 +03:00
f4d2bb036b Expand KudosuAction list 2019-08-22 16:50:54 +03:00
015406f4d2 Fix link parser 2019-08-18 22:02:59 +03:00
4c9b621f43 Fix some user links can't be opened inside the game 2019-08-18 22:01:36 +03:00
2393bbc69b Expand APIKudosuHistory 2019-08-18 21:27:53 +03:00
093359c13b fix incorrect json property 2019-08-09 11:19:14 +03:00