Skip to content

Commit

Permalink
Merge pull request #268 from JerryI/new_version14aug
Browse files Browse the repository at this point in the history
New version14aug
  • Loading branch information
JerryI authored Aug 19, 2024
2 parents bab96d4 + 866e854 commit 1a2b7f0
Show file tree
Hide file tree
Showing 401 changed files with 53,290 additions and 18,585 deletions.
Binary file modified .DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions Components/Sidebar/Components/ItemFile.wlx
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ Icon = FileExtension[File] /. Join[$Options["Icons"], {
}];

Href = If[TrueQ[$Options["Selected"]],
<div class="block rounded-md py-0 pr-0 text-sm">
<div class="block rounded-md py-0 pr-0 text-sm leading-tight">
<FileNameTake>
<File/>
</FileNameTake>
</div>
,
If[MemberQ[Join[Keys[$Options["Icons"]], {"wln"}], FileExtension[File]],
<a href="/folder/{URLEncode[File]}" class="block rounded-md py-0 pr-0 text-sm">
<a href="/folder/{URLEncode[File]}" class="block rounded-md py-0 pr-0 text-sm leading-tight">
<FileNameTake>
<File/>
</FileNameTake>
Expand Down
11 changes: 9 additions & 2 deletions Components/Sidebar/Sidebar.wlx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ With[{
Icons = OptionValue["Icons"],
modals = OptionValue["Modals"],
Parameters = OptionValue["Parameters"],
AppEvent = OptionValue["AppEvents"],
Messanger = OptionValue["Messanger"],

ExtensionTemplates = OptionValue["ExtensionTemplates"],
Button1Id = CreateUUID[],
Button2Id = CreateUUID[],
dir = If[DirectoryQ[OptionValue["Path"]], OptionValue["Path"], DirectoryName[OptionValue["Path"]]]
Expand Down Expand Up @@ -172,6 +176,9 @@ With[{
<WebUIRefresh Event={SidebarId} Class={"flex grow flex-col gap-y-5 overflow-y-auto px-4 sc-b"}>
<Sidebar Port={Secret} Icons={Icons} Parameters={Parameters} Secret={"blackhole"} Path={Path} />
</WebUIRefresh>

,
<ExtensionTemplates Template={"AppSidebarBottom"} Path={Path} Controls={Controls} Modals={modals} AppEvents={AppEvent} MessagePort={Messanger}/>
,
<script type="module">
core.UIOpenExplorer = async (args, env) => {
Expand Down Expand Up @@ -204,9 +211,9 @@ With[{
server.emitt('<Secret/>', 'True', 'CheckFiles');
}, 3000);
</script>
}
} // Flatten // StringRiffle
] ]

Options[Component] = {"Icons"->"", "Secret"->"", "Path"->"", "Controls"->"", "Parameters"->"", "Modals"->""}
Options[Component] = {"Icons"->"", "Messanger"->"", "ExtensionTemplates" -> {}, "AppEvents"->"", "Secret"->"", "Path"->"", "Controls"->"", "Parameters"->"", "Modals"->""}

Component
Binary file added Demos/.DS_Store
Binary file not shown.
Binary file modified Demos/01 - Tutorials/.DS_Store
Binary file not shown.
34,814 changes: 34,814 additions & 0 deletions Demos/01 - Tutorials/D2 - Fluid Simulation Part 1.wln

Large diffs are not rendered by default.

4,447 changes: 4,447 additions & 0 deletions Demos/01 - Tutorials/D3 - Fluid Simulation Part 2.wln

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
250 changes: 241 additions & 9 deletions Demos/03 - Plotting/Manipulate.wln

Large diffs are not rendered by default.

60 changes: 31 additions & 29 deletions Demos/04 - Animation/Falling balls.wln
Original file line number Diff line number Diff line change
@@ -1,72 +1,74 @@
<|"Notebook" -> <|"ReadOnly"->True, "FocusedCell" -> CellObj[JerryI`Notebook`CellObj`$235],
"Objects" -> <||>, "Path" -> "/users/kirill/Github/wolfram-js-frontend-dev\
/Examples/Dynamics/Animation/Falling balls.wln"|>,
<|"Notebook" -> <|"FocusedCell" -> CellObj[JerryI`Notebook`CellObj`$235],
"Objects" -> <||>, "Path" -> "/Users/kirill/Github/wolfram-js-frontend-dev\
/Demos/04 - Animation/Falling balls.wln", "ReadOnly" -> True,
"Symbols" -> <||>, "TOC" -> {Notebook`Editor`TOC`Private`heading[1,
"Simple fast animation", CellObj[JerryI`Notebook`CellObj`$750]]}|>,
"Cells" -> {<|"Data" -> ".md\n# Simple fast animation\nFalling balls",
"Display" -> "codemirror", "Hash" ->
"258c6d1d-85a6-4e80-b7c9-0ff1214df74b", "Invisible" -> False,
"258c59f4-1a27-435f-a094-becec4c95685", "Invisible" -> False,
"MetaOnly" -> False, "Props" -> <|"Hidden" -> True|>, "State" -> "Idle",
"Type" -> "Input", "UID" -> Null, "Notebook" ->
"b3e1eaf4-8aea-4a03-b280-e14a729f6fe1"|>,
"cf8accff-3840-4cdb-808f-80aa58f43998"|>,
<|"Data" -> "# Simple fast animation\nFalling balls",
"Display" -> "markdown", "Hash" ->
"c062e4ef-b633-47bc-adc1-a299e1b43240", "Invisible" -> False,
"f08492b6-1959-4494-bbf4-007a2c2af0bd", "Invisible" -> False,
"MetaOnly" -> False, "Props" -> <||>, "State" -> "Idle",
"Type" -> "Output", "UID" -> Null, "Notebook" ->
"b3e1eaf4-8aea-4a03-b280-e14a729f6fe1"|>,
<|"Data" -> "balls = RandomReal[{-1,1}, {100,3}];\nvels = \
RandomReal[{-1,1}, {100,3}];\n\nGraphics3D[{\n Table[With[{i = i},\n {\n \
"cf8accff-3840-4cdb-808f-80aa58f43998"|>,
<|"Data" -> "balls = RandomReal[{-1,1}, {300,3}];\nvels = \
RandomReal[{-1,1}, {300,3}];\n\nGraphics3D[{\n Table[With[{i = i},\n {\n \
RGBColor[RandomReal[{0,1}, 3]],\n Sphere[balls[[i]] // Offload, \
0.03]\n }\n ], {i, Length[balls]}], \n AnimationFrameListener[balls // \
Offload, \"Event\"->\"frame\"]\n}]", "Display" -> "codemirror",
"Hash" -> "0c77e467-648f-4d83-88fe-124549cd90fd", "Invisible" -> False,
"Hash" -> "6580c8c5-5d5f-4178-b221-5e4b5ba86fd8", "Invisible" -> False,
"MetaOnly" -> False, "Props" -> <||>, "State" -> "Idle",
"Type" -> "Input", "UID" -> Null, "Notebook" ->
"b3e1eaf4-8aea-4a03-b280-e14a729f6fe1"|>,
"cf8accff-3840-4cdb-808f-80aa58f43998"|>,
<|"Data" -> ".md\nUpdate function", "Display" -> "codemirror",
"Hash" -> "665e1cdd-1851-4085-b46a-f2f968dea399", "Invisible" -> False,
"Hash" -> "4b7f4fe5-7966-4798-9b15-34d4e8204e16", "Invisible" -> False,
"MetaOnly" -> False, "Props" -> <|"Hidden" -> True|>, "State" -> "Idle",
"Type" -> "Input", "UID" -> Null, "Notebook" ->
"b3e1eaf4-8aea-4a03-b280-e14a729f6fe1"|>, <|"Data" -> "Update function",
"cf8accff-3840-4cdb-808f-80aa58f43998"|>, <|"Data" -> "Update function",
"Display" -> "markdown", "Hash" ->
"9b0e212c-60c1-48ad-a905-9a48b4afb5f0", "Invisible" -> False,
"2f8f7a8b-01d3-4a7d-82fa-3e714cb1efd5", "Invisible" -> False,
"MetaOnly" -> False, "Props" -> <||>, "State" -> "Idle",
"Type" -> "Output", "UID" -> Null, "Notebook" ->
"b3e1eaf4-8aea-4a03-b280-e14a729f6fe1"|>,
"cf8accff-3840-4cdb-808f-80aa58f43998"|>,
<|"Data" -> "EventHandler[\"frame\", Function[Null,\n\n vels = Table[\n \
If[Norm[balls[[i]]] < 0.01, -1, 1] vels[[i]] - 0.08 balls[[i]]\n , {i, \
Length[balls]}];\n \n balls = Table[balls[[i]] + 0.08 vels[[i]], {i, \
Length[balls]}];\n]];", "Display" -> "codemirror",
"Hash" -> "35c9132e-10df-4f3a-880a-634c70c8e724", "Invisible" -> False,
"Hash" -> "a2bf0e7a-8732-4d9b-a042-1bc46ac66b5e", "Invisible" -> False,
"MetaOnly" -> False, "Props" -> <|"InitGroup" -> True|>,
"State" -> "Idle", "Type" -> "Input", "UID" -> Null,
"Notebook" -> "b3e1eaf4-8aea-4a03-b280-e14a729f6fe1"|>,
"Notebook" -> "cf8accff-3840-4cdb-808f-80aa58f43998"|>,
<|"Data" -> ".md\nTo start animation", "Display" -> "codemirror",
"Hash" -> "f158399e-bc86-43ba-a88b-533c226a8e11", "Invisible" -> False,
"Hash" -> "9a10b980-23e7-4c7a-a795-ca9c8582a93b", "Invisible" -> False,
"MetaOnly" -> False, "Props" -> <|"Hidden" -> True|>, "State" -> "Idle",
"Type" -> "Input", "UID" -> Null, "Notebook" ->
"b3e1eaf4-8aea-4a03-b280-e14a729f6fe1"|>,
"cf8accff-3840-4cdb-808f-80aa58f43998"|>,
<|"Data" -> "To start animation", "Display" -> "markdown",
"Hash" -> "5a68cc6a-9af7-4d18-83a2-1e406ddf5cde", "Invisible" -> False,
"Hash" -> "322e4250-85cb-47b0-947e-00b8d054ad85", "Invisible" -> False,
"MetaOnly" -> False, "Props" -> <||>, "State" -> "Idle",
"Type" -> "Output", "UID" -> Null, "Notebook" ->
"b3e1eaf4-8aea-4a03-b280-e14a729f6fe1"|>,
"cf8accff-3840-4cdb-808f-80aa58f43998"|>,
<|"Data" -> "EventFire[\"frame\", Null]", "Display" -> "codemirror",
"Hash" -> "d87ecfa4-3138-4818-8315-f79cacb11dd1", "Invisible" -> False,
"Hash" -> "0c54c914-a31f-4787-a32e-1b42cf225075", "Invisible" -> False,
"MetaOnly" -> False, "Props" -> <||>, "State" -> "Idle",
"Type" -> "Input", "UID" -> Null, "Notebook" ->
"b3e1eaf4-8aea-4a03-b280-e14a729f6fe1"|>, <|"Data" -> ".md\nTo stop",
"cf8accff-3840-4cdb-808f-80aa58f43998"|>, <|"Data" -> ".md\nTo stop",
"Display" -> "codemirror", "Hash" ->
"4d23ea94-7bd6-46f9-ad34-e9f33c753390", "Invisible" -> False,
"b1c57298-30c0-467a-bbf7-dbcef96c448a", "Invisible" -> False,
"MetaOnly" -> False, "Props" -> <|"Hidden" -> True|>, "State" -> "Idle",
"Type" -> "Input", "UID" -> Null, "Notebook" ->
"b3e1eaf4-8aea-4a03-b280-e14a729f6fe1"|>, <|"Data" -> "To stop",
"cf8accff-3840-4cdb-808f-80aa58f43998"|>, <|"Data" -> "To stop",
"Display" -> "markdown", "Hash" ->
"c14f8aba-dd5e-490a-b28c-2e39b531bc90", "Invisible" -> False,
"5a3c99ef-a8df-4fb7-9a7e-9c32d15c6157", "Invisible" -> False,
"MetaOnly" -> False, "Props" -> <||>, "State" -> "Idle",
"Type" -> "Output", "UID" -> Null, "Notebook" ->
"b3e1eaf4-8aea-4a03-b280-e14a729f6fe1"|>,
"cf8accff-3840-4cdb-808f-80aa58f43998"|>,
<|"Data" -> "EventRemove[\"frame\"]", "Display" -> "codemirror",
"Hash" -> "186524c8-4e72-47d4-8ce0-0371878cae02", "Invisible" -> False,
"Hash" -> "c5232d40-dba8-49f0-bdde-221b9790fa8a", "Invisible" -> False,
"MetaOnly" -> False, "Props" -> <||>, "State" -> "Idle",
"Type" -> "Input", "UID" -> Null, "Notebook" ->
"b3e1eaf4-8aea-4a03-b280-e14a729f6fe1"|>}, "serializer" -> "jsfn4"|>
"cf8accff-3840-4cdb-808f-80aa58f43998"|>}, "serializer" -> "jsfn4"|>
Binary file modified Demos/05 - Interaction/.DS_Store
Binary file not shown.
Loading

0 comments on commit 1a2b7f0

Please sign in to comment.