-
Notifications
You must be signed in to change notification settings - Fork 2
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
13 changed files
with
76 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import {Component, Input, Inject} from '@angular/core'; | ||
import {APP_CONFIG, AppConfig} from "../app.config"; | ||
|
||
@Component({ | ||
selector: 'cwt-name', | ||
template: '<span class="text-nowrap">{{result}}</span>' | ||
}) | ||
export class NameComponent { | ||
|
||
@Input() | ||
private short: boolean = false; | ||
|
||
/** | ||
* The name or short name. | ||
*/ | ||
public result: string; | ||
|
||
constructor(@Inject(APP_CONFIG) private appConfig: AppConfig) { | ||
this.result = this.short === true ? this.appConfig.nameShort : this.appConfig.nameLong; | ||
} | ||
} | ||
|
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
cwt-angular/src/main/webapp/app/application/apply.component.html
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
28 changes: 18 additions & 10 deletions
28
cwt-angular/src/main/webapp/app/user-panel/channel-creation-statement.component.ts
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,39 +1,47 @@ | ||
import {Component, Input} from "@angular/core"; | ||
import {Component, Input, Inject} from "@angular/core"; | ||
import {APP_CONFIG, AppConfig} from "../app.config"; | ||
|
||
@Component({ | ||
selector: 'cwt-channel-creation-statement', | ||
template: ` | ||
<p *ngIf="includeRegisterSentence"> | ||
Register your channel to benefit from CWT and Twitch interoperation: | ||
Register your channel to benefit from {{nameShort}} and Twitch interoperation: | ||
</p> | ||
<p> | ||
When you go live a very visible banner will appear on the top | ||
of the page advertising your live stream to the CWT visitors. | ||
of the page advertising your live stream to the {{nameShort}} visitors. | ||
</p> | ||
<p> | ||
Your live stream broadcasts will be linked to the respective game on the CWT site.<br> | ||
Allowing for easy finding of broadcasts and later watching in the context of CWT. | ||
Your live stream broadcasts will be linked to the respective game on the {{nameShort}} site.<br> | ||
Allowing for easy finding of broadcasts and later watching in the context of {{nameShort}}. | ||
</p> | ||
<p> | ||
You can schedule live streams on games participants of the tournament have scheduled | ||
and thereby attract people early on. | ||
</p> | ||
<p> | ||
There is a dedicated CWT Twitch chat bot which makes “beep boop” and has some nice commands | ||
There is a dedicated {{nameShort}} Twitch chat bot which makes “beep boop” and has some nice commands | ||
to enrich the live streaming experience for your viewers. | ||
</p> | ||
<p> | ||
These features will only trigger when you include “CWT” in the title of your live stream.<br> | ||
Therefore your Twitch channel will not publish information on CWT if you also perform other | ||
duties with your Twitch channel other than streaming CWT games. | ||
These features will only trigger when you include “{{nameShort}}” in the title of your live stream.<br> | ||
Therefore your Twitch channel will not publish information on {{nameShort}} if you also perform other | ||
duties with your Twitch channel other than streaming {{nameShort}} games. | ||
</p> | ||
<p> | ||
These features are all automated and work best when you include the players’ names as they | ||
are on the CWT site in the title of your live stream. | ||
are on the {{nameShort}} site in the title of your live stream. | ||
</p> | ||
` | ||
}) | ||
export class ChannelCreationStatementComponent { | ||
|
||
@Input() includeRegisterSentence: boolean = true; | ||
|
||
nameShort: string; | ||
|
||
constructor(@Inject(APP_CONFIG) private appConfig: AppConfig) { | ||
this.nameShort = this.appConfig.nameShort; | ||
console.log(this.appConfig); | ||
} | ||
} |
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