Skip to content

Commit

Permalink
Misc learning content changes
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrahder committed Apr 15, 2024
1 parent 976364d commit bdfa0f0
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 20 deletions.
14 changes: 2 additions & 12 deletions apps/portal/view/home/MainContainer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ class Viewport extends Container {

items: [{
module: ContentBox,
header: 'Quick Application Development',
header: 'Next-Generation Runtime',
route : '#/learn/WhyNeo-Quick',

content: [
'Property lifecycle hooks',
'Multi-threaded',
'Elegant state management',
'Simple and powerful debugging'
]
Expand All @@ -74,16 +74,6 @@ class Viewport extends Container {
'Over 40,000 delta updates per second',
'Item 3'
]
}, {
module: ContentBox,
header: 'Multi Window Apps',
route : '#/learn/WhyNeo-Multi-Window',

content: [
'Item 1',
'Item 2',
'Item 3'
]
}]
}]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ The `docs` directory holds the Neo.mjs API docs.
## The structure of a simple app

In order to discuss the structure of an app, we'll create a simple starter
app vis this script, run from the workspace. The script prompts for various
app via this script, run from the workspace. The script prompts for various
application settings.

`npm run create-app-empty`
`npm run create-app-minimal`

At the first prompt, we'll name the app `Foo`, and accept the default for everything else.
The script creates an application structured as follows.
Expand Down
6 changes: 3 additions & 3 deletions resources/data/deck/learnneo/pages/Earthquakes.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ In this lab, you'll generate a Neo.mjs workspace and run the starter app.

<details>
<summary>Wait!</summary>
You may already have a workspace! If so, you can skip this lab. For example, if you followed the _Getting Started > Setup_ topic, above, you should already have a workspace.
You may already have a workspace! If so, you can skip this lab. For example, if you followed the <a href="#/learn/Setup">Getting Started > Setup</a> topic, above, you should already have a workspace.

If you don't have a workspace, then continue on to the next step.
</details>
Expand Down Expand Up @@ -125,7 +125,7 @@ Parallel processing &mdash; along wih the efficient way the vdom worker applies
If you look in the `package.json` script block you'll see several scripts used for generating applications
and classes, doing builds, and starting a server. We'll use several of them throughout the tutorials.

- create-app &mdash; creates a simple demo app
- &mdash; creates a simple demo app
- create-app-minimal &mdash; creates a application shell with no content
- server-start &mdash; starts a server with webroot set to the workspace
- build-all &mdash; builds minimized versions of your apps
Expand All @@ -146,7 +146,7 @@ In this lab you'll create a starter app and add a single component.
Use a terminal window to navigate to the workspace and run the following script. Use "Earthquakes"
as the app name, and defaults for everything else.

npm run generate-app-minimal
npm run create-app-minimal

After the script runs yous should see these files in the `app/earthquakes` directory.

Expand Down
2 changes: 1 addition & 1 deletion resources/data/deck/learnneo/pages/Setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ Then run the following command, choosing the defaults for each prompt.

When you're finished you should have a Neo.mjs workspace, as described in the _Workspaces and Applications_ topic, which follows.


It's probably a good idea to do an `npm install` in the workspace as soon as you've created it.
2 changes: 1 addition & 1 deletion resources/data/deck/learnneo/pages/WhyNeo-Speed.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Click on Preview, then use your mouse or trackpad to pan and zoom &mdash; the he
If you move quickly, you might reach 20,000 or 30,000 delta updates per second. We've seen some examples that go over 40,000 updates per
second &mdash; but we've never actually hit the limit.

<pre data-neo>
<pre data-neo data-read-only>
import Base from '../../../../src/container/Base.mjs';
import Helix from '../../../../src/component/Helix.mjs';
class Foo extends Base {
Expand Down
2 changes: 1 addition & 1 deletion resources/data/deck/learnneo/tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
{"name": "Other JavaScript Class Features", "parentId": "JavaScriptClasses", "isLeaf": true, "id": "2023-10-08T20-20-37-336Z"},
{"name": "Super", "parentId": "JavaScriptClasses", "isLeaf": true, "id": "2023-10-08T21-58-25-809Z"},
{"name": "New Node", "parentId": "JavaScriptClasses", "isLeaf": true, "id": "2023-10-31T13-59-37-550Z"},
{"name": "Appendix", "parentId": null, "id": "appendix", "collapsed": true},
{"name": "Appendix", "parentId": null, "id": "appendix", "hidden": true, "collapsed": true},
{"name": "Stylesheet", "parentId": "appendix", "isLeaf": true, "id": "stylesheet"},
{"name": "Test", "parentId": "appendix", "isLeaf": true, "id": "TestLivePreview"}
]}

0 comments on commit bdfa0f0

Please sign in to comment.