From 7f39f319c6ad41b34705a17ae8bf68f901625889 Mon Sep 17 00:00:00 2001 From: joostdecock Date: Thu, 3 Apr 2025 17:58:15 +0200 Subject: [PATCH] [org] fix: Missing new measurements set link --- packages/react/components/Account/Sets.mjs | 80 +++++++++------------- sites/org/docs/account/import.mdx | 15 ++++ sites/org/docusaurus.config.mjs | 2 +- sites/org/src/lib/i18n.mjs | 2 +- sites/org/src/pages/index.js | 19 +++++ sites/org/tailwind.config.mjs | 1 + 6 files changed, 70 insertions(+), 49 deletions(-) create mode 100644 sites/org/docs/account/import.mdx diff --git a/packages/react/components/Account/Sets.mjs b/packages/react/components/Account/Sets.mjs index 83c0eff9e88..aff71501eae 100644 --- a/packages/react/components/Account/Sets.mjs +++ b/packages/react/components/Account/Sets.mjs @@ -86,59 +86,45 @@ export const Sets = ({ Link = false }) => { return (
- {sets.length > 0 ? ( - <> -

- - - Import Measurements Sets - - -

-
- - -
- - ) : ( +

+ + Import Measurements Sets + + +

+
+ + +
{sets.map((set, i) => (
+ +

This page is not ready yet

+

Sorry, it's on our TODO list.

+
+ diff --git a/sites/org/docusaurus.config.mjs b/sites/org/docusaurus.config.mjs index 7c1c48727d8..a93d4206585 100644 --- a/sites/org/docusaurus.config.mjs +++ b/sites/org/docusaurus.config.mjs @@ -258,7 +258,7 @@ const config = { colorMode: { defaultMode: 'light', disableSwitch: false, - respectPrefersColorScheme: true, + respectPrefersColorScheme: false, }, image: 'img/freesewing-social-card.png', navbar: { diff --git a/sites/org/src/lib/i18n.mjs b/sites/org/src/lib/i18n.mjs index 4b46be470e6..f584c6bd34a 100644 --- a/sites/org/src/lib/i18n.mjs +++ b/sites/org/src/lib/i18n.mjs @@ -2,7 +2,7 @@ * This file is auto-generated. * Any changes you make will be overwritten by the prebuild step. */ -export const measurements = {"ankle":"Ankle circumference","biceps":"Biceps circumference","bustFront":"Bust front","bustPointToUnderbust":"Bust point to underbust","bustSpan":"Bust span","chest":"Chest circumference","crossSeam":"Cross seam","crossSeamFront":"Cross seam front","head":"Head circumference","heel":"Heel circumference","highBustFront":"High bust front","highBust":"High bust","hips":"Hips circumference","hpsToBust":"HPS to bust","hpsToWaistBack":"HPS to waist back","hpsToWaistFront":"HPS to waist front","inseam":"Inseam","knee":"Knee circumference","neck":"Neck circumference","seat":"Seat circumference","seatBack":"Seat back","crotchDepth":"Crotch depth","shoulderSlope":"Shoulder slope","shoulderToElbow":"Shoulder to elbow","shoulderToShoulder":"Shoulder to shoulder","shoulderToWrist":"Shoulder to wrist","underbust":"Underbust","upperLeg":"Upper leg circumference","waist":"Waist circumference","waistBack":"Waist back","waistToArmpit":"Waist to armpit","waistToFloor":"Waist to floor","waistToHips":"Waist to hips","waistToKnee":"Waist to knee","waistToSeat":"Waist to seat","waistToUnderbust":"Waist to underbust","waistToUpperLeg":"Waist to upper leg","wrist":"Wrist circumference"} +export const measurements = {"ankle":"Ankle circumference","biceps":"Biceps circumference","bustFront":"Bust front","bustPointToUnderbust":"Bust point to underbust","bustSpan":"Bust span","chest":"Chest circumference","crossSeam":"Cross seam","crossSeamFront":"Cross seam front","head":"Head circumference","heel":"Heel circumference","height":"Height","highBustFront":"High bust front","highBust":"High bust","hips":"Hips circumference","hpsToBust":"HPS to bust","hpsToWaistBack":"HPS to waist back","hpsToWaistFront":"HPS to waist front","inseam":"Inseam","knee":"Knee circumference","neck":"Neck circumference","seat":"Seat circumference","seatBack":"Seat back","crotchDepth":"Crotch depth","shoulderSlope":"Shoulder slope","shoulderToElbow":"Shoulder to elbow","shoulderToShoulder":"Shoulder to shoulder","shoulderToWrist":"Shoulder to wrist","underbust":"Underbust","upperLeg":"Upper leg circumference","waist":"Waist circumference","waistBack":"Waist back","waistToArmpit":"Waist to armpit","waistToFloor":"Waist to floor","waistToHips":"Waist to hips","waistToKnee":"Waist to knee","waistToSeat":"Waist to seat","waistToUnderbust":"Waist to underbust","waistToUpperLeg":"Waist to upper leg","wrist":"Wrist circumference"} export const optiongroups = {"advanced":"Advanced","armhole":"Armhole","backPockets":"Back pockets","closure":"Closure","collar":"Collar","conditional":"Conditional Options","construction":"Construction","cuffs":"Cuffs","darts":"Darts","elastic":"Elastic","fit":"Fit","frontPockets":"Front pockets","length":"Length","pockets":"Pockets","style":"Style","sleevecap":"Sleevecap","test":"Test"} diff --git a/sites/org/src/pages/index.js b/sites/org/src/pages/index.js index cf2da243b22..567f6cd6b68 100644 --- a/sites/org/src/pages/index.js +++ b/sites/org/src/pages/index.js @@ -53,6 +53,25 @@ const meta = { } export default function Home() { + useEffect(() => { + // Check initial state + console.log('Initial data-theme:', document.documentElement.getAttribute('data-theme')) + console.log('OS prefers dark:', window.matchMedia('(prefers-color-scheme: dark)').matches) + + // Monitor for changes + const observer = new MutationObserver((mutations) => { + mutations.forEach((mutation) => { + if (mutation.attributeName === 'data-theme') { + console.log('data-theme changed to:', document.documentElement.getAttribute('data-theme')) + } + }) + }) + + observer.observe(document.documentElement, { attributes: true }) + + return () => observer.disconnect() + }, []) + return (
diff --git a/sites/org/tailwind.config.mjs b/sites/org/tailwind.config.mjs index 9d01129eeb1..484d20523d7 100644 --- a/sites/org/tailwind.config.mjs +++ b/sites/org/tailwind.config.mjs @@ -5,6 +5,7 @@ import daisyui from 'daisyui' export default { content: [ './src/**/*.{js,mjs,mdx}', + './docs/**/*.mdx', '../../node_modules/daisyui/**/*.{js,mjs,ts,tsx}', '../../packages/react/components/**/*.mjs', '../../packages/react/context/**/*.mjs',