Skip to content

Commit

Permalink
Merge pull request #44 from Nickid2018/main
Browse files Browse the repository at this point in the history
  • Loading branch information
Dianliang233 committed Aug 8, 2024
2 parents 6272c02 + a19ddb3 commit dae784f
Show file tree
Hide file tree
Showing 6 changed files with 960 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
run: pnpm run test:cov

- name: Upload coverage reports to Codecov
if: always()
if: always() && github.repository == 'mc-wiki/mcw-calc' && github.ref == 'refs/heads/main'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -90,6 +90,7 @@ jobs:

- name: Sync translations
uses: crowdin/github-action@v2
if: github.repository == 'mc-wiki/mcw-calc' && github.ref == 'refs/heads/main'
with:
upload_sources: true
upload_translations: true
Expand Down
13 changes: 8 additions & 5 deletions src/components/CalcField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ import { CdxField } from '@wikimedia/codex'
</script>

<template>
<CdxField class="mcw-calc-field">
<template #label>
<slot name="heading"> Calculator </slot>
</template>
<div class="mcw-calc-field cdx-field">
<h2 class="cdx-label m-0 text-lg">
<span class="cdx-label__label__text">
<slot name="heading">Calculator</slot>
</span>
</h2>

<slot />
</CdxField>
</div>
</template>

<style>
Expand Down
Loading

0 comments on commit dae784f

Please sign in to comment.