From 01834d496c6230f9def476d835ffa9fe5663e414 Mon Sep 17 00:00:00 2001 From: joachimschmidt557 Date: Thu, 13 Jun 2024 12:54:39 +0200 Subject: [PATCH] static: add package.json with frontend dependencies --- .gitignore | 2 ++ package-lock.json | 65 +++++++++++++++++++++++++++++++++++++++++++++++ package.json | 15 +++++++++++ src/settings.py | 1 + 4 files changed, 83 insertions(+) create mode 100644 package-lock.json create mode 100644 package.json diff --git a/.gitignore b/.gitignore index 96603af..8e61451 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,5 @@ static/* venv/ .vscode/* .python-version + +node_modules/ diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..b585c5f --- /dev/null +++ b/package-lock.json @@ -0,0 +1,65 @@ +{ + "name": "d120-pyfeedback", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "d120-pyfeedback", + "license": "AGPL-3.0-only", + "dependencies": { + "@fontsource/libre-franklin": "^5.0.5", + "bootstrap": "^4.5.3", + "font-awesome": "^4.7.0", + "jquery": "^3.6.1" + } + }, + "node_modules/@fontsource/libre-franklin": { + "version": "5.0.18", + "resolved": "https://registry.npmjs.org/@fontsource/libre-franklin/-/libre-franklin-5.0.18.tgz", + "integrity": "sha512-zoQEGONGWZzE2e1PHdCSK+txMGhnJuQtVTVzSAEHtFJIMEgVwjuzgIEFKQ+vEYb1MrcpHkiySKweSNvQCiXBTA==" + }, + "node_modules/bootstrap": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-4.6.2.tgz", + "integrity": "sha512-51Bbp/Uxr9aTuy6ca/8FbFloBUJZLHwnhTcnjIeRn2suQWsWzcuJhGjKDB5eppVte/8oCdOL3VuwxvZDUggwGQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/twbs" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/bootstrap" + } + ], + "peerDependencies": { + "jquery": "1.9.1 - 3", + "popper.js": "^1.16.1" + } + }, + "node_modules/font-awesome": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/font-awesome/-/font-awesome-4.7.0.tgz", + "integrity": "sha512-U6kGnykA/6bFmg1M/oT9EkFeIYv7JlX3bozwQJWiiLz6L0w3F5vBVPxHlwyX/vtNq1ckcpRKOB9f2Qal/VtFpg==", + "engines": { + "node": ">=0.10.3" + } + }, + "node_modules/jquery": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz", + "integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==" + }, + "node_modules/popper.js": { + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.16.1.tgz", + "integrity": "sha512-Wb4p1J4zyFTbM+u6WuO4XstYx4Ky9Cewe4DWrel7B0w6VVICvPwdOpotjzcf6eD8TsckVnIMNONQyPIUFOUbCQ==", + "deprecated": "You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1", + "peer": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..d1ef411 --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "name": "d120-pyfeedback", + "repository": { + "type": "git", + "url": "https://github.com/d120/pyfeedback" + }, + "license": "AGPL-3.0-only", + "private": true, + "dependencies": { + "@fontsource/libre-franklin": "^5.0.5", + "bootstrap": "^4.5.3", + "font-awesome": "^4.7.0", + "jquery": "^3.6.1" + } +} diff --git a/src/settings.py b/src/settings.py index 2ae618c..263a9f7 100644 --- a/src/settings.py +++ b/src/settings.py @@ -71,6 +71,7 @@ # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. BASE_PATH + 'media/', + BASE_PATH + 'node_modules/', ) # List of finder classes that know how to find static files in