mirror of
https://github.com/prometheus/docs.git
synced 2026-02-05 15:45:27 +01:00
Re-add GitHub issues config from old docs repo
Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
9
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
9
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
blank_issues_enabled: true
|
||||
contact_links:
|
||||
- name: Prometheus Community Support
|
||||
url: https://prometheus.io/community/
|
||||
about: If you need help or support, please request help here.
|
||||
- name: Commercial Support & Training
|
||||
url: https://prometheus.io/support-training/
|
||||
about: If you want commercial support or training, vendors are listed here.
|
||||
- name: Blank issue template
|
||||
7
.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
7
.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<!--
|
||||
Please sign CNCF's Developer Certificate of Origin and sign-off your commits by adding the -s / --sign-off flag to `git commit`
|
||||
|
||||
More information on both of those can be found at https://github.com/apps/dco
|
||||
|
||||
If you are proposing a new integration, exporter, or client library, please include representative sample output.
|
||||
-->
|
||||
@@ -1,9 +1,19 @@
|
||||
import { useMantineColorScheme, rem, ActionIcon } from "@mantine/core";
|
||||
"use client";
|
||||
|
||||
import {
|
||||
rem,
|
||||
ActionIcon,
|
||||
useComputedColorScheme,
|
||||
useMantineColorScheme,
|
||||
} from "@mantine/core";
|
||||
import { IconBrightnessFilled, IconSun, IconMoon } from "@tabler/icons-react";
|
||||
import { FC } from "react";
|
||||
|
||||
export const ThemeSelector: FC = () => {
|
||||
const { colorScheme, setColorScheme } = useMantineColorScheme();
|
||||
const { setColorScheme } = useMantineColorScheme();
|
||||
const computedColorScheme = useComputedColorScheme("light", {
|
||||
getInitialValueInEffect: true,
|
||||
});
|
||||
const iconProps = {
|
||||
style: { width: rem(20), height: rem(20), display: "block" },
|
||||
stroke: 1.5,
|
||||
@@ -14,36 +24,36 @@ export const ThemeSelector: FC = () => {
|
||||
color="gray"
|
||||
variant="subtle"
|
||||
title={`Switch to ${
|
||||
colorScheme === "light"
|
||||
computedColorScheme === "light"
|
||||
? "dark"
|
||||
: colorScheme === "dark"
|
||||
: computedColorScheme === "dark"
|
||||
? "browser-preferred"
|
||||
: "light"
|
||||
} theme`}
|
||||
aria-label={`Switch to ${
|
||||
colorScheme === "light"
|
||||
computedColorScheme === "light"
|
||||
? "dark"
|
||||
: colorScheme === "dark"
|
||||
: computedColorScheme === "dark"
|
||||
? "browser-preferred"
|
||||
: "light"
|
||||
} theme`}
|
||||
size={32}
|
||||
onClick={() =>
|
||||
setColorScheme(
|
||||
colorScheme === "light"
|
||||
computedColorScheme === "light"
|
||||
? "dark"
|
||||
: colorScheme === "dark"
|
||||
: computedColorScheme === "dark"
|
||||
? "auto"
|
||||
: "light"
|
||||
)
|
||||
}
|
||||
>
|
||||
{colorScheme === "light" ? (
|
||||
<IconSun suppressHydrationWarning {...iconProps} />
|
||||
) : colorScheme === "dark" ? (
|
||||
<IconMoon suppressHydrationWarning {...iconProps} />
|
||||
{computedColorScheme === "light" ? (
|
||||
<IconSun {...iconProps} />
|
||||
) : computedColorScheme === "dark" ? (
|
||||
<IconMoon {...iconProps} />
|
||||
) : (
|
||||
<IconBrightnessFilled suppressHydrationWarning {...iconProps} />
|
||||
<IconBrightnessFilled {...iconProps} />
|
||||
)}
|
||||
</ActionIcon>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user