Skip to content

Commit

Permalink
Merge branch 'negue/ui/combined-messages-restyling' into qa/starfish
Browse files Browse the repository at this point in the history
  • Loading branch information
negue committed Jan 30, 2025
2 parents ad8ef5f + 7a47b99 commit 9931709
Show file tree
Hide file tree
Showing 89 changed files with 292 additions and 204 deletions.
2 changes: 1 addition & 1 deletion apidoc/header.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

This webpage includes the documentation for version 3 of the [Habitica](https://habitica.com) API.

If you're developing a 3rd party tool that uses the Habitica API you should read the [Guidance for Comrades](https://habitica.fandom.com/wiki/Guidance_for_Comrades) and in particular the section called [Rules for Third-Party Tools](https://habitica.fandom.com/wiki/Guidance_for_Comrades#Rules_for_Third-Party_Tools) which includes suggestions on how to best use the API and the rules to follow when interacting with it.
If you're developing a 3rd party tool that uses the Habitica API, read the [API Usage Guidelines](https://github.com/HabitRPG/habitica/wiki/API-Usage-Guidelines), which describe how to be a responsible user of our server resources!
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "habitica",
"description": "A habit tracker app which treats your goals like a Role Playing Game.",
"version": "5.32.5",
"version": "5.33.0",
"main": "./website/server/index.js",
"dependencies": {
"@babel/core": "^7.22.10",
Expand Down
2 changes: 1 addition & 1 deletion test/content/events.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('events', () => {
});

it('returns empty array when no events are active', () => {
clock = sinon.useFakeTimers(new Date('2024-01-08'));
clock = sinon.useFakeTimers(new Date('2024-01-11'));
const events = getRepeatingEvents();
expect(events).to.be.empty;
});
Expand Down
5 changes: 5 additions & 0 deletions website/client/src/components/messages/messageCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
}"
>
<div
v-b-tooltip.hover="messageDateForSystemMessage"
class="message-card"

:class="{
'user-sent-message': userSentMessage,
'user-received-message': !userSentMessage && !isSystemMessage,
Expand Down Expand Up @@ -414,6 +416,9 @@ export default {
isMessageReported () {
return (this.msg.flags && this.msg.flags[this.user.id]) || this.reported;
},
messageDateForSystemMessage () {
return this.isSystemMessage ? this.messageDate : '';
},
messageDate () {
const date = moment(this.msg.timestamp).toDate();
return date.toString();
Expand Down
6 changes: 5 additions & 1 deletion website/client/src/pages/private-messages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,11 @@ $pmHeaderHeight: 56px;
}
.toggle-switch-outer {
display: flex;
display: block !important;
}
.toggle-switch {
float: right !important;
}
}
Expand Down
3 changes: 0 additions & 3 deletions website/common/locales/bg/groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@
"whyReportingPostPlaceholder": "Моля, помогнете на модераторите, като ни кажете защо докладвате тази публикация за нарушение, например: защото е нежелана, включва ругатни, клетви, фанатизъм, обиди, теми за възрастни, насилие.",
"optional": "Незадължително",
"needsTextPlaceholder": "Въведете съобщението си тук.",
"copyMessageAsToDo": "Копиране на съобщението като задача",
"copyAsTodo": "Копиране като задача за изпълнение",
"messageAddedAsToDo": "Съобщението беше копирано като задача.",
"leaderOnlyChallenges": "Само водачът на групата може да създава предизвикателства",
"sendGift": "Изпращане на подарък",
"inviteFriends": "Поканете приятели",
Expand Down
4 changes: 1 addition & 3 deletions website/common/locales/bg/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,8 @@
"messageNotAbleToBuyInBulk": "Не може да се закупи повече от един брой от този предмет.",
"notificationsRequired": "Идентификаторите на известията са задължителни.",
"unallocatedStatsPoints": "Имате <span class=\"notification-bold-blue\"><%= points %> неразпределени показателни точки</span>",
"beginningOfConversation": "Това е началото на разговора Ви с <%= userName %>.",
"messageDeletedUser": "Съжаляваме, но този потребител е изтрил профила си.",
"messageMissingDisplayName": "Липсва екранно име.",
"canDeleteNow": "Вече може да изтриете съобщението, ако желаете.",
"reportedMessage": "Вие докладвахте това съобщние на модераторите.",
"beginningOfConversationReminder": "Не забравяйте да бъдете мили, уважителни и да следвате Обществените Правила!"
"reportedMessage": "Вие докладвахте това съобщние на модераторите."
}
3 changes: 0 additions & 3 deletions website/common/locales/cs/groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@
"whyReportingPostPlaceholder": "Prosím pomož našim moderatorům a vysvětli, proč ohlašuješ tento příspěvek kvůli porušení pravidel, tedy zda je to spam, sprostá slova, náboženské přísahy, netolerance, urážky, témata nevhodná pro mladistvé, násilí.",
"optional": "Možný",
"needsTextPlaceholder": "Napiš svou zprávu sem.",
"copyMessageAsToDo": "Zkopírovat zprávu jako úkol",
"copyAsTodo": "Zkopírovat jako úkol",
"messageAddedAsToDo": "Zpráva zkopírována jako úkol.",
"leaderOnlyChallenges": "Pouze velitel družiny může vytvářet Výzvy",
"sendGift": "Poslat dárek",
"inviteFriends": "Pozvat přátele",
Expand Down
2 changes: 0 additions & 2 deletions website/common/locales/cs/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,10 @@
"messageNotAbleToBuyInBulk": "Tento předmět nelze nakoupit v množství větším, než je 1.",
"notificationsRequired": "Id upozornění je potřeba.",
"unallocatedStatsPoints": "Máš <span class=\"notification-bold-blue\"><%= points %> nepřidělený(ch) vlastnostní(ch) bod(ů)</span>",
"beginningOfConversation": "Toto je začátek tvé konverzace s uživatelem <%= userName %>.",
"messageDeletedUser": "Omlouváme se, ale tento uživatel smazal svůj účet.",
"messageMissingDisplayName": "Chybí zobrazované jméno.",
"canDeleteNow": "Nyní můžete zprávu smazat.",
"reportedMessage": "Tuto zprávu jste nahlásili moderátorům.",
"beginningOfConversationReminder": "Nezapomeňte být milí, taktní a respektujte Zásady komunity!",
"messageAllUnEquipped": "Vše odloženo.",
"messageBackgroundUnEquipped": "Pozadí odloženo.",
"messagePetMountUnEquipped": "Mazlíček a zvíře odloženi.",
Expand Down
3 changes: 0 additions & 3 deletions website/common/locales/da/groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@
"whyReportingPostPlaceholder": "Du kan hjælpe vores moderatorer ved at lade os vide, hvorfor du anmelder denne besked som en overtrædelse - fx spam, banden, religiøse kraftudtryk, fordomme, nedladende skældsord, emner for aldersgruppen +18 eller vold.",
"optional": "Valgfri",
"needsTextPlaceholder": "Skriv din besked her.",
"copyMessageAsToDo": "Kopier besked som To-Do",
"copyAsTodo": "Kopier som To-Do",
"messageAddedAsToDo": "Besked kopieret som To-Do.",
"leaderOnlyChallenges": "Kun gruppelederen kan oprette udfordringer",
"sendGift": "Send gave",
"inviteFriends": "Invitér venner",
Expand Down
2 changes: 0 additions & 2 deletions website/common/locales/da/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@
"messageNotAbleToBuyInBulk": "Denne genstand kan ikke købes i antal større end 1.",
"notificationsRequired": "Notafikation ID'er er krævet.",
"unallocatedStatsPoints": "Du har <span class=\"notification-bold-blue\"><%= points %> ufordelte Egenskabspoint</span>",
"beginningOfConversation": "Dette er begyndelsen på din samtale med <%= userName %>.",
"messageDeletedUser": "Sorry, this user has deleted their account.",
"messageMissingDisplayName": "Missing display name.",
"newsPostNotFound": "News Post er ikke fundet eller du har ikke adgang.",
"canDeleteNow": "Du kan nu slette beskeden, hvis du ønsker det.",
"reportedMessage": "Du har indrapporteret denne besked til moderatorerne.",
"beginningOfConversationReminder": "Husk at være venlig, respektful og følge Retningslinjerne for Fællesskabet!",
"messageAllUnEquipped": "Alt fjernet.",
"messageBackgroundUnEquipped": "Baggrund fjernet.",
"messageCostumeUnEquipped": "Kostume fjernet.",
Expand Down
2 changes: 1 addition & 1 deletion website/common/locales/de/faq.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"webFaqStillNeedHelp": "Wenn Du eine Frage hast, die hier oder im [Wiki FAQ](https://habitica.fandom.com/wiki/FAQ) nicht beantwortet wurde, verwende das Stell eine Frage Formular [LINK NEEDED]! Wir helfen Dir gerne.",
"parties": "Partys",
"webFaqAnswer25": "Habitica verwendet drei verschiedene Aufgabentypen, um deinen Bedürfnissen gerecht zu werden: Gewohnheiten, tägliche Aufgaben und To-Dos.\n\nGewohnheiten können positiv oder negativ sein und stellen etwas dar, das Sie vielleicht mehrmals am Tag oder nach einem nicht festgelegten Zeitplan verfolgen möchten. Positive Gewohnheiten bringen euch Belohnungen wie Gold und Erfahrung (Exp), während ihr bei negativen Gewohnheiten Lebenspunkte (HP) verliert.\n\nDailies sind wiederkehrende Aufgaben, die du nach einem strukturierten Zeitplan erledigen möchtest. Zum Beispiel einmal am Tag, dreimal in der Woche oder viermal im Monat. Wenn du Dailies verpasst, verlierst du HP, aber je schwieriger sie sind, desto besser ist die Belohnung!\n\nTo-Dos sind einmalige Aufgaben, für deren Erledigung es Belohnungen gibt. To-Dos können ein Fälligkeitsdatum haben, aber du verlierst keine HP, wenn du es verpasst.\n\nWähle die Aufgabenart, die am besten zu dem passt, was du erreichen willst!",
"commonQuestions": "Häufige Fragenj",
"commonQuestions": "Häufige Fragen",
"faqQuestion25": "Welche Aufgabentypen gibt es?",
"faqQuestion26": "Was sind einige Beispielaufgaben?",
"webFaqAnswer31": "Wenn du eine Aufgabe erfüllst und HP verlierst, obwohl du das nicht hättest tun sollen, kam es zu einer Verzögerung, während der Server die auf anderen Plattformen vorgenommenen Änderungen synchronisiert hat. Wenn du zum Beispiel Gold oder Mana verwendest oder HP in der mobilen App verlierst und dann eine Aufgabe auf der Website erledigst, bestätigt der Server lediglich, dass alles synchronisiert ist.",
Expand Down
Loading

0 comments on commit 9931709

Please sign in to comment.