-
-
Notifications
You must be signed in to change notification settings - Fork 10
add a "Demo App" #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
add a "Demo App" #89
Changes from 10 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
4e7a357
begin docs-app
NullVoxPopuli cd69db4
Add some boilerplate
NullVoxPopuli 14519cf
Re-organize a bit
NullVoxPopuli 7c96002
Rename
NullVoxPopuli 5d8140c
More comments
NullVoxPopuli e8ca935
Formatting
NullVoxPopuli 736410c
Lockfile
NullVoxPopuli f864386
Fix some TS
NullVoxPopuli 9839ac3
Add ember-page-title to package.json
NullVoxPopuli 21641ac
Add note to the CSS
NullVoxPopuli aedcc1f
Evade prettier
NullVoxPopuli c8bb5f7
Prettier: tsconfig
NullVoxPopuli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| import EmberApp from 'ember-strict-application-resolver'; | ||
| import EmberRouter from '@ember/routing/router'; | ||
| import PageTitleService from 'ember-page-title/services/page-title'; | ||
|
|
||
| class Router extends EmberRouter { | ||
| location = 'history'; | ||
| rootURL = '/'; | ||
| } | ||
|
|
||
| export class App extends EmberApp { | ||
| /** | ||
| * Any services or anything from the addon that needs to be in the app-tree registry | ||
| * will need to be manually specified here. | ||
| * | ||
| * Techniques to avoid needing this: | ||
| * - private services | ||
| * - require the consuming app import and configure themselves | ||
| * (which is what we're emulating here) | ||
| */ | ||
| modules = { | ||
| './router': Router, | ||
| './services/page-title': PageTitleService, | ||
| /** | ||
| * NOTE: this glob will import everything matching the glob, | ||
| * and includes non-services in the services directory. | ||
| */ | ||
| ...import.meta.glob('./services/**/*', { eager: true }), | ||
| /** | ||
| * These imports are not magic, but we do require that all entries in the | ||
| * modules object match a ./[type]/[name] pattern. | ||
| * | ||
| * See: https://rfcs.emberjs.com/id/1132-default-strict-resolver | ||
| */ | ||
| ...import.meta.glob('./templates/**/*', { eager: true }), | ||
| }; | ||
| } | ||
|
|
||
| Router.map(function () {}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| /** | ||
| * See: https://vite.dev/guide/features.html#css | ||
| * for features beyond normal CSS that are available to you. | ||
| * | ||
| * This CSS is meant for the demo-app only, and will not be included in the published assets for this library. | ||
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| const greeting = 'hello'; | ||
|
|
||
| <template> | ||
| {{greeting}}, world! | ||
| </template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| <!doctype html> | ||
| <html lang="en-us"> | ||
|
|
||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
| <title>Docs App</title> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Renamed |
||
| <meta name="description" content="" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
|
|
||
| <link rel="stylesheet" href="./docs-app/styles.css" /> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. typo: |
||
|
|
||
| </head> | ||
|
|
||
| <body> | ||
|
|
||
| <script type="module"> | ||
| import App from './demo-app/app'; | ||
|
|
||
| App.create({}) | ||
| </script> | ||
| </body> | ||
|
|
||
| </html> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.