@@ -66,8 +66,6 @@ class UserController extends Controller | |||||
//This should probably be changed to not return a page | //This should probably be changed to not return a page | ||||
if (Auth::attempt($credentials)) { | if (Auth::attempt($credentials)) { | ||||
Log::debug(Auth::attempt($credentials)); | |||||
/* Log::debug("I don't know why this works") */ | |||||
$request->session()->regenerate(); | $request->session()->regenerate(); | ||||
} else { | } else { | ||||
abort(401); | abort(401); | ||||
@@ -0,0 +1,4 @@ | |||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-key" viewBox="0 0 16 16"> | |||||
<path d="M0 8a4 4 0 0 1 7.465-2H14a.5.5 0 0 1 .354.146l1.5 1.5a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0L13 9.207l-.646.647a.5.5 0 0 1-.708 0L11 9.207l-.646.647a.5.5 0 0 1-.708 0L9 9.207l-.646.647A.5.5 0 0 1 8 10h-.535A4 4 0 0 1 0 8zm4-3a3 3 0 1 0 2.712 4.285A.5.5 0 0 1 7.163 9h.63l.853-.854a.5.5 0 0 1 .708 0l.646.647.646-.647a.5.5 0 0 1 .708 0l.646.647.646-.647a.5.5 0 0 1 .708 0l.646.647.793-.793-1-1h-6.63a.5.5 0 0 1-.451-.285A3 3 0 0 0 4 5z"/> | |||||
<path d="M4 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/> | |||||
</svg> |
@@ -0,0 +1,3 @@ | |||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-cart3" viewBox="0 0 16 16"> | |||||
<path d="M0 1.5A.5.5 0 0 1 .5 1H2a.5.5 0 0 1 .485.379L2.89 3H14.5a.5.5 0 0 1 .49.598l-1 5a.5.5 0 0 1-.465.401l-9.397.472L4.415 11H13a.5.5 0 0 1 0 1H4a.5.5 0 0 1-.491-.408L2.01 3.607 1.61 2H.5a.5.5 0 0 1-.5-.5zM3.102 4l.84 4.479 9.144-.459L13.89 4H3.102zM5 12a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm7 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm-7 1a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm7 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"/> | |||||
</svg> |
@@ -0,0 +1,3 @@ | |||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-columns" viewBox="0 0 16 16"> | |||||
<path d="M0 2a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2zm8.5 0v8H15V2H8.5zm0 9v3H15v-3H8.5zm-1-9H1v3h6.5V2zM1 14h6.5V6H1v8z"/> | |||||
</svg> |
@@ -0,0 +1,3 @@ | |||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-credit-card-2-back-fill" viewBox="0 0 16 16"> | |||||
<path d="M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v5H0V4zm11.5 1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-2zM0 11v1a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-1H0z"/> | |||||
</svg> |
@@ -0,0 +1,4 @@ | |||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-layers-fill" viewBox="0 0 16 16"> | |||||
<path d="M7.765 1.559a.5.5 0 0 1 .47 0l7.5 4a.5.5 0 0 1 0 .882l-7.5 4a.5.5 0 0 1-.47 0l-7.5-4a.5.5 0 0 1 0-.882l7.5-4z"/> | |||||
<path d="m2.125 8.567-1.86.992a.5.5 0 0 0 0 .882l7.5 4a.5.5 0 0 0 .47 0l7.5-4a.5.5 0 0 0 0-.882l-1.86-.992-5.17 2.756a1.5 1.5 0 0 1-1.41 0l-5.17-2.756z"/> | |||||
</svg> |
@@ -0,0 +1,4 @@ | |||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-link" viewBox="0 0 16 16"> | |||||
<path d="M6.354 5.5H4a3 3 0 0 0 0 6h3a3 3 0 0 0 2.83-4H9c-.086 0-.17.01-.25.031A2 2 0 0 1 7 10.5H4a2 2 0 1 1 0-4h1.535c.218-.376.495-.714.82-1z"/> | |||||
<path d="M9 5.5a3 3 0 0 0-2.83 4h1.098A2 2 0 0 1 9 6.5h3a2 2 0 1 1 0 4h-1.535a4.02 4.02 0 0 1-.82 1H12a3 3 0 1 0 0-6H9z"/> | |||||
</svg> |
@@ -0,0 +1,3 @@ | |||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-menu-button-fill" viewBox="0 0 16 16"> | |||||
<path d="M1.5 0A1.5 1.5 0 0 0 0 1.5v2A1.5 1.5 0 0 0 1.5 5h8A1.5 1.5 0 0 0 11 3.5v-2A1.5 1.5 0 0 0 9.5 0h-8zm5.927 2.427A.25.25 0 0 1 7.604 2h.792a.25.25 0 0 1 .177.427l-.396.396a.25.25 0 0 1-.354 0l-.396-.396zM0 8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8zm1 3v2a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2H1zm14-1V8a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v2h14zM2 8.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zm0 4a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5z"/> | |||||
</svg> |
@@ -1,47 +0,0 @@ | |||||
<?xml version="1.0" encoding="iso-8859-1"?> | |||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> | |||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" | |||||
viewBox="0 0 297.001 297.001" style="enable-background:new 0 0 297.001 297.001;" xml:space="preserve"> | |||||
<g> | |||||
<g> | |||||
<g> | |||||
<path d="M273.736,0.001H23.264C10.436,0.001,0,10.436,0,23.264v23.789C0,59.88,10.436,70.316,23.264,70.316h250.473 | |||||
c12.827,0,23.264-10.435,23.264-23.263V23.264C297,10.436,286.564,0.001,273.736,0.001z"/> | |||||
<path d="M273.736,113.344H23.264C10.436,113.344,0,123.779,0,136.605v23.789c0,12.827,10.436,23.263,23.264,23.263h250.473 | |||||
c12.827,0,23.264-10.435,23.264-23.263v-23.789C297,123.779,286.564,113.344,273.736,113.344z"/> | |||||
<path d="M273.736,226.686H23.264C10.436,226.686,0,237.121,0,249.949v23.789C0,286.565,10.436,297,23.264,297h250.473 | |||||
C286.564,297,297,286.565,297,273.737v-23.789C297,237.121,286.564,226.686,273.736,226.686z"/> | |||||
</g> | |||||
</g> | |||||
</g> | |||||
<g> | |||||
</g> | |||||
<g> | |||||
</g> | |||||
<g> | |||||
</g> | |||||
<g> | |||||
</g> | |||||
<g> | |||||
</g> | |||||
<g> | |||||
</g> | |||||
<g> | |||||
</g> | |||||
<g> | |||||
</g> | |||||
<g> | |||||
</g> | |||||
<g> | |||||
</g> | |||||
<g> | |||||
</g> | |||||
<g> | |||||
</g> | |||||
<g> | |||||
</g> | |||||
<g> | |||||
</g> | |||||
<g> | |||||
</g> | |||||
</svg> |
@@ -0,0 +1,3 @@ | |||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-fill" viewBox="0 0 16 16"> | |||||
<path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/> | |||||
</svg> |
@@ -0,0 +1,3 @@ | |||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-gear-fill" viewBox="0 0 16 16"> | |||||
<path d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872l-.1-.34zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z"/> | |||||
</svg> |
@@ -0,0 +1,4 @@ | |||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-card-heading" viewBox="0 0 16 16"> | |||||
<path d="M14.5 3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h13zm-13-1A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2h-13z"/> | |||||
<path d="M3 8.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zm0 2a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5zm0-5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5v-1z"/> | |||||
</svg> |
@@ -1,4 +1,5 @@ | |||||
import RegisterArea from './register-area/register-area.vue' | import RegisterArea from './register-area/register-area.vue' | ||||
import Sidebar from './sidebar/sidebar.vue' | |||||
import '../scss/main.scss' | import '../scss/main.scss' | ||||
import { createApp } from 'vue' | import { createApp } from 'vue' | ||||
importAll(require.context('../images', false, /\.(png|jpe?g|svg)$/)) | importAll(require.context('../images', false, /\.(png|jpe?g|svg)$/)) | ||||
@@ -7,7 +8,6 @@ let heroText = document.querySelectorAll(".landing-hero h2,.landing-hero p") | |||||
let registerToggles = document.querySelectorAll(".register-btn, .register-area\ | let registerToggles = document.querySelectorAll(".register-btn, .register-area\ | ||||
.cancel-button, .services-cards button") | .cancel-button, .services-cards button") | ||||
let token = getCookie('XSRF-TOKEN') | let token = getCookie('XSRF-TOKEN') | ||||
const app = createApp(RegisterArea).mount('#app') | |||||
function importAll(r) { | function importAll(r) { | ||||
return r.keys().map(r) | return r.keys().map(r) | ||||
@@ -81,6 +81,7 @@ if (!token) {getToken()} | |||||
if (window.location.pathname == '/') { | if (window.location.pathname == '/') { | ||||
document.getElementById('nav_toggle').addEventListener('click', toggleNav) | document.getElementById('nav_toggle').addEventListener('click', toggleNav) | ||||
document.querySelector('#login_form button').addEventListener('click', login) | document.querySelector('#login_form button').addEventListener('click', login) | ||||
const app = createApp(RegisterArea).mount('#app') | |||||
app.token = token | app.token = token | ||||
// console.log(app.token) | // console.log(app.token) | ||||
// console.log(app.$data.active) | // console.log(app.$data.active) | ||||
@@ -108,5 +109,8 @@ if (window.location.pathname == '/') { | |||||
} | } | ||||
} else if (window.location.pathname == '/verify-email') { | } else if (window.location.pathname == '/verify-email') { | ||||
document.getElementById('resend_verification').addEventListener("click", resendLink) | document.getElementById('resend_verification').addEventListener("click", resendLink) | ||||
} else if (window.location.pathname == '/panel') { | |||||
const app = createApp(Sidebar).mount('#panel') | |||||
app.token = token | |||||
} | } | ||||
@@ -0,0 +1,8 @@ | |||||
<template> | |||||
<nav id="sidebar"> | |||||
<a href="/panel"><img src="" alt=""></a> | |||||
<a href="/panel/orders">Orders<div><img src="" alt=""></div></a> | |||||
<a href="/panel/billing">Billing<div><img src="" alt=""></div></a> | |||||
<a href="/panel/admin">Administrator<div><img src="" alt=""></div></a> | |||||
</nav> | |||||
</template> |
@@ -668,3 +668,22 @@ div.register-area.active { | |||||
} | } | ||||
} | } | ||||
main.panel { | |||||
min-height: 85vh; | |||||
max-height: 100vh; | |||||
background-image: linear-gradient(315deg, #ff4e00 0%, #ec9f05 74%); | |||||
} | |||||
#sidebar { | |||||
width: 40px; | |||||
color: white; | |||||
background: transparent; | |||||
a { | |||||
display: block; | |||||
} | |||||
img { | |||||
width: 50px | |||||
} | |||||
} |
@@ -48,7 +48,7 @@ spellcheck='false'> | |||||
<div class='foot-links'> | <div class='foot-links'> | ||||
<a href="/terms">Terms & Policy</a> | <a href="/terms">Terms & Policy</a> | ||||
<a href="mail:support@trendplays.com">Help</a> | <a href="mail:support@trendplays.com">Help</a> | ||||
<a id="forgot-password-btn" href="/reset-password">Reset Password</a> | |||||
<a id="forgot-password-btn" href="#">Reset Password</a> | |||||
</div> | </div> | ||||
<small>©Copyright 2021 Trendplays Network, Inc.</small> | <small>©Copyright 2021 Trendplays Network, Inc.</small> | ||||
</footer> | </footer> | ||||
@@ -1,6 +1,7 @@ | |||||
@extends('master') | @extends('master') | ||||
@section('title', 'Panel') | @section('title', 'Panel') | ||||
@section('child-type', 'panel') | |||||
@section('head-metas') | @section('head-metas') | ||||
@parent | @parent | ||||
@@ -9,20 +10,14 @@ | |||||
@section('content') | @section('content') | ||||
@parent | @parent | ||||
<div id="counter"> | |||||
Counter: @{{ counter }} | |||||
<main class="panel"> | |||||
<div id="panel"> | |||||
</div> | </div> | ||||
<nav class="sidebar"> | |||||
<a href="/panel">Summary<div><img src="" alt=""></div></a> | |||||
<a href="/panel/orders">Orders<div><img src="" alt=""></div></a> | |||||
<a href="/panel/billing">Billing<div><img src="" alt=""></div></a> | |||||
<a href="/panel/help">Help<div><img src="" alt=""></div></a> | |||||
<a href="/panel/admin">Administrator<div><img src="" alt=""></div></a> | |||||
</nav> | |||||
</main> | |||||
@endsection | @endsection | ||||
@section('scripts') | @section('scripts') | ||||
@parent | @parent | ||||
<script src="vue.global.js"></script> | |||||
<script src="main.js"></script> | |||||
<script src="js/app.js"></script> | |||||
<script src="js/chunk-vendors.js"></script> | |||||
@endsection | @endsection |