Send and receive SMS messages using your Android phone programmatically via a simple HTTP API
Add basic layout
Acho Arnold1306dc1529c6
diff --git a/web/assets/img/person-texting.svg b/web/assets/img/person-texting.svgnew file mode 100644index 00000000..e788e565--- /dev/null+++ b/web/assets/img/person-texting.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" width="842.72998" height="573" viewBox="0 0 842.72998 573" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M934.654,722.90511c-18.90064,13.616-43.39446,14.29971-67.07038,12.627-3.306-.23326-6.58868-.507-9.84091-.80228-.01965-.0051-.04544-.00328-.06541-.00836-.15629-.01487-.3129-.02976-.46245-.03863-.67126-.0628-1.34284-.12554-2.0078-.18875l.15708.29974.493.93009c-.17718-.31128-.35423-.6161-.53141-.92739-.05212-.09343-.11053-.18646-.16233-.28-6.13337-10.67317-12.21659-21.73842-13.76829-33.926-1.6039-12.65015,2.9037-26.9743,14.03727-33.19189a22.467,22.467,0,0,1,4.61018-1.93081c.66586-.20234,1.34073-.36645,2.02325-.5117A24.081,24.081,0,0,1,890.07022,696.26c9.43927-9.67911,7.67846-25.38108,4.42236-38.504-3.26239-13.12256-7.21179-27.72486-.57639-39.51162,3.68851-6.56063,10.175-10.63106,17.45435-12.27081.22331-.04815.44631-.09623.67008-.13789a35.14393,35.14393,0,0,1,25.249,4.42406c13.91882,8.77112,21.06772,25.40139,23.38793,41.69208C964.41589,678.16654,956.14294,707.423,934.654,722.90511Z" transform="translate(-178.63501 -163.5)" fill="#f2f2f2"/><path d="M928.55168,680.88193a59.74248,59.74248,0,0,1-4.12321,16.83544,51.87511,51.87511,0,0,1-8.05438,13.156,66.46538,66.46538,0,0,1-25.53063,18.40893,95.65939,95.65939,0,0,1-23.25985,6.24981c-3.306-.23326-6.58868-.507-9.84091-.80228-.01965-.0051-.04544-.00328-.06541-.00836-.15629-.01487-.3129-.02976-.46245-.03863-.67126-.0628-1.34284-.12554-2.0078-.18875l.15708.29974.493.93009c-.17718-.31128-.35423-.6161-.53141-.92739-.05212-.09343-.11053-.18646-.16233-.28a52.87823,52.87823,0,0,0,14.81951-46.25623,53.33113,53.33113,0,0,0-9.94035-22.79246c.66586-.20234,1.34073-.36645,2.02325-.5117a55.29272,55.29272,0,0,1,5.04382,8.35406,54.17979,54.17979,0,0,1,4.67445,33.70568,55.393,55.393,0,0,1-14.03439,27.62923c.63145-.0445,1.269-.09592,1.893-.15286,11.81832-1.00128,23.61258-3.542,34.33191-8.74615A61.83274,61.83274,0,0,0,917.13821,706.74c6.492-8.95336,9.35272-19.723,9.84414-30.6688a129.42851,129.42851,0,0,0-3.67377-35.0389,147.06843,147.06843,0,0,0-12.35789-33.6628,1.0574,1.0574,0,0,1,.41985-1.39591.89934.89934,0,0,1,.67008-.13789.78294.78294,0,0,1,.51687.44275c.67566,1.3187,1.33875,2.63828,1.97662,3.97261a148.73787,148.73787,0,0,1,11.64367,34.92405C928.52711,656.82724,929.78107,669.01639,928.55168,680.88193Z" transform="translate(-178.63501 -163.5)" fill="#fff"/><path d="M213.7948,345.626a4.53477,4.53477,0,0,1-1.64453-.31055,4.47489,4.47489,0,0,1-2.87-4.19629v-47.0332a6.01164,6.01164,0,0,0-6.00464-6.00489h-9.63134A15.02614,15.02614,0,0,1,178.635,273.07178v-94.5625A15.02614,15.02614,0,0,1,193.64429,163.5H533.36963a15.02615,15.02615,0,0,1,15.00928,15.00928v94.5625a15.02615,15.02615,0,0,1-15.00928,15.00927H271.15a6.02074,6.02074,0,0,0-4.42651,1.94727l-49.62183,54.1333A4.47614,4.47614,0,0,1,213.7948,345.626ZM193.64429,165.5A13.024,13.024,0,0,0,180.635,178.50928v94.5625a13.024,13.024,0,0,0,13.00928,13.00927h9.63134a8.01371,8.01371,0,0,1,8.00464,8.00489v47.0332a2.50251,2.50251,0,0,0,4.34717,1.69092l49.62183-54.1333a8.02556,8.02556,0,0,1,5.90075-2.59571H533.36963a13.024,13.024,0,0,0,13.00928-13.00927v-94.5625A13.024,13.024,0,0,0,533.36963,165.5Z" transform="translate(-178.63501 -163.5)" fill="#ccc"/><circle cx="36.81607" cy="29.45637" r="13.13371" fill="#ccc"/><path d="M518.04693,265.62955H208.967a7.00465,7.00465,0,1,1,0-14.00929H518.04693a7.00465,7.00465,0,1,1,0,14.00929Z" transform="translate(-178.63501 -163.5)" fill="#ccc"/><path d="M417.35517,235.85981H208.967a7.00465,7.00465,0,1,1,0-14.00929H417.35517a7.00465,7.00465,0,1,1,0,14.00929Z" transform="translate(-178.63501 -163.5)" fill="#ccc"/><path d="M213.7948,679.22217a4.53456,4.53456,0,0,1-1.64453-.31055,4.47537,4.47537,0,0,1-2.87-4.19629v-47.0332a6.01163,6.01163,0,0,0-6.00464-6.00488h-9.63134A15.02614,15.02614,0,0,1,178.635,606.668v-94.5625a15.02614,15.02614,0,0,1,15.00928-15.00928H533.36963a15.02615,15.02615,0,0,1,15.00928,15.00928V606.668a15.02615,15.02615,0,0,1-15.00928,15.00928H271.15a6.02073,6.02073,0,0,0-4.42651,1.94726l-49.62183,54.1333A4.4761,4.4761,0,0,1,213.7948,679.22217Zm-20.15051-180.126A13.024,13.024,0,0,0,180.635,512.10547V606.668a13.024,13.024,0,0,0,13.00928,13.00928h9.63134a8.0137,8.0137,0,0,1,8.00464,8.00488v47.0332a2.50251,2.50251,0,0,0,4.34717,1.69092l49.62183-54.1333a8.02559,8.02559,0,0,1,5.90075-2.5957H533.36963A13.024,13.024,0,0,0,546.37891,606.668v-94.5625a13.024,13.024,0,0,0-13.00928-13.00928Z" transform="translate(-178.63501 -163.5)" fill="#ccc"/><path d="M715.478,505.85742a4.47521,4.47521,0,0,1-3.30664-1.46435l-49.62207-54.1333a6.02039,6.02039,0,0,0-4.42627-1.94727H395.90344a15.02614,15.02614,0,0,1-15.00927-15.00928v-94.5625a15.02614,15.02614,0,0,1,15.00927-15.00927H735.62866a15.02614,15.02614,0,0,1,15.00928,15.00927v94.5625a15.02614,15.02614,0,0,1-15.00928,15.00928h-9.63135a6.01156,6.01156,0,0,0-6.00463,6.00488v47.03321a4.474,4.474,0,0,1-2.87012,4.1958A4.5256,4.5256,0,0,1,715.478,505.85742Zm-319.57459-180.126a13.024,13.024,0,0,0-13.00927,13.00927v94.5625a13.024,13.024,0,0,0,13.00927,13.00928H658.12305a8.02441,8.02441,0,0,1,5.90039,2.5957l49.62207,54.1333a2.50253,2.50253,0,0,0,4.34717-1.69091V454.31738a8.01369,8.01369,0,0,1,8.00463-8.00488h9.63135a13.024,13.024,0,0,0,13.00928-13.00928v-94.5625a13.024,13.024,0,0,0-13.00928-13.00927Z" transform="translate(-178.63501 -163.5)" fill="#3f3d56"/><circle cx="36.81607" cy="363.05254" r="13.13371" fill="#ccc"/><path d="M518.04693,599.22573H208.967a7.00465,7.00465,0,1,1,0-14.00929H518.04693a7.00464,7.00464,0,1,1,0,14.00929Z" transform="translate(-178.63501 -163.5)" fill="#ccc"/><path d="M417.35517,569.456H208.967a7.00465,7.00465,0,1,1,0-14.00929H417.35517a7.00465,7.00465,0,1,1,0,14.00929Z" transform="translate(-178.63501 -163.5)" fill="#ccc"/><circle cx="239.07517" cy="188.81202" r="13.13371" fill="#3f3d56"/><path d="M720.306,424.9852H411.22611a7.00464,7.00464,0,1,1,0-14.00928H720.306a7.00464,7.00464,0,1,1,0,14.00928Z" transform="translate(-178.63501 -163.5)" fill="#1976d2"/><path d="M619.61427,395.21547H411.22611a7.00465,7.00465,0,1,1,0-14.00929H619.61427a7.00465,7.00465,0,1,1,0,14.00929Z" transform="translate(-178.63501 -163.5)" fill="#1976d2"/><path d="M720.17137,523.85872a10.05574,10.05574,0,0,1,13.594-7.27736l23.4593-26.95627,4.98283,17.88869-23.04128,22.8556a10.11027,10.11027,0,0,1-18.99481-6.51066Z" transform="translate(-178.63501 -163.5)" fill="#ffb8b8"/><circle cx="670.29019" cy="209.30068" r="24.56103" fill="#ffb8b8"/><polygon points="641.436 547.373 629.177 547.372 623.344 500.084 641.439 500.085 641.436 547.373" fill="#ffb8b8"/><path d="M823.198,722.75707l-39.53052-.00146v-.5a15.38605,15.38605,0,0,1,15.38648-15.38623h.001l24.1438.001Z" transform="translate(-178.63501 -163.5)" fill="#2f2e41"/><polygon points="678.436 560.373 666.177 560.372 664.479 514.214 678.439 513.085 678.436 560.373" fill="#ffb8b8"/><path d="M860.198,735.75707l-39.53052-.00146v-.5a15.38605,15.38605,0,0,1,15.38648-15.38623h.001l24.1438.001Z" transform="translate(-178.63501 -163.5)" fill="#2f2e41"/><path d="M853.5844,715.24336l-9.54688-1.124a4.51224,4.51224,0,0,1-3.97388-4.4043l-1.78906-124.33887a1.49985,1.49985,0,0,0-2.91357-.47851L822.1154,622.29707l.94727,70.10156a4.49832,4.49832,0,0,1-4.22876,4.55274l-12.46387.52929a4.52692,4.52692,0,0,1-4.74439-3.9248l-6.50976-79.30078-.00415-.04981,9.8772-82.81933,74.1831,5.36718L858.57927,711.302a4.50657,4.50657,0,0,1-4.46631,3.97266A4.40036,4.40036,0,0,1,853.5844,715.24336Z" transform="translate(-178.63501 -163.5)" fill="#2f2e41"/><path d="M805.30559,538.72773a4.47312,4.47312,0,0,1-2.35474-3.61816s6.6709-41.48438,9.11548-42.2627l-5.34863-44.36328a40.90923,40.90923,0,0,1,8.78051-30.49023A39.01332,39.01332,0,0,1,842.53,403.51094q1.12134-.10109,2.23047-.1543a39.36853,39.36853,0,0,1,33.134,15.082,40.11988,40.11988,0,0,1,7.21949,36.40625l-2.99976,10.43945v72.95606a4.55525,4.55525,0,0,1-1.86182,3.65332c-9.34106,6.85547-19.897,9.2793-30.15551,9.2793C830.686,551.17305,812.33977,542.49336,805.30559,538.72773Z" transform="translate(-178.63501 -163.5)" fill="#1976d2"/><path d="M747.71632,525.37712,734.8139,515.729a4.49946,4.49946,0,0,1-.59686-6.67226l76.863-82.47429A15.05277,15.05277,0,0,1,830.6013,424.507l.00021.00012a14.97783,14.97783,0,0,1,1.92528,22.97632L753.563,524.98515a4.47169,4.47169,0,0,1-5.36242.70857A4.62136,4.62136,0,0,1,747.71632,525.37712Z" transform="translate(-178.63501 -163.5)" fill="#1976d2"/><path d="M846.4649,514.45717A10.05578,10.05578,0,0,1,861.18,509.85032l28.08641-22.09373,1.54966,18.50493L863.9071,524.40509a10.11027,10.11027,0,0,1-17.4422-9.94792Z" transform="translate(-178.63501 -163.5)" fill="#ffb8b8"/><path d="M871.60393,523.08223a4.46445,4.46445,0,0,1-3.023-3.249l-2.83716-11.916a4.43719,4.43719,0,0,1,1.65039-4.61231l19.08887-20.64453-28.07862-43.2959a15.24849,15.24849,0,0,1-.46191-18.626,15.242,15.242,0,0,1,26.29468,2.99414l26.104,50.81054a23.11846,23.11846,0,0,1-7.721,29.79493L875.94353,522.1584a4.46131,4.46131,0,0,1-2.97046,1.13672A4.54941,4.54941,0,0,1,871.60393,523.08223Z" transform="translate(-178.63501 -163.5)" fill="#1976d2"/><path d="M867.12452,394.75775a4.39849,4.39849,0,0,1-6.49318-2.5649l-.01539-.06128c-.50024-2.04355-.10536-4.18241.02383-6.28233s-.08861-4.40488-1.52657-5.94066c-2.68052-2.86288-7.4138-1.31231-11.27146-2.01917a9.51064,9.51064,0,0,1-7.45268-10.117c.05255-.43662.13628-.87389.23045-1.31095a7.32469,7.32469,0,0,0-7.65072-8.82988c-3.89343.24353-8.091,1.446-11.32878-1.42141a8.3509,8.3509,0,0,1-2.05309-8.99159c1.81153-5.32069,6.99681-8.12883,12.13466-9.68478a44.5881,44.5881,0,0,1,37.8262,5.99911c3.26265,2.2737,6.31357,5.13619,7.71889,8.85636s.76213,8.42656-2.34866,10.904a20.12271,20.12271,0,0,1,4.76546,19.52057C878.16711,387.79388,870.82864,392.6,867.12452,394.75775Z" transform="translate(-178.63501 -163.5)" fill="#2f2e41"/><path d="M1021.365,735.5a1.00276,1.00276,0,0,1-1,1h-381a1,1,0,0,1,0-2h381A1.00276,1.00276,0,0,1,1021.365,735.5Z" transform="translate(-178.63501 -163.5)" fill="#3f3d56"/></svg>\ No newline at end of filediff --git a/web/components/MessageThread.vue b/web/components/MessageThread.vuenew file mode 100644index 00000000..8f722ac7--- /dev/null+++ b/web/components/MessageThread.vue@@ -0,0 +1,63 @@+<template>+ <v-list two-line class="px-0 py-0" subheader>+ <v-list-item-group v-model="selected">+ <template v-for="thread in threads">+ <v-list-item :key="thread.id" class="py-1">+ <v-list-item-avatar :color="thread.color">+ <v-icon dark> mdi-account </v-icon>+ </v-list-item-avatar>+ <v-list-item-content>+ <v-list-item-title>+ {{ thread.phoneNumber }}+ </v-list-item-title>+ <v-list-item-subtitle>+ {{ thread.message }}+ </v-list-item-subtitle>+ </v-list-item-content>+ <v-list-item-action>+ <v-list-item-action-text>+ {{ thread.date }}+ </v-list-item-action-text>+ </v-list-item-action>+ </v-list-item>+ </template>+ </v-list-item-group>+ </v-list>+</template>++<script lang="ts">+import { Vue, Component } from 'vue-property-decorator'++type ThreadItem = {+ id: string+ phoneNumber: string+ message: string+ date: string+ color: string+}++@Component+export default class MessageThread extends Vue {+ selected: string = '1'+ get threads(): Array<ThreadItem> {+ return [+ {+ id: '1',+ phoneNumber: '+1 800 5550 100',+ message:+ 'I was calling about the apartment? Is it still available and can I see it today?',+ date: 'Fri',+ color: 'indigo',+ },+ {+ id: '2',+ phoneNumber: '+1 800 5550 500',+ message:+ 'I was calling about the apartment? Is it still available and can I see it today?',+ date: '20 May',+ color: 'teal',+ },+ ]+ }+}+</script>diff --git a/web/components/MessageThreadHeader.vue b/web/components/MessageThreadHeader.vuenew file mode 100644index 00000000..cac222e8--- /dev/null+++ b/web/components/MessageThreadHeader.vue@@ -0,0 +1,28 @@+<template>+ <v-sheet+ class="pa-4 d-flex"+ :elevation="$vuetify.breakpoint.lgAndUp ? 0 : 2"+ :color="$vuetify.breakpoint.lgAndUp ? 'grey darken-4' : 'primary'"+ >+ <div>+ <v-toolbar-title>+1 800 555-0199</v-toolbar-title>+ <p class="text--secondary mb-n1">Estonia</p>+ </div>+ <v-spacer></v-spacer>+ <v-tooltip bottom>+ <template #activator="{ on, attrs }">+ <v-btn icon text v-bind="attrs" v-on="on">+ <v-icon>mdi-dots-vertical</v-icon>+ </v-btn>+ </template>+ <span>More Options</span>+ </v-tooltip>+ </v-sheet>+</template>++<script lang="ts">+import { Vue, Component } from 'vue-property-decorator'++@Component+export default class MessageThreadHeader extends Vue {}+</script>diff --git a/web/components/Tutorial.vue b/web/components/Tutorial.vuedeleted file mode 100644index c0377a89..00000000--- a/web/components/Tutorial.vue+++ /dev/null@@ -1,122 +0,0 @@-<!-- Please remove this file from your project -->-<template>- <div- class="relative flex items-top justify-center min-h-screen bg-gray-100 sm:items-center sm:pt-0"- >- <link- href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css"- rel="stylesheet"- />- <div class="max-w-4xl mx-auto sm:px-6 lg:px-8">- <a- class="flex justify-center pt-8 sm:pt-0"- href="https://nuxtjs.org"- target="_blank"- >- <svg- width="218"- height="45"- viewBox="0 0 159 30"- fill="none"- xmlns="http://www.w3.org/2000/svg"- >- <path- d="M55.5017 6.81866H60.1727L70.0719 22.9912V6.81866H74.3837V29.7345H69.7446L59.8135 13.5955V29.7345H55.5017V6.81866Z"- fill="#003543"- />- <path- d="M93.657 29.7344H89.6389V27.1747C88.7241 28.9761 86.8628 29.9904 84.5113 29.9904C80.7869 29.9904 78.3684 27.3059 78.3684 23.4423V13.2339H82.3865V22.5976C82.3865 24.8566 83.7594 26.4276 85.8171 26.4276C88.0712 26.4276 89.6389 24.6598 89.6389 22.2377V13.2339H93.657V29.7344Z"- fill="#003543"- />- <path- d="M107.64 29.7344L103.784 24.2342L99.9291 29.7344H95.6492L101.596 21.1242L96.1074 13.2339H100.485L103.784 17.9821L107.051 13.2339H111.461L105.94 21.1242L111.886 29.7344H107.64Z"- fill="#003543"- />- <path- d="M120.053 8.25848V13.2339H124.627V16.6063H120.053V24.7974C120.053 25.0725 120.162 25.3363 120.356 25.531C120.55 25.7257 120.813 25.8353 121.087 25.8357H124.627V29.728H121.98C118.386 29.728 116.035 27.6323 116.035 23.9687V16.6095H112.801V13.2339H114.83C115.776 13.2339 116.327 12.6692 116.327 11.7349V8.25848H120.053Z"- fill="#003543"- />- <path- d="M134.756 24.5446V6.81866H139.066V23.1864C139.066 27.6067 136.943 29.7345 133.349 29.7345H128.332V25.8421H133.461C133.804 25.8421 134.134 25.7054 134.377 25.4621C134.619 25.2188 134.756 24.8888 134.756 24.5446Z"- fill="#003543"- />- <path- d="M141.649 22.0409H145.799C146.029 24.6006 147.728 26.2308 150.472 26.2308C152.923 26.2308 154.623 25.2501 154.623 23.2199C154.623 18.3085 142.331 21.7129 142.331 12.9395C142.334 9.17515 145.568 6.55945 150.215 6.55945C155.05 6.55945 158.317 9.34153 158.516 13.6306H154.388C154.193 11.6341 152.632 10.2918 150.207 10.2918C147.953 10.2918 146.548 11.3397 146.548 12.9427C146.548 18.0173 159 14.2226 159 23.1576C159 27.4131 155.504 30 150.474 30C145.279 30 141.882 26.8563 141.654 22.0441"- fill="#003543"- />- <path- d="M24.7203 29.704H41.1008C41.6211 29.7041 42.1322 29.5669 42.5828 29.3061C43.0334 29.0454 43.4075 28.6704 43.6675 28.2188C43.9275 27.7672 44.0643 27.2549 44.0641 26.7335C44.0639 26.2121 43.9266 25.6999 43.6662 25.2485L32.6655 6.15312C32.4055 5.70162 32.0315 5.32667 31.581 5.06598C31.1305 4.8053 30.6195 4.66805 30.0994 4.66805C29.5792 4.66805 29.0682 4.8053 28.6177 5.06598C28.1672 5.32667 27.7932 5.70162 27.5332 6.15312L24.7203 11.039L19.2208 1.48485C18.9606 1.03338 18.5864 0.658493 18.1358 0.397853C17.6852 0.137213 17.1741 0 16.6538 0C16.1336 0 15.6225 0.137213 15.1719 0.397853C14.7213 0.658493 14.3471 1.03338 14.0868 1.48485L0.397874 25.2485C0.137452 25.6999 0.000226653 26.2121 2.8053e-07 26.7335C-0.000226092 27.2549 0.136554 27.7672 0.396584 28.2188C0.656614 28.6704 1.03072 29.0454 1.48129 29.3061C1.93185 29.5669 2.44298 29.7041 2.96326 29.704H13.2456C17.3195 29.704 20.3239 27.9106 22.3912 24.4118L27.4102 15.7008L30.0986 11.039L38.1667 25.0422H27.4102L24.7203 29.704ZM13.0779 25.0374L5.9022 25.0358L16.6586 6.36589L22.0257 15.7008L18.4322 21.9401C17.0593 24.2103 15.4996 25.0374 13.0779 25.0374Z"- fill="#00DC82"- />- </svg>- </a>- <div class="mt-8 bg-white overflow-hidden shadow sm:rounded-lg p-6">- <h2 class="text-2xl leading-7 font-semibold">- Welcome to your Nuxt Application- </h2>- <p class="mt-3 text-gray-600">- We recommend you take a look at the- <a- href="https://nuxtjs.org"- target="_blank"- class="button--doc text-green-500 hover:underline"- >Nuxt documentation</a- >, whether you are new or have previous experience with the- framework.<br />- </p>- <p class="mt-4 pt-4 text-gray-800 border-t border-dashed">- To get started, remove- <code class="bg-gray-100 text-sm p-1 rounded border"- >components/Tutorial.vue</code- >- and start coding in- <code class="bg-gray-100 text-sm p-1 rounded border"- >pages/index.vue</code- >. Have fun!- </p>- </div>- <div class="flex justify-center pt-4 space-x-2">- <a href="https://github.com/nuxt/nuxt.js" target="_blank"- ><svg- class="w-6 h-6 text-gray-600 hover:text-gray-800 button--github"- xmlns="http://www.w3.org/2000/svg"- xmlns:xlink="http://www.w3.org/1999/xlink"- aria-hidden="true"- role="img"- width="32"- height="32"- preserveAspectRatio="xMidYMid meet"- viewBox="0 0 24 24"- >- <path- d="M12 2.247a10 10 0 0 0-3.162 19.487c.5.088.687-.212.687-.475c0-.237-.012-1.025-.012-1.862c-2.513.462-3.163-.613-3.363-1.175a3.636 3.636 0 0 0-1.025-1.413c-.35-.187-.85-.65-.013-.662a2.001 2.001 0 0 1 1.538 1.025a2.137 2.137 0 0 0 2.912.825a2.104 2.104 0 0 1 .638-1.338c-2.225-.25-4.55-1.112-4.55-4.937a3.892 3.892 0 0 1 1.025-2.688a3.594 3.594 0 0 1 .1-2.65s.837-.262 2.75 1.025a9.427 9.427 0 0 1 5 0c1.912-1.3 2.75-1.025 2.75-1.025a3.593 3.593 0 0 1 .1 2.65a3.869 3.869 0 0 1 1.025 2.688c0 3.837-2.338 4.687-4.563 4.937a2.368 2.368 0 0 1 .675 1.85c0 1.338-.012 2.413-.012 2.75c0 .263.187.575.687.475A10.005 10.005 0 0 0 12 2.247z"- fill="currentColor"- /></svg- ></a>- <a href="https://twitter.com/nuxt_js" target="_blank"- ><svg- class="w-6 h-6 text-gray-600 hover:text-gray-800"- xmlns="http://www.w3.org/2000/svg"- xmlns:xlink="http://www.w3.org/1999/xlink"- aria-hidden="true"- role="img"- width="32"- height="32"- preserveAspectRatio="xMidYMid meet"- viewBox="0 0 24 24"- >- <path- d="M22.46 6c-.77.35-1.6.58-2.46.69c.88-.53 1.56-1.37 1.88-2.38c-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29c0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15c0 1.49.75 2.81 1.91 3.56c-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07a4.28 4.28 0 0 0 4 2.98a8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21C16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56c.84-.6 1.56-1.36 2.14-2.23z"- fill="currentColor"- /></svg- ></a>- </div>- </div>- </div>-</template>--<script>-export default {- name: 'NuxtTutorial',-}-</script>diff --git a/web/components/VuetifyLogo.vue b/web/components/VuetifyLogo.vuedeleted file mode 100644index ee89763c..00000000--- a/web/components/VuetifyLogo.vue+++ /dev/null@@ -1,18 +0,0 @@-<template>- <img class="vuetify-logo" alt="Vuetify Logo" src="/vuetify-logo.svg" />-</template>--<style>-.vuetify-logo {- height: 180px;- width: 180px;- transform: rotateY(560deg);- animation: turn 3.5s ease-out forwards 1s;-}--@keyframes turn {- 100% {- transform: rotateY(0deg);- }-}-</style>diff --git a/web/layouts/default.vue b/web/layouts/default.vueindex b5b0ac73..b0257128 100644--- a/web/layouts/default.vue+++ b/web/layouts/default.vue@@ -6,56 +6,28 @@fixedapp>- <v-list>- <v-list-item- v-for="(item, i) in items"- :key="i"- :to="item.to"- router- exact- >- <v-list-item-action>- <v-icon>{{ item.icon }}</v-icon>- </v-list-item-action>- <v-list-item-content>- <v-list-item-title v-text="item.title" />- </v-list-item-content>- </v-list-item>- </v-list>+ <template #prepend>+ <message-thread-header></message-thread-header>+ <message-thread></message-thread>+ </template></v-navigation-drawer><v-main>- <v-container>+ <v-container fluid :fill-height="$vuetify.breakpoint.lgAndUp"><Nuxt /></v-container></v-main></v-app></template>-<script>-export default {- name: 'DefaultLayout',- data() {- return {- clipped: false,- drawer: true,- fixed: false,- items: [- {- icon: 'mdi-apps',- title: 'Welcome',- to: '/',- },- {- icon: 'mdi-chart-bubble',- title: 'Inspire',- to: '/inspire',- },- ],- miniVariant: false,- right: true,- rightDrawer: false,- title: 'Vuetify.js',- }- },-}+<script lang="ts">+import { Vue, Component } from 'vue-property-decorator'++@Component+export default class DefaultLayout extends Vue {}</script>++<style lang="scss">+html {+ overflow-y: auto;+}+</style>diff --git a/web/package.json b/web/package.jsonindex 0d8c37d8..57768a9c 100644--- a/web/package.json+++ b/web/package.json@@ -24,6 +24,8 @@"core-js": "^3.19.3","nuxt": "^2.15.8","vue": "^2.6.14",+ "vue-class-component": "^7.2.6",+ "vue-property-decorator": "^9.1.2","vue-server-renderer": "^2.6.14","vue-template-compiler": "^2.6.14","vuetify": "^2.6.1",diff --git a/web/pages/index.vue b/web/pages/index.vueindex dd4f6abf..f048b0b1 100644--- a/web/pages/index.vue+++ b/web/pages/index.vue@@ -1,81 +1,23 @@<template>- <v-row justify="center" align="center">- <v-col cols="12" sm="8" md="6">- <v-card class="logo py-4 d-flex justify-center">- <NuxtLogo />- <VuetifyLogo />- </v-card>- <v-card>- <v-card-title class="headline">- Welcome to the Vuetify + Nuxt.js template- </v-card-title>- <v-card-text>- <p>- Vuetify is a progressive Material Design component framework for- Vue.js. It was designed to empower developers to create amazing- applications.- </p>- <p>- For more information on Vuetify, check out the- <a- href="https://vuetifyjs.com"- target="_blank"- rel="noopener noreferrer"- >- documentation </a- >.- </p>- <p>- If you have questions, please join the official- <a- href="https://chat.vuetifyjs.com/"- target="_blank"- rel="noopener noreferrer"- title="chat"- >- discord </a- >.- </p>- <p>- Find a bug? Report it on the github- <a- href="https://github.com/vuetifyjs/vuetify/issues"- target="_blank"- rel="noopener noreferrer"- title="contribute"- >- issue board </a- >.- </p>- <p>- Thank you for developing with Vuetify and I look forward to bringing- more exciting features in the future.- </p>- <div class="text-xs-right">- <em><small>— John Leider</small></em>- </div>- <hr class="my-3" />- <a- href="https://nuxtjs.org/"- target="_blank"- rel="noopener noreferrer"- >- Nuxt Documentation- </a>- <br />- <a- href="https://github.com/nuxt/nuxt.js"- target="_blank"- rel="noopener noreferrer"- >- Nuxt GitHub- </a>- </v-card-text>- <v-card-actions>- <v-spacer />- <v-btn color="primary" nuxt to="/inspire"> Continue </v-btn>- </v-card-actions>- </v-card>+ <v-row v-if="$vuetify.breakpoint.lgAndUp" align="center" justify="center">+ <div>+ <v-img+ class="mx-auto mb-4"+ max-height="400"+ max-width="90%"+ contain+ :src="require('~/assets/img/person-texting.svg')"+ ></v-img>+ <div class="text-center">+ <h3 class="text-h5 mt-4">Select a thread</h3>+ <p class="text--secondary">Send and receive messages using our API</p>+ </div>+ </div>+ </v-row>+ <v-row v-else justify="end">+ <v-col class="px-0 py-0">+ <message-thread-header></message-thread-header>+ <message-thread></message-thread></v-col></v-row></template>diff --git a/web/yarn.lock b/web/yarn.lockindex 39f04057..7c14fd59 100644--- a/web/yarn.lock+++ b/web/yarn.lock@@ -11613,6 +11613,11 @@ vm-browserify@^1.0.1:resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0"integrity sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==+vue-class-component@^7.2.6:+ version "7.2.6"+ resolved "https://registry.yarnpkg.com/vue-class-component/-/vue-class-component-7.2.6.tgz#8471e037b8e4762f5a464686e19e5afc708502e4"+ integrity sha512-+eaQXVrAm/LldalI272PpDe3+i4mPis0ORiMYxF6Ae4hyuCh15W8Idet7wPUEs4N4YptgFHGys4UrgNQOMyO6w==+vue-client-only@^2.0.0:version "2.1.0"resolved "https://registry.yarnpkg.com/vue-client-only/-/vue-client-only-2.1.0.tgz#1a67a47b8ecacfa86d75830173fffee3bf8a4ee3"@@ -11676,6 +11681,11 @@ vue-no-ssr@^1.1.1:resolved "https://registry.yarnpkg.com/vue-no-ssr/-/vue-no-ssr-1.1.1.tgz#875f3be6fb0ae41568a837f3ac1a80eaa137b998"integrity sha512-ZMjqRpWabMPqPc7gIrG0Nw6vRf1+itwf0Itft7LbMXs2g3Zs/NFmevjZGN1x7K3Q95GmIjWbQZTVerxiBxI+0g==+vue-property-decorator@^9.1.2:+ version "9.1.2"+ resolved "https://registry.yarnpkg.com/vue-property-decorator/-/vue-property-decorator-9.1.2.tgz#266a2eac61ba6527e2e68a6933cfb98fddab5457"+ integrity sha512-xYA8MkZynPBGd/w5QFJ2d/NM0z/YeegMqYTphy7NJQXbZcuU6FC6AOdUAcy4SXP+YnkerC6AfH+ldg7PDk9ESQ==+vue-router@^3.5.1:version "3.5.4"resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-3.5.4.tgz#c453c0b36bc75554de066fefc3f2a9c3212aca70"