-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
92 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
diff --git a/node_modules/ember-notify/addon/components/ember-notify.js b/node_modules/ember-notify/addon/components/ember-notify.js | ||
index 3079547..8135c1a 100644 | ||
--- a/node_modules/ember-notify/addon/components/ember-notify.js | ||
+++ b/node_modules/ember-notify/addon/components/ember-notify.js | ||
@@ -3,11 +3,11 @@ import { computed } from '@ember/object'; | ||
import { oneWay } from '@ember/object/computed'; | ||
import { inject as service } from '@ember/service'; | ||
import Component from '@ember/component'; | ||
-import layout from '../templates/components/ember-notify'; | ||
+// import layout from '../templates/components/ember-notify'; | ||
import Message from 'ember-notify/message'; | ||
|
||
export default Component.extend({ | ||
- layout, | ||
+ // layout, | ||
|
||
notify: service(), | ||
|
||
diff --git a/node_modules/ember-notify/addon/components/ember-notify/message.js b/node_modules/ember-notify/addon/components/ember-notify/message.js | ||
index 4a60397..1a1c46f 100644 | ||
--- a/node_modules/ember-notify/addon/components/ember-notify/message.js | ||
+++ b/node_modules/ember-notify/addon/components/ember-notify/message.js | ||
@@ -2,12 +2,12 @@ import { isArray } from '@ember/array'; | ||
import { later } from '@ember/runloop'; | ||
import { computed } from '@ember/object'; | ||
import Component from '@ember/component'; | ||
-import layout from '../../templates/components/ember-notify/message'; | ||
+// import layout from '../../templates/components/ember-notify/message'; | ||
|
||
const DEFAULT_MESSAGE = {}; | ||
|
||
export default Component.extend({ | ||
- layout, | ||
+ // layout, | ||
message: DEFAULT_MESSAGE, | ||
closeAfter: null, | ||
run: null, |
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,22 @@ | ||
import 'ember-notify/vendor/ember-notify.css'; | ||
|
||
import NotifyService from 'ember-notify/index.js'; | ||
import EmberNotifyComponent from 'ember-notify/components/ember-notify.js'; | ||
import EmberNotifyComponentTemplate from 'ember-notify/templates/components/ember-notify.hbs'; | ||
import EmberNotifyMessageComponent from 'ember-notify/components/ember-notify/message.js'; | ||
import EmberNotifyMessageComponentTemplate from 'ember-notify/templates/components/ember-notify/message.hbs'; | ||
import { setComponentTemplate } from '@glimmer/manager'; | ||
|
||
const registry = { | ||
'service:notify': NotifyService, | ||
'component:ember-notify': setComponentTemplate( | ||
EmberNotifyComponentTemplate, | ||
EmberNotifyComponent | ||
), | ||
'component:ember-notify/message': setComponentTemplate( | ||
EmberNotifyMessageComponentTemplate, | ||
EmberNotifyMessageComponent | ||
), | ||
}; | ||
|
||
export default registry; |
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,12 +1,13 @@ | ||
import Controller from '@ember/controller'; | ||
import { service } from '@ember/service'; | ||
import SessionService from 'ember-simple-auth/addon/services/session'; | ||
|
||
import type SessionService from 'ember-simple-auth/addon/services/session'; | ||
import type EmberNotify from 'ember-notify' | ||
export class ApplicationController extends Controller { | ||
@service session: SessionService; | ||
@service notify: EmberNotify; | ||
|
||
constructor(...args: ConstructorParameters<typeof Controller>) { | ||
super(...args); | ||
console.log('ApplicationController init'); | ||
this.notify.info('Welcome to Ember.js'); | ||
} | ||
} |
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