mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-11-30 10:15:40 +03:00
Hide description in table
This commit is contained in:
parent
3dd6279366
commit
6eb54069ba
@ -11,7 +11,7 @@ import { exampleIdeas } from "../examples";
|
|||||||
import logout from "@wasp/auth/logout";
|
import logout from "@wasp/auth/logout";
|
||||||
import { WaspIcon } from "../components/WaspIcon";
|
import { WaspIcon } from "../components/WaspIcon";
|
||||||
import { Header } from "../components/Header";
|
import { Header } from "../components/Header";
|
||||||
import { PiDownloadDuotone } from "react-icons/pi";
|
import { PiDownloadDuotone, PiUserDuotone } from "react-icons/pi";
|
||||||
import { MyDropdown } from "../components/Dropdown";
|
import { MyDropdown } from "../components/Dropdown";
|
||||||
import { HomeButton } from "../components/Header";
|
import { HomeButton } from "../components/Header";
|
||||||
import {
|
import {
|
||||||
@ -193,13 +193,16 @@ export function Stats() {
|
|||||||
className="px-6 py-4 font-medium text-gray-900 whitespace-nowrap flex items-center gap-2"
|
className="px-6 py-4 font-medium text-gray-900 whitespace-nowrap flex items-center gap-2"
|
||||||
>
|
>
|
||||||
<Color value={getTailwindClassNameForProjectBrandColor(project.primaryColor)} />{" "}
|
<Color value={getTailwindClassNameForProjectBrandColor(project.primaryColor)} />{" "}
|
||||||
<span title={project.description} className="max-w-[250px] overflow-hidden overflow-ellipsis">
|
<span className="max-w-[250px] overflow-hidden overflow-ellipsis">
|
||||||
{project.name}
|
{project.name}
|
||||||
</span>{" "}
|
</span>{" "}
|
||||||
<span className="flex gap-1">
|
<span className="flex gap-1">
|
||||||
{project.user && (
|
{project.user && (
|
||||||
<span title={project.user.email}>
|
<span
|
||||||
<WaspIcon className="w-5 h-5" />
|
title={project.user.email}
|
||||||
|
className="w-5 h-5 bg-yellow-100 rounded-full flex items-center justify-center text-yellow-800 border border-yellow-200"
|
||||||
|
>
|
||||||
|
<PiUserDuotone className="w-3 h-3" />
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
{project.zipDownloadedAt && (
|
{project.zipDownloadedAt && (
|
||||||
|
@ -3,6 +3,7 @@ import { GetUserFieldsFn } from "@wasp/types";
|
|||||||
export const getGoogleUserFields: GetUserFieldsFn = async (_context, args) => {
|
export const getGoogleUserFields: GetUserFieldsFn = async (_context, args) => {
|
||||||
return {
|
return {
|
||||||
email: args.profile.emails[0].value,
|
email: args.profile.emails[0].value,
|
||||||
|
username: args.profile.emails[0].value,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -193,13 +193,23 @@ export const getStats = (async (_args, context) => {
|
|||||||
orderBy: {
|
orderBy: {
|
||||||
createdAt: "desc",
|
createdAt: "desc",
|
||||||
},
|
},
|
||||||
include: {
|
// Excluding description since we are not showing it in the table.
|
||||||
|
select: {
|
||||||
|
id: true,
|
||||||
|
name: true,
|
||||||
|
primaryColor: true,
|
||||||
|
authMethod: true,
|
||||||
|
creativityLevel: true,
|
||||||
|
createdAt: true,
|
||||||
|
status: true,
|
||||||
|
referrer: true,
|
||||||
|
zipDownloadedAt: true,
|
||||||
user: {
|
user: {
|
||||||
select: {
|
select: {
|
||||||
email: true,
|
email: true
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user