Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitrov-adrian committed May 7, 2022
0 parents commit b4b7ad1
Show file tree
Hide file tree
Showing 12 changed files with 20,689 additions and 0 deletions.
1 change: 1 addition & 0 deletions .editorconfig
34 changes: 34 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish Release Packages

on:
release:
types: [created]

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: npm ci
- run: npm run build
- name: Upload Artifact
uses: softprops/action-gh-release@v1
with:
files: |
dist/index.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
/editorjs
/dist
/*.tgz
/*.zip
674 changes: 674 additions & 0 deletions LICENSE.txt

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Directus extension - M2M tags

![](https://raw.githubusercontent.com/dimitrov-adrian/directus-extension-tags-m2m-interface/main/screenshot.gif)

Use M2M relation with quick item referencing in tagging style.

> This extension is some kind of fork of my [PR #3654](https://github.com/directus/directus/pull/3654) with some sligh
> modifications.
## Installation

In your Directus installation root

```bash
npm install directus-extension-tags-m2m-interface
```

Restart directus

## How to use

1. Create new M2M relation field to your collection
2. For interface select **Tags**
3. Select **Corresponding Field**

The interface uses the corresponding field to make the references, if no related item exists, then new one will be
created with just the value set for the field. Please note that if you collection have some other required fields
without default value, then probabbly saving will throw an error message.
Loading

0 comments on commit b4b7ad1

Please sign in to comment.