Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

bump version (#557)

Bill Yangb58e5aa13e2f
diff --git a/client/package.json b/client/package.json
index ef7cdf5d0..43088a71f 100644
--- a/client/package.json
+++ b/client/package.json
@@ -1,6 +1,6 @@
{
"name": "client",
- "version": "1.5.1",
+ "version": "1.6.0",
"private": true,
"scripts": {
"dev": "next dev -p 3002 --turbopack",
diff --git a/client/src/app/settings/components/SettingsSidebar.tsx b/client/src/app/settings/components/SettingsSidebar.tsx
index f10f7bf9d..b610f05bf 100644
--- a/client/src/app/settings/components/SettingsSidebar.tsx
+++ b/client/src/app/settings/components/SettingsSidebar.tsx
@@ -2,6 +2,7 @@
import { Building2, CreditCard, UserCircle } from "lucide-react";
import { usePathname } from "next/navigation";
import { Sidebar } from "../../../components/sidebar/Sidebar";
+import { IS_CLOUD } from "../../../lib/const";
export function SettingsSidebar() {
const pathname = usePathname();
@@ -22,12 +23,14 @@ export function SettingsSidebar() {
href={"/settings/organization"}
icon={<Building2 className="w-4 h-4" />}
/>
- <Sidebar.Item
- label="Subscription"
- active={pathname.startsWith("/settings/organization/subscription")}
- href={"/settings/organization/subscription"}
- icon={<CreditCard className="w-4 h-4" />}
- />
+ {IS_CLOUD && (
+ <Sidebar.Item
+ label="Subscription"
+ active={pathname.startsWith("/settings/organization/subscription")}
+ href={"/settings/organization/subscription"}
+ icon={<CreditCard className="w-4 h-4" />}
+ />
+ )}
</Sidebar.Items>
</Sidebar.Root>
);
diff --git a/client/src/components/AppSidebar.tsx b/client/src/components/AppSidebar.tsx
index 5f0c62783..398fed86e 100644
--- a/client/src/components/AppSidebar.tsx
+++ b/client/src/components/AppSidebar.tsx
@@ -8,6 +8,7 @@ import { useState, Suspense } from "react";
import { useAdminPermission } from "../app/admin/hooks/useAdminPermission";
import { cn } from "../lib/utils";
import { useEmbedablePage } from "../app/[site]/utils";
+import { IS_CLOUD } from "../lib/const";
function AppSidebarContent() {
const pathname = usePathname();
@@ -44,7 +45,7 @@ function AppSidebarContent() {
active={pathname.startsWith("/uptime")}
expanded={isExpanded}
/> */}
- {isAdmin && (
+ {isAdmin && IS_CLOUD && (
<SidebarLink
href="/admin"
icon={<ShieldUser className="w-5 h-5" />}
diff --git a/server/package.json b/server/package.json
index 00de631d1..6eef70c33 100644
--- a/server/package.json
+++ b/server/package.json
@@ -1,6 +1,6 @@
{
"name": "rybbit-backend",
- "version": "1.5.1",
+ "version": "1.6.0",
"description": "Rybbit backend",
"main": "dist/index.js",
"type": "module",