Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*!
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

export type global = object;

declare global {
var ChakraUISystem: SystemContext | undefined;
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { FC } from "react";
import { ColorModeProvider } from "src/context/colorMode";
import { EdgeLayout } from "src/layouts/EdgeLayout";

import { system } from "./theme";
import { localSystem } from "./theme";

export type PluginComponentProps = object;

Expand All @@ -37,6 +37,11 @@ const PluginComponent: FC<PluginComponentProps> = () => {
const baseUrl = new URL(baseHref, globalThis.location.origin);
OpenAPI.BASE = baseUrl.pathname.replace(/\/$/, ""); // Remove trailing slash

// Use the globalChakraUISystem provided by the Airflow Core UI,
// so the plugin has a consistent theming with the host Airflow UI,
// fallback to localSystem for local development.
const system = globalThis.ChakraUISystem ?? localSystem;

const queryClient = new QueryClient({
defaultOptions: {
queries: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ export const customConfig = defineConfig({
},
});

export const system = createSystem(defaultConfig, customConfig);
export const localSystem = createSystem(defaultConfig, customConfig);

// Utility function to resolve CSS variables to their computed values
// See: https://github.com/chakra-ui/panda/discussions/2200
Expand Down
2 changes: 1 addition & 1 deletion providers/edge3/www-hash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
291c7da0301e5e0b27520fb7cfeb0bdcbfe4c70e45237ffce5cb7b4cbb247539
266c0ab94927b8af245ff13702284b5bf316788cd314da1ee93cca1e21987ad5