Skip to content

Commit

Permalink
samsung smart fridge support
Browse files Browse the repository at this point in the history
  • Loading branch information
regulad committed Aug 18, 2024
1 parent 13af772 commit 150873a
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 25 deletions.
6 changes: 6 additions & 0 deletions .idea/jsLibraryMappings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 5 additions & 22 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/scala_compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ import {
TooltipContent,
TooltipTrigger,
} from "@/components/ui/tooltip.tsx";
import "array.prototype.toreversed/auto";
import "array.prototype.tosorted/auto";
// import "array.prototype.toreversed/auto"; // cannot shim at compile time
import shimReversed from "array.prototype.toreversed/shim";
// import "array.prototype.tosorted/auto"; // cannot shim at compile time
import shimSorted from "array.prototype.tosorted/shim";
import { ReactNode } from "react";
import { FaAndroid } from "react-icons/fa6";
import { LuCrown } from "react-icons/lu";
Expand Down Expand Up @@ -36,6 +38,8 @@ function PremiumButton() {
}

export default function DeviceTypes(): ReactNode {
shimSorted();
shimReversed();
return (
<ul className="shadcn-ul">
{allRedroidImages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ import NoDevicesCard from "@/app/(userland)/devices/(root)/device-pages/no-devic
import { getDevicesForUser } from "@/utils/devices.ts";
import { createClient } from "@/utils/supabase/server.ts";
import { Device } from "@prisma/client";
import "array.prototype.tosorted/auto";
// import "array.prototype.tosorted/auto"; // cannot shim at compile time
import shimSorted from "array.prototype.tosorted/shim";
import NotFound from "next/dist/client/components/not-found-error";

export default async function UserDevices() {
shimSorted();

const supabaseClient = createClient();
const {
data: { user },
Expand Down
10 changes: 10 additions & 0 deletions apps/web/src/array.prototype.toreversed.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
declare module "array.prototype.toreversed/auto";

declare module "array.prototype.toreversed/polyfill" {
function getPolyfill(): Array.prototype.toReversed;
export = getPolyfill;
}

declare module "array.prototype.toreversed/shim" {
function shim(): void;
export = shim;
}
10 changes: 10 additions & 0 deletions apps/web/src/array.prototype.tosorted.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
declare module "array.prototype.tosorted/auto";

declare module "array.prototype.tosorted/polyfill" {
function getPolyfill(): Array.prototype.toSorted;
export = getPolyfill;
}

declare module "array.prototype.tosorted/shim" {
function shim(): void;
export = shim;
}

0 comments on commit 150873a

Please sign in to comment.