Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "A Laravel Nova tool to give you ability to put tooltip in fields in every where and in menu item",
"keywords": [
"laravel",
"nova","nova-4","tooltip","Fields","Menu","menu item","item"
"nova","nova-5","tooltip","Fields","Menu","menu item","item"
],
"homepage": "https://badinansoft.com",
"authors": [
Expand All @@ -16,8 +16,12 @@
],
"license": "MIT",
"require": {
"php": "^7.3|^8.0",
"laravel/nova": "^4.26.5"
"php": "^8.1",
"illuminate/support": "^10.0|^11.0|^12.0"
},
"require-dev": {
"laravel/nova": "^5.0",
"laravel/nova-devtool": "^1.7"
},
"autoload": {
"psr-4": {
Expand All @@ -36,4 +40,4 @@
},
"minimum-stability": "dev",
"prefer-stable": true
}
}
2 changes: 1 addition & 1 deletion dist/js/tool.js

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions dist/js/tool.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/

/*!
* vuex v4.1.0
* (c) 2022 Evan You
* @license MIT
*/

/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
2 changes: 1 addition & 1 deletion dist/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"/js/tool.js": "/js/tool.js"
"/js/tool.js": "/js/tool.js?id=c3bab389c58cec733a3893b5d5ef42d5"
}
33 changes: 0 additions & 33 deletions nova.mix.js

This file was deleted.

15 changes: 3 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,10 @@
"development": "mix",
"watch": "mix watch",
"watch-poll": "mix watch -- --watch-options-poll=1000",
"hot": "mix watch --hot",
"prod": "npm run production",
"production": "mix --production",
"nova:install": "npm --prefix='../../vendor/laravel/nova' ci"
"production": "mix --production"
},
"devDependencies": {
"@vue/compiler-sfc": "^3.2.22",
"laravel-mix": "^6.0.41",
"laravel-nova": "^1.12.3",
"postcss": "^8.3.11",
"vue-loader": "^16.8.3",
"vuex": "^4.1.0",
"axios": "^1.1.3"
},
"dependencies": {}
"laravel-nova-devtool": "file:vendor/laravel/nova-devtool"
}
}
13 changes: 9 additions & 4 deletions resources/js/components/DefaultField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
</template>

<Icon
:solid="true"
type="question-mark-circle"
class="cursor-pointer text-gray-400 dark:text-gray-500"
/>
name="question-mark-circle"
type="mini"
class="cursor-pointer text-gray-400 dark:text-gray-500"
/>

</Tooltip>

Expand Down Expand Up @@ -60,8 +60,13 @@

<script>
import { HandlesValidationErrors, mapProps } from 'laravel-nova'
import { Tooltip, Icon } from 'laravel-nova-ui'

export default {
components: {
Tooltip,
Icon,
},
mixins: [HandlesValidationErrors],

props: {
Expand Down
9 changes: 7 additions & 2 deletions resources/js/components/MenuItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
</template>

<Icon
:solid="true"
type="question-mark-circle"
name="question-mark-circle"
type="mini"
class="cursor-pointer text-gray-400 dark:text-gray-500"
/>

Expand All @@ -47,8 +47,13 @@ import isNull from 'lodash/isNull'
import omitBy from 'lodash/omitBy'
import pickBy from 'lodash/pickBy'
import {mapGetters, mapMutations} from 'vuex'
import { Tooltip, Icon } from 'laravel-nova-ui'

export default {
components: {
Tooltip,
Icon,
},
props: {
item: {
type: Object,
Expand Down
18 changes: 11 additions & 7 deletions resources/js/components/PanelItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
>
<div class="md:w-1/4 md:py-3">
<slot>
<h4 class="font-bold md:font-normal">
<span>{{ label }}
<h4 class="flex items-center font-bold md:font-normal">
<span>{{ label }}</span>

<Tooltip :triggers="['click']" v-if="tooltip!==''" class="inline ml-4">

Expand All @@ -15,14 +15,12 @@
</template>

<Icon
:solid="true"
type="question-mark-circle"
class="cursor-pointer text-gray-400 dark:text-gray-500"
name="question-mark-circle"
type="mini"
class="cursor-pointer text-gray-400 dark:text-gray-500"
/>

</Tooltip>

</span>
</h4>
</slot>
</div>
Expand Down Expand Up @@ -56,10 +54,16 @@

<script>
import { CopiesToClipboard, FieldValue } from 'laravel-nova'
import { Tooltip, Icon } from 'laravel-nova-ui'

export default {
mixins: [CopiesToClipboard, FieldValue],

components: {
Tooltip,
Icon,
},

props: {
index: {
type: Number,
Expand Down
12 changes: 9 additions & 3 deletions resources/js/components/ResourceTableHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
</template>

<Icon
:solid="true"
type="question-mark-circle"
class="cursor-pointer text-gray-400 dark:text-gray-500"
name="question-mark-circle"
type="mini"
class="cursor-pointer text-gray-400 dark:text-gray-500"
/>

</Tooltip>
Expand Down Expand Up @@ -69,9 +69,15 @@
</template>

<script>
import { Tooltip, Icon } from 'laravel-nova-ui'

export default {
name: 'ResourceTableHeader',

components: {
Tooltip,
Icon,
},
emits: ['order', 'reset-order-by'],

props: {
Expand Down
12 changes: 7 additions & 5 deletions webpack.mix.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
let mix = require('laravel-mix')
let mix = require("laravel-mix");
let NovaExtension = require("laravel-nova-devtool");

require('./nova.mix')
mix.extend("nova", new NovaExtension());

mix
.setPublicPath('dist')
.js('resources/js/tool.js', 'js')
.setPublicPath("dist")
.js("resources/js/tool.js", "js")
.vue({ version: 3 })
.nova('badinansoft/tooltip')
.nova("badinansoft/nova-tooltip")
.version();