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/AppToast.vue from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 1.25 kB
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/web/app/components/AppToast.vue
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway/web/app/components/AppToast.vue
-
curl -L -o AppToast.vue https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/web/app/components/AppToast.vue
1.25 kB
| <script setup lang="ts"> | |
| import { useDisplay } from 'vuetify' | |
| import { mdiCheck, mdiInformation } from '@mdi/js' | |
| const { lgAndUp } = useDisplay() | |
| const notificationsStore = useNotificationsStore() | |
| const notificationActive = computed({ | |
| get: () => notificationsStore.notification.active, | |
| set: () => notificationsStore.disableNotification(), | |
| }) | |
| </script> | |
| <template> | |
| <v-snackbar | |
| v-model="notificationActive" | |
| variant="tonal" | |
| :color="notificationsStore.notification.type" | |
| :timeout="notificationsStore.notification.timeout" | |
| :z-index="10000" | |
| > | |
| <v-icon | |
| v-if="notificationsStore.notification.type === 'success'" | |
| :color="notificationsStore.notification.type" | |
| :icon="mdiCheck" | |
| /> | |
| <v-icon | |
| v-if="notificationsStore.notification.type === 'info'" | |
| :color="notificationsStore.notification.type" | |
| :icon="mdiInformation" | |
| /> | |
| {{ notificationsStore.notification.message }} | |
| <template #actions> | |
| <v-btn | |
| v-if="lgAndUp" | |
| :color="notificationsStore.notification.type" | |
| variant="text" | |
| @click="notificationsStore.disableNotification()" | |
| > | |
| <span class="font-weight-bold">Close</span> | |
| </v-btn> | |
| </template> | |
| </v-snackbar> | |
| </template> | |