Skip to content

Commit fab1a3a

Browse files
committed
2.3.0 feat: dark mode
detect pinecone router
1 parent e082d5a commit fab1a3a

File tree

15 files changed

+35
-27
lines changed

15 files changed

+35
-27
lines changed

packages/shell-chrome-v3/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Alpine.js devtools - Early Access",
33
"description": "DevTools extension for debugging Alpine.js applications.",
4-
"version": "2.2.10",
4+
"version": "2.3.0",
55
"manifest_version": 3,
66
"icons": {
77
"16": "icons/16.png",

packages/shell-chrome-v3/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/shell-chrome-v3/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "shell-chrome-v3",
33
"private": true,
4-
"version": "2.2.10",
4+
"version": "2.3.0",
55
"description": "Alpine.js devtools with Chrome manifest v3 compatibility",
66
"type": "module",
77
"scripts": {

packages/shell-chrome-v3/src/devtools/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const App: Component = () => {
2727
});
2828
return (
2929
<div class="h-full">
30-
<div class="bg-white flex flex-col relative h-full w-full mx-auto">
30+
<div class="bg-white dark:bg-alpine-400 flex flex-col relative h-full w-full mx-auto">
3131
<div
3232
class="flex-1 min-h-0 flex"
3333
classList={{

packages/shell-chrome-v3/src/devtools/components/component-grid.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ export function ComponentGrid() {
2828
rightPaneContent={
2929
<>
3030
{openComponentValue() ? (
31-
<div class="sticky top-0 left-0 z-20 w-full flex items-center px-3 py-2 text-base font-mono text-gray-600 bg-gray-100">
31+
<div class="sticky top-0 left-0 z-20 w-full flex items-center px-3 py-2 text-base font-mono text-gray-600 bg-gray-100 dark:text-gray-100 dark:bg-alpine-400">
3232
<span class="opacity-25">&lt;</span>
3333
<span>{openComponentValue()?.name}</span>
3434
<span class="opacity-25">&gt;</span>
3535
</div>
3636
) : (
3737
<div
3838
data-testid="select-component-message"
39-
class="flex h-full w-full items-center justify-center p-4 text-gray-400 text-sm bg-gray-50"
39+
class="flex h-full w-full items-center justify-center p-4 text-gray-400 text-sm bg-gray-50 dark:bg-alpine-400 dark:text-gray-50"
4040
>
4141
{componentsValue().length > 0 ? 'Select a component to view' : ''}
4242
</div>
@@ -46,7 +46,7 @@ export function ComponentGrid() {
4646
classList={{
4747
hidden: !openComponentValue(),
4848
}}
49-
class="flex-1 px-3 py-2"
49+
class="flex-1 px-3 py-2 dark:bg-alpine-400 dark:text-gray-50"
5050
>
5151
<div class="font-mono">
5252
<div class="leading-6 text-gray-300">x-data: {'{'}</div>

packages/shell-chrome-v3/src/devtools/components/component-list-item.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ export function ComponentListItem({ component }: { component: Component }) {
1414
return (
1515
<a
1616
classList={{
17-
'text-white bg-alpine-300':
17+
'text-white bg-alpine-300 dark:text-gray-100 dark:bg-alpine-300':
1818
openComponentValue()?.id === component.id && openComponentValue()?.isOpened,
19-
'text-gray-600 hover:bg-blue-200':
19+
'text-gray-600 dark:text-gray-100 hover:bg-blue-200 dark:hover:bg-blue-500':
2020
openComponentValue()?.id !== component.id || !openComponentValue()?.isOpened,
2121
}}
2222
class="block cursor-pointer rounded-sm"

packages/shell-chrome-v3/src/devtools/components/data-attribute-display.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export function DataAttributeDisplay(props: DataDisplayProps) {
7575
<a
7676
style={{ 'margin-left': `${props.attributeData.depth}px` }}
7777
onClick={toggleDataAttributeOpened}
78-
class="block px-1 rounded-sm hover:bg-blue-100"
78+
class="block px-1 rounded-sm hover:bg-blue-100 dark:hover:bg-blue-200"
7979
classList={{ 'cursor-pointer': props.attributeData.hasArrow }}
8080
>
8181
<h5 class="flex items-center relative pl-3 leading-6 text-sm whitespace-nowrap">
@@ -93,29 +93,33 @@ export function DataAttributeDisplay(props: DataDisplayProps) {
9393
</div>
9494

9595
<span
96-
class="text-purple"
96+
class="text-purple dark:brightness-150"
9797
data-testid={`data-property-name-${props.attributeData.attributeName}`}
9898
>
9999
{/* TODO: do something about __root_value */}
100100
{/* {props.attributeData.attributeName === '__root_value' ? '' : props.attributeData.attributeName} */}
101101
{props.attributeData.attributeName}
102102
</span>
103103

104-
<span class="text-black">:</span>
104+
<span class="text-black dark:text-gray-100">:</span>
105105

106106
<div
107107
data-testid={`data-property-value-${props.attributeData.attributeName}`}
108-
class="text-black ml-1"
108+
class="text-black dark:text-gray-100 ml-1"
109109
>
110110
<Show when={!inEditingMode() && props.attributeData.dataType === 'string'}>
111111
<div>
112-
"<span class="text-red-700">{props.attributeData.attributeValue}</span>"
112+
"
113+
<span class="text-red-700 dark:text-red-500">
114+
{props.attributeData.attributeValue}
115+
</span>
116+
"
113117
</div>
114118
</Show>
115119
<Show when={props.attributeData.dataType === 'boolean'}>
116120
<div class="flex items-center">
117121
<span
118-
class="block pr-1 text-blue-700"
122+
class="block pr-1 text-blue-700 dark:text-blue-500"
119123
classList={{
120124
'cursor-pointer': !isReadOnly(),
121125
}}

packages/shell-chrome-v3/src/devtools/components/early-access.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function EarlyAccessNotice({
2828
<div class="relative w-full max-h-full overflow-scroll">
2929
<div
3030
data-testid="early-access-notice"
31-
class="flex flex-1 h-full w-full items-center justify-center p-4 text-gray-500 text-base leading-5"
31+
class="flex flex-1 h-full w-full items-center justify-center p-4 text-gray-500 dark:text-gray-200 text-base leading-5"
3232
>
3333
<div class="flex flex-col my-auto pb-4 max-w-lg items-center justify-center">
3434
<a

packages/shell-chrome-v3/src/devtools/components/footer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function Footer({ setActiveTab }: FooterProps) {
2323
});
2424

2525
return (
26-
<div class="flex font-bold text-gray-400 border-t border-gray-300 bg-white">
26+
<div class="flex font-bold text-gray-400 border-t border-gray-300 bg-white dark:text-gray-100 dark:bg-gray-600 dark:border-gray-600">
2727
<div class="flex-1">
2828
<div class="flex items-center text-xs leading-9 font-medium font-mono">
2929
<div class="flex-1 pl-3" data-testid="footer-line">
@@ -93,7 +93,7 @@ export function Footer({ setActiveTab }: FooterProps) {
9393
</div>
9494
</div>
9595

96-
<div class="text-gray-500 flex items-center ml-3 px-2.5 space-x-1 border-l border-gray-300 transition-colors duration-700">
96+
<div class="text-gray-500 dark:text-gray-200 flex items-center ml-3 px-2.5 space-x-1 border-l border-gray-300 transition-colors duration-700">
9797
<a
9898
href={
9999
isEarlyAccess()

packages/shell-chrome-v3/src/devtools/components/header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function Header({ activeTab, setActiveTab }: HeaderProps) {
1515
'flex-col w-48 min-h-0 overflow-y-auto': orientation() === 'landscape',
1616
'flex-row items-center pl-3 pr-1 xs:pr-3': orientation() === 'portrait',
1717
}}
18-
class="flex py-px text-base tracking-tight font-bold text-white border-b border-gray-300 transition duration-700 transition-colors ease-in-out"
18+
class="flex py-px text-base tracking-tight font-bold text-white border-b border-gray-300 dark:border-none transition duration-700 transition-colors ease-in-out"
1919
>
2020
<div
2121
classList={{

0 commit comments

Comments
 (0)