Skip to content

Commit 79d6707

Browse files
committed
0.0.1 with requirements
1 parent 9591a64 commit 79d6707

File tree

14 files changed

+40
-235
lines changed

14 files changed

+40
-235
lines changed

README.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Nova Textarea- & Text field with BBCodes
1+
# Nova Textarea with BBCodes
22
Quickly developed. Short tutorial.
33

4-
With this Nova field you have the _Textarea_ or _Text_ with _BBCodes_.
4+
With this Nova field you have the _Textarea_ with _BBCodes_.
55

66
(Tested with Nova 4)
77

@@ -20,16 +20,6 @@ BBCode::make(__('Name'), 'name')->codes([
2020
'{date}' => __('This code insert the date'),
2121
]),
2222
```
23-
Or Text Field:
24-
```php
25-
26-
use NormanHuth\BBCode\BB;
27-
28-
BB::make(__('Name'), 'name')->codes([
29-
'{author}' => __('This code insert the author'),
30-
'{date}' => __('This code insert the date'),
31-
]),
32-
```
3323

3424
### Don't always show the content of textarea fields inside Nova
3525
```php

composer.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,22 @@
55
"laravel",
66
"nova"
77
],
8+
"support": {
9+
"issues": "https://github.com/Muetze42/nova-bbcode-textarea/issues",
10+
"source": "https://github.com/Muetze42/nova-bbcode-textarea",
11+
"docs": "https://github.com/Muetze42/nova-bbcode-textarea#readme"
12+
},
813
"homepage": "https://github.com/Muetze42/nova-bbcode-textarea",
914
"authors": [
1015
{
1116
"name": "Norman Huth",
12-
"email": "[email protected]",
1317
"homepage": "https://huth.it"
1418
}
1519
],
1620
"license": "MIT",
1721
"require": {
1822
"php": "^8.0",
19-
"laravel/nova": "^4.5.2"
23+
"laravel/nova": "^4.0.0"
2024
},
2125
"autoload": {
2226
"psr-4": {

dist/js/field.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/field.js.LICENSE.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

dist/mix-manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"/js/field.js": "/js/field.js"
2+
"/js/field.js": "/js/field.js",
3+
"/css/field.css": "/css/field.css"
34
}

resources/css/field.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* Nova Field CSS */
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<template>
2+
<PanelItem :index="index" :field="field">
3+
<template #value>
4+
<Excerpt
5+
:content="field.value"
6+
:plain-text="true"
7+
:should-show="field.shouldShow"
8+
/>
9+
</template>
10+
</PanelItem>
11+
</template>
12+
13+
<script>
14+
export default {
15+
props: ['index', 'resource', 'resourceName', 'resourceId', 'field'],
16+
}
17+
</script>

resources/js/components/bbcode/FormField.vue renamed to resources/js/components/FormField.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</template>
2323

2424
<script>
25-
import {DependentFormField, HandlesValidationErrors} from './../../mixins'
25+
import {DependentFormField, HandlesValidationErrors} from './../mixins'
2626
2727
export default {
2828
mixins: [HandlesValidationErrors, DependentFormField],

resources/js/components/bb/FormField.vue

Lines changed: 0 additions & 75 deletions
This file was deleted.

resources/js/field.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import FormField from './components/bbcode/FormField'
2-
import FormField2 from './components/bb/FormField'
1+
import DetailField from './components/DetailField'
2+
import FormField from './components/FormField'
33

44
Nova.booting((app, store) => {
5-
app.component('form-bbcode', FormField)
6-
app.component('form-bb', FormField2)
5+
app.component('detail-bbcode', DetailField)
6+
app.component('form-bbcode', FormField)
77
})

0 commit comments

Comments
 (0)