Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
968abd2
add labelEditor extraction methods for 3490_A
Godmartinz Mar 23, 2026
b3b57ff
adds methods to _5267_A, _5520_A
Godmartinz Mar 23, 2026
fbea93e
adds methods to _5520B, L4736_A
Godmartinz Mar 23, 2026
18d1556
adds methods to L6009_A, L7162_A, L7162_B, L7163_A
Godmartinz Mar 23, 2026
17cf36b
adds methods to DefaultLabel
Godmartinz Mar 23, 2026
79334cd
adds crappy blade for now, label edit route
Godmartinz Mar 23, 2026
b4224eb
adds custom label table, adds more to the jank editor debug screen
Godmartinz Mar 23, 2026
f948f29
attempting to get the preview working
Godmartinz Mar 24, 2026
9aa596d
move labels template table to component, update label preview name wi…
Godmartinz Mar 24, 2026
b67e7b5
add clone button to labels table
Godmartinz Mar 24, 2026
5217001
formats label names, getting custom label heirarchy in order
Godmartinz Mar 25, 2026
997d143
Label preview is loading
Godmartinz Mar 25, 2026
ffa1b63
barcodes and fields appear in preview
Godmartinz Mar 26, 2026
5658e55
fixed field layout a bit, more needed, values missing
Godmartinz Mar 26, 2026
a5ae139
save preview label
Godmartinz Apr 2, 2026
621064d
1d barcode is available if you want it, field layout has been applied…
Godmartinz Apr 9, 2026
ca6b33d
adds tag alignment option
Godmartinz Apr 9, 2026
1d46fa0
convert units all into mm
Godmartinz Apr 14, 2026
659e649
maps correctly for Default Label
Godmartinz Apr 15, 2026
874884b
revert barcode sizing defaults
Godmartinz Apr 15, 2026
d7a07b9
Merge branch 'develop' into Label_customization
Godmartinz Apr 15, 2026
c9d3acb
refactor the write method, add barcode inputs
Godmartinz Apr 16, 2026
b007e81
clean up
Godmartinz Apr 20, 2026
0639334
building the store method, add customuserLabel model
Godmartinz Apr 21, 2026
5d7c9e6
adds label directory search for template match, override diff logic
Godmartinz Apr 23, 2026
9810fa1
add custom labels to label table, add doc blocks to CustomUserLabel m…
Godmartinz Apr 23, 2026
36b9139
add label actions, remove preview label from list, add destroy method…
Godmartinz Apr 24, 2026
4056894
fix share button, saving js changes for testing
Godmartinz Apr 25, 2026
c852697
adds import input, route, controller method, fixes config_snapshot
Godmartinz Apr 25, 2026
b347de6
add update and create methods, allow clone of a custom label, fix api…
Godmartinz Apr 25, 2026
0f88635
differentiate createURLs for cloning custom and base labels
Godmartinz Apr 27, 2026
4f04637
label preview on settings works with custom labels
Godmartinz Apr 29, 2026
8458529
save custom labels in the settings table, preload saved label in index
Godmartinz Apr 29, 2026
0b6c3d5
add json file and text option for gui
Godmartinz May 12, 2026
3799828
add validation for label import, fix footer on label edit blade
Godmartinz May 12, 2026
3c01a8e
move example asset to asset factory
Godmartinz May 12, 2026
345a06b
use setRelation for protected members in labelPreview
Godmartinz May 12, 2026
7205d82
remove reminder text from migration
Godmartinz May 12, 2026
f42bbad
tape labels preview in editor
Godmartinz May 12, 2026
358760e
Merge branch 'develop' into Label_customization
Godmartinz May 12, 2026
83a80ed
add getters for tze18mm and fixed layout for tapes and preview select
Godmartinz May 12, 2026
84a23cb
added an inline and block render bool and method for tapes
Godmartinz May 13, 2026
36d4219
adds custom placement of the 1d barcode
Godmartinz May 13, 2026
424b5f6
adds 24mm B and C getters
Godmartinz May 13, 2026
3efd1f9
add getters to 24mm D and E, remove previewtape from index
Godmartinz May 13, 2026
2e4aa33
working on page orientation for tapes, bit of cleanup
Godmartinz May 19, 2026
a6956bc
fixes label rotation, swaps logo and 2d code in config and gui
Godmartinz Jun 3, 2026
f3ac596
adds text_column positioning for the logo
Godmartinz Jun 3, 2026
57788ac
add Config getter for TZe_241
Godmartinz Jun 3, 2026
5cb4d69
add Config getter for labelwriter_11354
Godmartinz Jun 3, 2026
40fa588
add Config getter for labelwriter_1933081
Godmartinz Jun 3, 2026
300f280
add Config getter for labelwriter_2112283
Godmartinz Jun 3, 2026
75de698
adds a stacked view and getters for Continuous_53mm_A
Godmartinz Jun 3, 2026
cdbbb72
adds getters for Continuous_Landscape_59mm_A
Godmartinz Jun 3, 2026
e852458
adds getters for Tape_53mm_A
Godmartinz Jun 3, 2026
c3699fd
fix CustomSheet interactions with logo barcode alignment sync method
Godmartinz Jun 3, 2026
e852377
removed unused methods/fields, updated create/store methods for tapes
Godmartinz Jun 4, 2026
a5727ba
updated the update method for tapes
Godmartinz Jun 4, 2026
a72b391
move validation to requests and validator class, update import method
Godmartinz Jun 10, 2026
9e64f75
add ValidationException usage to CustomLabelimportValidator
Godmartinz Jun 10, 2026
d2b64ca
add font getters and setters and hydration for 3490A 5267A 5520A
Godmartinz Jun 10, 2026
65997a2
organize values in seeders hyrdrators and getContent
Godmartinz Jun 10, 2026
7a1d5a8
made traits for duplicate logic in Sheet/Tape classes, removed lines …
Godmartinz Jun 11, 2026
b8988ac
move seed method to trait for Sheets
Godmartinz Jun 11, 2026
1d0e49c
move hydration method to trait for Sheets
Godmartinz Jun 11, 2026
7c4a04d
Labels: refactor hydration and properties from Custom Tape to CustomL…
Godmartinz Jun 16, 2026
c206afd
Labels: refactor buildLayout into trait
Godmartinz Jun 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/Console/Commands/LdapTroubleshooter.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function ip_in_range($ip, $range)
$wildcard_decimal = pow(2, (32 - $netmask)) - 1;
$netmask_decimal = ~$wildcard_decimal;

