first commit

This commit is contained in:
benjibennn
2023-12-22 12:35:55 +08:00
commit 9f89a732d6
872 changed files with 156291 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
@if(setting('digital-ocean.enabled'))
@endif
<div class="clearfix container-fluid row" style="position:relative; top:10px;">
<div class="col-xs-12 col-md-6 col-lg-4">
<div class="bg-green-400 panel widget center bgimage" style="border-radius:6px; position:relative; overflow:hidden; background-image: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);">
<div style="width:100%; height:40px; display:flex; position:relative; z-index:20; justify-content: start; color:#fff;">
<img src="{{ Storage::url('/settings/April2021/deploy-to-do.png') }}" class="hidden-md" style="width:40px; height:40px;">
<div class="relative" style="margin-left:14px; text-align:left;">
<p style="color:#ffffff; display:block; margin:0px; font-weight:500; font-size:17px; line-height:17px; margin-top:3px; margin-bottom:4px;">Deploy to DO</p>
<p style="display:block; color:#dce9fe; text-align:left; line-height:14px; margin:0px;">Deploy to DigitalOcean</p>
</div>
<a href="{{ url('admin/do') }}" style="cursor:pointer; flex-shrink:0; justify-self:end; margin-left:auto; background:#fff; color:#4801FF; font-weight:500; padding:10px 20px; border-radius:4px;">
Deploy Now
</a>
</div>
<img src="{{ Storage::url('/settings/April2021/digital-ocean.png') }}" style="width:130px; z-index:10; height:auto; top:10px; right:140px; opacity:30%; position:absolute;">
</div>
</div>
<div class="col-xs-12 col-md-6 col-lg-4">
<div class="bg-green-400 panel widget center bgimage" style="border-radius:6px; position:relative; overflow:hidden; background-image: linear-gradient(to right, #b8cbb8 0%, #b8cbb8 0%, #b465da 0%, #cf6cc9 33%, #ee609c 66%, #ee609c 100%);">
<div style="width:100%; height:40px; display:flex; position:relative; z-index:20; justify-content: start; color:#fff;">
<img src="{{ Storage::url('/settings/April2021/play-icon.png') }}" class="hidden-md" style="width:40px; height:40px;">
<div class="relative" style="margin-left:14px; text-align:left;">
<p style="color:#ffffff; display:block; margin:0px; font-weight:500; font-size:17px; line-height:17px; margin-top:3px; margin-bottom:4px;">Watch & Learn</p>
<p style="display:block; text-align:left; line-height:14px; margin:0px;">Screencasts to learn Wave</p>
</div>
<a href="https://devdojo.com/course/wave" target="_blank" style="cursor:pointer; flex-shrink:0; justify-self:end; margin-left:auto; background:#fff; color:#ee445d; font-weight:500; padding:10px 20px; border-radius:4px;">
Watch Now
</a>
</div>
<img src="{{ Storage::url('/settings/April2021/popcorn-soda-icon.png') }}" style="width:80px; z-index:10; height:auto; bottom:-30px; right:5px; position:absolute;">
</div>
</div>
<div class="col-xs-12 col-md-6 col-lg-4">
<div class="bg-green-400 panel widget center bgimage" style="border-radius:6px; position:relative; overflow:hidden; background-image: url('{{ Storage::url('/settings/April2021/tails-bg.png') }}'); background-size:cover;">
<div style="width:100%; height:40px; display:flex; position:relative; z-index:20; justify-content: start; color:#fff;">
<img src="{{ Storage::url('/settings/April2021/tails-icon.png') }}" class="hidden-md" style="width:40px; height:40px;">
<div class="relative" style="margin-left:14px; text-align:left;">
<p style="color:#ffffff; display:block; margin:0px; font-weight:500; font-size:17px; line-height:17px; margin-top:3px; margin-bottom:4px;">Create a Landing Page</p>
<p style="display:block; text-align:left; color:#dce9fe; line-height:14px; margin:0px;">Tailwind Page Creator</p>
</div>
<a href="https://devdojo.com/tails" target="_blank" style="cursor:pointer; flex-shrink:0; justify-self:end; margin-left:auto; background:#fff; color:#4801FF; font-weight:500; padding:10px 20px; border-radius:4px;">
Create Now
</a>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,59 @@
<script src="https://cdn.paddle.com/paddle/paddle.js"></script>
<script>
window.vendor_id = parseInt('{{ config("wave.paddle.vendor") }}');
if(vendor_id){
Paddle.Setup({ vendor: vendor_id });
}
if("{{ config('wave.paddle.env') }}" == 'sandbox') {
Paddle.Environment.set('sandbox');
}
let checkoutBtns = document.getElementsByClassName("checkout");
for( var i=0; i < checkoutBtns.length; i++ ){
checkoutBtns[i].addEventListener('click', function(){
waveCheckout(this.dataset.plan)
}, false);
}
let updateBtns = document.getElementsByClassName("checkout-update");
for( var i=0; i < updateBtns.length; i++ ){
updateBtns[i].addEventListener('click', waveUpdate, false);
}
let cancelBtns = document.getElementsByClassName("checkout-cancel");
for( var i=0; i < cancelBtns.length; i++ ){
cancelBtns[i].addEventListener('click', waveCancel, false);
}
function waveCheckout(plan_id) {
if(vendor_id){
let product = parseInt(plan_id);
Paddle.Checkout.open({
product: product,
email: '@if(!auth()->guest()){{ auth()->user()->email }}@endif',
successCallback: "checkoutComplete",
});
} else {
alert('Paddle Vendor ID is not set, please see the docs and learn how to setup billing.');
}
}
function waveUpdate(){
Paddle.Checkout.open({
override: this.dataset.url,
successCallback: "checkoutUpdate",
});
}
function waveCancel(){
Paddle.Checkout.open({
override: this.dataset.url,
successCallback: "checkoutCancel",
});
}
</script>

