Skip to content

Commit

Permalink
Merge pull request #669 from paziresh24/plasmicops/B3Tg8hwj/main
Browse files Browse the repository at this point in the history
[plasmic] Sync project Paziresh24/Profile
  • Loading branch information
AmirhBeigi authored Nov 5, 2024
2 parents 7f21dc0 + dff6d6d commit 1c4480b
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 31 deletions.
39 changes: 34 additions & 5 deletions .plasmic/plasmic/paziresh_24_profile/PlasmicProfileActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,37 @@ function PlasmicProfileActions__RenderFunc(props: {
];
}

$steps["updateIsBookMarked"] = !$ctx["auth"].isLogin
? (() => {
const actionArgs = {
variable: {
objRoot: $state,
variablePath: ["isBookMarked"]
},
operation: 4
};
return (({ variable, value, startIndex, deleteCount }) => {
if (!variable) {
return;
}
const { objRoot, variablePath } = variable;

const oldValue = $stateGet(objRoot, variablePath);
$stateSet(objRoot, variablePath, !oldValue);
return !oldValue;
})?.apply(null, [actionArgs]);
})()
: undefined;
if (
$steps["updateIsBookMarked"] != null &&
typeof $steps["updateIsBookMarked"] === "object" &&
typeof $steps["updateIsBookMarked"].then === "function"
) {
$steps["updateIsBookMarked"] = await $steps[
"updateIsBookMarked"
];
}

$steps["invokeGlobalAction2"] =
!$state.isBookMarked && $ctx.auth.isLogin
? (() => {
Expand All @@ -427,11 +458,9 @@ function PlasmicProfileActions__RenderFunc(props: {
undefined,
(() => {
try {
return (() => {
{
slug: $props.slug;
}
})();
return {
slug: $props.slug
};
} catch (e) {
if (
e instanceof TypeError ||
Expand Down
22 changes: 4 additions & 18 deletions .plasmic/plasmic/paziresh_24_profile/PlasmicProfileHead.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
width: 100%;
height: auto;
background: #ffffff;
box-shadow: 0px 7px 25px 0px rgba(0, 0, 0, 0.2);
box-shadow: none;
min-width: 0;
border-radius: var(--token-_c276Gs_1FIE);
padding: var(--token-Fv8-L_kN-2Ma);
Expand Down Expand Up @@ -69,33 +69,19 @@
display: flex;
flex-direction: row;
position: relative;
align-items: center;
justify-content: center;
width: auto;
height: auto;
max-width: 100%;
}
.viewCount > :global(.__wab_flex-container) {
flex-direction: row;
align-items: center;
justify-content: center;
margin-left: calc(0px - var(--token-fhaz6q6bl-fW));
width: calc(100% + var(--token-fhaz6q6bl-fW));
}
.viewCount > :global(.__wab_flex-container) > *,
.viewCount > :global(.__wab_flex-container) > :global(.__wab_slot) > *,
.viewCount > :global(.__wab_flex-container) > picture > img,
.viewCount
> :global(.__wab_flex-container)
> :global(.__wab_slot)
> picture
> img {
margin-left: var(--token-fhaz6q6bl-fW);
}
.text__plQaR {
position: relative;
width: 100%;
height: auto;
max-width: 100%;
color: var(--token-u3OudfMChOo3);
margin-left: var(--token-fhaz6q6bl-fW);
min-width: 0;
}
.svg {
Expand Down
6 changes: 2 additions & 4 deletions .plasmic/plasmic/paziresh_24_profile/PlasmicProfileHead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,9 @@ function PlasmicProfileHead__RenderFunc(props: {
})()}
/>

<Stack__
as={"div"}
<div
data-plasmic-name={"viewCount"}
data-plasmic-override={overrides.viewCount}
hasGap={true}
className={classNames(projectcss.all, sty.viewCount)}
>
<div
Expand Down Expand Up @@ -238,7 +236,7 @@ function PlasmicProfileHead__RenderFunc(props: {
className={classNames(projectcss.all, sty.svg)}
role={"img"}
/>
</Stack__>
</div>
</div>
</Stack__>
<ProfileInfo
Expand Down
8 changes: 4 additions & 4 deletions plasmic.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1827,12 +1827,12 @@
{
"type": "renderModule",
"assetId": "VtINgkEb27Pn",
"checksum": "d9be96c20338e1aa14cc38308c5268d2"
"checksum": "54ef24d1e995603b44c781c7b547c2a1"
},
{
"type": "cssRules",
"assetId": "VtINgkEb27Pn",
"checksum": "d9be96c20338e1aa14cc38308c5268d2"
"checksum": "54ef24d1e995603b44c781c7b547c2a1"
},
{
"type": "renderModule",
Expand All @@ -1847,12 +1847,12 @@
{
"type": "renderModule",
"assetId": "fKBGdItR62E2",
"checksum": "d4f441c4a0faf0f5cb5d11745cbed3ae"
"checksum": "36d9d218956075bc64014ee1d8e7adcd"
},
{
"type": "cssRules",
"assetId": "fKBGdItR62E2",
"checksum": "d4f441c4a0faf0f5cb5d11745cbed3ae"
"checksum": "36d9d218956075bc64014ee1d8e7adcd"
},
{
"type": "renderModule",
Expand Down

0 comments on commit 1c4480b

Please sign in to comment.