chore: add MIT license and AI-generated disclosure
This commit is contained in:
parent
94f197bdec
commit
5a368c4a8c
3 changed files with 104 additions and 75 deletions
21
LICENSE
Normal file
21
LICENSE
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2026 Rawman Grey
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
|
@ -10,6 +10,9 @@ A Directus **bundle**:
|
||||||
- **backfill job** — resumable, window-aware sweep over the existing library.
|
- **backfill job** — resumable, window-aware sweep over the existing library.
|
||||||
- **admin module** — progress, storage breakdown, configuration, diagnostics, and an API reference.
|
- **admin module** — progress, storage breakdown, configuration, diagnostics, and an API reference.
|
||||||
|
|
||||||
|
> **AI-generated.** This project was produced by an autonomous AI coding agent and reviewed by a human
|
||||||
|
> maintainer. Review and test it before relying on it in production.
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
- Directus **11.x** (tested on **11.17.4**).
|
- Directus **11.x** (tested on **11.17.4**).
|
||||||
|
|
@ -146,3 +149,7 @@ especially the hash-match gate (`resolve-plan` vs a real browser asset request).
|
||||||
|
|
||||||
The extension is not sandboxed: Directus's sandbox forbids importing anything except `directus:api`, which
|
The extension is not sandboxed: Directus's sandbox forbids importing anything except `directus:api`, which
|
||||||
this extension needs for storage/transform access.
|
this extension needs for storage/transform access.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
MIT — see [LICENSE](LICENSE).
|
||||||
|
|
|
||||||
151
package.json
151
package.json
|
|
@ -1,77 +1,78 @@
|
||||||
{
|
{
|
||||||
"name": "directus-extension-generate-image-previews",
|
"name": "directus-extension-generate-image-previews",
|
||||||
"description": "Pre-generate Directus image transforms: on upload, on demand, and via a scheduled resumable backfill, with an admin UI (progress, storage, maintenance window, diagnostics)",
|
"description": "Pre-generate Directus image transforms: on upload, on demand, and via a scheduled resumable backfill, with an admin UI (progress, storage, maintenance window, diagnostics)",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Rawman Grey",
|
"name": "Rawman Grey",
|
||||||
"email": "rawman@locus.im",
|
"email": "rawman@locus.im",
|
||||||
"url": "https://locus.im"
|
"url": "https://locus.im"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://code.at.locus.im/Rawman/directus-extension-generate-image-previews.git"
|
"url": "https://code.at.locus.im/Rawman/directus-extension-generate-image-previews.git"
|
||||||
},
|
},
|
||||||
"homepage": "https://code.at.locus.im/Rawman/directus-extension-generate-image-previews",
|
"homepage": "https://code.at.locus.im/Rawman/directus-extension-generate-image-previews",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://code.at.locus.im/Rawman/directus-extension-generate-image-previews/issues"
|
"url": "https://code.at.locus.im/Rawman/directus-extension-generate-image-previews/issues"
|
||||||
},
|
},
|
||||||
"icon": "extension",
|
"icon": "extension",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"directus",
|
"directus",
|
||||||
"directus-extension",
|
"directus-extension",
|
||||||
"directus-extension-bundle",
|
"directus-extension-bundle",
|
||||||
"images",
|
"images",
|
||||||
"thumbnails",
|
"thumbnails",
|
||||||
"previews",
|
"previews",
|
||||||
"transformations"
|
"transformations"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"directus:extension": {
|
"directus:extension": {
|
||||||
"type": "bundle",
|
"type": "bundle",
|
||||||
"path": {
|
"path": {
|
||||||
"app": "dist/app.js",
|
"app": "dist/app.js",
|
||||||
"api": "dist/api.js"
|
"api": "dist/api.js"
|
||||||
},
|
},
|
||||||
"entries": [
|
"entries": [
|
||||||
{
|
{
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"name": "image-previews",
|
"name": "image-previews",
|
||||||
"source": "src/module/index.ts"
|
"source": "src/module/index.ts"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "hook",
|
"type": "hook",
|
||||||
"name": "image-previews-hook",
|
"name": "image-previews-hook",
|
||||||
"source": "src/hook/index.ts"
|
"source": "src/hook/index.ts"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "endpoint",
|
"type": "endpoint",
|
||||||
"name": "image-previews-endpoint",
|
"name": "image-previews-endpoint",
|
||||||
"source": "src/endpoint/index.ts"
|
"source": "src/endpoint/index.ts"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"host": "^11.0.0"
|
"host": "^11.0.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "directus-extension build",
|
"build": "directus-extension build",
|
||||||
"dev": "directus-extension build -w --no-minify",
|
"dev": "directus-extension build -w --no-minify",
|
||||||
"link": "directus-extension link",
|
"link": "directus-extension link",
|
||||||
"typecheck": "tsc --noEmit",
|
"typecheck": "tsc --noEmit",
|
||||||
"test": "node --import tsx --test src/lib/*.test.ts"
|
"test": "node --import tsx --test src/lib/*.test.ts"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@directus/extensions-sdk": "13.0.1",
|
"@directus/extensions-sdk": "13.0.1",
|
||||||
"@types/node": "^22.13.5",
|
"@types/node": "^22.13.5",
|
||||||
"tsx": "^4.19.2",
|
"tsx": "^4.19.2",
|
||||||
"typescript": "^5.7.3",
|
"typescript": "^5.7.3",
|
||||||
"vue": "^3.5.13"
|
"vue": "^3.5.13"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"object-hash": "^3.0.0"
|
"object-hash": "^3.0.0"
|
||||||
}
|
},
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue