Send and receive SMS messages using your Android phone programmatically via a simple HTTP API
feat(web): configure nuxt.config.ts with Vuetify 4, VueFire, Pinia
Acho Arnold0a55981b5dbd
diff --git a/web/.env.example b/web/.env.examplenew file mode 100644index 00000000..eade4119--- /dev/null+++ b/web/.env.example@@ -0,0 +1,28 @@+# Firebase+FIREBASE_API_KEY=+FIREBASE_AUTH_DOMAIN=+FIREBASE_PROJECT_ID=+FIREBASE_STORAGE_BUCKET=+FIREBASE_MESSAGING_SENDER_ID=+FIREBASE_APP_ID=+FIREBASE_MEASUREMENT_ID=++# App+API_BASE_URL=http://localhost:8000+APP_URL=https://httpsms.com+APP_NAME=HTTP SMS+APP_GITHUB_URL=https://github.com/NdoleStudio/httpsms+APP_DOCUMENTATION_URL=https://docs.httpsms.com+APP_DOWNLOAD_URL=https://apk.httpsms.com/HttpSms.apk+APP_ENV=local++# Billing+CHECKOUT_URL=+ENTERPRISE_CHECKOUT_URL=++# Cloudflare+CLOUDFLARE_TURNSTILE_SITE_KEY=++# Pusher+PUSHER_KEY=+PUSHER_CLUSTER=diff --git a/web/app/app.vue b/web/app/app.vueindex 09f935bb..f8eacfa7 100644--- a/web/app/app.vue+++ b/web/app/app.vue@@ -1,6 +1,5 @@<template>- <div>- <NuxtRouteAnnouncer />- <NuxtWelcome />- </div>+ <NuxtLayout>+ <NuxtPage />+ </NuxtLayout></template>diff --git a/web/app/assets/styles/settings.scss b/web/app/assets/styles/settings.scssnew file mode 100644index 00000000..2f92769a--- /dev/null+++ b/web/app/assets/styles/settings.scss@@ -0,0 +1,8 @@+@use "vuetify/settings" with (+ $grid-breakpoints: (+ "md": 960px,+ "lg": 1280px,+ "xl": 1920px,+ "xxl": 2560px,+ )+);diff --git a/web/nuxt.config.ts b/web/nuxt.config.tsindex 03941a2e..40f901af 100644--- a/web/nuxt.config.ts+++ b/web/nuxt.config.ts@@ -1,5 +1,144 @@// https://nuxt.com/docs/api/configuration/nuxt-configexport default defineNuxtConfig({- compatibilityDate: "2025-07-15",- devtools: { enabled: true },+ compatibilityDate: "2025-01-01",++ ssr: true,++ modules: ["vuetify-nuxt-module", "nuxt-vuefire", "@pinia/nuxt"],++ css: ["vuetify/styles"],++ build: {+ transpile: ["vuetify", "chart.js", "vue-chartjs"],+ },++ vite: {+ define: {+ "process.env.DEBUG": false,+ },+ css: {+ preprocessorOptions: {+ scss: {+ api: "modern-compiler",+ },+ },+ },+ },++ vuetify: {+ moduleOptions: {+ styles: { configFile: "app/assets/styles/settings.scss" },+ },+ vuetifyOptions: {+ theme: {+ defaultTheme: "dark",+ },+ icons: {+ defaultSet: "mdi-svg",+ },+ display: {+ thresholds: {+ md: 960,+ lg: 1280,+ xl: 1920,+ xxl: 2560,+ },+ },+ },+ },++ vuefire: {+ config: {+ apiKey: process.env.FIREBASE_API_KEY,+ authDomain: process.env.FIREBASE_AUTH_DOMAIN,+ projectId: process.env.FIREBASE_PROJECT_ID,+ storageBucket: process.env.FIREBASE_STORAGE_BUCKET,+ messagingSenderId: process.env.FIREBASE_MESSAGING_SENDER_ID,+ appId: process.env.FIREBASE_APP_ID,+ measurementId: process.env.FIREBASE_MEASUREMENT_ID,+ },+ auth: {+ enabled: true,+ },+ },++ runtimeConfig: {+ public: {+ apiBaseUrl: process.env.API_BASE_URL || "http://localhost:8000",+ appUrl: process.env.APP_URL || "https://httpsms.com",+ appName: process.env.APP_NAME || "HTTP SMS",+ appGithubUrl:+ process.env.APP_GITHUB_URL || "https://github.com/NdoleStudio/httpsms",+ appDocumentationUrl:+ process.env.APP_DOCUMENTATION_URL || "https://docs.httpsms.com",+ appDownloadUrl:+ process.env.APP_DOWNLOAD_URL || "https://apk.httpsms.com/HttpSms.apk",+ appEnv: process.env.APP_ENV || "production",+ checkoutUrl: process.env.CHECKOUT_URL || "",+ enterpriseCheckoutUrl: process.env.ENTERPRISE_CHECKOUT_URL || "",+ cloudflareTurnstileSiteKey:+ process.env.CLOUDFLARE_TURNSTILE_SITE_KEY || "",+ pusherKey: process.env.PUSHER_KEY || "",+ pusherCluster: process.env.PUSHER_CLUSTER || "",+ },+ },++ nitro: {+ prerender: {+ routes: ["/"],+ },+ },++ routeRules: {+ "/messages": { ssr: false },+ "/settings": { ssr: false },+ "/threads/**": { ssr: false },+ "/billing": { ssr: false },+ "/bulk-messages": { ssr: false },+ },++ app: {+ head: {+ titleTemplate: "%s",+ title: "Convert your android phone into an SMS gateway - httpSMS",+ htmlAttrs: { lang: "en" },+ script: [+ { src: "/integrations.js", async: true, defer: true },+ {+ src: "https://lmsqueezy.com/affiliate.js",+ async: true,+ defer: true,+ },+ {+ src: "https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",+ },+ ],+ meta: [+ { charset: "utf-8" },+ { name: "viewport", content: "width=device-width, initial-scale=1" },+ {+ name: "description",+ content:+ "Use your android phone to send and receive SMS messages using a simple HTTP API.",+ },+ { name: "format-detection", content: "telephone=no" },+ { name: "twitter:site", content: "@NdoleStudio" },+ { name: "twitter:card", content: "summary_large_image" },+ {+ property: "og:title",+ content: "Convert your android phone into an SMS gateway - httpSMS",+ },+ {+ property: "og:description",+ content:+ "Use your android phone to send and receive SMS messages using a simple HTTP API.",+ },+ {+ property: "og:image",+ content: "https://httpsms.com/header.png",+ },+ ],+ link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }],+ },+ },});