Skip to content

Commit

Permalink
aioqzone H5 APIs support (#88)
Browse files Browse the repository at this point in the history
* feat!: support aioqzone h5 api

* test: add login manager for heartbeat test

* test: fix heartbeat mock object

* test: simplify fixture using .h5() from aioqzone

---------

Co-authored-by: JamzumSum <[email protected]>
  • Loading branch information
github-actions[bot] and JamzumSum authored Mar 10, 2023
1 parent 2db4e4f commit 142cc47
Show file tree
Hide file tree
Showing 24 changed files with 1,163 additions and 689 deletions.
5 changes: 0 additions & 5 deletions doc/source/api/emoji.rst

This file was deleted.

3 changes: 3 additions & 0 deletions doc/source/api/feed.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ Feed API

.. autoclass:: aioqzone_feed.api.feed.FeedApi
:members:

.. autoclass:: aioqzone_feed.api.feed.h5.FeedH5Api
:members:
2 changes: 1 addition & 1 deletion doc/source/event/index.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
aioqzone-feed Events
=========================

aioqzone-feed follows the hook system defined in :external:mod:`qqqr.event`.
aioqzone-feed follows the hook system defined in :external:doc:`qqqr/event/index`.

.. automodule:: aioqzone_feed.event.feed
:members:
Expand Down
101 changes: 43 additions & 58 deletions doc/source/locale/zh_CN/LC_MESSAGES/api/emoji.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: aioqzone-feed \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-02-24 15:42+0800\n"
"POT-Creation-Date: 2023-03-08 21:56+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: zh_CN\n"
Expand All @@ -17,81 +17,66 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.11.0\n"
"Generated-By: Babel 2.12.1\n"

#: ../../source/api/emoji.rst:2
msgid "Emoji API"
msgstr ""

#: aioqzone_feed.api.emoji:1 of
msgid "Translate emoji representation to text."
msgstr ""
#~ msgid "Translate emoji representation to text."
#~ msgstr ""

#: aioqzone_feed.api.emoji.query_wrap:1 of
msgid ""
"This function query the given eid and wraps it if it is not a pure emoji word. If the name is "
"not stored in the database, then it will return a ``[/em]`` tag."
msgstr ""
#~ msgid ""
#~ "This function query the given eid and wraps "
#~ "it if it is not a pure emoji word. If"
#~ " the name is not stored in the database, "
#~ "then it will return a ``[/em]`` tag."
#~ msgstr ""

#: aioqzone_feed.api.emoji.query_wrap aioqzone_feed.api.emoji.wrap_plain_text of
msgid "返回类型"
msgstr ""
#~ msgid "返回类型"
#~ msgstr ""

#: aioqzone_feed.api.emoji.query_wrap:4 aioqzone_feed.api.emoji.wrap_plain_text:7 of
msgid ":py:class:`str`"
msgstr ""
#~ msgid ":py:class:`str`"
#~ msgstr ""

#: aioqzone_feed.api.emoji.query_wrap aioqzone_feed.api.emoji.sub
#: aioqzone_feed.api.emoji.wrap_plain_text of
msgid "返回"
msgstr ""
#~ msgid "返回"
#~ msgstr ""

#: aioqzone_feed.api.emoji.query_wrap:5 of
msgid "a ``[/em]`` tag if query has no result, otherwise a wrapped name."
msgstr ""
#~ msgid "a ``[/em]`` tag if query has no result, otherwise a wrapped name."
#~ msgstr ""

#: aioqzone_feed.api.emoji.query_wrap:7 of
msgid ":meth:`wrap_plain_text`, :meth:`~qzemoji.utils.build_tag`"
msgstr ""
#~ msgid ":meth:`wrap_plain_text`, :meth:`~qzemoji.utils.build_tag`"
#~ msgstr ""

#: aioqzone_feed.api.emoji.sub:1 of
msgid ""
"The sub function is a async-version of :meth:`re.sub`. It works like pattern.sub(repl, text), "
"except for this `repl` is an async-function."
msgstr ""
#~ msgid ""
#~ "The sub function is a async-version of "
#~ ":meth:`re.sub`. It works like pattern.sub(repl, text), "
#~ "except for this `repl` is an async-function."
#~ msgstr ""

#: aioqzone_feed.api.emoji.sub aioqzone_feed.api.emoji.wrap_plain_text of
msgid "参数"
msgstr ""
#~ msgid "参数"
#~ msgstr ""

#: aioqzone_feed.api.emoji.sub:5 of
msgid "regex expression."
msgstr ""
#~ msgid "regex expression."
#~ msgstr ""

#: aioqzone_feed.api.emoji.sub:7 of
msgid "Used to replace the matched text. Input an :class:`re.Match`, returns a string, async."
msgstr ""
#~ msgid "Used to replace the matched text. Input an :class:`re.Match`, returns a string, async."
#~ msgstr ""

#: aioqzone_feed.api.emoji.sub:9 of
msgid "String to be searched."
msgstr ""
#~ msgid "String to be searched."
#~ msgstr ""

#: aioqzone_feed.api.emoji.sub:10 of
msgid "replaced string."
msgstr ""
#~ msgid "replaced string."
#~ msgstr ""

#: aioqzone_feed.api.emoji.wrap_plain_text:1 of
msgid "This function wraps the given `name` with the given `fmt`, if it is not a pure emoji word."
msgstr ""
#~ msgid "This function wraps the given `name` with the given `fmt`, if it is not a pure emoji word."
#~ msgstr ""

#: aioqzone_feed.api.emoji.wrap_plain_text:4 of
msgid "the customized emoji name."
msgstr ""
#~ msgid "the customized emoji name."
#~ msgstr ""

#: aioqzone_feed.api.emoji.wrap_plain_text:6 of
msgid "a format string in ``{`` style, default as ``[/{name}]``."
msgstr ""
#~ msgid "a format string in ``{`` style, default as ``[/{name}]``."
#~ msgstr ""

#: aioqzone_feed.api.emoji.wrap_plain_text:8 of
msgid "The emoji itself if it is a pure emoji word, otherwise a string wrapped by the `fmt`."
msgstr ""
#~ msgid "The emoji itself if it is a pure emoji word, otherwise a string wrapped by the `fmt`."
#~ msgstr ""
Loading

0 comments on commit 142cc47

Please sign in to comment.