Skip to content

Commit

Permalink
refactor: updates
Browse files Browse the repository at this point in the history
- support new directus version
- add prettier
- prepare new version
  • Loading branch information
joggienl committed Aug 18, 2024
1 parent ae4d092 commit 49a4398
Show file tree
Hide file tree
Showing 9 changed files with 885 additions and 651 deletions.
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
# Misc.
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# IDE's
.idea
.vscode

# Environment files
.env
.env*.local

# Application
node_modules
directus/data

# Build
dist
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
A directus interface extension that allows easy picking of any month in a given
year.

![screenshot](https://raw.githubusercontent.com/joggienl/directus-extension-month-picker/main/docs/screenshot.png)
![screenshot](https://raw.githubusercontent.com/joggienl/directus-extension-month-picker/v.1.0.5/docs/screenshot.png)

## Description

Select a month in any given year. The selected month will be saved as `date`
field in the database, using the `yyyy-MM-dd` format. So March 2004 will
save `2004-04-01` to the database.
field in the database, using the `yyyy-MM-dd` format. So March 2004 will save
`2004-04-01` to the database.

You can also use the "Set To Now" button to pick the current month.

Expand All @@ -34,6 +34,3 @@ This extension has been inspired upon the official datetime picker that directus
ships with. There is actually a `monthSelect` plugin available for flatpick, the
datetimepicker Directus uses under the hood. Support for that has not been added
though.



27 changes: 27 additions & 0 deletions directus/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#
# This is a simple docker-compose file that allows to develop the extension.
#

name: dhsp

services:

# Directus!
# @see: https://docs.directus.io/self-hosted/config-options.html for all possible options
# and see docs.directus.io in general for documentation on usage.
directus:

# If you want to build a custom image, comment out the line below:
image: directus/directus:11.0.2

restart: unless-stopped
ports:
- '8055:8055'
volumes:
- ./data/database:/directus/database
- ./data/extensions:/directus/extensions
environment:
SECRET: 'some-super-secret-here'
DB_CLIENT: 'sqlite3'
# Make sure that if you are in dev mode, the extension will auto reload!
EXTENSIONS_AUTO_RELOAD: 'true'
Loading

0 comments on commit 49a4398

Please sign in to comment.