From ba79c9924c7dbdff3f93240a3d7f7f4d7cbcaf77 Mon Sep 17 00:00:00 2001 From: Ro Date: Mon, 14 Aug 2023 13:33:53 -0700 Subject: [PATCH] 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 --- .prettierrc | 68 +++++++++---------- app/Http/Controllers/FrontIndexController.php | 16 +++++ app/Http/Controllers/LocationController.php | 10 +++ app/Models/Location.php | 14 ++++ public/assets/css/global/colors.css | 2 +- resources/views/frame.blade.php | 2 +- resources/views/front/index.blade.php | 1 + routes/web.php | 5 +- 8 files changed, 79 insertions(+), 39 deletions(-) create mode 100644 app/Http/Controllers/FrontIndexController.php create mode 100644 app/Http/Controllers/LocationController.php create mode 100644 app/Models/Location.php diff --git a/.prettierrc b/.prettierrc index 57b161e..66e2302 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,36 +1,36 @@ { - "overrides": [ - { - "files": ".prettierrc", - "options": { "parser": "json" } - }, - { - "files": "*.scss", - "options": { - "tabWidth": 4, - "semi": false, - "singleQuote": true, - "printWidth": 90 - } - }, - { - "files": "*.js", - "options": { - "arrowParens": "avoid", - "bracketSpacing": true, - "htmlWhitespaceSensitivity": "css", - "insertPragma": false, - "bracketSameLine": false, - "jsxSingleQuote": true, - "proseWrap": "preserve", - "requirePragma": false, - "semi": true, - "singleQuote": true, - "trailingComma": "none", - "useTabs": true, - "tabWidth": 4, - "printWidth": 90 - } - } - ] + "overrides": [ + { + "files": ".prettierrc", + "options": { "parser": "json" } + }, + { + "files": "*.css", + "options": { + "tabWidth": 2, + "semi": false, + "singleQuote": true, + "printWidth": 90 + } + }, + { + "files": "*.js", + "options": { + "arrowParens": "avoid", + "bracketSpacing": true, + "htmlWhitespaceSensitivity": "css", + "insertPragma": false, + "bracketSameLine": false, + "jsxSingleQuote": true, + "proseWrap": "preserve", + "requirePragma": false, + "semi": true, + "singleQuote": true, + "trailingComma": "none", + "useTabs": true, + "tabWidth": 4, + "printWidth": 90 + } + } + ] } diff --git a/app/Http/Controllers/FrontIndexController.php b/app/Http/Controllers/FrontIndexController.php new file mode 100644 index 0000000..8b7399d --- /dev/null +++ b/app/Http/Controllers/FrontIndexController.php @@ -0,0 +1,16 @@ + $count]); + } +} diff --git a/app/Http/Controllers/LocationController.php b/app/Http/Controllers/LocationController.php new file mode 100644 index 0000000..6f75150 --- /dev/null +++ b/app/Http/Controllers/LocationController.php @@ -0,0 +1,10 @@ + - <title>App Name - @yield('title') + @yield('title') diff --git a/resources/views/front/index.blade.php b/resources/views/front/index.blade.php index ce2a7bf..adcaec7 100644 --- a/resources/views/front/index.blade.php +++ b/resources/views/front/index.blade.php @@ -6,4 +6,5 @@ @parent

This is where we start

+ {{ $count }} @endsection diff --git a/routes/web.php b/routes/web.php index 893ed05..a8edffa 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,6 +1,7 @@