From c6e86841b3dbe5e047aabca6d7207efd81e19d92 Mon Sep 17 00:00:00 2001 From: Sli Date: Tue, 23 Sep 2025 19:10:33 +0200 Subject: [PATCH] Remove jquery remeanants --- club/templates/club/club_sellings.jinja | 5 +++-- core/templates/core/base.jinja | 3 --- package-lock.json | 25 --------------------- package.json | 2 -- pedagogy/templates/pedagogy/uv_detail.jinja | 24 ++++++++------------ tsconfig.json | 2 +- vite.config.mts | 12 ---------- 7 files changed, 13 insertions(+), 60 deletions(-) diff --git a/club/templates/club/club_sellings.jinja b/club/templates/club/club_sellings.jinja index 4928e356..3733d0c8 100644 --- a/club/templates/club/club_sellings.jinja +++ b/club/templates/club/club_sellings.jinja @@ -83,9 +83,10 @@ TODO : rewrite the pagination used in this template an Alpine one {{ paginate(paginated_result, paginator, "formPagination(this)") }} diff --git a/core/templates/core/base.jinja b/core/templates/core/base.jinja index 03db58d8..9d9006f7 100644 --- a/core/templates/core/base.jinja +++ b/core/templates/core/base.jinja @@ -32,9 +32,6 @@ - - - {% block additional_css %}{% endblock %} {% block additional_js %}{% endblock %} {% endblock %} diff --git a/package-lock.json b/package-lock.json index 774d7396..74df5d10 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,6 @@ "easymde": "^2.19.0", "glob": "^11.0.0", "htmx.org": "^2.0.3", - "jquery": "^3.7.1", "js-cookie": "^3.0.5", "lit-html": "^3.3.0", "native-file-system-adapter": "^3.0.1", @@ -47,7 +46,6 @@ "@types/alpinejs": "^3.13.10", "@types/cytoscape-cxtmenu": "^3.4.4", "@types/cytoscape-klay": "^3.1.4", - "@types/jquery": "^3.5.31", "@types/js-cookie": "^3.0.6", "typescript": "^5.8.3", "vite": "^6.3.6", @@ -2889,16 +2887,6 @@ "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", "license": "MIT" }, - "node_modules/@types/jquery": { - "version": "3.5.33", - "resolved": "https://registry.npmjs.org/@types/jquery/-/jquery-3.5.33.tgz", - "integrity": "sha512-SeyVJXlCZpEki5F0ghuYe+L+PprQta6nRZqhONt9F13dWBtR/ftoaIbdRQ7cis7womE+X2LKhsDdDtkkDhJS6g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/sizzle": "*" - } - }, "node_modules/@types/js-cookie": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/@types/js-cookie/-/js-cookie-3.0.6.tgz", @@ -2919,13 +2907,6 @@ "integrity": "sha512-a79Yc3TOk6dGdituy8hmTTJXjOkZ7zsFYV10L337ttq/rec8lRMDBpV7fL3uLx6TgbFCa5DU/h8FmIBQPSbU0w==", "license": "MIT" }, - "node_modules/@types/sizzle": { - "version": "2.3.10", - "resolved": "https://registry.npmjs.org/@types/sizzle/-/sizzle-2.3.10.tgz", - "integrity": "sha512-TC0dmN0K8YcWEAEfiPi5gJP14eJe30TTGjkvek3iM/1NdHHsdCA/Td6GvNndMOo/iSnIsZ4HuuhrYPDAmbxzww==", - "dev": true, - "license": "MIT" - }, "node_modules/@types/tern": { "version": "0.23.9", "resolved": "https://registry.npmjs.org/@types/tern/-/tern-0.23.9.tgz", @@ -4384,12 +4365,6 @@ "jiti": "lib/jiti-cli.mjs" } }, - "node_modules/jquery": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz", - "integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==", - "license": "MIT" - }, "node_modules/js-cookie": { "version": "3.0.5", "resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.5.tgz", diff --git a/package.json b/package.json index 33363697..fedc2f8e 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,6 @@ "@types/alpinejs": "^3.13.10", "@types/cytoscape-cxtmenu": "^3.4.4", "@types/cytoscape-klay": "^3.1.4", - "@types/jquery": "^3.5.31", "@types/js-cookie": "^3.0.6", "typescript": "^5.8.3", "vite": "^6.3.6", @@ -61,7 +60,6 @@ "easymde": "^2.19.0", "glob": "^11.0.0", "htmx.org": "^2.0.3", - "jquery": "^3.7.1", "js-cookie": "^3.0.5", "lit-html": "^3.3.0", "native-file-system-adapter": "^3.0.1", diff --git a/pedagogy/templates/pedagogy/uv_detail.jinja b/pedagogy/templates/pedagogy/uv_detail.jinja index 9b164583..4e4d315f 100644 --- a/pedagogy/templates/pedagogy/uv_detail.jinja +++ b/pedagogy/templates/pedagogy/uv_detail.jinja @@ -13,16 +13,15 @@ {% block content %}
-

{% trans %}Back{% endtrans %}

- +

{{ object.code }} - {{ object.title }}


@@ -217,9 +216,4 @@
- - {% endblock %} diff --git a/tsconfig.json b/tsconfig.json index 59a3642f..25b3cd17 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,7 +11,7 @@ "allowSyntheticDefaultImports": true, "esModuleInterop": true, "resolveJsonModule": true, - "types": ["jquery", "alpinejs"], + "types": ["alpinejs"], "paths": { "#openapi": ["./staticfiles/generated/openapi/client/index.ts"], "#openapi:*": ["./staticfiles/generated/openapi/client/*"], diff --git a/vite.config.mts b/vite.config.mts index 604d9d78..d191d017 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -4,7 +4,6 @@ import inject from "@rollup/plugin-inject"; import { glob } from "glob"; import { type AliasOptions, type UserConfig, defineConfig } from "vite"; import type { Rollup } from "vite"; -import { viteStaticCopy } from "vite-plugin-static-copy"; import tsconfig from "./tsconfig.json"; const outDir = resolve(__dirname, "./staticfiles/generated/bundled"); @@ -87,17 +86,6 @@ export default defineConfig((config: UserConfig) => { Alpine: "alpinejs", htmx: "htmx.org", }), - viteStaticCopy({ - targets: [ - { - src: resolve(nodeModules, "jquery/dist/jquery.min.js"), - dest: vendored, - }, - ], - }), ], - optimizeDeps: { - include: ["jquery"], - }, } satisfies UserConfig; });