Skip to content

Commit

Permalink
initial code
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakariaTlilani committed Jan 10, 2024
1 parent c536dea commit 660a5d6
Show file tree
Hide file tree
Showing 27 changed files with 34,193 additions and 696 deletions.
24 changes: 2 additions & 22 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
/vendor/
node_modules/
npm-debug.log
yarn-error.log

# Laravel 4 specific
bootstrap/compiled.php
app/storage/

# Laravel 5 & Lumen specific
public/storage
public/hot

# Laravel 5 & Lumen specific with changed public path
public_html/storage
public_html/hot

storage/*.key
.env
Homestead.yaml
Homestead.json
/.vagrant
.phpunit.result.cache
/node_modules/
composer.lock
693 changes: 19 additions & 674 deletions LICENSE

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "zakariatlilani/nova-nested-tree",
"description": "Nova vue-tree-select field for management nested category relations.",
"keywords": [
"laravel",
"nova",
"belongs-to-many",
"nested-sets"
],
"license": "MIT",
"require": {
"php": "^8.0"
},
"autoload": {
"psr-4": {
"ZakariaTlilani\\NovaNestedTree\\": "src/"
}
},
"extra": {
"laravel": {
"providers": [
"ZakariaTlilani\\NovaNestedTree\\FieldServiceProvider"
]
}
},
"config": {
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
7 changes: 7 additions & 0 deletions dist/css/field.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.nova-tree-attach-many .vue-treeselect__menu-container {
position: relative;
}
.nova-tree-attach-many .vue-treeselect__menu {
position: relative;
}

2 changes: 2 additions & 0 deletions dist/js/field.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
33 changes: 33 additions & 0 deletions nova.mix.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
const mix = require('laravel-mix')
const webpack = require('webpack')
const path = require('path')

class NovaExtension {
name() {
return 'nova-extension'
}

register(name) {
this.name = name
}

webpackConfig(webpackConfig) {
webpackConfig.externals = {
vue: 'Vue',
}

webpackConfig.resolve.alias = {
...(webpackConfig.resolve.alias || {}),
'laravel-nova': path.join(
__dirname,
'../../vendor/laravel/nova/resources/js/mixins/packages.js'
),
}

webpackConfig.output = {
uniqueName: this.name,
}
}
}

mix.extend('nova', new NovaExtension())
Loading

0 comments on commit 660a5d6

Please sign in to comment.