-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
comics feature is now xkcd feature (related to #44)
- Loading branch information
Showing
5 changed files
with
27 additions
and
20 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
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,12 @@ | ||
import ComicModel from './ComicModel'; | ||
import ComicView from './ComicView'; | ||
import ComicController from './ComicController'; | ||
import XkcdModel from './XkcdModel'; | ||
import XkcdView from './XkcdView'; | ||
import XkcdController from './XkcdController'; | ||
|
||
import ComicApi from './ComicApi'; | ||
import XkcdApi from './XkcdApi'; | ||
|
||
const comics = new ComicController({ | ||
model: new ComicModel(new ComicApi('/api/comics')), | ||
view: new ComicView(window.document.querySelector('.xv-app')), | ||
const comics = new XkcdController({ | ||
model: new XkcdModel(new XkcdApi('/api/comics')), | ||
view: new XkcdView(window.document.querySelector('.xv-app')), | ||
}); | ||
|
||
export default comics; |