Skip to content

Commit

Permalink
Disabled hover highlighting on text elements at VerifiedOfficialRelea…
Browse files Browse the repository at this point in the history
…se page
  • Loading branch information
qlrd committed Aug 14, 2023
1 parent bd65480 commit 453d49f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-linux-appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:

- name: Upload artifacts
uses: actions/upload-artifact@v3
if: ${{ github.ref_name == 'main' }}
#if: ${{ github.ref_name == 'main' }}
with:
name: ${{ runner.os }}-${{ steps.setup.outputs.app-name }}-AppImage
retention-days: 5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-mac-dmg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:

- name: Upload artifacts
uses: actions/upload-artifact@v3
if: ${{ github.ref_name == 'main' }}
#if: ${{ github.ref_name == 'main' }}
with:
name: ${{ runner.os }}-${{ steps.setup.outputs.app-name }}-dmg
retention-days: 5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-windows-nsis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ jobs:

- name: Upload artifacts
uses: actions/upload-artifact@v3
if: ${{ github.ref_name == 'main' }}
#if: ${{ github.ref_name == 'main' }}
with:
name: ${{ runner.os}}-${{ steps.setup.outputs.app-name }}-Nsis
retention-days: 5
Expand Down
30 changes: 11 additions & 19 deletions src/pages/VerifiedOfficialRelease.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
<v-item-group>
<v-row>
<v-col>
<v-card
variant="plain"
>
<v-card variant="text">
<v-card-title>
Sha256sum integrity
</v-card-title>
Expand All @@ -17,20 +15,15 @@
:key="i"
>
<v-col>
<v-card
variant="plain"
>
<v-card-text v-html="getSubtitleName(h.name)" />
<v-card-text class="text-center" style="color: red;">
{{ split2chars(h.value) }}
</v-card-text>
<v-card variant="text">
<v-card-text v-html="getSubtitleNameWithHash(h)" />
</v-card>
</v-col>
</v-row>
<v-row>
<v-col>
<v-card
variant="plain"
variant="text"
>
<v-card-title>
Signature authenticity
Expand Down Expand Up @@ -87,16 +80,15 @@ const { hash, sign, command } = toRefs(props)
* to facilitate manual verification
* https://stackoverflow.com/questions/18407260/split-a-string-to-groups-of-2-chars-using-split#18419843
*/
function split2chars(str: string): string {
return (str.split(/(?=(?:..)*$)/)).join(' ')
}
function getSubtitleName(str: string) {
if (/^.*sha256.txt$/g.test(str)) {
return `Expected result from file <span style="color: yellowgreen;"> ${str} </span>`
function getSubtitleNameWithHash(toBeHash: Record<string, string>) {
const splited = (toBeHash.value.split(/(?=(?:..)*$)/)).join(' ')
let wrapped = ''
if (/^.*sha256.txt$/g.test(toBeHash.name)) {
wrapped = `Expected result from file <span style="color: yellowgreen;"> ${toBeHash.name} </span>`
} else {
return `Summed result of file <span style="color: yellowgreen;"> ${str} </span>`
wrapped = `Summed result of file <span style="color: yellowgreen;"> ${toBeHash.name} </span>`
}
return `<div style="color: white;">${wrapped}</div><div style="color: red;">${splited}</div>`
}
async function backToFn () {
Expand Down

0 comments on commit 453d49f

Please sign in to comment.