mirror of
https://koodu.h-i.works/projects/thebadspace
synced 2025-05-06 14:41:02 -05:00
Basic Wiring, environment set up
Added some controllers and template pages to test connection with the db and begin the process of porting over functionality to this version. Also made some minor tweaks to formatting configs and updated a color in the css
This commit is contained in:
parent
1d80380606
commit
50e80cec84
68
.prettierrc
68
.prettierrc
@ -1,36 +1,36 @@
|
|||||||
{
|
{
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
"files": ".prettierrc",
|
"files": ".prettierrc",
|
||||||
"options": { "parser": "json" }
|
"options": { "parser": "json" }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"files": "*.scss",
|
"files": "*.css",
|
||||||
"options": {
|
"options": {
|
||||||
"tabWidth": 4,
|
"tabWidth": 2,
|
||||||
"semi": false,
|
"semi": false,
|
||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
"printWidth": 90
|
"printWidth": 90
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"files": "*.js",
|
"files": "*.js",
|
||||||
"options": {
|
"options": {
|
||||||
"arrowParens": "avoid",
|
"arrowParens": "avoid",
|
||||||
"bracketSpacing": true,
|
"bracketSpacing": true,
|
||||||
"htmlWhitespaceSensitivity": "css",
|
"htmlWhitespaceSensitivity": "css",
|
||||||
"insertPragma": false,
|
"insertPragma": false,
|
||||||
"bracketSameLine": false,
|
"bracketSameLine": false,
|
||||||
"jsxSingleQuote": true,
|
"jsxSingleQuote": true,
|
||||||
"proseWrap": "preserve",
|
"proseWrap": "preserve",
|
||||||
"requirePragma": false,
|
"requirePragma": false,
|
||||||
"semi": true,
|
"semi": true,
|
||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
"trailingComma": "none",
|
"trailingComma": "none",
|
||||||
"useTabs": true,
|
"useTabs": true,
|
||||||
"tabWidth": 4,
|
"tabWidth": 4,
|
||||||
"printWidth": 90
|
"printWidth": 90
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
16
app/Http/Controllers/FrontIndexController.php
Normal file
16
app/Http/Controllers/FrontIndexController.php
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Models\Location;
|
||||||
|
|
||||||
|
class FrontIndexController extends Controller
|
||||||
|
{
|
||||||
|
public function start()
|
||||||
|
{
|
||||||
|
$locations = Location::all();
|
||||||
|
$count = count($locations);
|
||||||
|
|
||||||
|
return view('front.index', ['count' => $count]);
|
||||||
|
}
|
||||||
|
}
|
10
app/Http/Controllers/LocationController.php
Normal file
10
app/Http/Controllers/LocationController.php
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
class LocationController extends Controller
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
14
app/Models/Location.php
Normal file
14
app/Models/Location.php
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class Location extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
|
||||||
|
protected $table = "location";
|
||||||
|
protected $fillable = ["uuid", "name", "url", "description", "images", "active", "rating", "added_by", "tags"];
|
||||||
|
}
|
@ -1,7 +1,7 @@
|
|||||||
:root {
|
:root {
|
||||||
/* BASE COLORS */
|
/* BASE COLORS */
|
||||||
--primary: #140c08;
|
--primary: #140c08;
|
||||||
--secondary: #fc7472;
|
--secondary: #d66365;
|
||||||
--highlight: #69b04f;
|
--highlight: #69b04f;
|
||||||
--white: #efebe3;
|
--white: #efebe3;
|
||||||
--grey: #abb7b7;
|
--grey: #abb7b7;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>
|
<title>
|
||||||
<title>App Name - @yield('title')</title>
|
@yield('title')
|
||||||
</title>
|
</title>
|
||||||
<link rel="stylesheet" type="text/css" href="/assets/css/front/start.css?=sdfsdf">
|
<link rel="stylesheet" type="text/css" href="/assets/css/front/start.css?=sdfsdf">
|
||||||
</head>
|
</head>
|
||||||
|
@ -6,4 +6,5 @@
|
|||||||
@parent
|
@parent
|
||||||
|
|
||||||
<p>This is where we start</p>
|
<p>This is where we start</p>
|
||||||
|
{{ $count }}
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
|
use App\Http\Controllers\FrontIndexController;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@ -13,6 +14,4 @@ use Illuminate\Support\Facades\Route;
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Route::get("/", function () {
|
Route::get("/", [FrontIndexController::class, 'start']);
|
||||||
return view("front.index");
|
|
||||||
});
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user