Skip to content

Commit 5905cd2

Browse files
committed
Reorganize UI components by domains (common, lesson, sidebar)
1 parent 725fd6b commit 5905cd2

13 files changed

Lines changed: 16 additions & 11 deletions
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
import { ChevronLeft, ChevronRight } from '@lucide/astro';
3-
import { useTranslations } from '../i18n/ui';
3+
import { useTranslations } from '../../i18n/ui';
44
55
interface LessonSummary {
66
name: string;

ui/src/components/LanguageSelector.astro renamed to ui/src/components/sidebar/LanguageSelector.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import { languages } from '../i18n/ui';
2+
import { languages } from '../../i18n/ui';
33
44
interface Props {
55
activeLang?: keyof typeof languages;
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
---
2-
import lessons from '../data/lessons.json';
3-
import categoryOrder from '../data/categories.json';
4-
import { languages, useTranslations, type ui, defaultLang } from '../i18n/ui';
2+
import lessons from '../../data/lessons.json';
3+
import categoryOrder from '../../data/categories.json';
4+
import {
5+
languages,
6+
useTranslations,
7+
type ui,
8+
defaultLang,
9+
} from '../../i18n/ui';
510
import { ChevronLeft, ChevronRight } from '@lucide/astro';
611
import LanguageSelector from './LanguageSelector.astro';
712
import SidebarSearch from './SidebarSearch.astro';
File renamed without changes.
File renamed without changes.

‎ui/src/layouts/AppShell.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
import Layout from './Layout.astro';
3-
import Sidebar from '../components/Sidebar.astro';
3+
import Sidebar from '../components/sidebar/Sidebar.astro';
44
import { languages } from '../i18n/ui';
55
66
interface Props {

0 commit comments

Comments
 (0)