You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Go to the file you want to change e.g. [ModuleAnimations.h](https://github.com/ewoudwijma/MoonBase/blob/background-script/src/custom/ModuleAnimations.h), press edit and make the changes. E.g. change executable.execute("main") to executable.executeAsTask("main")
87
+
* Go to the file you want to change press edit and make the changes. E.g. change executable.execute("main") to executable.executeAsTask("main")
88
88
* Press Commit Changes..., enter a commit message and an extended description, Press Commit Changes
89
89
* Go back to the homepage of your fork [myfork/MoonBase](https://github.com/ewoudwijma/MoonBase). There is a message inviting to create a Pull Request. Press Compare & pull request.
Copy file name to clipboardExpand all lines: docs/moonbase/files.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ Using component FileEdit, see [Components](https://ewowi.github.io/MoonBase/comp
25
25
26
26
### Server
27
27
28
-
[FilesService.h](https://github.com/ewowi/MoonBase/blob/main/src/custom/FilesService.h) and [FilesService.cpp](https://github.com/ewowi/MoonBase/blob/main/src/custom/FilesService.cpp)
28
+
[FilesService.h](https://github.com/ewowi/MoonBase/blob/main/src/MoonBase/FilesService.h) and [FilesService.cpp](https://github.com/ewowi/MoonBase/blob/main/src/MoonBase/FilesService.cpp)
* Implement function **onUpdate** to define what happens if data changes
70
70
* struct UpdatedItem defines the update (parent property (including index in case of multiple records), name of property and value)
71
-
* This runs in the httpd / webserver task. To run it in the main (application task use runInLoopTask - see [ModuleAnimations](https://github.com/ewowi/MoonBase/blob/main/src/custom/ModuleAnimations.h)) - as httpd stack has been increased runInLoopTask is less needed
71
+
* This runs in the httpd / webserver task. To run it in the main (application task use runInLoopTask - see [ModuleAnimations](https://github.com/ewowi/MoonBase/blob/main/src/MoonLight/ModuleAnimations.h)) - as httpd stack has been increased runInLoopTask is less needed
72
72
73
73
```cpp
74
74
voidonUpdate(UpdatedItem &updatedItem) override
@@ -134,7 +134,7 @@ submenu: [
134
134
{
135
135
title: 'Module Demo',
136
136
icon: BulbIcon,
137
-
href: '/custom/module?module=demo',
137
+
href: '/moonbase/module?module=demo',
138
138
feature: page.data.features.liveanimation,
139
139
},
140
140
]
@@ -150,9 +150,9 @@ It might be arguable that readonly variables are not stored in state data.
150
150
151
151
### Server
152
152
153
-
*[Module.h](https://github.com/ewowi/MoonBase/blob/main/src/custom/Module.h) and [Module.cpp](https://github.com/ewowi/MoonBase/blob/main/src/custom/Module.cpp) will generate all the required server code
153
+
*[Module.h](https://github.com/ewowi/MoonBase/blob/main/src/MoonBase/Module.h) and [Module.cpp](https://github.com/ewowi/MoonBase/blob/main/src/MoonBase/Module.cpp) will generate all the required server code
154
154
155
155
### UI
156
-
*[Module.svelte](https://github.com/ewowi/MoonBase/blob/main/interface/src/routes/custom/module/Module.svelte) will deal with the UI
156
+
*[Module.svelte](https://github.com/ewowi/MoonBase/blob/main/interface/src/routes/moonbase/module/Module.svelte) will deal with the UI
157
157
*[MultiInput.svelte](https://github.com/ewowi/MoonBase/blob/main/interface/src/lib/components/moonbase/MultiInput.svelte) is used by Module.svelte to display the right UI widget based on what is defined in the definition json
158
158
* Modifications done in [menu.svelte](https://github.com/ewowi/MoonBase/blob/main/interface/src/routes/menu.svelte) do identify a module by href and not by title alone
0 commit comments