- State
+ State
- {state}
+ {state}
|
{state === "Running" && (
@@ -361,19 +364,23 @@ const SupafanaProject = ({
|
{plan !== "Trial" && (
- Plan
-
+ Plan
+ |
{plan}
|
)}
{plan === "Trial" && grafana.first_start_at && (
- {trialEnded ? Trial ended : Trial ends}
+ {trialEnded ? (
+ Trial ended
+ ) : (
+ Trial ends
+ )}
{dayjs(grafana.first_start_at).add(grafana.trial_length_min, "minute").fromNow()}
@@ -404,7 +411,7 @@ const SupafanaProject = ({
*/}
{created && (
|
- Created
+ Created
{created}
|
@@ -412,7 +419,7 @@ const SupafanaProject = ({
)}
{grafana.state === "Running" && (
- User/pass
+ User/pass
admin
@@ -440,7 +447,21 @@ const ProjectRow = ({ children }: { children: JSX.Element[] }) => {
);
};
-const RowHeader = ({
+const RowTdHeader = ({
+ children,
+ className,
+}: {
+ children: JSX.Element | string;
+ className?: string;
+}) => {
+ return (
+ |
+ {children}
+ |
+ );
+};
+
+const RowDivHeader = ({
children,
className,
}: {
diff --git a/storefront/tailwind.config.cjs b/storefront/tailwind.config.cjs
index d37df40..418096a 100644
--- a/storefront/tailwind.config.cjs
+++ b/storefront/tailwind.config.cjs
@@ -1,4 +1,6 @@
/** @type {import('tailwindcss').Config} */
+const plugin = require("tailwindcss/plugin");
+
module.exports = {
presets: [require("./src/supafana.tailwind.preset.js")],
content: [
@@ -19,5 +21,23 @@ module.exports = {
}),
},
},
- plugins: [require("@tailwindcss/custom-forms"), require("@tailwindcss/typography")],
+ plugins: [
+ require("@tailwindcss/custom-forms"),
+ require("@tailwindcss/typography"),
+ // https://github.com/tailwindlabs/tailwindcss/discussions/2494#discussion-22808
+ plugin(function ({ addUtilities, addComponents, e, prefix, config }) {
+ const newUtilities = {
+ ".horizontal-tb": {
+ writingMode: "horizontal-tb",
+ },
+ ".vertical-rl": {
+ writingMode: "vertical-rl",
+ },
+ ".vertical-lr": {
+ writingMode: "vertical-lr",
+ },
+ };
+ addUtilities(newUtilities);
+ }),
+ ],
};