various fixes

This commit is contained in:
2023-11-21 14:06:41 +02:00
parent 635ae03b88
commit 09c873c9d5
5 changed files with 10 additions and 13 deletions
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -4,11 +4,11 @@
"src": "main.js", "src": "main.js",
"isEntry": true, "isEntry": true,
"css": [ "css": [
"assets/main.ffd76273.css" "assets/main.587d6006.css"
] ]
}, },
"main.css": { "main.css": {
"file": "assets/main.ffd76273.css", "file": "assets/main.587d6006.css",
"src": "main.css" "src": "main.css"
} }
} }
+2 -2
View File
@@ -9,7 +9,7 @@
font-size: 15px; font-size: 15px;
font-weight: normal; font-weight: normal;
white-space: nowrap; white-space: nowrap;
max-width: 340px; max-width: 400px;
// height: 34px; // height: 34px;
padding: 8px 16px; padding: 8px 16px;
// border-bottom: 1px solid #ccc; // border-bottom: 1px solid #ccc;
@@ -23,7 +23,7 @@
font-size: 15px; font-size: 15px;
font-weight: normal; font-weight: normal;
white-space: nowrap; white-space: nowrap;
max-width: 340px; max-width: 400px;
height: 48px; height: 48px;
padding: 4px 16px; padding: 4px 16px;
overflow: hidden; overflow: hidden;
+1
View File
@@ -327,6 +327,7 @@ class RecordController extends Controller
uploadFromUrl: "" uploadFromUrl: ""
); );
} else { } else {
$this->recordService->update( $this->recordService->update(
id: $request->input("record.id"), id: $request->input("record.id"),
data: $request->input("record.data"), data: $request->input("record.data"),
+4 -8
View File
@@ -98,8 +98,7 @@ readonly class RecordService
* @throws LucentException * @throws LucentException
* @throws ValidatorException * @throws ValidatorException
*/ */
public public function update(
function update(
string $id, string $id,
array $data, array $data,
string $status = "draft", string $status = "draft",
@@ -128,7 +127,8 @@ readonly class RecordService
} }
if (Status::from($status) === Status::PUBLISHED) { if (Status::from($status) === Status::PUBLISHED) {
$errors = $this->recordValidator->check($record->schema, $record->data, $uniqueEdgesCollection); $errors = $this->recordValidator->check($record->schema, $formattedData, $uniqueEdgesCollection);
if ($errors->isNotEmpty()) { if ($errors->isNotEmpty()) {
$this->recordValidator->throwException($errors); $this->recordValidator->throwException($errors);
} }
@@ -148,9 +148,6 @@ readonly class RecordService
_file: $record->_file, _file: $record->_file,
); );
RecordRepo::update($newRecord); RecordRepo::update($newRecord);
if ($updateEdges) { if ($updateEdges) {
EdgeRepo::update($newRecord->id, $uniqueEdgesCollection); EdgeRepo::update($newRecord->id, $uniqueEdgesCollection);
@@ -162,8 +159,7 @@ readonly class RecordService
/** /**
*/ */
public public function changeStatusBulk(
function changeStatusBulk(
string $status, string $status,
array $recordsIds, array $recordsIds,
): void ): void