Skip to content

Commit

Permalink
refactor(qchat): use qchat message types and ws wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
gounux committed Oct 25, 2024
1 parent 950c2bb commit 2de350f
Show file tree
Hide file tree
Showing 6 changed files with 227 additions and 110 deletions.
3 changes: 0 additions & 3 deletions qtribu/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ def local_path(self, base_path: Path = Path().home() / ".geotribu/cdn/") -> Path
ADMIN_MESSAGES_NICKNAME: str = "admin"
ADMIN_MESSAGES_AVATAR: str = "mIconWarning.svg"
ERROR_MESSAGES_COLOR: str = "#ff0000"
INTERNAL_MESSAGE_AUTHOR: str = "internal"
QCHAT_USER_AVATARS: dict[str, str] = {
"Arrow Up": "mActionArrowUp.svg",
"Calculate": "mActionCalculateField.svg",
Expand All @@ -221,14 +220,12 @@ def local_path(self, base_path: Path = Path().home() / ".geotribu/cdn/") -> Path

# QChat cheatcodes
CHEATCODE_DIZZY: str = "givemesomecheese"
CHEATCODE_DONTCRYBABY: str = "dontcrybaby"
CHEATCODE_IAMAROBOT: str = "iamarobot"
CHEATCODE_10OCLOCK: str = "its10oclock"
CHEATCODE_QGIS_PRO_LICENSE: str = "qgisprolicense"

CHEATCODES = [
CHEATCODE_DIZZY,
CHEATCODE_DONTCRYBABY,
CHEATCODE_IAMAROBOT,
CHEATCODE_10OCLOCK,
CHEATCODE_QGIS_PRO_LICENSE,
Expand Down
Loading

0 comments on commit 2de350f

Please sign in to comment.