Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1ab3f678b7 |
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"main.js": {
|
||||
"file": "assets/main.c1fd60c7.js",
|
||||
"file": "assets/main.88a796e4.js",
|
||||
"src": "main.js",
|
||||
"isEntry": true,
|
||||
"css": [
|
||||
|
||||
@@ -43,8 +43,8 @@ function noTemplate(schema, record) {
|
||||
record?.data[schema.fields.filter((f) => f.info.name === "text")[0]?.name]
|
||||
).slice(0, 300);
|
||||
|
||||
if(title == ""){
|
||||
return "Untitled";
|
||||
if(title.trim() == ""){
|
||||
return "~Untitled~";
|
||||
}
|
||||
|
||||
return title;
|
||||
|
||||
@@ -26,7 +26,7 @@ function uploadFile(Schema $schema, UploadedFile $file): FileUploadResult
|
||||
$mimetype = $file->getMimeType();
|
||||
|
||||
$optimizerChain = OptimizerChainFactory::create();
|
||||
$optimizerChain->setTimeout(10)->optimize($file->getPathName());
|
||||
$optimizerChain->setTimeout(30)->optimize($file->getPathName());
|
||||
|
||||
$checksum = sha1_file($file);
|
||||
$recordId = checkDuplicate($schema->name, $checksum, $file->getSize());
|
||||
|
||||
Reference in New Issue
Block a user