-
Notifications
You must be signed in to change notification settings - Fork 90
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 #1858 from candela97/remove-add-to-cart-no-redirect
Remove deprecated features, rework FPlayers
- Loading branch information
Showing
18 changed files
with
80 additions
and
404 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 was deleted.
Oops, something went wrong.
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,32 @@ | ||
import {HTML, Localization} from "../../../../modulesCore"; | ||
import {Feature} from "../../../modulesContent"; | ||
|
||
export default class FPlayers extends Feature { | ||
|
||
async checkPrerequisites() { | ||
if (this.context.isDlcLike || this.context.isVideoOrHardware) { | ||
return false; | ||
} | ||
|
||
const result = await this.context.data; | ||
if (!result || !result.players) { | ||
return false; | ||
} | ||
|
||
this._data = result.players; | ||
return true; | ||
} | ||
|
||
apply() { | ||
|
||
HTML.afterBegin(".rightcol.game_meta_data", | ||
`<div class="block responsive_apppage_details_right heading">${Localization.str.charts.current}</div> | ||
<div class="block responsive_apppage_details_right as_players"> | ||
<div class="block_content_inner"> | ||
<div class="as_players_stat">${Localization.str.charts.playing_now}:<span class="as_players_num">${Number(this._data.recent)}</span></div> | ||
<div class="as_players_stat">${Localization.str.charts.peaktoday}:<span class="as_players_num">${Number(this._data.peak_today)}</span></div> | ||
<div class="as_players_stat">${Localization.str.charts.peakall}:<span class="as_players_num">${Number(this._data.peak_all)}</span></div> | ||
</div> | ||
</div>`); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.