Skip to content

Commit bd412b0

Browse files
authored
Merge branch 'main' into lino/add-module-replacements
2 parents 5e453a3 + b13eeb8 commit bd412b0

14 files changed

Lines changed: 87 additions & 64 deletions

app/components/CodeDirectoryListing.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function formatBytes(bytes: number): string {
7070
:to="parentPath ? `${baseUrl}/${parentPath}` : baseUrl"
7171
class="flex items-center gap-2 font-mono text-sm text-fg-muted hover:text-fg transition-colors"
7272
>
73-
<span class="i-carbon-folder w-4 h-4 text-yellow-600" />
73+
<span class="i-carbon:folder w-4 h-4 text-yellow-600" />
7474
<span>..</span>
7575
</NuxtLink>
7676
</td>
@@ -91,13 +91,13 @@ function formatBytes(bytes: number): string {
9191
>
9292
<span
9393
v-if="node.type === 'directory'"
94-
class="i-carbon-folder w-4 h-4 text-yellow-600"
94+
class="i-carbon:folder w-4 h-4 text-yellow-600"
9595
/>
9696
<span v-else class="w-4 h-4" :class="getFileIcon(node.name)" />
9797
<span>{{ node.name }}</span>
9898
</NuxtLink>
9999
</td>
100-
<td class="py-2 px-4 text-right font-mono text-xs text-fg-subtle">
100+
<td class="py-2 px-4 text-end font-mono text-xs text-fg-subtle">
101101
<span v-if="node.type === 'file' && node.size">
102102
{{ formatBytes(node.size) }}
103103
</span>

app/components/CodeFileTree.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,21 @@ watch(
3939
<template v-if="node.type === 'directory'">
4040
<button
4141
type="button"
42-
class="w-full flex items-center gap-1.5 py-1.5 px-3 text-left font-mono text-sm transition-colors hover:bg-bg-muted"
42+
class="w-full flex items-center gap-1.5 py-1.5 px-3 text-start font-mono text-sm transition-colors hover:bg-bg-muted"
4343
:class="isNodeActive(node) ? 'text-fg' : 'text-fg-muted'"
4444
:style="{ paddingLeft: `${depth * 12 + 12}px` }"
4545
@click="toggleDir(node.path)"
4646
>
4747
<span
4848
class="w-4 h-4 shrink-0 transition-transform"
49-
:class="[isExpanded(node.path) ? 'i-carbon-chevron-down' : 'i-carbon-chevron-right']"
49+
:class="[isExpanded(node.path) ? 'i-carbon:chevron-down' : 'i-carbon:chevron-right']"
5050
/>
5151
<span
5252
class="w-4 h-4 shrink-0"
5353
:class="
5454
isExpanded(node.path)
55-
? 'i-carbon-folder-open text-yellow-500'
56-
: 'i-carbon-folder text-yellow-600'
55+
? 'i-carbon:folder-open text-yellow-500'
56+
: 'i-carbon:folder text-yellow-600'
5757
"
5858
/>
5959
<span class="truncate">{{ node.name }}</span>

app/components/CodeMobileTreeDrawer.vue

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ watch(isOpen, open => (isLocked.value = open))
2727
<!-- Toggle button (mobile only) -->
2828
<button
2929
type="button"
30-
class="md:hidden fixed bottom-4 right-4 z-40 w-12 h-12 bg-bg-elevated border border-border rounded-full shadow-lg flex items-center justify-center text-fg-muted hover:text-fg transition-colors"
30+
class="md:hidden fixed bottom-4 inset-ie-4 z-40 w-12 h-12 bg-bg-elevated border border-border rounded-full shadow-lg flex items-center justify-center text-fg-muted hover:text-fg transition-colors"
3131
:aria-label="$t('code.toggle_tree')"
3232
@click="isOpen = !isOpen"
3333
>
34-
<span class="w-5 h-5" :class="isOpen ? 'i-carbon-close' : 'i-carbon-folder'" />
34+
<span class="w-5 h-5" :class="isOpen ? 'i-carbon:close' : 'i-carbon:folder'" />
3535
</button>
3636

3737
<!-- Backdrop -->
@@ -57,19 +57,20 @@ watch(isOpen, open => (isLocked.value = open))
5757
>
5858
<aside
5959
v-if="isOpen"
60-
class="md:hidden fixed inset-y-0 left-0 z-50 w-72 bg-bg-subtle border-r border-border overflow-y-auto"
60+
class="md:hidden fixed inset-y-0 inset-is-0 z-50 w-72 bg-bg-subtle border-ie border-border overflow-y-auto"
6161
>
6262
<div
63-
class="sticky top-0 bg-bg-subtle border-b border-border px-4 py-3 flex items-center justify-between"
63+
class="sticky top-0 bg-bg-subtle border-b border-border px-4 py-3 flex items-center justify-start"
6464
>
6565
<span class="font-mono text-sm text-fg-muted">{{ $t('code.files_label') }}</span>
66+
<span aria-hidden="true" class="flex-shrink-1 flex-grow-1" />
6667
<button
6768
type="button"
6869
class="text-fg-muted hover:text-fg transition-colors"
6970
:aria-label="$t('code.close_tree')"
7071
@click="isOpen = false"
7172
>
72-
<span class="i-carbon-close w-5 h-5" />
73+
<span class="i-carbon:close w-5 h-5" />
7374
</button>
7475
</div>
7576
<CodeFileTree :tree="tree" :current-path="currentPath" :base-url="baseUrl" />

app/components/CodeViewer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ watch(
5858
<div class="code-viewer flex min-h-full">
5959
<!-- Line numbers column -->
6060
<div
61-
class="line-numbers shrink-0 bg-bg-subtle border-r border-border text-right select-none"
61+
class="line-numbers shrink-0 bg-bg-subtle border-ie border-border text-end select-none"
6262
aria-hidden="true"
6363
>
6464
<a

app/components/ConnectorModal.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ watch(open, isOpen => {
8282
:aria-label="$t('common.close')"
8383
@click="open = false"
8484
>
85-
<span class="i-carbon-close block w-5 h-5" aria-hidden="true" />
85+
<span class="i-carbon:close block w-5 h-5" aria-hidden="true" />
8686
</button>
8787
</div>
8888

@@ -124,19 +124,19 @@ watch(open, isOpen => {
124124
class="flex items-center p-3 bg-bg-muted border border-border rounded-lg font-mono text-sm"
125125
>
126126
<span class="text-fg-subtle">$</span>
127-
<span class="text-fg-subtle ml-2">{{ executeNpmxConnectorCommand }}</span>
127+
<span class="text-fg-subtle ms-2">{{ executeNpmxConnectorCommand }}</span>
128128
<button
129129
type="button"
130130
:aria-label="
131131
copied ? $t('connector.modal.copied') : $t('connector.modal.copy_command')
132132
"
133-
class="ml-auto text-fg-subtle hover:text-fg transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 rounded"
133+
class="ms-auto text-fg-subtle hover:text-fg transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 rounded"
134134
@click="copyCommand"
135135
>
136-
<span v-if="!copied" class="i-carbon-copy block w-5 h-5" aria-hidden="true" />
136+
<span v-if="!copied" class="i-carbon:copy block w-5 h-5" aria-hidden="true" />
137137
<span
138138
v-else
139-
class="i-carbon-checkmark block w-5 h-5 text-green-500"
139+
class="i-carbon:checkmark block w-5 h-5 text-green-500"
140140
aria-hidden="true"
141141
/>
142142
</button>

app/components/ConnectorStatus.client.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const ariaLabel = computed(() => {
7575
<!-- Operation count badge (overlaid) -->
7676
<span
7777
v-if="isConnected && operationCount > 0"
78-
class="absolute -top-0.5 -right-0.5 min-w-[1rem] h-4 px-1 flex items-center justify-center font-mono text-[10px] rounded-full"
78+
class="absolute -top-0.5 -inset-ie-0.5 min-w-[1rem] h-4 px-1 flex items-center justify-center font-mono text-[10px] rounded-full"
7979
:class="hasPendingOperations ? 'bg-yellow-500 text-black' : 'bg-blue-500 text-white'"
8080
aria-hidden="true"
8181
>
@@ -93,7 +93,7 @@ const ariaLabel = computed(() => {
9393
<div
9494
v-if="showTooltip"
9595
role="tooltip"
96-
class="absolute right-0 top-full mt-2 px-2 py-1 font-mono text-xs text-fg bg-bg-elevated border border-border rounded shadow-lg whitespace-nowrap z-50"
96+
class="absolute inset-ie-0 top-full mt-2 px-2 py-1 font-mono text-xs text-fg bg-bg-elevated border border-border rounded shadow-lg whitespace-nowrap z-50"
9797
>
9898
{{ tooltipText }}
9999
</div>

app/components/DateTime.vue

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,20 @@ const { locale } = useI18n()
3333
3434
const relativeDates = useRelativeDates()
3535
36+
const dateFormatter = new Intl.DateTimeFormat(locale.value, {
37+
month: 'short',
38+
day: 'numeric',
39+
year: 'numeric',
40+
hour: 'numeric',
41+
minute: '2-digit',
42+
timeZoneName: 'short',
43+
})
44+
3645
// Compute the title - always show full date for accessibility
3746
const titleValue = computed(() => {
3847
if (props.title) return props.title
39-
if (typeof props.datetime === 'string') return props.datetime
40-
return props.datetime.toISOString()
48+
const date = typeof props.datetime === 'string' ? new Date(props.datetime) : props.datetime
49+
return dateFormatter.format(date)
4150
})
4251
</script>
4352

app/components/DependencyPathPopup.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function parsePackageString(pkg: string): { name: string; version: string } {
7171
:aria-expanded="isOpen"
7272
@click.stop="togglePopup"
7373
>
74-
<span class="i-carbon-tree-view w-3 h-3" aria-hidden="true" />
74+
<span class="i-carbon:tree-view w-3 h-3" aria-hidden="true" />
7575
<span>{{ $t('package.vulnerabilities.path') }}</span>
7676
</button>
7777

@@ -89,7 +89,7 @@ function parsePackageString(pkg: string): { name: string; version: string } {
8989
class="font-mono text-xs"
9090
:style="{ paddingLeft: `${idx * 12}px` }"
9191
>
92-
<span v-if="idx > 0" class="text-fg-subtle mr-1">└─</span>
92+
<span v-if="idx > 0" class="text-fg-subtle me-1">└─</span>
9393
<NuxtLink
9494
:to="{
9595
name: 'package',
@@ -107,7 +107,7 @@ function parsePackageString(pkg: string): { name: string; version: string } {
107107
>
108108
{{ pathItem }}
109109
</NuxtLink>
110-
<span v-if="idx === path.length - 1" class="ml-1 text-amber-500">⚠</span>
110+
<span v-if="idx === path.length - 1" class="ms-1 text-amber-500">⚠</span>
111111
</li>
112112
</ul>
113113
</div>

app/components/HeaderOrgsDropdown.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function handleKeydown(event: KeyboardEvent) {
7575
enter-from-class="opacity-0 translate-y-1"
7676
leave-to-class="opacity-0 translate-y-1"
7777
>
78-
<div v-if="isOpen" class="absolute right-0 top-full pt-2 w-56 z-50">
78+
<div v-if="isOpen" class="absolute inset-ie-0 top-full pt-2 w-56 z-50">
7979
<div class="bg-bg-elevated border border-border rounded-lg shadow-lg overflow-hidden">
8080
<div class="px-3 py-2 border-b border-border">
8181
<span class="font-mono text-xs text-fg-subtle">{{
@@ -112,7 +112,7 @@ function handleKeydown(event: KeyboardEvent) {
112112
class="link-subtle font-mono text-xs inline-flex items-center gap-1"
113113
>
114114
{{ $t('header.orgs_dropdown.view_all') }}
115-
<span class="i-carbon-arrow-right w-3 h-3" aria-hidden="true" />
115+
<span class="i-carbon:arrow-right rtl-flip w-3 h-3" aria-hidden="true" />
116116
</NuxtLink>
117117
</div>
118118
</div>

app/components/HeaderPackagesDropdown.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function handleKeydown(event: KeyboardEvent) {
7575
enter-from-class="opacity-0 translate-y-1"
7676
leave-to-class="opacity-0 translate-y-1"
7777
>
78-
<div v-if="isOpen" class="absolute right-0 top-full pt-2 w-64 z-50">
78+
<div v-if="isOpen" class="absolute inset-ie-0 top-full pt-2 w-64 z-50">
7979
<div class="bg-bg-elevated border border-border rounded-lg shadow-lg overflow-hidden">
8080
<div class="px-3 py-2 border-b border-border">
8181
<span class="font-mono text-xs text-fg-subtle">{{
@@ -112,7 +112,7 @@ function handleKeydown(event: KeyboardEvent) {
112112
class="link-subtle font-mono text-xs inline-flex items-center gap-1"
113113
>
114114
{{ $t('header.packages_dropdown.view_all') }}
115-
<span class="i-carbon-arrow-right w-3 h-3" aria-hidden="true" />
115+
<span class="i-carbon:arrow-right rtl-flip w-3 h-3" aria-hidden="true" />
116116
</NuxtLink>
117117
</div>
118118
</div>

0 commit comments

Comments
 (0)