forked from mastodon/mastodon
-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #903 from kmycode/upstream-20241107
Upstream 20241107
- Loading branch information
Showing
98 changed files
with
1,998 additions
and
586 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.3.5 | ||
3.3.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
app/javascript/mastodon/features/annual_report/archetype.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
import { FormattedMessage } from 'react-intl'; | ||
|
||
import booster from '@/images/archetypes/booster.png'; | ||
import lurker from '@/images/archetypes/lurker.png'; | ||
import oracle from '@/images/archetypes/oracle.png'; | ||
import pollster from '@/images/archetypes/pollster.png'; | ||
import replier from '@/images/archetypes/replier.png'; | ||
import type { Archetype as ArchetypeData } from 'mastodon/models/annual_report'; | ||
|
||
export const Archetype: React.FC<{ | ||
data: ArchetypeData; | ||
}> = ({ data }) => { | ||
let illustration, label; | ||
|
||
switch (data) { | ||
case 'booster': | ||
illustration = booster; | ||
label = ( | ||
<FormattedMessage | ||
id='annual_report.summary.archetype.booster' | ||
defaultMessage='The cool-hunter' | ||
/> | ||
); | ||
break; | ||
case 'replier': | ||
illustration = replier; | ||
label = ( | ||
<FormattedMessage | ||
id='annual_report.summary.archetype.replier' | ||
defaultMessage='The social butterfly' | ||
/> | ||
); | ||
break; | ||
case 'pollster': | ||
illustration = pollster; | ||
label = ( | ||
<FormattedMessage | ||
id='annual_report.summary.archetype.pollster' | ||
defaultMessage='The pollster' | ||
/> | ||
); | ||
break; | ||
case 'lurker': | ||
illustration = lurker; | ||
label = ( | ||
<FormattedMessage | ||
id='annual_report.summary.archetype.lurker' | ||
defaultMessage='The lurker' | ||
/> | ||
); | ||
break; | ||
case 'oracle': | ||
illustration = oracle; | ||
label = ( | ||
<FormattedMessage | ||
id='annual_report.summary.archetype.oracle' | ||
defaultMessage='The oracle' | ||
/> | ||
); | ||
break; | ||
} | ||
|
||
return ( | ||
<div className='annual-report__bento__box annual-report__summary__archetype'> | ||
<div className='annual-report__summary__archetype__label'>{label}</div> | ||
<img src={illustration} alt='' /> | ||
</div> | ||
); | ||
}; |
Oops, something went wrong.