added day, version, plan and self host (sh) or hosted (h) into left sidebar footer (#2111)

pull/2121/head
Peer Richelsen 2022-03-13 00:07:21 +00:00 committed by GitHub
parent 788e2acaff
commit 5b4cebac16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 59 additions and 1052 deletions

View File

@ -38,6 +38,7 @@ import Dropdown, {
DropdownMenuTrigger, DropdownMenuTrigger,
} from "@components/ui/Dropdown"; } from "@components/ui/Dropdown";
import { version } from "../package.json";
import { useViewerI18n } from "./I18nLanguageHandler"; import { useViewerI18n } from "./I18nLanguageHandler";
import Logo from "./Logo"; import Logo from "./Logo";
import Button from "./ui/Button"; import Button from "./ui/Button";
@ -247,7 +248,7 @@ export default function Shell(props: {
</nav> </nav>
</div> </div>
<TrialBanner /> <TrialBanner />
<div className="m-2 rounded-sm p-2 pt-2 pr-2 hover:bg-gray-100"> <div className="rounded-sm pb-2 pl-3 pt-2 pr-2 hover:bg-gray-100 lg:mx-2 lg:pl-2">
<span className="hidden lg:inline"> <span className="hidden lg:inline">
<UserDropdown /> <UserDropdown />
</span> </span>
@ -255,6 +256,11 @@ export default function Shell(props: {
<UserDropdown small /> <UserDropdown small />
</span> </span>
</div> </div>
<small style={{ fontSize: "0.5rem" }} className="mx-3 mt-1 mb-2 hidden opacity-50 lg:block">
&copy; {new Date().getFullYear()} Cal.com, Inc. v.{version + "-"}
{process.env.NEXT_PUBLIC_APP_URL === "https://cal.com" ? "h" : "sh"}
<span className="lowercase">-{user && user.plan}</span>
</small>
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,6 +1,6 @@
{ {
"name": "@calcom/web", "name": "@calcom/web",
"version": "1.0.0", "version": "1.4.0",
"private": true, "private": true,
"scripts": { "scripts": {
"analyze": "ANALYZE=true next build", "analyze": "ANALYZE=true next build",

1101
yarn.lock

File diff suppressed because it is too large Load Diff