-
Notifications
You must be signed in to change notification settings - Fork 602
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2353 from simplabs/fix-ember-4
Fix ember-release + ember-beta build
- Loading branch information
Showing
30 changed files
with
861 additions
and
831 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,3 @@ | ||
import JSONAPISerializer from '@ember-data/serializer/json-api'; | ||
|
||
export default JSONAPISerializer.extend(); |
This file contains 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
16 changes: 8 additions & 8 deletions
16
packages/classic-test-app/app/templates/components/main-navigation.hbs
This file contains 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 |
---|---|---|
@@ -1,27 +1,27 @@ | ||
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top"> | ||
{{#link-to 'index' classNames='navbar-brand'}} | ||
{{#link-to route='index' classNames='navbar-brand'}} | ||
Home | ||
{{/link-to}} | ||
<ul class="navbar-nav mr-auto"> | ||
{{#link-to 'protected' tagName='li' class='nav-item'}} | ||
{{#link-to route='protected' tagName='li' class='nav-item'}} | ||
<a class="nav-link" href="#">Protected Page</a> | ||
{{/link-to}} | ||
{{#link-to 'engine.index' tagName='li'}} | ||
{{#link-to route='engine.index' tagName='li'}} | ||
<a class="nav-link" href="#">Engine</a> | ||
{{/link-to}} | ||
{{#link-to 'auth-error' tagName='li' class='nav-item'}} | ||
{{#link-to route='auth-error' tagName='li' class='nav-item'}} | ||
<a class="nav-link" href="#">Auth Error Page</a> | ||
{{/link-to}} | ||
</ul> | ||
<form class="form-inline"> | ||
{{! display logout button when the session is authenticated, login button otherwise }} | ||
{{#if session.isAuthenticated}} | ||
{{#if sessionAccount.account}} | ||
<span class="navbar-text mr-3">Signed in as {{sessionAccount.account.name}}</span> | ||
{{#if this.session.isAuthenticated}} | ||
{{#if this.sessionAccount.account}} | ||
<span class="navbar-text mr-3">Signed in as {{this.sessionAccount.account.name}}</span> | ||
{{/if}} | ||
<a {{action 'logout'}} class="btn btn-danger" href="#" role="button">Logout</a> | ||
{{else}} | ||
<a {{action onLogin}} class="btn btn-success" href="#" role="button">Login</a> | ||
<a {{action this.onLogin}} class="btn btn-success" href="#" role="button">Login</a> | ||
{{/if}} | ||
</form> | ||
</nav> |
This file contains 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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<h1>Ember Simple Auth example app</h1> | ||
{{#unless session.isAuthenticated}} | ||
{{#unless this.session.isAuthenticated}} | ||
<div class="alert alert-info" role="alert"> | ||
You can {{#link-to 'login' classNames='alert-link'}}log in{{/link-to}} with login <code>letme</code> and password <code>in</code>. | ||
You can {{#link-to route='login' classNames='alert-link'}}log in{{/link-to}} with login <code>letme</code> and password <code>in</code>. | ||
</div> | ||
{{/unless}} | ||
<div class="alert alert-info" role="alert"> | ||
The test app provides two routes - the {{#link-to 'protected'}}Protected Page{{/link-to}} that loads some Ember Data models where the API validates that the request is authorized and the {{#link-to 'auth-error'}}Auth Error Page{{/link-to}} that simulates an authorization error (it loads Ember Data models as well but will always receive a 401 response) and will result in the session being invalidated. | ||
The test app provides two routes - the {{#link-to route='protected'}}Protected Page{{/link-to}} that loads some Ember Data models where the API validates that the request is authorized and the {{#link-to route='auth-error'}}Auth Error Page{{/link-to}} that simulates an authorization error (it loads Ember Data models as well but will always receive a 401 response) and will result in the session being invalidated. | ||
</div> |
This file contains 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 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"application-template-wrapper": false, | ||
"default-async-observers": true, | ||
"jquery-integration": true, | ||
"jquery-integration": false, | ||
"template-only-glimmer-components": true | ||
} |
This file contains 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 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 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 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 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
2 changes: 1 addition & 1 deletion
2
packages/ember-simple-auth/tests/dummy/config/optional-features.json
This file contains 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"application-template-wrapper": false, | ||
"default-async-observers": true, | ||
"jquery-integration": true, | ||
"jquery-integration": false, | ||
"template-only-glimmer-components": true | ||
} |
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
packages/ember-simple-auth/tests/helpers/module-for-acceptance.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.