Spaces:
Paused
Paused
ML Intern deploy
Deploy httpSMS gateway to Hugging Face Spaces (Docker SDK): nginx :7860 -> Go API :8000, Nuxt SPA, Android APK, bootstrap-mode entrypoint
83a59ca Download web/app/components/RedirectPromptPopover.vue from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 1.51 kB
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/web/app/components/RedirectPromptPopover.vue
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway/web/app/components/RedirectPromptPopover.vue
-
curl -L -o RedirectPromptPopover.vue https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/web/app/components/RedirectPromptPopover.vue
1.51 kB
| <script setup lang="ts"> | |
| import { computed } from 'vue' | |
| import { mdiClose, mdiArrowRight } from '@mdi/js' | |
| const route = useRoute() | |
| const authStore = useAuthStore() | |
| const redirectStore = useRedirectPreferenceStore() | |
| const showPopover = computed( | |
| () => | |
| route.name === 'index' && | |
| authStore.authUser !== null && | |
| !redirectStore.enabled && | |
| !redirectStore.dismissedThisSession, | |
| ) | |
| const menuOpen = computed({ | |
| get: () => showPopover.value, | |
| set: (value: boolean) => { | |
| if (!value) redirectStore.dismiss() | |
| }, | |
| }) | |
| </script> | |
| <template> | |
| <v-menu | |
| v-model="menuOpen" | |
| activator="parent" | |
| location="bottom end" | |
| offset="8" | |
| :open-on-click="false" | |
| :close-on-content-click="false" | |
| > | |
| <v-list width="280" class="py-0 mt-n4" rounded="lg" elevation="8"> | |
| <v-list-item> | |
| <v-list-item-title class="text-body-1"> | |
| Skip this page next time? | |
| </v-list-item-title> | |
| <template #append> | |
| <v-btn | |
| :icon="mdiClose" | |
| variant="text" | |
| size="small" | |
| color="warning" | |
| density="comfortable" | |
| aria-label="Dismiss" | |
| @click="redirectStore.dismiss()" | |
| /> | |
| </template> | |
| </v-list-item> | |
| <v-list-item class="text-primary" @click="redirectStore.enable()"> | |
| <v-list-item-title | |
| >Always open dashboard <v-icon end :icon="mdiArrowRight" size="small" | |
| /></v-list-item-title> | |
| </v-list-item> | |
| </v-list> | |
| </v-menu> | |
| </template> | |