Compare commits

...

5 Commits

3 changed files with 57 additions and 24 deletions

View File

@ -186,6 +186,17 @@ We suggest starting by allowing Auth.js
| AUTH_TRUST_HOST | Required, should always be set to `true` | `true` |
| NEXTAUTH_URL | The URL LibreCloud will be publicly accessible at | `http://localhost:3000` (testing), `https://example.com` (production) |
## Database schema updates
In case of an update to `prisma/schema.prisma`, you should run the below command to migrate the old database.
Each update to this file is guaranteed to work with the previous version of the file to ensure maximum compatibility. While every effort has been made to ensure compatibility, we are not responsible for any data loss.
```bash
npx prisma migrate dev --name update-schema # Migrate
npx prisma migrate deploy # Deploy
```
## To-Do
* [X] Add documentation on .env

View File

@ -2,6 +2,7 @@
import { motion } from "framer-motion"
import { SideMenu } from "@/components/pages/dashboard/SideMenu"
import { BadgeDollarSign } from "lucide-react"
const fadeIn = {
initial: { opacity: 0, y: 20 },
@ -16,9 +17,17 @@ export default function Exchange() {
<main className="flex-1 w-full overflow-y-auto pl-0 lg:pl-64">
<div className="container mx-auto px-4 py-6 w-full">
<motion.div {...fadeIn}>
<h1 className="text-3xl font-bold mb-6">Exchange Crypto</h1>
<p>Coming soon</p>
<p className="mt-4">If you prefer not to see this service, you will be able to hide it from Settings when it launches.</p>
<div className="flex justify-center">
<h3 className="text-xl font-bold mb-2 uppercase bg-slate-700 rounded px-2">Coming Soon</h3>
</div>
<h1 className="text-6xl text-center font-bold">Exchange Crypto</h1>
<div className="flex justify-center mt-16">
<BadgeDollarSign size={69} />
</div>
<div className="max-w-2xl mx-auto">
<h2 className="text-4xl mt-6">We find the best price, seriously</h2>
<p className="mt-4">We use the API from several providers to provide comparisons between the different providers. You complete the exchange via our exchange interface (via provider) or through the provider&#39;s website. Each time, you can walk out knowing you got the best deal. The best part? We don&#39;t take a cut or make a profit off your usage.</p>
</div>
</motion.div>
</div>
</main>

View File

@ -22,36 +22,49 @@ export default function Statistics() {
<Card className="col-span-full md:col-span-1">
<CardHeader>
<CardTitle>Operational Costs</CardTitle>
<CardDescription>LibreCloud&#39;s monthly bill, for you to view.</CardDescription>
<CardDescription>How much it costs us to run LibreCloud each month</CardDescription>
</CardHeader>
<CardContent>
<span className="text-sm"><span className="font-bold">Month of:</span> February</span>
<span className="text-sm"><span className="font-bold">Month of:</span> March</span>
<Separator className="my-4" />
<span className="font-bold">Server</span>
<div className="flex items-center justify-between mt-2">
<span className="text-sm">Main Server</span>
<span className="text-bold text-right">$28.88</span>
</div>
<Separator className="my-4" />
<span className="font-bold">Domains</span>
<div className="flex items-center justify-between mt-2">
<span className="text-sm">librecloud.cc</span>
<span className="text-bold text-right">$3.10</span>
</div>
<Separator className="my-4" />
<span className="font-bold">Addons</span>
<div className="flex items-center justify-between mt-2">
<span className="text-sm">+0GB Disk Space</span>
<span className="text-bold text-right">$0.00</span>
<div className="flex items-center justify-between">
<span className="font-bold uppercase">Server</span>
<span className="font-bold uppercase">Price</span>
</div>
<div className="flex items-center justify-between mt-2">
<span className="text-sm">+0GB RAM</span>
<span className="text-bold text-right">$0.00</span>
<span className="text-sm">node0.librecloud.cc</span>
<span>$28.88</span>
</div>
<div className="flex items-center justify-between mt-2">
<span className="text-sm">orbit.librecloud.cc</span>
<span>$34.24</span>
</div>
<Separator className="my-4" />
<div className="flex items-center justify-between">
<span className="font-bold uppercase">Domains</span>
<span className="font-bold uppercase">Price</span>
</div>
<div className="flex items-center justify-between mt-2">
<span className="text-sm">0 Domains</span>
<span>$0.00</span>
</div>
<Separator className="my-4" />
<div className="flex items-center justify-between">
<span className="font-bold uppercase">Addons</span>
<span className="font-bold uppercase">Price</span>
</div>
<div className="flex items-center justify-between mt-2">
<span className="text-sm">0GB Disk Space</span>
<span>$0.00</span>
</div>
<div className="flex items-center justify-between mt-2">
<span className="text-sm">0GB RAM</span>
<span>$0.00</span>
</div>
<Separator className="my-4" />
<div className="flex items-center justify-between mt-2">
<span className="font-bold">TOTAL</span>
<span className="text-bold text-right">$31.98</span>
<span className="font-bold">$63.12</span>
</div>
</CardContent>
</Card>