]> gitweb.hamatoma.de Git - gadeku.git/commitdiff
V 0.2.9 Group
authorHamatoma <author@hamatoma.de>
Thu, 9 May 2024 10:59:50 +0000 (12:59 +0200)
committerHamatoma <author@hamatoma.de>
Thu, 9 May 2024 11:02:52 +0000 (13:02 +0200)
- neues Modul Group

12 files changed:
CHANGELOG.md
app/Http/Controllers/GroupController.php [new symlink]
app/Http/Controllers/PageController.php
app/Models/Group.php [new symlink]
composer.lock
database/migrations/2024_05_09_063057_create_groups_table.php [new symlink]
database/seeders/GroupSeeder.php [new symlink]
database/seeders/seeders [new symlink]
lang/de_DE.json
resources/views/chapter/edit.blade.php
resources/views/group [new symlink]
routes/web.php

index 3643768382a350cb189cff33046b74b782da0030..082365d7079569a124569c2a24e244956bca2be2 100644 (file)
@@ -1,3 +1,8 @@
+# V 0.2.9 Group
+
+## Added:
+- neues Modul Group
+
 # V 0.2.8 MediaWiki Unicode Navigation
 
 ## Changed
diff --git a/app/Http/Controllers/GroupController.php b/app/Http/Controllers/GroupController.php
new file mode 120000 (symlink)
index 0000000..5717662
--- /dev/null
@@ -0,0 +1 @@
+../../../vendor/hamatoma/laraknife/templates/Http/Controllers/GroupController.php
\ No newline at end of file
index 5a0488938d7e5baf84d35e6461fed2cc1505a1a5..ab56936dec19fb6cdfdd3e68c5f06c6b254fc7d5 100644 (file)
@@ -115,6 +115,10 @@ class PageController extends Controller
             $optionsMarkup = SProperty::optionsByScope('markup', $page->markup_scope, '');
             $optionsLanguage = SProperty::optionsByScope('localization', $page->language_scope, '');
             $fields = $request->btnSubmit !== 'btnPreview' ? null : ['preview' => $this->asHtml($page)];
