Skip to content

Commit

Permalink
feat: add no leaks link and menu label (#782)
Browse files Browse the repository at this point in the history
  • Loading branch information
fribbels authored Dec 21, 2024
1 parent b6d349b commit 8420040
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/starrailoptimizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ jobs:
find: "const API_ENDPOINT = 'https://o4b6dqwu5a.execute-api.us-east-1.amazonaws.com/prod'"
replace: "const API_ENDPOINT = 'https://9di5b7zvtb.execute-api.us-west-2.amazonaws.com/prod'"
include: "src/lib/tabs/tabShowcase/RelicScorerTab.jsx"
- name: Find and Replace Beta header
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "Fribbels Honkai Star Rail Optimizer"
replace: "Fribbels Honkai Star Rail Optimizer (No leaks)"
include: "src/lib/layout/LayoutHeader.tsx"
- name: Find and Replace officialOnly
uses: jacobtomlinson/gha-find-replace@v3
with:
Expand Down
1 change: 1 addition & 0 deletions public/locales/en/sidebar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ Links:
Github: GitHub
Kofi: Ko-fi
Unleak: No leaks
Leaks: Beta content
25 changes: 17 additions & 8 deletions src/lib/overlays/drawers/MenuDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,23 @@ const MenuDrawer = () => {
</Typography.Link>,
'link github',
),
!officialOnly && getItem(
<Typography.Link href='https://starrailoptimizer.github.io/' target='_blank' rel='noopener noreferrer'>
<LinkOutlined style={{ marginRight: 5 }}/>
{' '}
{t('Links.Unleak')/* No leaks */}
</Typography.Link>,
'link leaks free',
),
officialOnly
? getItem(
<Typography.Link href='https://fribbels.github.io/hsr-optimizer/' target='_blank' rel='noopener noreferrer'>
<LinkOutlined style={{ marginRight: 5 }}/>
{' '}
{t('Links.Leaks')/* Beta content */}
</Typography.Link>,
'link leaks',
)
: getItem(
<Typography.Link href='https://starrailoptimizer.github.io/' target='_blank' rel='noopener noreferrer'>
<LinkOutlined style={{ marginRight: 5 }}/>
{' '}
{t('Links.Unleak')/* No leaks */}
</Typography.Link>,
'link leaks free',
),
]),
], [t])

Expand Down

0 comments on commit 8420040

Please sign in to comment.