mirror of
https://koodu.h-i.works/projects/thebadspace
synced 2025-06-25 16:04:37 -05:00
The Big Switch
Archived previous version to switch codebase to Laravel framework for the sake of reducing complexity to lower the barrier for entry for potential contributers. Because easier is always better.
This commit is contained in:
0
resources/css/app.css
Normal file
0
resources/css/app.css
Normal file
1
resources/js/app.js
Normal file
1
resources/js/app.js
Normal file
@ -0,0 +1 @@
|
||||
import './bootstrap';
|
32
resources/js/bootstrap.js
vendored
Normal file
32
resources/js/bootstrap.js
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
/**
|
||||
* We'll load the axios HTTP library which allows us to easily issue requests
|
||||
* to our Laravel back-end. This library automatically handles sending the
|
||||
* CSRF token as a header based on the value of the "XSRF" token cookie.
|
||||
*/
|
||||
|
||||
import axios from 'axios';
|
||||
window.axios = axios;
|
||||
|
||||
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
||||
|
||||
/**
|
||||
* Echo exposes an expressive API for subscribing to channels and listening
|
||||
* for events that are broadcast by Laravel. Echo and event broadcasting
|
||||
* allows your team to easily build robust real-time web applications.
|
||||
*/
|
||||
|
||||
// import Echo from 'laravel-echo';
|
||||
|
||||
// import Pusher from 'pusher-js';
|
||||
// window.Pusher = Pusher;
|
||||
|
||||
// window.Echo = new Echo({
|
||||
// broadcaster: 'pusher',
|
||||
// key: import.meta.env.VITE_PUSHER_APP_KEY,
|
||||
// cluster: import.meta.env.VITE_PUSHER_APP_CLUSTER ?? 'mt1',
|
||||
// wsHost: import.meta.env.VITE_PUSHER_HOST ? import.meta.env.VITE_PUSHER_HOST : `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`,
|
||||
// wsPort: import.meta.env.VITE_PUSHER_PORT ?? 80,
|
||||
// wssPort: import.meta.env.VITE_PUSHER_PORT ?? 443,
|
||||
// forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https',
|
||||
// enabledTransports: ['ws', 'wss'],
|
||||
// });
|
41
resources/views/frame.blade.php
Normal file
41
resources/views/frame.blade.php
Normal file
@ -0,0 +1,41 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>
|
||||
<title>App Name - @yield('title')</title>
|
||||
</title>
|
||||
<link rel="stylesheet" type="text/css" href="/assets/css/front/start.css?=sdfsdf">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<nav>
|
||||
<div role="nav-left">
|
||||
<a href="/" title="home" role="nav-links">
|
||||
<i class="ti ti-biohazard-off"></i>
|
||||
</a>
|
||||
<a href="/about" title="about" role="nav-links">
|
||||
<i class="ti ti-info-circle"></i>
|
||||
</a>
|
||||
<a href="/listings/page/1" title="instance listing" role="nav-links">
|
||||
<i class="ti ti-list"></i>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<div role="nav-right">
|
||||
<a href="/den" title="login" role="nav-links">
|
||||
<i class="ti ti-door-enter" title="login"></i>
|
||||
</a>
|
||||
|
||||
</nav>
|
||||
</header>
|
||||
<div role="system-notice">
|
||||
<i class="ti ti-alert-circle"></i>
|
||||
</div>
|
||||
<main>
|
||||
@section('main-content')
|
||||
@show
|
||||
</main>
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
9
resources/views/front/index.blade.php
Normal file
9
resources/views/front/index.blade.php
Normal file
@ -0,0 +1,9 @@
|
||||
@extends('frame')
|
||||
|
||||
@section('title', 'This is The Bad Space')
|
||||
|
||||
@section('main-content')
|
||||
@parent
|
||||
|
||||
<p>This is where we start</p>
|
||||
@endsection
|
140
resources/views/welcome.blade.php
Normal file
140
resources/views/welcome.blade.php
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user