View File

@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="{{ app()->getLocale() }}">
<head>
@if(isset($seo->title))
<title>{{ $seo->title }}</title>
@else
<title>{{ setting('site.title', 'Laravel Wave') . ' - ' . setting('site.description', 'The Software as a Service Starter Kit built on Laravel & Voyager') }}</title>
@endif
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge"> <!-- -->
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="url" content="{{ url('/') }}">
<link rel="icon" href="/wave/favicon.png" type="image/x-icon">
<meta name="robots" content="noindex,nofollow">
<meta name="googlebot" content="noindex,nofollow">
@if(isset($seo->description))
<meta name="description" content="{{ $seo->description }}">
@endif
<!-- Styles -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.0.4/tailwind.min.css">
@livewireStyles
</head>
<body>
@livewire('wave.deploy-to-do')
@livewireScripts
</body>
</html>

View File

@@ -0,0 +1,63 @@
@if(\Wave\User::all()->count() < 1)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Wave Installation</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.0.4/tailwind.min.css">
</head>
<body class="bg-gray-50">
@if(Request::get('complete'))
@php
\Illuminate\Support\Facades\Artisan::call('db:seed', [
'--force' => true
]);
\Illuminate\Support\Facades\Artisan::call('storage:link');
@endphp
<div class="flex flex-col items-center justify-center w-screen h-screen">
<svg class="w-20 h-20 -mt-12" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 208 206"><defs/><defs><linearGradient id="a" x1="100%" x2="0%" y1="45.596%" y2="45.596%"><stop offset="0%" stop-color="#5D63FB"/><stop offset="100%" stop-color="#0769FF"/></linearGradient><linearGradient id="b" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#39BEFF"/><stop offset="100%" stop-color="#0769FF"/></linearGradient><linearGradient id="c" x1="0%" x2="99.521%" y1="50%" y2="50%"><stop offset="0%" stop-color="#38BCFF"/><stop offset="99.931%" stop-color="#91D8FF"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><path fill="url(#a)" d="M185.302 38c14.734 18.317 22.742 41.087 22.698 64.545C208 159.68 161.43 206 103.986 206c-39.959-.01-76.38-22.79-93.702-58.605C-7.04 111.58-2.203 69.061 22.727 38a104.657 104.657 0 00-9.283 43.352c0 54.239 40.55 98.206 90.57 98.206 50.021 0 90.571-43.973 90.571-98.206A104.657 104.657 0 00185.302 38z"/><path fill="url(#b)" d="M105.11 0A84.144 84.144 0 01152 14.21C119.312-.651 80.806 8.94 58.7 37.45c-22.105 28.51-22.105 68.58 0 97.09 22.106 28.51 60.612 38.101 93.3 23.239-30.384 20.26-70.158 18.753-98.954-3.75-28.797-22.504-40.24-61.021-28.47-95.829C36.346 23.392 68.723.002 105.127.006L105.11 0z"/><path fill="url(#c)" d="M118.98 13c36.39-.004 66.531 28.98 68.875 66.234 2.343 37.253-23.915 69.971-60.006 74.766 29.604-8.654 48.403-38.434 43.99-69.685-4.413-31.25-30.678-54.333-61.459-54.014-30.78.32-56.584 23.944-60.38 55.28v-1.777C49.99 44.714 80.872 13.016 118.98 13z"/></g></svg>
<div class="flex flex-col items-center w-full max-w-lg p-10 mx-auto mt-8 bg-white border border-gray-100 shadow-xl rounded-xl">
<h1 class="text-3xl font-semibold text-green-400">Successfully Installed 🎉</h1>
<p class="mt-5 text-gray-500">Click the continue button below to view your new SAAS application.</p>
<a href="/" class="flex justify-center w-full px-4 py-2 mt-8 text-lg font-medium text-white transition duration-150 ease-in-out bg-blue-600 border border-transparent rounded-md hover:bg-blue-500 focus:outline-none focus:border-blue-700 focus:shadow-outline-wave active:bg-blue-700">
Continue
</a>
</div>
</div>
@else
<div class="flex flex-col items-center justify-center w-screen h-screen">
<svg class="w-20 h-20 -mt-12" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 208 206"><defs/><defs><linearGradient id="a" x1="100%" x2="0%" y1="45.596%" y2="45.596%"><stop offset="0%" stop-color="#5D63FB"/><stop offset="100%" stop-color="#0769FF"/></linearGradient><linearGradient id="b" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#39BEFF"/><stop offset="100%" stop-color="#0769FF"/></linearGradient><linearGradient id="c" x1="0%" x2="99.521%" y1="50%" y2="50%"><stop offset="0%" stop-color="#38BCFF"/><stop offset="99.931%" stop-color="#91D8FF"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><path fill="url(#a)" d="M185.302 38c14.734 18.317 22.742 41.087 22.698 64.545C208 159.68 161.43 206 103.986 206c-39.959-.01-76.38-22.79-93.702-58.605C-7.04 111.58-2.203 69.061 22.727 38a104.657 104.657 0 00-9.283 43.352c0 54.239 40.55 98.206 90.57 98.206 50.021 0 90.571-43.973 90.571-98.206A104.657 104.657 0 00185.302 38z"/><path fill="url(#b)" d="M105.11 0A84.144 84.144 0 01152 14.21C119.312-.651 80.806 8.94 58.7 37.45c-22.105 28.51-22.105 68.58 0 97.09 22.106 28.51 60.612 38.101 93.3 23.239-30.384 20.26-70.158 18.753-98.954-3.75-28.797-22.504-40.24-61.021-28.47-95.829C36.346 23.392 68.723.002 105.127.006L105.11 0z"/><path fill="url(#c)" d="M118.98 13c36.39-.004 66.531 28.98 68.875 66.234 2.343 37.253-23.915 69.971-60.006 74.766 29.604-8.654 48.403-38.434 43.99-69.685-4.413-31.25-30.678-54.333-61.459-54.014-30.78.32-56.584 23.944-60.38 55.28v-1.777C49.99 44.714 80.872 13.016 118.98 13z"/></g></svg>
<div class="flex flex-col items-center w-full max-w-lg p-10 mx-auto mt-8 bg-white border border-gray-100 shadow-xl rounded-xl">
<h1 class="text-3xl font-semibold text-blue-600">Welcome to Wave</h1>
<p class="mt-5 text-gray-500">If you're ready to get started, click on the 'Install Wave' button below. In this future this installation screen will have a few setup options.</p>
<a href="/install?complete=true" class="flex justify-center w-full px-4 py-2 mt-8 text-lg font-medium text-white transition duration-150 ease-in-out bg-blue-600 border border-transparent rounded-md hover:bg-blue-500 focus:outline-none focus:border-blue-700 focus:shadow-outline-wave active:bg-blue-700">
Install Wave
</a>
</div>
</div>
@endif
</body>
</html>
@endif