-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Typescript comments index/show entrypoints
- Loading branch information
Showing
2 changed files
with
16 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. | ||
# See the LICENCE file in the repository root for full licence text. | ||
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the GNU Affero General Public License v3.0. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
import CommentsIndex from 'comments-index' | ||
import core from 'osu-core-singleton' | ||
import { createElement } from 'react' | ||
import CommentsIndex from 'comments-index'; | ||
import core from 'osu-core-singleton'; | ||
import * as React from 'react'; | ||
|
||
core.reactTurbolinks.register 'comments-index', -> | ||
createElement(CommentsIndex, controllerStateSelector: '#json-index') | ||
core.reactTurbolinks.register('comments-index', () => ( | ||
<CommentsIndex controllerStateSelector='#json-index' /> | ||
)); |
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,10 @@ | ||
# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. | ||
# See the LICENCE file in the repository root for full licence text. | ||
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the GNU Affero General Public License v3.0. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
import CommentsShow from 'comments-show' | ||
import core from 'osu-core-singleton' | ||
import { createElement } from 'react' | ||
import CommentsShow from 'comments-show'; | ||
import core from 'osu-core-singleton'; | ||
import * as React from 'react'; | ||
|
||
core.reactTurbolinks.register 'comments-show', -> | ||
createElement(CommentsShow, controllerStateSelector: '#json-show') | ||
core.reactTurbolinks.register('comments-show', () => ( | ||
<CommentsShow controllerStateSelector='#json-show' /> | ||
)); |