Skip to content

Commit

Permalink
Merge pull request #83 from paziresh24/plasmicops/f_6GXFiA/main
Browse files Browse the repository at this point in the history
[plasmic] Sync project Opium
  • Loading branch information
AmirhBeigi authored Apr 24, 2024
2 parents 0113669 + d20d94b commit 2226968
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 76 deletions.
2 changes: 1 addition & 1 deletion .plasmic/plasmic/opium/PlasmicHoursDaysOfWeek.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ function PlasmicHoursDaysOfWeek__RenderFunc(props) {
const actionArgs = {
args: [
"error",
"\u062f\u0631 \u062b\u0628\u062a \u0633\u0627\u0639\u062a \u06a9\u0627\u0631\u06cc \u0628\u0627 \u062e\u0637\u0627 \u0645\u0648\u0627\u062c\u0647 \u0647\u0633\u062a\u06cc\u062f."
"\u0633\u0627\u0639\u0627\u062a \u0628\u0627 \u06cc\u06a9\u062f\u06cc\u06af\u0631 \u0647\u0645\u200c\u067e\u0648\u0634\u0627\u0646\u06cc \u062f\u0627\u0631\u0646\u062f."
]
};
return $globalActions["Fragment.showToast"]?.apply(null, [
Expand Down
93 changes: 28 additions & 65 deletions .plasmic/plasmic/opium/PlasmicWorkhours.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
get as $stateGet,
initializeCodeComponentStates,
initializePlasmicStates,
set as $stateSet,
useCurrentUser,
useDollarState
} from "@plasmicapp/react-web";
Expand Down Expand Up @@ -257,46 +256,28 @@ function PlasmicWorkhours__RenderFunc(props) {
}).apply(null, eventArgs);
(async value => {
const $steps = {};
$steps["updateListOfWorkhoureCopy"] = true
$steps["runCode"] = true
? (() => {
const actionArgs = {
variable: {
objRoot: $state,
variablePath: ["listOfWorkhoureCopy"]
},
operation: 0,
value: (() => {
let list = $state.listOfWorkhoureCopy;
list[currentIndex].to =
$state.to[currentIndex].value;
return list;
})()
};
return (({
variable,
value,
startIndex,
deleteCount
}) => {
if (!variable) {
return;
customFunction: async () => {
return (() => {
return ($state.listOfWorkhoureCopy[
currentIndex
].to = $state.to[currentIndex].value);
})();
}
const { objRoot, variablePath } = variable;
$stateSet(objRoot, variablePath, value);
return value;
};
return (({ customFunction }) => {
return customFunction();
})?.apply(null, [actionArgs]);
})()
: undefined;
if (
$steps["updateListOfWorkhoureCopy"] != null &&
typeof $steps["updateListOfWorkhoureCopy"] ===
"object" &&
typeof $steps["updateListOfWorkhoureCopy"].then ===
"function"
$steps["runCode"] != null &&
typeof $steps["runCode"] === "object" &&
typeof $steps["runCode"].then === "function"
) {
$steps["updateListOfWorkhoureCopy"] = await $steps[
"updateListOfWorkhoureCopy"
];
$steps["runCode"] = await $steps["runCode"];
}
}).apply(null, eventArgs);
},
Expand Down Expand Up @@ -391,46 +372,28 @@ function PlasmicWorkhours__RenderFunc(props) {
}).apply(null, eventArgs);
(async value => {
const $steps = {};
$steps["updateListOfWorkhoureCopy"] = true
$steps["runCode"] = true
? (() => {
const actionArgs = {
variable: {
objRoot: $state,
variablePath: ["listOfWorkhoureCopy"]
},
operation: 0,
value: (() => {
let list = $state.listOfWorkhoureCopy;
list[currentIndex].from =
$state.from[currentIndex].value;
return list;
})()
};
return (({
variable,
value,
startIndex,
deleteCount
}) => {
if (!variable) {
return;
customFunction: async () => {
return (() => {
return ($state.listOfWorkhoureCopy[
currentIndex
].from = $state.from[currentIndex].value);
})();
}
const { objRoot, variablePath } = variable;
$stateSet(objRoot, variablePath, value);
return value;
};
return (({ customFunction }) => {
return customFunction();
})?.apply(null, [actionArgs]);
})()
: undefined;
if (
$steps["updateListOfWorkhoureCopy"] != null &&
typeof $steps["updateListOfWorkhoureCopy"] ===
"object" &&
typeof $steps["updateListOfWorkhoureCopy"].then ===
"function"
$steps["runCode"] != null &&
typeof $steps["runCode"] === "object" &&
typeof $steps["runCode"].then === "function"
) {
$steps["updateListOfWorkhoureCopy"] = await $steps[
"updateListOfWorkhoureCopy"
];
$steps["runCode"] = await $steps["runCode"];
}
}).apply(null, eventArgs);
},
Expand Down
15 changes: 10 additions & 5 deletions plasmic.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
"componentImportPath": "@plasmicpkgs/plasmic-basic-components"
}
],
"customFunctions": []
"customFunctions": [],
"jsBundleThemes": []
},
{
"projectId": "oBJtsp5RgVpcN6KCrDTuQT",
Expand Down Expand Up @@ -217,7 +218,8 @@
"componentImportPath": "@plasmicapp/react-web/lib/data-sources"
}
],
"customFunctions": []
"customFunctions": [],
"jsBundleThemes": []
},
{
"projectId": "sqPBLwEBBKHA2WDuGb17eV",
Expand Down Expand Up @@ -307,7 +309,8 @@
"componentImportPath": "@plasmicpkgs/radix-ui"
}
],
"customFunctions": []
"customFunctions": [],
"jsBundleThemes": []
},
{
"projectId": "YUiM7yqBWAqsh8KSnrdj7",
Expand Down Expand Up @@ -335,7 +338,8 @@
"componentImportPath": "@plasmicpkgs/plasmic-query"
}
],
"customFunctions": []
"customFunctions": [],
"jsBundleThemes": []
},
{
"projectId": "h9Dbk9ygddw7UVEq1NNhKi",
Expand Down Expand Up @@ -477,7 +481,8 @@
"componentImportPath": "@plasmicapp/react-web/lib/data-sources"
}
],
"customFunctions": []
"customFunctions": [],
"jsBundleThemes": []
},
{
"projectId": "rqmTJ9WSF4RQaQFCvo2iUX",
Expand Down
8 changes: 4 additions & 4 deletions plasmic.lock
Original file line number Diff line number Diff line change
Expand Up @@ -448,12 +448,12 @@
{
"type": "renderModule",
"assetId": "2yLCE-L6JXEZ",
"checksum": "b939f459dcc86147c4a138a81b15c2de"
"checksum": "532683c72ee6fbf1c7532025bf020ef9"
},
{
"type": "cssRules",
"assetId": "2yLCE-L6JXEZ",
"checksum": "b939f459dcc86147c4a138a81b15c2de"
"checksum": "532683c72ee6fbf1c7532025bf020ef9"
},
{
"type": "renderModule",
Expand Down Expand Up @@ -518,12 +518,12 @@
{
"type": "renderModule",
"assetId": "V1gAPdcbOPOO",
"checksum": "dad1ff69dbd3a24490e352e7d6490c66"
"checksum": "a2ad54216b1b3e78fe34e7684651377a"
},
{
"type": "cssRules",
"assetId": "V1gAPdcbOPOO",
"checksum": "dad1ff69dbd3a24490e352e7d6490c66"
"checksum": "a2ad54216b1b3e78fe34e7684651377a"
},
{
"type": "renderModule",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3312,7 +3312,7 @@

"@plasmicapp/cli@0.1.327":
version "0.1.327"
resolved "https://registry.npmjs.org/@plasmicapp/cli/-/cli-0.1.327.tgz"
resolved "https://registry.yarnpkg.com/@plasmicapp/cli/-/cli-0.1.327.tgz#9c4dda4fe28612b48867fa4e967a394996d7c423"
integrity sha512-7v3rfHF7iGxDYN0wdDN3AFHbhdagRz8CbAJcXoRYa/39X1eAnEjcubbATLxpYIPmvtlK1dlz6DcM/FuxBFYY7g==

"@plasmicapp/data-sources-context@0.1.21":
Expand Down

0 comments on commit 2226968

Please sign in to comment.