summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrothedev <grothedev@gmail.com>2025-07-01 16:00:48 -0500
committergrothedev <grothedev@gmail.com>2025-07-01 16:00:48 -0500
commit235da1c01fd52a0461ca09040a8cc700ddaf6d2f (patch)
treeab4e6f9e0a80dc8b92b4126bda28cdad5e5a5d58
parenta895874c5f6db3a388c9726b924c22192cbee23a (diff)
pushing for work on laptop
-rw-r--r--README.md1
-rw-r--r--database/migrations/2025_06_22_215910_add_statuspage_field.php30
-rw-r--r--database/migrations/2025_06_25_024850_user-id-nullable-on-writings.php28
-rw-r--r--docs/brainstorming.md6
-rw-r--r--resources/views/filecollection.blade.php25
-rwxr-xr-xresources/views/home.blade.php2
6 files changed, 91 insertions, 1 deletions
diff --git a/README.md b/README.md
index a10230d..9bad143 100644
--- a/README.md
+++ b/README.md
@@ -14,6 +14,7 @@ https://laravel.com/docs/11.x/blade
- add drag-drop file to upload and then generate appropriate html to embed that file
- auto capitalization https://marked.js.org/using_pro
- index filter and sort
+ - FIX THE CSS WTF
- quickbuttons, for adding in snippets of things like embedding an image
- update markup on a timer instead of every character (and/or see if i can prevent it from making unnecessary network requests like loading embedded files)
- each user has their own status pane html element
diff --git a/database/migrations/2025_06_22_215910_add_statuspage_field.php b/database/migrations/2025_06_22_215910_add_statuspage_field.php
new file mode 100644
index 0000000..274b397
--- /dev/null
+++ b/database/migrations/2025_06_22_215910_add_statuspage_field.php
@@ -0,0 +1,30 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+return new class extends Migration
+{
+ /**
+ * Run the migrations.
+ */
+ public function up(): void
+ {
+ Schema::table('users', function (Blueprint $table) {
+ $table->string('statushtml')->nullable();
+ $table->string('profilehtml')->nullable();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ */
+ public function down(): void
+ {
+ Schema::table('users', function (Blueprint $table) {
+ $table->removeColumn('statushtml');
+ $table->removeColumn('profilehtml');
+ });
+ }
+};
diff --git a/database/migrations/2025_06_25_024850_user-id-nullable-on-writings.php b/database/migrations/2025_06_25_024850_user-id-nullable-on-writings.php
new file mode 100644
index 0000000..b898876
--- /dev/null
+++ b/database/migrations/2025_06_25_024850_user-id-nullable-on-writings.php
@@ -0,0 +1,28 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+return new class extends Migration
+{
+ /**
+ * Run the migrations.
+ */
+ public function up(): void
+ {
+ Schema::table('writings', function (Blueprint $table) {
+ $table->integer('user_id')->unsigned()->nullable()->change();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ */
+ public function down(): void
+ {
+ Schema::table('writings', function (Blueprint $table) {
+ $table->integer('user_id')->unsigned()->nullable(false)->change();
+ });
+ }
+};
diff --git a/docs/brainstorming.md b/docs/brainstorming.md
new file mode 100644
index 0000000..9aa9c3c
--- /dev/null
+++ b/docs/brainstorming.md
@@ -0,0 +1,6 @@
+homepage is pretty much already mostly laid out.
+
+need to figure out how i want the user account status pages to be.
+
+while working, when i am dealing with some model, for example in the WritingController, i want to be able to quickly (almost automatically?) see the Model definition, database migration, Controller, and any relevant views and routes for that model.
+
diff --git a/resources/views/filecollection.blade.php b/resources/views/filecollection.blade.php
new file mode 100644
index 0000000..f89ac02
--- /dev/null
+++ b/resources/views/filecollection.blade.php
@@ -0,0 +1,25 @@
+@extends('template')
+<?php
+ use Illuminate\Support\Facades\Storage;
+ //this page is intended to be used for specific collections of files relevant to groups of users, such as photos and videos from some event that they want to share with each other
+
+ $files = Storage::disk('public')->files('sheeshbb');
+
+ // Filter out unwanted files (like .gitignore)
+ $files = array_filter($files, function($file) {
+ // Add any file filtering logic here if needed
+ return !str_starts_with(basename($file), '.');
+ });
+
+ // Prepare file data for display
+ $fileData = [];
+ foreach ($files as $file) {
+ $fileData[] = [
+ 'name' => basename($file),
+ 'path' => $file,
+ 'url' => Storage::disk('public')->url($file),
+ 'size' => Storage::disk('public')->size($file),
+ 'last_modified' => Storage::disk('public')->lastModified($file),
+ ];
+ }
+?> \ No newline at end of file
diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php
index 0488570..f6fd3ad 100755
--- a/resources/views/home.blade.php
+++ b/resources/views/home.blade.php
@@ -24,7 +24,7 @@
<iframe class="embed-hover-iframe" width="460" height="240"
src = "https://www.youtube.com/embed/6JE0Hfvjgsw?enablejsapi=1&autoplay=1" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
<p>A human young adult male, citizen of the United States, software engineer, enjoyer of a variety of different forms of art. But the more important matter right now is this website. What is its purpose? What can it do for you?
- Well, it provides a few different services. Read more below.
+ Well, it provides a few different services. Read more below.</p>
</div>
<p>Who are you?</p><input type = "text" id = "input_who" />
<br>