+            if ($page->audio_id != null){
+                $file = File::find($page->audio_id);
+                $fields['audio'] = $file->filename;
+            }
             $context = new ContextLaraKnife($request, $fields, $page);
             $rc = view('page.edit', [
                 'context' => $context,
diff --git a/app/Models/Group.php b/app/Models/Group.php
new file mode 120000 (symlink)
index 0000000..e97de9c
--- /dev/null
@@ -0,0 +1 @@
+../../vendor/hamatoma/laraknife/templates/Models/Group.php
\ No newline at end of file
index ebffb4082b9e1044aa43e62533c16b0dd3a25c29..eece4603b32363a58fa4138fe76b68ecfa15fe88 100644 (file)
             "dist": {
                 "type": "path",
                 "url": "../laraknife",
-                "reference": "8a0789ea4dc11c715341bfeb32f23113068a3384"
+                "reference": "542a161082cb090cb635241880b7fd56267d66d1"
             },
             "require-dev": {
                 "phpunit/phpunit": "11.0.x-dev"
         },
         {
             "name": "laravel/framework",
-            "version": "v11.6.0",
+            "version": "v11.7.0",
             "source": {
                 "type": "git",
                 "url": "https://github.com/laravel/framework.git",
-                "reference": "e090ee638ebd4ce221d8bad43b49bbf59ea70ae5"
+                "reference": "e5ac72f513f635f208024aa76b8a04efc1b47f93"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/laravel/framework/zipball/e090ee638ebd4ce221d8bad43b49bbf59ea70ae5",
-                "reference": "e090ee638ebd4ce221d8bad43b49bbf59ea70ae5",
+                "url": "https://api.github.com/repos/laravel/framework/zipball/e5ac72f513f635f208024aa76b8a04efc1b47f93",
+                "reference": "e5ac72f513f635f208024aa76b8a04efc1b47f93",
                 "shasum": ""
             },
             "require": {
                 "issues": "https://github.com/laravel/framework/issues",
                 "source": "https://github.com/laravel/framework"
             },
-            "time": "2024-04-30T13:30:08+00:00"
+            "time": "2024-05-07T13:41:51+00:00"
         },
         {
             "name": "laravel/prompts",
diff --git a/database/migrations/2024_05_09_063057_create_groups_table.php b/database/migrations/2024_05_09_063057_create_groups_table.php
new file mode 120000 (symlink)
index 0000000..18f5a97
--- /dev/null
@@ -0,0 +1 @@
+../../vendor/hamatoma/laraknife/templates/database/migrations/2024_05_09_063057_create_groups_table.php
\ No newline at end of file
diff --git a/database/seeders/GroupSeeder.php b/database/seeders/GroupSeeder.php
new file mode 120000 (symlink)
index 0000000..30eab2b
--- /dev/null
@@ -0,0 +1 @@
+../../vendor/hamatoma/laraknife/templates/database/seeders/GroupSeeder.php
\ No newline at end of file
diff --git a/database/seeders/seeders b/database/seeders/seeders
new file mode 120000 (symlink)
index 0000000..d617996
--- /dev/null
@@ -0,0 +1 @@
+../../vendor/hamatoma/laraknife/templates/database/seeders/
\ No newline at end of file
index dff33496107b7c5dcbc5135309d6008d7ffc846f..e1a6bbe9d6ce9ba6b4c74a1010212a7503fad301 100644 (file)
@@ -17,6 +17,7 @@
     "Change": "\u00c4ndern",
     "Change Password of an User": "Passwort eines Benutzers \u00e4ndern",
     "Change of a File": "\u00c4ndern einer Datei",
+    "Change of a Group": "\u00c4ndern einer Gruppe",
     "Change of a Menu Item": "\u00c4ndern einer Men\u00fceintrags",
     "Change of a Note": "\u00c4ndern einer Notiz",
     "Change of a Noun": "\u00c4nderung eines Nomens",
@@ -36,6 +37,7 @@
     "Contents": "Inhalt",
     "Creation of a Document": "Hochladen eines Dokuments",
     "Creation of a File": "Hochladen einer Datei",
+    "Creation of a Group": "Erstellen einer Gruppe",
     "Creation of a Menu Item": "Erstellen eine Men\u00fceintrags",
     "Creation of a Note": "Erstellen einer Notiz",
     "Creation of a Page": "Erstellen einer Seite",
@@ -47,6 +49,7 @@
     "Date": "Datum",
     "Delete": "L\u00f6schen",
     "Deletion of a Document": "L\u00f6schen eines Dokuments",
+    "Deletion of a Group": "L\u00f6schen einer Gruppe",
     "Deletion of a Menu Item": "L\u00f6schen eines Men\u00fceintrags",
     "Deletion of a Note": "L\u00f6schen einer Notiz",
     "Deletion of a Page": "L\u00f6schen einer Seite",
@@ -71,6 +74,8 @@
     "From": "Von",
     "Genus": "Geschlecht",
     "German (Germany)": "Deutsch (Deutschland)",
+    "Group": "Gruppe",
+    "Groups": "Gruppen",
     "Hello": "Hallo",
     "Id": "Id",
     "Imperfect": "Imperfekt",
@@ -86,6 +91,8 @@
     "Logout": "Abmelden",
     "Manager": "Verwalter",
     "Markup": "Sprachtyp",
+    "Member": "Mitglied",
+    "Members": "Mitglieder",
     "Name": "Name",
     "New": "Neu",
     "Next": "Weiter",
     "Overwrites the upload name (if not empty)": "\u00dcberschreibt den Hochladenamen (wenn nicht leer)",
     "Owner": "Besitzer",
     "Page": "Seite",
-    "Pages": "Seite",
+    "Pages": "Seiten",
     "Pagetype": "Seitentyp",
     "Participle": "Partizip",
     "Password": "Passwort",
     "To": "Bis",
     "Total": "Gesamt",
     "Translation": "\u00dcbersetzung",
+    "Up": "Auf",
     "Usage": "Verwendung",
     "User": "Benutzer",
     "Users": "Benutzer",
index 621dff3bc3230590040c69bf602871f6b5751201..6d127a565549f531ac1ecbd6d2f2b522d9a7f10d 100644 (file)
@@ -13,7 +13,7 @@
             <x-laraknife.forms.text position="alone" name="contents" label="Contents"
                 value="{{ $context->valueOf('contents') }}" width2="10" rows="10" />
             <x-laraknife.forms.file-protected position="alone" name="file" fieldId="{{ $context->model->audio_id }}"
-                label="Audio" width2="10" />
+                filename=" {{$context->valueOf('audio') }}" label="Audio" width2="10" />
         </x-laraknife.panels.edit>
     </form>
 @endsection
diff --git a/resources/views/group b/resources/views/group
new file mode 120000 (symlink)
index 0000000..e11c08b
--- /dev/null
@@ -0,0 +1 @@
+../../vendor/hamatoma/laraknife/resources/views/group
\ No newline at end of file
index d41bd7cbbcf222a1e517f727be353ef3f5cabc87..cf62c4682fa636e310dbc9a4826a4aac4f860539 100644 (file)
@@ -14,6 +14,7 @@ use App\Http\Controllers\ReviewController;
 use App\Http\Controllers\MenuitemController;
 use App\Http\Controllers\ChapterController;
 use App\Http\Controllers\PageController;
+use App\Http\Controllers\GroupController;
 use App\Http\Controllers\SPropertyController;
 
 Route::get('/', function () {
@@ -38,3 +39,5 @@ ReviewController::routes();
 ChapterController::routes();
 
 PageController::routes();
+
+GroupController::routes();