2022-10-27 22:37:45 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>MoneroSMS</title>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2022-10-31 21:15:49 +00:00
|
|
|
<script src="vue.global.prod.js"></script>
|
|
|
|
<script src="main.js" defer></script>
|
2022-10-27 22:37:45 +00:00
|
|
|
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%2210 0 100 100%22><text y=%22.90em%22 font-size=%2290%22>📨</text></svg>">
|
|
|
|
<link rel="stylesheet" href="main.css">
|
2022-11-20 18:57:07 +00:00
|
|
|
<!-- version 0.0.0 -->
|
2022-10-27 22:37:45 +00:00
|
|
|
<!--begin div hell-->
|
|
|
|
<body>
|
|
|
|
<div id="app">
|
|
|
|
<div class="main">
|
|
|
|
<div v-if="userID">
|
2022-10-28 06:03:34 +00:00
|
|
|
<div class="showUserID">
|
2022-10-27 22:37:45 +00:00
|
|
|
<button v-if="! showUserID" @click="showUserID = userID">Show User ID (KEEP SAFE & SECRET)</button>
|
|
|
|
<span v-else><input type="text" v-model="showUserID"></span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div><span v-if="! RegExp('Error|Getting').test(moneroAddress)">Monero Address: </span>{{ moneroAddress }}</div>
|
2022-10-31 04:58:34 +00:00
|
|
|
<div><span v-if="! RegExp('Error|Getting').test(credits)">Credit Balance: </span>{{ credits }} <span v-if="credits === 0"></span></div>
|
|
|
|
<details>
|
|
|
|
<summary>Pricing information</summary>
|
|
|
|
<pre>
|
|
|
|
{{ pricingInfo }}
|
|
|
|
</pre>
|
|
|
|
</details>
|
2022-10-27 22:37:45 +00:00
|
|
|
|
|
|
|
<span>
|
2022-10-31 21:15:49 +00:00
|
|
|
<div v-if="RegExp('^[0-9]+$').test(ownedNumber)"><span>Phone Number: </span>{{ formatPhone(ownedNumber) }}</div>
|
|
|
|
<div v-else><span>Phone Number: </span>{{ ownedNumber }}</div>
|
2022-10-27 22:37:45 +00:00
|
|
|
</span>
|
|
|
|
<div v-if="RegExp('No').test(ownedNumber)">
|
|
|
|
<button @click="showNumbers()" v-if="! availableNumbers">Show Available Virtual Numbers</button>
|
|
|
|
<div v-if="availableNumbers">
|
|
|
|
<h1>Available Virtual Numbers</h1>
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Number</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr v-for="(number,i) in availableNumbers" :key="i">
|
|
|
|
<th scope="row" v-if="number">{{ formatPhone(number) }}</th>
|
|
|
|
<td><button @click="buyNum" v-if="number" :data-number="number">Buy</button></td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<div v-if="availableNumbers.length === 0">No numbers available</div>
|
|
|
|
<div v-if="numberPurchaseMessage">{{ numberPurchaseMessage }}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div v-else>
|
2022-10-30 20:23:58 +00:00
|
|
|
<form class="draft" @submit="sendSMS" @submit.prevent="onSubmit">
|
|
|
|
<label>
|
|
|
|
Phone Number:
|
|
|
|
<input type="tel" v-model="sendToNumber" placeholder="Phone Number" maxlength="10" minlength="10" size="10" pattern="^\d{10}$" required>
|
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
Message:
|
|
|
|
<textarea v-model="messageToSend" placeholder="Message" required></textarea>
|
|
|
|
</label>
|
|
|
|
<input type="submit" :disabled="disableSMSSend" value="Send">
|
|
|
|
<div v-if="sendMsgErr">Error sending message: {{ sendMsgErr }}</div>
|
|
|
|
</form>
|
2022-10-27 22:37:45 +00:00
|
|
|
<div v-if="threads.length">
|
2022-10-28 06:03:34 +00:00
|
|
|
<br>
|
2022-10-27 22:37:45 +00:00
|
|
|
<span v-for="person in threads">
|
2022-10-28 06:03:34 +00:00
|
|
|
<button @click="openThread(person)">{{ formatPhone(person) }} - Open Thread</button>
|
2022-10-31 04:58:34 +00:00
|
|
|
<button @click="deleteThread(person)" class="danger">Delete Thread</button>
|
2022-10-28 06:03:34 +00:00
|
|
|
<br><br>
|
2022-10-27 22:37:45 +00:00
|
|
|
</span>
|
|
|
|
<div v-if="showingThreadNum">
|
|
|
|
<div v-for="message in threadMessages">
|
2022-10-28 23:43:31 +00:00
|
|
|
<div :class="message[1]">{{ message[0] }}</div>
|
2022-10-27 22:37:45 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-else>
|
|
|
|
No threads
|
|
|
|
</div>
|
2022-10-30 20:23:58 +00:00
|
|
|
|
2022-10-27 22:37:45 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-else>
|
|
|
|
<pre class="desktopHeader">
|
|
|
|
|
|
|
|
__ __ _____ __ __ _____
|
|
|
|
| | __. , __ ___ .___ __. ( | | (
|
|
|
|
|\ /| .' \ |' `. .' ` / \ .' \ `--. |\ /| `--.
|
|
|
|
| \/ | | | | | |----' | ' | | | | \/ | |
|
|
|
|
/ / `._.' / | `.___, / `._.' \___.' / / \___.'
|
|
|
|
|
|
|
|
</pre>
|
|
|
|
<h1 class="mobileHeader">MoneroSMS</h1>
|
|
|
|
<form class="login">
|
2022-10-28 23:43:31 +00:00
|
|
|
<input type="password" v-model="userIDInput" placeholder="Enter your account ID" required>
|
2022-10-27 22:37:45 +00:00
|
|
|
|
|
|
|
<button @submit.prevent="onSubmit" @click="userID = userIDInput; userLogin()">Login</button>
|
|
|
|
<button @submit.prevent="onSubmit" @click="userID = crypto.randomUUID(); userLogin()">Generate Account</button>
|
|
|
|
</form>
|
2022-11-20 18:57:07 +00:00
|
|
|
</div>
|
|
|
|
<br><br>
|
|
|
|
<div>
|
|
|
|
<a href="mailto:support@voidnet.tech?subject=MoneroSMS Support"><button>Get Support/Report Bug</button></a>
|
|
|
|
<p>This webUI is in alpha, please be patient and let us know of any problems or suggestions you have.</p>
|
2022-10-27 22:37:45 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!--
|
|
|
|
MoneroSMS Web Frontend
|
|
|
|
Copyright (C) 2022 VoidNetwork LLC
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Affero General Public License as
|
|
|
|
published by the Free Software Foundation, either version 3 of the
|
|
|
|
License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
-->
|
2022-10-31 21:15:49 +00:00
|
|
|
</body>
|