Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

JavaScript to TypeScript (#2490)

Devanshi Doshi0c3075c2b639
diff --git a/.github/actions/build-docs/action.yml b/.github/actions/build-docs/action.yml
index e143d667c..bf6630fbf 100644
--- a/.github/actions/build-docs/action.yml
+++ b/.github/actions/build-docs/action.yml
@@ -27,11 +27,6 @@ runs:
run: |
just frontend/run storybook:build
- - name: Build Tailwind Config Viewer
- shell: bash
- run: |
- just frontend/run tcv:build
-
# Storybook will be available at `/storybook`
# Tailwind will be available at `/tailwind`
- name: Merge all docs
@@ -39,4 +34,3 @@ runs:
run: |
mv documentation/_build /tmp/docs
mv frontend/storybook-static /tmp/docs/storybook
- mv frontend/.tcv-export /tmp/docs/tailwind
diff --git a/frontend/.gitignore b/frontend/.gitignore
index 2c26d22e9..5b57678d3 100644
--- a/frontend/.gitignore
+++ b/frontend/.gitignore
@@ -5,9 +5,6 @@
.nuxt-storybook
storybook-static
-# Tailwind Config Viewer
-.tcv-export
-
# Playwright creates these two folders
test-results
test/Default
diff --git a/frontend/nuxt.config.ts b/frontend/nuxt.config.ts
index 2c4bb6b9f..8add5def1 100644
--- a/frontend/nuxt.config.ts
+++ b/frontend/nuxt.config.ts
@@ -249,7 +249,7 @@ const config: NuxtConfig = {
},
plugins: {
tailwindcss: {
- config: path.resolve(__dirname, "tailwind.config.js"),
+ config: path.resolve(__dirname, "tailwind.config.ts"),
},
"postcss-focus-visible": {},
},
diff --git a/frontend/package.json b/frontend/package.json
index d8d2ddc82..85fd89b2d 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -22,8 +22,6 @@
"storybook": "nuxt storybook --port=54000",
"storybook:build": "nuxt storybook build",
"storybook:smoke": "pnpm storybook --ci --smoke-test",
- "tcv": "tailwind-config-viewer --port 54001",
- "tcv:build": "tailwind-config-viewer export ./.tcv-export",
"talkback": "node ./test/proxy.js",
"pretest": "pnpm install",
"test": "pnpm test:unit && pnpm test:playwright",
@@ -134,7 +132,6 @@
"postcss": "^8.4.12",
"qs": "^6.11.0",
"rimraf": "^3.0.2",
- "tailwind-config-viewer": "^1.6.3",
"tailwindcss": "^3.3.0",
"talkback": "^3.0.1",
"typescript": "^4.9.5",
diff --git a/frontend/src/constants/z-indices.js b/frontend/src/constants/z-indices.js
deleted file mode 100644
index 87e1d6065..000000000
--- a/frontend/src/constants/z-indices.js
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * This file cannot be converted to TypeScript because it's referenced in the
- * Tailwind config.
- */
-
-/**
- * mapping of z-index names to z-indices; Ensure that these values are also
- * written in the `tailwind.safelist.txt` file in the project root.
- */
-const Z_INDICES = Object.freeze(
- /** @type {const} */ ({
- auto: "auto",
- 10: 10,
- 20: 20,
- 30: 30,
- 40: 40,
- 50: 50,
- // Named indices
- popover: 50,
- snackbar: 10,
- "global-audio": 20,
- })
-)
-
-/**
- * Check whether the given z-index is valid and is configured in Tailwind.
- *
- * @param value {string|number} the provided z-index to validate
- * @return {boolean} whether the z-index is valid and configured in Tailwind
- */
-const zIndexValidator = (value) =>
- Object.keys(Z_INDICES).includes(value.toString())
-
-/**
- * This module is consumed by Nuxt and Tailwind config, so it needs to use CJS modules.
- */
-module.exports = {
- Z_INDICES,
- zIndexValidator,
-}
diff --git a/frontend/src/constants/z-indices.ts b/frontend/src/constants/z-indices.ts
new file mode 100644
index 000000000..d1151605f
--- /dev/null
+++ b/frontend/src/constants/z-indices.ts
@@ -0,0 +1,25 @@
+/**
+ * mapping of z-index names to z-indices; Ensure that these values are also
+ * written in the `tailwind.safelist.txt` file in the project root.
+ */
+export const Z_INDICES = Object.freeze({
+ auto: "auto",
+ 10: "10",
+ 20: "20",
+ 30: "30",
+ 40: "40",
+ 50: "50",
+ // Named indices
+ popover: "50",
+ snackbar: "10",
+ "global-audio": "20",
+} as const)
+
+/**
+ * Check whether the given z-index is valid and is configured in Tailwind.
+ *
+ * @param value - the provided z-index to validate
+ * @returns - whether the z-index is valid and configured in Tailwind
+ */
+export const zIndexValidator = (value: string | number): boolean =>
+ Object.keys(Z_INDICES).includes(value.toString())
diff --git a/frontend/src/layouts/content-layout.vue b/frontend/src/layouts/content-layout.vue
index e40876853..eda471d06 100644
--- a/frontend/src/layouts/content-layout.vue
+++ b/frontend/src/layouts/content-layout.vue
@@ -2,7 +2,7 @@
<div>
<VSkipToContentButton />
<div
- class="app grid min-h-dyn-screen grid-cols-1 grid-rows-[auto,1fr,auto] bg-white"
+ class="app min-h-dyn-screen grid grid-cols-1 grid-rows-[auto,1fr,auto] bg-white"
:class="[isDesktopLayout ? 'desktop' : 'mobile', breakpoint]"
>
<div class="header-el sticky top-0 z-40 block bg-white">
diff --git a/frontend/src/layouts/default.vue b/frontend/src/layouts/default.vue
index 43a4e40f8..c73737c79 100644
--- a/frontend/src/layouts/default.vue
+++ b/frontend/src/layouts/default.vue
@@ -2,7 +2,7 @@
<div>
<VSkipToContentButton />
<div
- class="app grid h-dyn-screen grid-cols-1 grid-rows-[auto,1fr] flex-col bg-yellow"
+ class="app h-dyn-screen grid grid-cols-1 grid-rows-[auto,1fr] flex-col bg-yellow"
:class="[isDesktopLayout ? 'desktop' : 'mobile', breakpoint]"
>
<div class="header-el">
diff --git a/frontend/src/layouts/search-layout.vue b/frontend/src/layouts/search-layout.vue
index a8b35561d..cd9dded9e 100644
--- a/frontend/src/layouts/search-layout.vue
+++ b/frontend/src/layouts/search-layout.vue
@@ -2,7 +2,7 @@
<div>
<VSkipToContentButton />
<div
- class="app grid h-dyn-screen min-h-dyn-screen grid-rows-[auto,1fr,auto] bg-white"
+ class="app h-dyn-screen min-h-dyn-screen grid grid-rows-[auto,1fr,auto] bg-white"
:class="[
isDesktopLayout ? 'desktop' : 'mobile',
breakpoint,
diff --git a/frontend/src/styles/tailwind.css b/frontend/src/styles/tailwind.css
index ac6b497ee..78d9b5270 100644
--- a/frontend/src/styles/tailwind.css
+++ b/frontend/src/styles/tailwind.css
@@ -140,7 +140,7 @@ Time - 11px - xs semibold (default leading-tight)
*
* There is no bold-transparent variant.
*
- * The color of the ring (or outline for `focus-slim-filled`) is set by a plugin defined in `tailwind.config.js`.
+ * The color of the ring (or outline for `focus-slim-filled`) is set by a plugin defined in `tailwind.config.ts`.
*/
[class*="focus-slim-offset"] {
@@ -195,4 +195,13 @@ Time - 11px - xs semibold (default leading-tight)
#content {
@apply scroll-mt-20;
}
+
+ .h-dyn-screen {
+ @apply h-screen;
+ @apply h-[100dvh];
+ }
+ .min-h-dyn-screen {
+ @apply min-h-screen;
+ @apply min-h-[100dvh];
+ }
}
diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.ts
similarity index 92%
rename from frontend/tailwind.config.js
rename to frontend/tailwind.config.ts
index 9d9c11f3d..227f34cfb 100644
--- a/frontend/tailwind.config.js
+++ b/frontend/tailwind.config.ts
@@ -1,13 +1,16 @@
-const defaultTheme = require("tailwindcss/defaultTheme")
-const plugin = require("tailwindcss/plugin")
+import defaultTheme from "tailwindcss/defaultTheme"
+import plugin from "tailwindcss/plugin"
-const { SCREENS } = require("./src/constants/screens")
-const { Z_INDICES } = require("./src/constants/z-indices")
+import { SCREENS } from "./src/constants/screens"
+import { Z_INDICES } from "./src/constants/z-indices"
-module.exports = {
+import type { Config } from "tailwindcss"
+import type { PluginAPI } from "tailwindcss/types/config"
+
+export default {
content: [
"./src/**/*.{vue,js,jsx,ts,tsx,mdx}",
- "./nuxt.config.js",
+ "./nuxt.config.ts",
"./tailwind.safelist.txt",
],
theme: {
@@ -116,7 +119,7 @@ module.exports = {
ringWidth: {
DEFAULT: "1.5px", // aka slim
bold: "3.0px",
- 0: 0,
+ 0: "0",
},
borderWidth: {
0: "0px",
@@ -187,9 +190,9 @@ module.exports = {
],
},
flexGrow: {
- 0: 0,
- DEFAULT: 1,
- 2: 2,
+ 0: "0",
+ DEFAULT: "1",
+ 2: "2",
},
fontFamily: {
mono: ['"JetBrains Mono"', "monospace"],
@@ -197,12 +200,6 @@ module.exports = {
serif: [...defaultTheme.fontFamily.serif],
},
extend: {
- height: {
- "dyn-screen": ["100vh", "100dvh"],
- },
- minHeight: {
- "dyn-screen": ["100vh", "100dvh"],
- },
blur: {
image: "60px",
text: "4px",
@@ -233,7 +230,7 @@ module.exports = {
outlineWidth: {
1.5: "1.5px",
},
- typography: (theme) => ({
+ typography: (theme: PluginAPI["theme"]) => ({
DEFAULT: {
css: {
"--tw-prose-body": theme("colors.dark-charcoal.default"),
@@ -275,4 +272,4 @@ module.exports = {
)
}),
],
-}
+} satisfies Config
diff --git a/package.json b/package.json
index 97b4dddcb..193c6ddc0 100644
--- a/package.json
+++ b/package.json
@@ -40,7 +40,7 @@
"eslint-plugin-vue": "9.9.0",
"eslint-plugin-vuejs-accessibility": "1.1.1",
"prettier": "2.8.3",
- "prettier-plugin-tailwindcss": "0.2.2",
+ "prettier-plugin-tailwindcss": "0.4.1",
"typescript": "4.9.5",
"vue-tsc": "1.2.0"
},
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 1d70de548..8be7c7992 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -23,7 +23,7 @@ importers:
eslint-plugin-vue: 9.9.0
eslint-plugin-vuejs-accessibility: 1.1.1
prettier: 2.8.3
- prettier-plugin-tailwindcss: 0.2.2
+ prettier-plugin-tailwindcss: 0.4.1
typescript: 4.9.5
vue-tsc: 1.2.0
devDependencies:
@@ -46,7 +46,7 @@ importers:
eslint-plugin-vue: [email protected]
eslint-plugin-vuejs-accessibility: [email protected]
prettier: 2.8.3
- prettier-plugin-tailwindcss: [email protected]
+ prettier-plugin-tailwindcss: [email protected]
typescript: 4.9.5
@@ -140,7 +140,6 @@ importers:
rfdc: ^1.3.0
rimraf: ^3.0.2
seeded-rand: ^2.0.1
- tailwind-config-viewer: ^1.6.3
tailwindcss: ^3.3.0
talkback: ^3.0.1
throttle-debounce: ^5.0.0
@@ -233,7 +232,6 @@ importers:
postcss: 8.4.21
qs: 6.11.0
rimraf: 3.0.2
- tailwind-config-viewer: [email protected]
tailwindcss: [email protected]
talkback: 3.0.1
typescript: 4.9.5
@@ -2928,19 +2926,6 @@ packages:
'@jridgewell/resolve-uri': 3.1.0
'@jridgewell/sourcemap-codec': 1.4.14
- /@koa/router/9.4.0:
- resolution: {integrity: sha512-dOOXgzqaDoHu5qqMEPLKEgLz5CeIA7q8+1W62mCvFVCOqeC71UoTGJ4u1xUSOpIl2J1x2pqrNULkFteUeZW3/A==}
- engines: {node: '>= 8.0.0'}
- dependencies:
- debug: 4.3.4
- http-errors: 1.8.1
- koa-compose: 4.1.0
- methods: 1.1.2
- path-to-regexp: 6.2.0
- transitivePeerDependencies:
- - supports-color
- dev: true
-
/@mdx-js/mdx/1.6.22:
resolution: {integrity: sha512-AMxuLxPz2j5/6TpF/XSdKpQP1NlG0z11dFOlq+2IP/lSgl11GY8ji6S/rgsViN/L0BDvHvUMruRb7ub+24LUYA==}
dependencies:
@@ -7297,12 +7282,6 @@ packages:
tslib: 2.3.1
dev: false
- /async/2.6.4:
- resolution: {integrity: sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==}
- dependencies:
- lodash: 4.17.21
- dev: true
-
/asynckit/0.4.0:
resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}
@@ -8003,14 +7982,6 @@ packages:
union-value: 1.0.1
unset-value: 1.0.0
- /cache-content-type/1.0.1:
- resolution: {integrity: sha512-IKufZ1o4Ut42YUrZSo8+qnMTrFuKkvyoLXUywKz9GJ5BrhOFGhLdkx9sG4KAnVvbY6kEcSFjLQul+DVmBm2bgA==}
- engines: {node: '>= 6.0.0'}
- dependencies:
- mime-types: 2.1.34
- ylru: 1.3.2
- dev: true
-
/cache-loader/[email protected]:
resolution: {integrity: sha512-ftOayxve0PwKzBF/GLsZNC9fJBXl8lkZE3TOsjkboHfVHVkL39iUEs1FO07A33mizmci5Dudt38UZrrYXDtbhw==}
engines: {node: '>= 8.9.0'}
@@ -8333,14 +8304,6 @@ packages:
wrap-ansi: 6.2.0
dev: true
- /cliui/7.0.4:
- resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==}
- dependencies:
- string-width: 4.2.3
- strip-ansi: 6.0.1
- wrap-ansi: 7.0.0
- dev: true
-
/clone-deep/4.0.1:
resolution: {integrity: sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==}
engines: {node: '>=6'}
@@ -8943,14 +8906,6 @@ packages:
resolution: {integrity: sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==}
engines: {node: '>= 0.6'}
- /cookies/0.8.0:
- resolution: {integrity: sha512-8aPsApQfebXnuI+537McwYsDtjVxGm8gTIzQI3FDW6t5t/DAhERxtnbEPN/8RX+uZthoz4eCOgloXaE5cYyNow==}
- engines: {node: '>= 0.8'}
- dependencies:
- depd: 2.0.0
- keygrip: 1.1.0
- dev: true
-
/copy-concurrently/1.0.5:
resolution: {integrity: sha512-f2domd9fsVDFtaFcbaRZuYXwtdmnzqbADSwhSWYxYB/Q8zsdUUFMXVRwXGDMWmbEzAn1kdRrtI1T/KTFOL4X2A==}
dependencies:
@@ -9547,10 +9502,6 @@ packages:
resolution: {integrity: sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==}
dev: true
- /deep-equal/1.0.1:
- resolution: {integrity: sha512-bHtC0iYvWhyaTzvV3CZgPeZQqCOBGyGsVV7v4eevpdkLHfiSrXUdBG+qAuSz4RI70sszvjQ1QSZ98An1yNwpSw==}
- dev: true
-
/deep-equal/2.2.1:
resolution: {integrity: sha512-lKdkdV6EOGoVn65XaOsPdH4rMxTZOnmFyuIkMjM1i5HHCbfjC97dawgTAy0deYNfuqUqW+Q5VrVaQYtUpSd6yQ==}
dependencies:
@@ -9688,6 +9639,7 @@ packages:
/depd/2.0.0:
resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==}
engines: {node: '>= 0.8'}
+ dev: false
/deprecation/2.3.1:
resolution: {integrity: sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==}
@@ -11923,24 +11875,6 @@ packages:
domutils: 2.8.0
entities: 2.2.0
- /http-assert/1.5.0:
- resolution: {integrity: sha512-uPpH7OKX4H25hBmU6G1jWNaqJGpTXxey+YOUizJUAgu0AjLUeC8D73hTrhvDS5D+GJN1DN1+hhc/eF/wpxtp0w==}
- engines: {node: '>= 0.8'}
- dependencies:
- deep-equal: 1.0.1
- http-errors: 1.8.1
- dev: true
-
- /http-errors/1.6.3:
- resolution: {integrity: sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==}
- engines: {node: '>= 0.6'}
- dependencies:
- depd: 1.1.2
- inherits: 2.0.3
- setprototypeof: 1.1.0
- statuses: 1.5.0
- dev: true
-
/http-errors/1.8.1:
resolution: {integrity: sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g==}
engines: {node: '>= 0.6'}
@@ -12394,13 +12328,6 @@ packages:
engines: {node: '>=6'}
dev: true
- /is-generator-function/1.0.10:
- resolution: {integrity: sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==}
- engines: {node: '>= 0.4'}
- dependencies:
- has-tostringtag: 1.0.0
- dev: true
-
/is-glob/3.1.0:
resolution: {integrity: sha512-UFpDDrPgM6qpnFNI+rh/p3bUaq9hKLZN8bMUWzxmcnZVS3omf4IPK+BrewlnWjO1WmUsMYuSjKh4UJuV4+Lqmw==}
engines: {node: '>=0.10.0'}
@@ -13385,13 +13312,6 @@ packages:
resolution: {integrity: sha512-GAQSWayS2+LjbH5bkRi+pMPYyP1JSp7o+4j58ANZ762N/RH/SdlAT3CHHztnn8s/xgg8kYNM24Gd2IPo9b5W+g==}
dev: false
- /keygrip/1.1.0:
- resolution: {integrity: sha512-iYSchDJ+liQ8iwbSI2QqsQOvqv58eJCEanyJPJi+Khyu8smkcKSFUCbPwzFcL7YVtZ6eONjqRX/38caJ7QjRAQ==}
- engines: {node: '>= 0.6'}
- dependencies:
- tsscmp: 1.0.6
- dev: true
-
/kind-of/3.2.2:
resolution: {integrity: sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==}
engines: {node: '>=0.10.0'}
@@ -13427,70 +13347,6 @@ packages:
resolution: {integrity: sha512-pJiBpiXMbt7dkzXe8Ghj/u4FfXOOa98fPW+bihOJ4SjnoijweJrNThJfd3ifXpXhREjpoF2mZVH1GfS9LV3kHQ==}
engines: {node: '>= 8'}
- /koa-compose/4.1.0:
- resolution: {integrity: sha512-8ODW8TrDuMYvXRwra/Kh7/rJo9BtOfPc6qO8eAfC80CnCvSjSl0bkRM24X6/XBBEyj0v1nRUQ1LyOy3dbqOWXw==}
- dev: true
-
- /koa-convert/2.0.0:
- resolution: {integrity: sha512-asOvN6bFlSnxewce2e/DK3p4tltyfC4VM7ZwuTuepI7dEQVcvpyFuBcEARu1+Hxg8DIwytce2n7jrZtRlPrARA==}
- engines: {node: '>= 10'}
- dependencies:
- co: 4.6.0
- koa-compose: 4.1.0
- dev: true
-
- /koa-send/5.0.1:
- resolution: {integrity: sha512-tmcyQ/wXXuxpDxyNXv5yNNkdAMdFRqwtegBXUaowiQzUKqJehttS0x2j0eOZDQAyloAth5w6wwBImnFzkUz3pQ==}
- engines: {node: '>= 8'}
- dependencies:
- debug: 4.3.4
- http-errors: 1.8.1
- resolve-path: 1.4.0
- transitivePeerDependencies:
- - supports-color
- dev: true
-
- /koa-static/5.0.0:
- resolution: {integrity: sha512-UqyYyH5YEXaJrf9S8E23GoJFQZXkBVJ9zYYMPGz919MSX1KuvAcycIuS0ci150HCoPf4XQVhQ84Qf8xRPWxFaQ==}
- engines: {node: '>= 7.6.0'}
- dependencies:
- debug: 3.2.7
- koa-send: 5.0.1
- transitivePeerDependencies:
- - supports-color
- dev: true
-
- /koa/2.13.4:
- resolution: {integrity: sha512-43zkIKubNbnrULWlHdN5h1g3SEKXOEzoAlRsHOTFpnlDu8JlAOZSMJBLULusuXRequboiwJcj5vtYXKB3k7+2g==}
- engines: {node: ^4.8.4 || ^6.10.1 || ^7.10.1 || >= 8.1.4}
- dependencies:
- accepts: 1.3.8
- cache-content-type: 1.0.1
- content-disposition: 0.5.4
- content-type: 1.0.4
- cookies: 0.8.0
- debug: 4.3.4
- delegates: 1.0.0
- depd: 2.0.0
- destroy: 1.0.4
- encodeurl: 1.0.2
- escape-html: 1.0.3
- fresh: 0.5.2
- http-assert: 1.5.0
- http-errors: 1.8.1
- is-generator-function: 1.0.10
- koa-compose: 4.1.0
- koa-convert: 2.0.0
- on-finished: 2.3.0
- only: 0.0.2
- parseurl: 1.3.3
- statuses: 1.5.0
- type-is: 1.6.18
- vary: 1.1.2
- transitivePeerDependencies:
- - supports-color
- dev: true
-
/last-call-webpack-plugin/3.0.0:
resolution: {integrity: sha512-7KI2l2GIZa9p2spzPIVZBYyNKkN+e/SQPpnjlTiPhdbDW3F86tdKKELxKpzJ5sgU19wQWsACULZmpTPYHeWO5w==}
dependencies:
@@ -14140,6 +13996,7 @@ packages:
/minimist/1.2.7:
resolution: {integrity: sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==}
+ dev: false
/minimist/1.2.8:
resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}
@@ -14210,6 +14067,7 @@ packages:
hasBin: true
dependencies:
minimist: 1.2.7
+ dev: false
/mkdirp/0.5.6:
resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==}
@@ -14803,10 +14661,6 @@ packages:
mimic-fn: 4.0.0
dev: true
- /only/0.0.2:
- resolution: {integrity: sha512-Fvw+Jemq5fjjyWz6CpKx6w9s7xxqo3+JCyM0WXWeCSOboZ8ABkyvP8ID4CZuChA/wxSx+XSJmdOm8rGVyJ1hdQ==}
- dev: true
-
/open/7.4.2:
resolution: {integrity: sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==}
engines: {node: '>=8'}
@@ -15153,10 +15007,6 @@ packages:
resolution: {integrity: sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==}
dev: true
- /path-to-regexp/6.2.0:
- resolution: {integrity: sha512-f66KywYG6+43afgE/8j/GoiNyygk/bnoCbps++3ErRKsIYkGGupyv07R2Ok5m9i67Iqc+T2g1eAUGUPzWhYTyg==}
- dev: true
-
/path-type/1.1.0:
resolution: {integrity: sha512-S4eENJz1pkiQn9Znv33Q+deTOKmbl+jj1Fl+qiP/vYezj+S8x+J3Uo0ISrx/QoEvIlOaDWJhPaRd1flJ9HXZqg==}
engines: {node: '>=0.10.0'}
@@ -15346,17 +15196,6 @@ packages:
vue: 2.7.14
dev: false
- /portfinder/1.0.28:
- resolution: {integrity: sha512-Se+2isanIcEqf2XMHjyUKskczxbPH7dQnlMjXX6+dybayyHvAf/TCgyMRlzf/B6QDhAEFOGes0pzRo3by4AbMA==}
- engines: {node: '>= 0.12.0'}
- dependencies:
- async: 2.6.4
- debug: 3.2.7
- mkdirp: 0.5.5
- transitivePeerDependencies:
- - supports-color
- dev: true
-
/posix-character-classes/0.1.1:
resolution: {integrity: sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg==}
engines: {node: '>=0.10.0'}
@@ -16558,27 +16397,28 @@ packages:
fast-diff: 1.3.0
dev: true
- /prettier-plugin-tailwindcss/[email protected]:
- resolution: {integrity: sha512-5RjUbWRe305pUpc48MosoIp6uxZvZxrM6GyOgsbGLTce+ehePKNm7ziW2dLG2air9aXbGuXlHVSQQw4Lbosq3w==}
+ /prettier-plugin-tailwindcss/[email protected]:
+ resolution: {integrity: sha512-hwn2EiJmv8M+AW4YDkbjJ6HlZCTzLyz1QlySn9sMuKV/Px0fjwldlB7tol8GzdgqtkdPtzT3iJ4UzdnYXP25Ag==}
engines: {node: '>=12.17.0'}
peerDependencies:
- '@prettier/plugin-php': '*'
+ '@ianvs/prettier-plugin-sort-imports': '*'
'@prettier/plugin-pug': '*'
'@shopify/prettier-plugin-liquid': '*'
'@shufo/prettier-plugin-blade': '*'
'@trivago/prettier-plugin-sort-imports': '*'
- prettier: '>=2.2.0'
+ prettier: ^2.2 || ^3.0
prettier-plugin-astro: '*'
prettier-plugin-css-order: '*'
prettier-plugin-import-sort: '*'
prettier-plugin-jsdoc: '*'
+ prettier-plugin-marko: '*'
prettier-plugin-organize-attributes: '*'
prettier-plugin-organize-imports: '*'
prettier-plugin-style-order: '*'
prettier-plugin-svelte: '*'
prettier-plugin-twig-melody: '*'
peerDependenciesMeta:
- '@prettier/plugin-php':
+ '@ianvs/prettier-plugin-sort-imports':
optional: true
'@prettier/plugin-pug':
optional: true
@@ -16596,6 +16436,8 @@ packages:
optional: true
prettier-plugin-jsdoc:
optional: true
+ prettier-plugin-marko:
+ optional: true
prettier-plugin-organize-attributes:
optional: true
prettier-plugin-organize-imports:
@@ -17393,16 +17235,6 @@ packages:
dev: true
optional: true
- /replace-in-file/6.3.2:
- resolution: {integrity: sha512-Dbt5pXKvFVPL3WAaEB3ZX+95yP0CeAtIPJDwYzHbPP5EAHn+0UoegH/Wg3HKflU9dYBH8UnBC2NvY3P+9EZtTg==}
- engines: {node: '>=10'}
- hasBin: true
- dependencies:
- chalk: 4.1.2
- glob: 7.2.0
- yargs: 17.4.1
- dev: true
-
/require-directory/2.1.1:
resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==}
engines: {node: '>=0.10.0'}
@@ -17437,14 +17269,6 @@ packages:
engines: {node: '>=8'}
dev: true
- /resolve-path/1.4.0:
- resolution: {integrity: sha512-i1xevIst/Qa+nA9olDxLWnLk8YZbi8R/7JPbCMcgyWaFR6bKWaexgJgEB5oc2PKMjYdrHynyz0NY+if+H98t1w==}
- engines: {node: '>= 0.8'}
- dependencies:
- http-errors: 1.6.3
- path-is-absolute: 1.0.1
- dev: true
-
/resolve-pkg-maps/1.0.0:
resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}
dev: true
@@ -17851,10 +17675,6 @@ packages:
/setimmediate/1.0.5:
resolution: {integrity: sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==}
- /setprototypeof/1.1.0:
- resolution: {integrity: sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==}
- dev: true
-
/setprototypeof/1.2.0:
resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==}
@@ -18529,26 +18349,6 @@ packages:
resolution: {integrity: sha512-SYJSIgeyXW7EuX1ytdneO5e8jip42oHWg9xl/o3oTYhmXusZVgiA+VlPvjIN+kHii9v90AmzTZEBcsEvuAY+TA==}
dev: false
- /tailwind-config-viewer/[email protected]:
- resolution: {integrity: sha512-XesuasyVLDXadHhLLDeS0H5EiAhhWnRPDjDRsP4sYRXGn8h7Vgnv9TzFXvoaNG6dvuRuwWQxJRfNOjaWid2V1g==}
- engines: {node: '>=8'}
- hasBin: true
- peerDependencies:
- tailwindcss: 1 || 2 || 2.0.1-compat || 3
- dependencies:
- '@koa/router': 9.4.0
- commander: 6.2.1
- fs-extra: 9.1.0
- koa: 2.13.4
- koa-static: 5.0.0
- open: 7.4.2
- portfinder: 1.0.28
- replace-in-file: 6.3.2
- tailwindcss: [email protected]
- transitivePeerDependencies:
- - supports-color
- dev: true
-
/tailwindcss/[email protected]:
resolution: {integrity: sha512-Vkiouc41d4CEq0ujXl6oiGFQ7bA3WEhUZdTgXAhtKxSy49OmKs8rEfQmupsfF0IGW8fv2iQkp1EVUuapCFrZ9g==}
engines: {node: '>=12.13.0'}
@@ -18979,11 +18779,6 @@ packages:
/tslib/2.5.3:
resolution: {integrity: sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==}
- /tsscmp/1.0.6:
- resolution: {integrity: sha512-LxhtAkPDTkVCMQjt2h6eBVY28KCjikZqZfMcC15YBeNjkgUpdCfBu5HoiOTDu86v6smE8yOjyEktJ8hlbANHQA==}
- engines: {node: '>=0.6.x'}
- dev: true
-
resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==}
engines: {node: '>= 6'}
@@ -20283,11 +20078,6 @@ packages:
/y18n/4.0.3:
resolution: {integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==}
- /y18n/5.0.8:
- resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==}
- engines: {node: '>=10'}
- dev: true
-
/yallist/2.1.2:
resolution: {integrity: sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==}
@@ -20324,11 +20114,6 @@ packages:
decamelize: 1.2.0
dev: true
- /yargs-parser/21.0.1:
- resolution: {integrity: sha512-9BK1jFpLzJROCI5TzwZL/TU4gqjK5xiHV/RfWLOahrjAko/e4DJkRDZQXfvqAsiZzzYhgAzbgz6lg48jcm4GLg==}
- engines: {node: '>=12'}
- dev: true
-
/yargs/15.4.1:
resolution: {integrity: sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==}
engines: {node: '>=8'}
@@ -20346,24 +20131,6 @@ packages:
yargs-parser: 18.1.3
dev: true
- /yargs/17.4.1:
- resolution: {integrity: sha512-WSZD9jgobAg3ZKuCQZSa3g9QOJeCCqLoLAykiWgmXnDo9EPnn4RPf5qVTtzgOx66o6/oqhcA5tHtJXpG8pMt3g==}
- engines: {node: '>=12'}
- dependencies:
- cliui: 7.0.4
- escalade: 3.1.1
- get-caller-file: 2.0.5
- require-directory: 2.1.1
- string-width: 4.2.3
- y18n: 5.0.8
- yargs-parser: 21.0.1
- dev: true
-
- /ylru/1.3.2:
- resolution: {integrity: sha512-RXRJzMiK6U2ye0BlGGZnmpwJDPgakn6aNQ0A7gHRbD4I0uvK4TW6UqkK1V0pp9jskjJBAXd3dRrbzWkqJ+6cxA==}
- engines: {node: '>= 4.0.0'}
- dev: true
-
/yocto-queue/0.1.0:
resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}
engines: {node: '>=10'}
diff --git a/prettier.config.js b/prettier.config.js
index 47d32a3ba..7480c3937 100644
--- a/prettier.config.js
+++ b/prettier.config.js
@@ -15,7 +15,7 @@ module.exports = {
files: ["frontend/**/*"],
options: {
plugins: [require("prettier-plugin-tailwindcss")],
- tailwindConfig: "frontend/tailwind.config.js",
+ tailwindConfig: "frontend/tailwind.config.ts",
vueIndentScriptAndStyle: false,
},
},