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/BackButton.vue from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 772 Bytes
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/web/app/components/BackButton.vue
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway/web/app/components/BackButton.vue
-
curl -L -o BackButton.vue https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/web/app/components/BackButton.vue
772 Bytes
| <script setup lang="ts"> | |
| import { useDisplay } from 'vuetify' | |
| import { mdiArrowLeft } from '@mdi/js' | |
| import type { RouteLocationRaw } from 'vue-router' | |
| const props = withDefaults( | |
| defineProps<{ | |
| route?: RouteLocationRaw | |
| block?: boolean | |
| }>(), | |
| { | |
| route: undefined, | |
| block: false, | |
| }, | |
| ) | |
| const router = useRouter() | |
| const { smAndDown } = useDisplay() | |
| function goBack() { | |
| if (props.route) { | |
| router.push(props.route) | |
| return | |
| } | |
| if (window.history.length > 1) { | |
| router.back() | |
| return | |
| } | |
| router.push({ name: 'index' }) | |
| } | |
| </script> | |
| <template> | |
| <v-btn | |
| variant="tonal" | |
| :size="smAndDown ? 'small' : 'default'" | |
| :block="block" | |
| @click="goBack" | |
| > | |
| <v-icon :icon="mdiArrowLeft" start /> | |
| Go Back | |
| </v-btn> | |
| </template> | |