Skip to content

Commit 5ca556f

Browse files
author
Backstage
committed
fix: add missing site ulid to resources (#43)
1 parent c8603dd commit 5ca556f

File tree

11 files changed

+1702
-264
lines changed

11 files changed

+1702
-264
lines changed

package-lock.json

Lines changed: 624 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
"scripts": {
55
"dev:styles": "npx @tailwindcss/cli -i resources/css/index.css -o resources/dist/filament-uploadcare-field.css --watch",
66
"dev:scripts": "node bin/build.js --dev",
7-
"build:styles": "npx @tailwindcss/cli -i resources/css/index.css -o resources/dist/filament-uploadcare-field.css --minify && npm run purge",
7+
"build:styles": "npx @tailwindcss/cli -i resources/css/index.css -o resources/dist/filament-uploadcare-field.css --minify",
88
"build:scripts": "node bin/build.js",
9-
"purge": "filament-purge -i resources/dist/filament-uploadcare-field.css -o resources/dist/filament-uploadcare-field.css -v 3.x",
109
"dev": "npm-run-all --parallel dev:*",
1110
"build": "npm-run-all build:*"
1211
},
@@ -19,6 +18,7 @@
1918
"esbuild": "^0.25.0",
2019
"npm-run-all": "^4.1.5",
2120
"postcss": "^8.4.26",
21+
"postcss-cli": "^11.0.0",
2222
"prettier": "^3.0.0",
2323
"prettier-plugin-tailwindcss": "^0.6.13",
2424
"tailwindcss": "^4.1.10"

resources/css/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
@import "tailwindcss";
2+
@config "../../tailwind.config.js";
3+
@source "../../../uploadcare-field/resources/views";
4+
15
.uploadcare-wrapper {
26
all: revert;
37
}

resources/dist/filament-uploadcare-field.css

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/dist/filament-uploadcare-field.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/js/components/uploadcare.js

Lines changed: 615 additions & 202 deletions
Large diffs are not rendered by default.

resources/views/forms/components/uploadcare.blade.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<div wire:key="uploadcare-wrapper-{{ $getStatePath() }}">
1+
<div
2+
wire:key="uploadcare-wrapper-{{ $getStatePath() }}"
3+
>
24
<x-dynamic-component :component="$getFieldWrapperView()" :field="$field">
35
@php
46
$sourceList = $field->getSourceList();
@@ -29,7 +31,8 @@ class="relative z-0 rounded-md bg-white dark:bg-gray-900 focus-within:ring focus
2931
isWithMetadata: @js($field->isWithMetadata()),
3032
accept: '{{ $field->getAcceptedFileTypes() }}',
3133
sourceList: '{{ $field->getSourceList() }}',
32-
uploaderStyle: '{{ $field->getUploaderStyle() }}'
34+
uploaderStyle: '{{ $field->getUploaderStyle() }}',
35+
localeName: '{{ $field->getLocaleName() }}'
3336
})"
3437
x-init="init()"
3538
>
@@ -44,6 +47,7 @@ class="relative z-0 rounded-md bg-white dark:bg-gray-900 focus-within:ring focus
4447
@if($field->getCropPreset()) crop-preset="{{ $field->getCropPreset() }}" @endif
4548
@if($field->shouldRemoveCopyright()) remove-copyright @endif
4649
@if($field->isRequired()) required="true" @endif
50+
@if($field->getLocaleName() === 'en') locale-name="{{ $field->getLocaleName() }}" @else data-locale-name="{{ $field->getLocaleName() }}" @endif
4751
cdn-cname="{{ $field->getCdnCname() }}">
4852
</uc-config>
4953

src/Events/MediaUploading.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace Backstage\Uploadcare\Events;
4+
5+
use Illuminate\Foundation\Events\Dispatchable;
6+
use Illuminate\Queue\SerializesModels;
7+
8+
class MediaUploading
9+
{
10+
use Dispatchable;
11+
use SerializesModels;
12+
13+
public function __construct(
14+
public mixed $file
15+
) {}
16+
}

0 commit comments

Comments
 (0)