Skip to content

Commit

Permalink
Adjust download button and remove vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Nov 30, 2024
1 parent 1f52d36 commit fce7ff3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ jobs:
skip_app_build: true
skip_api_build: true
###### End of Repository/Build Configurations ######
- uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-args: '--prod ./.vitepress/dist'
vercel-org-id: ${{ secrets.ORG_ID }}
vercel-project-id: ${{ secrets.PROJECT_ID }}
# - uses: amondnet/vercel-action@v20
# with:
# vercel-token: ${{ secrets.VERCEL_TOKEN }}
# vercel-args: '--prod ./.vitepress/dist'
# vercel-org-id: ${{ secrets.ORG_ID }}
# vercel-project-id: ${{ secrets.PROJECT_ID }}
10 changes: 6 additions & 4 deletions .vitepress/theme/components/AppPrebuilds.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</template>
<script setup lang="ts">
import { useAsyncState } from '@vueuse/core';
import { computed, ref, watch } from 'vue';
import { computed, ref, watch, nextTick } from 'vue';
import { useI18n } from 'vue-i18n';
import { data } from '../composables/runs.data';
import '../styles/list.min.css';
Expand All @@ -57,9 +57,11 @@ const selected = ref(runs.value[0])
watch(selected, (val) => {
if (val) {
(document.getElementById('app')?.firstChild as any)?.scroll({
top: 0,
behavior: 'smooth'
nextTick().then(() => {
(document.getElementById('app')?.firstChild as any)?.scroll({
top: 0,
behavior: 'smooth'
})
})
}
})
Expand Down
6 changes: 3 additions & 3 deletions .vitepress/theme/components/PrebuildDownloads.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<div class="flex flex-col gap-4">
<div class="flex lg:flex-row flex-col gap-4">
<a :class="{ positive: platform === 'Win32', loading: fetching }"
class="ui huge inverted download labeled icon button" @click="onDownload(windowsArtifact)">
class="ui huge inverted download button" @click="onDownload(windowsArtifact)">
<span>Windows</span>
</a>
<div class="ui labeled button" tabindex="0">
<a class="ui huge purple download labeled icon button w-full"
<a class="ui huge purple download button w-full"
:class="{ positive: platform === 'Mac', loading: fetching }" @click="onDownload(macArtifact)">
<span>MacOS</span>
</a>
Expand All @@ -17,7 +17,7 @@
</div>
<div class="ui labeled button" tabindex="0">
<a :class="{ positive: platform === 'Linux', loading: fetching }"
class="ui huge orange download labeled icon button w-full" @click="onDownload(linuxArtifact)">
class="ui huge orange download button w-full" @click="onDownload(linuxArtifact)">
<span>Linux</span>
</a>
<a class="ui basic inverted green left pointing label" :class="{ disabled: fetching }"
Expand Down

0 comments on commit fce7ff3

Please sign in to comment.