Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
datlechin committed Aug 4, 2024
1 parent 281736e commit ef3c40b
Show file tree
Hide file tree
Showing 26 changed files with 768 additions and 98 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Bug Report
description: Report an Issue or Bug with the Package
title: "[Bug]: "
labels: ["bug"]
title: '[Bug]: '
labels: ['bug']
body:
- type: markdown
attributes:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fix-php-code-style-issues.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Fix PHP Code Styling"
name: 'Fix PHP Code Styling'

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Update Changelog"
name: 'Update Changelog'

on:
release:
Expand Down
39 changes: 24 additions & 15 deletions bin/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,31 @@ const defaultOptions = {
treeShaking: true,
target: ['es2020'],
minify: !isDev,
plugins: [{
name: 'watchPlugin',
setup: function (build) {
build.onStart(() => {
console.log(`Build started at ${new Date(Date.now()).toLocaleTimeString()}: ${build.initialOptions.outfile}`)
})
plugins: [
{
name: 'watchPlugin',
setup: function (build) {
build.onStart(() => {
console.log(
`Build started at ${new Date(Date.now()).toLocaleTimeString()}: ${build.initialOptions.outfile}`,
)
})

build.onEnd((result) => {
if (result.errors.length > 0) {
console.log(`Build failed at ${new Date(Date.now()).toLocaleTimeString()}: ${build.initialOptions.outfile}`, result.errors)
} else {
console.log(`Build finished at ${new Date(Date.now()).toLocaleTimeString()}: ${build.initialOptions.outfile}`)
}
})
}
}],
build.onEnd((result) => {
if (result.errors.length > 0) {
console.log(
`Build failed at ${new Date(Date.now()).toLocaleTimeString()}: ${build.initialOptions.outfile}`,
result.errors,
)
} else {
console.log(
`Build finished at ${new Date(Date.now()).toLocaleTimeString()}: ${build.initialOptions.outfile}`,
)
}
})
},
},
],
}

compile({
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@
},
"minimum-stability": "dev",
"prefer-stable": true
}
}
3 changes: 1 addition & 2 deletions database/migrations/create_menus_table.php.stub
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ return new class extends Migration
Schema::create(config('filament-menu-builder.tables.menus'), function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('location', 50)->nullable();
$table->boolean('is_visible')->default(true);
$table->timestamps();
});
Expand All @@ -24,7 +23,7 @@ return new class extends Migration
$table->foreignIdFor(Menu::class, 'parent_id')->nullable();
$table->nullableMorphs('linkable');
$table->string('title');
$table->string('url');
$table->string('url')->nullable();
$table->string('target', 10)->default(LinkTarget::Self);
$table->integer('order')->default(0);
$table->timestamps();
Expand Down
4 changes: 2 additions & 2 deletions postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
plugins: {
"postcss-import": {},
"tailwindcss/nesting": {},
'postcss-import': {},
'tailwindcss/nesting': {},
tailwindcss: {},
autoprefixer: {},
},
Expand Down
Loading

0 comments on commit ef3c40b

Please sign in to comment.