Skip to content

Commit

Permalink
Merge pull request #59 from crynobone/nova5
Browse files Browse the repository at this point in the history
Support Laravel Nova 5
  • Loading branch information
anderly authored Jan 23, 2025
2 parents df41f8e + aad2a21 commit 1041915
Show file tree
Hide file tree
Showing 36 changed files with 1,427 additions and 13,751 deletions.
29 changes: 25 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "saintsystems/nova-linkable-metrics",
"version":"5.0.0",
"version": "5.0.0",
"description": "Linkable metrics for Laravel Nova 4.x.",
"keywords": [
"laravel",
Expand All @@ -15,10 +15,10 @@
"license": "MIT",
"require": {
"php": "^8.1",
"laravel/nova": "^5.0",
"nova-kit/nova-packages-tool": "^2.0"
"laravel/nova": "^5.0"
},
"require-dev": {
"laravel/nova-devtool": "^1.4"
},
"repositories": [
{
Expand All @@ -42,5 +42,26 @@
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true
"prefer-stable": true,
"autoload-dev": {
"psr-4": {
"Workbench\\App\\": "workbench/app/",
"Workbench\\Database\\Factories\\": "workbench/database/factories/",
"Workbench\\Database\\Seeders\\": "workbench/database/seeders/"
}
},
"scripts": {
"post-autoload-dump": [
"@clear",
"@prepare"
],
"clear": "@php vendor/bin/testbench package:purge-skeleton --ansi",
"prepare": "@php vendor/bin/testbench package:discover --ansi",
"build": "@php vendor/bin/testbench workbench:build --ansi",
"serve": [
"Composer\\Config::disableProcessTimeout",
"@build",
"@php vendor/bin/testbench serve --ansi"
]
}
}
1 change: 0 additions & 1 deletion dist/css/card.css
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/* Nova Card CSS */

12,879 changes: 1 addition & 12,878 deletions dist/js/card.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion dist/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
{}
{
"/js/card.js": "/js/card.js",
"/css/card.css": "/css/card.css"
}
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,10 @@
"nova:install": "npm --prefix='../../vendor/laravel/nova' ci"
},
"devDependencies": {
"@vue/compiler-sfc": "^3.2.22",
"laravel-mix": "^6.0.41",
"postcss": "^8.3.11",
"vue-loader": "^16.8.3",
"vue-template-compiler": "^2.6.14"
"laravel-nova-devtool": "file:vendor/laravel/nova-devtool",
"lodash": "^4.17.21"
},
"dependencies": {
"@vue/compat": "^3.2.29",
"chartist": "^0.11.0",
"chartist-plugin-tooltips-updated": "^0.1.4"
}
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/Base/BasePartitionMetric.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<LoadingCard :loading="loading" class="px-6 py-4">
<h3 class="h-6 flex mb-3 text-sm font-bold">
<template v-if="url">
<Link :href="this.url" :title="title" class="link-default font-normal">
<Link :href="url" :title="title" class="link-default font-normal">
{{ title }}
<span class="ml-auto font-semibold text-gray-400 text-xs"
>({{ formattedTotal }} {{ __('total') }})</span
Expand Down
Loading

0 comments on commit 1041915

Please sign in to comment.