return ($ip_decimal & $netmask_decimal) == ($range_decimal & $netmask_decimal);
return ($ip_decimal & $netmask_decimal) == ($range_decimal & $netmask_decimal);
}
// NOTE - this function was shamelessly stolen from this gist: https://gist.github.com/tott/7684443

Expand Down
8 changes: 4 additions & 4 deletions app/Console/Commands/RestoreFromBackup.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,10 +456,10 @@ public function handle()
if (! file_exists($mysql_binary)) {
return $this->error("mysql tool at: '$mysql_binary' does not exist, cannot restore. Please edit DB_DUMP_PATH in your .env to point to a directory that contains the mysqldump and mysql binary");
}
$proc_results = proc_open("$mysql_binary -h " .
escapeshellarg(config('database.connections.mysql.host')) .
' -u ' . escapeshellarg(config('database.connections.mysql.username')) . ' ' .
' -P ' . escapeshellarg(config('database.connections.mysql.port')) . ' ' .
$proc_results = proc_open("$mysql_binary -h ".
escapeshellarg(config('database.connections.mysql.host')).
' -u '.escapeshellarg(config('database.connections.mysql.username')).' '.
' -P '.escapeshellarg(config('database.connections.mysql.port')).' '.
escapeshellarg(config('database.connections.mysql.database')), // yanked -p since we pass via ENV
[0 => ['pipe', 'r'], 1 => ['pipe', 'w'], 2 => ['pipe', 'w']],
$pipes,
Expand Down
51 changes: 46 additions & 5 deletions app/Http/Controllers/Api/LabelsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
use App\Helpers\Helper;
use App\Http\Controllers\Controller;
use App\Http\Transformers\LabelsTransformer;
use App\Models\Labels\CustomLabels\PreviewSheetLabel;
use App\Models\Labels\CustomLabels\PreviewTapeLabel;
use App\Models\Labels\CustomUserLabel;
use App\Models\Labels\Label;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
Expand All @@ -21,12 +24,35 @@ public function index(Request $request): JsonResponse|array
{
$this->authorize('view', Label::class);

$labels = Label::find();
$baseLabels = Label::find()
->reject(fn(Label $label) => $label instanceof PreviewSheetLabel)
->reject(fn(Label $label) => $label instanceof PreviewTapeLabel)
->map(function (Label $label) {
return [
'source' => 'base',
'label' => $label,
];
});

$customLabels = CustomUserLabel::query()
->get()
->map(function ($label) {
return [
'source' => 'custom',
'label' => $label,
];
});

$labels = $baseLabels->merge($customLabels);

if ($request->filled('search')) {
$search = $request->input('search');
$labels = $labels->filter(function ($label, $index) use ($search) {
return stripos($label->getName(), $search) !== false;

$labels = $labels->filter(function ($row) use ($search) {
$label = $row['label'];
$name = $row['source'] === 'custom' ? $label->name : $label->getName();

return stripos($name, $search) !== false;
});
}

Expand All @@ -41,7 +67,7 @@ public function index(Request $request): JsonResponse|array

$labels = $labels->skip($offset)->take($limit);

return (new LabelsTransformer)->transformLabels($labels, $total, $request);
return (new LabelsTransformer)->transformLabels($labels, $total);
}

/**
Expand All @@ -51,6 +77,18 @@ public function index(Request $request): JsonResponse|array
*/
public function show(string $labelName): JsonResponse|array
{
$customLabel = CustomUserLabel::find($labelName);

if ($customLabel) {
$this->authorize('view', $customLabel);

return (new LabelsTransformer)->transformLabels(
collect([[
'source' => 'custom',
'label' => $customLabel,
]]), 1);
}

$labelName = str_replace('/', '\\', $labelName);
try {
$label = Label::find($labelName);
Expand All @@ -63,6 +101,9 @@ public function show(string $labelName): JsonResponse|array
}
$this->authorize('view', $label);

return (new LabelsTransformer)->transformLabel($label);
return (new LabelsTransformer)->transformLabels(collect([[
'source' => 'base',
'label' => $label,
]]), 1);
}
}
Loading