Skip to content

Commit 8c31325

Browse files
committed
feat: regex validation
1 parent 024fbcb commit 8c31325

File tree

20 files changed

+25502
-143
lines changed

20 files changed

+25502
-143
lines changed

bin/build.js

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,31 @@ const defaultOptions = {
2525
treeShaking: true,
2626
target: ['es2020'],
2727
minify: !isDev,
28-
plugins: [{
29-
name: 'watchPlugin',
30-
setup: function (build) {
31-
build.onStart(() => {
32-
console.log(`Build started at ${new Date(Date.now()).toLocaleTimeString()}: ${build.initialOptions.outfile}`)
33-
})
28+
plugins: [
29+
{
30+
name: 'watchPlugin',
31+
setup: function (build) {
32+
build.onStart(() => {
33+
console.log(
34+
`Build started at ${new Date(Date.now()).toLocaleTimeString()}: ${build.initialOptions.outfile}`,
35+
)
36+
})
3437

35-
build.onEnd((result) => {
36-
if (result.errors.length > 0) {
37-
console.log(`Build failed at ${new Date(Date.now()).toLocaleTimeString()}: ${build.initialOptions.outfile}`, result.errors)
38-
} else {
39-
console.log(`Build finished at ${new Date(Date.now()).toLocaleTimeString()}: ${build.initialOptions.outfile}`)
40-
}
41-
})
42-
}
43-
}],
38+
build.onEnd((result) => {
39+
if (result.errors.length > 0) {
40+
console.log(
41+
`Build failed at ${new Date(Date.now()).toLocaleTimeString()}: ${build.initialOptions.outfile}`,
42+
result.errors,
43+
)
44+
} else {
45+
console.log(
46+
`Build finished at ${new Date(Date.now()).toLocaleTimeString()}: ${build.initialOptions.outfile}`,
47+
)
48+
}
49+
})
50+
},
51+
},
52+
],
4453
}
4554

4655
compile({

database/factories/CustomFieldFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function definition(): array
4343
'validation_rules' => [],
4444
'active' => true,
4545
'system_defined' => false,
46+
'uses_entity_column' => false,
4647
'settings' => new CustomFieldSettingsData(
4748
encrypted: false
4849
),

database/migrations/create_custom_fields_table.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ public function up(): void
108108

109109
$table->foreignIdFor(CustomFields::customFieldModel())
110110
->constrained()
111-
->cascadeOnDelete();
111+
->cascadeOnDelete()
112+
;
112113

113114
$table->string('name')->nullable();
114115
$table->unsignedBigInteger('sort_order')->nullable();
@@ -135,7 +136,8 @@ public function up(): void
135136
$table->morphs('entity');
136137
$table->foreignIdFor(CustomField::class)
137138
->constrained()
138-
->cascadeOnDelete();
139+
->cascadeOnDelete()
140+
;
139141

140142
$table->text('string_value')->nullable();
141143
$table->longText('text_value')->nullable();

0 commit comments

Comments
 (0)