Skip to content

Commit

Permalink
Move addon to its own branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvesterdamgaard committed Nov 13, 2023
0 parents commit d2cc7d1
Show file tree
Hide file tree
Showing 16 changed files with 665 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
vendor
mix-manifest.json
.idea
public/hot
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Statamic Reverse Relationship

> Statamic Reverse Relationship is a Statamic addon that does something pretty neat.
## Features

This addon does:

- This
- And this
- And even this

## How to Install

You can search for this addon in the `Tools > Addons` section of the Statamic control panel and click **install**, or run the following command from your project root:

``` bash
composer require tv2regionerne/statamic-reverse-relationship
```

## How to Use

Here's where you can explain how to use this wonderful addon.
19 changes: 19 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "tv2regionerne/statamic-reverse-relationship",
"autoload": {
"psr-4": {
"Tv2regionerne\\StatamicReverseRelationship\\": "src"
}
},
"extra": {
"statamic": {
"name": "Statamic Reverse Relationship",
"description": "Statamic Reverse Relationship addon"
},
"laravel": {
"providers": [
"Tv2regionerne\\StatamicReverseRelationship\\ServiceProvider"
]
}
}
}
18 changes: 18 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

299 changes: 299 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"private": true,
"scripts": {
"dev": "vite",
"build": "vite build"
},
"devDependencies": {
"@vitejs/plugin-vue2": "^2.2.0",
"laravel-vite-plugin": "^0.7.2",
"vite": "^4.0.0"
}
}
1 change: 1 addition & 0 deletions public/build/assets/addon-77c1ea37.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions public/build/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"resources/js/addon.js": {
"file": "assets/addon-77c1ea37.js",
"isEntry": true,
"src": "resources/js/addon.js"
}
}
5 changes: 5 additions & 0 deletions resources/js/addon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import ReverseRelationship from './components/fieldtypes/ReverseRelationship.vue'

Statamic.booting(() => {
Statamic.component('reverse_relationship-fieldtype', ReverseRelationship)
});
Loading

0 comments on commit d2cc7d1

Please sign in to comment.