-
Notifications
You must be signed in to change notification settings - Fork 1
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
20 changed files
with
240 additions
and
126 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"impliedStrict": true | ||
} | ||
}, | ||
"env": { | ||
"browser": true, | ||
"jquery": true, | ||
"amd": true, | ||
"es6": true // PA uses Chrome 40 which supports a subset of ES6 | ||
}, | ||
"extends": ["eslint:recommended", "plugin:lodash/v3", "prettier"], | ||
"globals": { | ||
"model": "readonly", | ||
"ko": "readonly", | ||
"loadHtml": "readonly" | ||
}, | ||
"plugins": ["lodash"], | ||
"rules": { | ||
"lodash/prefer-lodash-method": 0, | ||
"no-inner-declarations": 0, | ||
"curly": [2, "all"] | ||
} | ||
} |
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,2 @@ | ||
|
||
.vscode/settings.json |
Empty file.
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,6 @@ | ||
{ | ||
"extends": ["stylelint-config-standard", "stylelint-config-prettier"], | ||
"rules": { | ||
"selector-class-pattern": "^([a-z][a-z0-9]*)((_|-)[a-z0-9]+)*$" | ||
} | ||
} |
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,10 +1,14 @@ | ||
# CHANGELOG | ||
|
||
## v1.2.0 - 2022-07-24 | ||
|
||
- Expands the spectator panel by default | ||
|
||
## v1.1 - 2019-01-12 | ||
|
||
- Added ALL2 tab with army metal count | ||
- Set ALL tab to be the default | ||
- Added ALL2 tab with army metal count | ||
- Set ALL tab to be the default | ||
|
||
## v1.0 - 2018-10-01 | ||
|
||
- Added ALL tab to spectator panel | ||
- Added ALL tab to spectator panel |
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,3 @@ | ||
sonar.projectKey=Quitch_All-In-One-Spectator-Tab | ||
sonar.organization=quitch | ||
sonar.projectVersion=1.2.0 |
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,6 @@ | ||
<div | ||
class="div_spectator_panel_button" | ||
data-bind="click: function () { spectatorPanelMode('all2') }, css: { div_spectator_panel_button_active: showAllData2 } " | ||
> | ||
<loc>ALL2</loc> | ||
</div> |
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,44 @@ | ||
<!-- ko if: $parent.showAllData2 --> | ||
<td | ||
class="div_metal_header_quitch div_spectator_player_info" | ||
style="padding-top: 5px;" | ||
> | ||
<span | ||
data-bind="text: metalProductionStr, css: $parent.metalTextColorCSS($index())" | ||
></span> | ||
</td> | ||
<td | ||
class="div_energy_header_quitch div_spectator_player_info" | ||
style="padding-top: 5px;" | ||
> | ||
<span | ||
data-bind="text: energyProductionStr, css: $parent.energyTextColorCSS($index())" | ||
></span> | ||
</td> | ||
<td | ||
class="div_build_efficiency_header_quitch div_spectator_player_info" | ||
style="padding-top: 5px;" | ||
> | ||
<span | ||
data-bind="text: buildEfficiencyStr, css: $parent.efficiencyTextColorCSS($index())" | ||
></span> | ||
</td> | ||
<td | ||
class="div_army_metal_value_header_quitch div_spectator_player_info" | ||
style="padding-top: 5px;" | ||
> | ||
<span data-bind="text: armyMetal"></span> | ||
</td> | ||
<td | ||
class="div_army_fabber_value_header_quitch div_spectator_player_info" | ||
style="padding-top: 5px;" | ||
> | ||
<span data-bind="text: fabberCount"></span> | ||
</td> | ||
<td | ||
class="div_army_factory_value_header_quitch div_spectator_player_info" | ||
style="padding-top: 5px;" | ||
> | ||
<span data-bind="text: factoryCount"></span> | ||
</td> | ||
<!-- /ko --> |
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,6 @@ | ||
<div | ||
class="div_spectator_panel_button" | ||
data-bind="click: function () { spectatorPanelMode('all') }, css: { div_spectator_panel_button_active: showAllData } " | ||
> | ||
<loc>ALL</loc> | ||
</div> |
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,34 @@ | ||
.div_metal_header_quitch { | ||
min-width: 80px; | ||
text-align: right; | ||
} | ||
|
||
.div_energy_header_quitch { | ||
min-width: 105px; | ||
text-align: right; | ||
} | ||
|
||
.div_build_efficiency_header_quitch { | ||
min-width: 50px; | ||
text-align: right; | ||
} | ||
|
||
.div_army_mobile_value_header_quitch { | ||
min-width: 55px; | ||
text-align: right; | ||
} | ||
|
||
.div_army_metal_value_header_quitch { | ||
min-width: 55px; | ||
text-align: right; | ||
} | ||
|
||
.div_army_fabber_value_header_quitch { | ||
min-width: 35px; | ||
text-align: right; | ||
} | ||
|
||
.div_army_factory_value_header_quitch { | ||
min-width: 35px; | ||
text-align: right; | ||
} |
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,46 @@ | ||
var allInOneSpectatorTabLoaded; | ||
|
||
if (!allInOneSpectatorTabLoaded) { | ||
allInOneSpectatorTabLoaded = true; | ||
|
||
function allInOneSpectatorTab() { | ||
try { | ||
$("div.div_spectator_panel_buttons").append( | ||
loadHtml("coui://ui/mods/com.quitch.qallinonetab/all_buttons.html") | ||
); | ||
|
||
$("table.tbl_spectator_stats tr:first").append( | ||
loadHtml("coui://ui/mods/com.quitch.qallinonetab/all_headers.html") | ||
); | ||
|
||
$("table.tbl_spectator_stats tr:last").append( | ||
loadHtml("coui://ui/mods/com.quitch.qallinonetab/all_values.html") | ||
); | ||
$("div.div_spectator_panel_buttons").append( | ||
loadHtml("coui://ui/mods/com.quitch.qallinonetab/all2_buttons.html") | ||
); | ||
|
||
$("table.tbl_spectator_stats tr:first").append( | ||
loadHtml("coui://ui/mods/com.quitch.qallinonetab/all2_headers.html") | ||
); | ||
|
||
$("table.tbl_spectator_stats tr:last").append( | ||
loadHtml("coui://ui/mods/com.quitch.qallinonetab/all2_values.html") | ||
); | ||
|
||
model.showAllData = ko.computed(function () { | ||
return model.spectatorPanelMode() === "all"; | ||
}); | ||
model.showAllData2 = ko.computed(function () { | ||
return model.spectatorPanelMode() === "all2"; | ||
}); | ||
|
||
model.spectatorPanelMode("all"); | ||
model.pinSpectatorPanel(true); | ||
} catch (e) { | ||
console.error(e); | ||
console.error(JSON.stringify(e)); | ||
} | ||
} | ||
allInOneSpectatorTab(); | ||
} |
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,44 @@ | ||
<!-- ko if: $parent.showAllData --> | ||
<td | ||
class="div_metal_header_quitch div_spectator_player_info" | ||
style="padding-top: 5px;" | ||
> | ||
<span | ||
data-bind="text: metalProductionStr, css: $parent.metalTextColorCSS($index())" | ||
></span> | ||
</td> | ||
<td | ||
class="div_energy_header_quitch div_spectator_player_info" | ||
style="padding-top: 5px;" | ||
> | ||
<span | ||
data-bind="text: energyProductionStr, css: $parent.energyTextColorCSS($index())" | ||
></span> | ||
</td> | ||
<td | ||
class="div_build_efficiency_header_quitch div_spectator_player_info" | ||
style="padding-top: 5px;" | ||
> | ||
<span | ||
data-bind="text: buildEfficiencyStr, css: $parent.efficiencyTextColorCSS($index())" | ||
></span> | ||
</td> | ||
<td | ||
class="div_army_mobile_value_header_quitch div_spectator_player_info" | ||
style="padding-top: 5px;" | ||
> | ||
<span data-bind="text: mobileCount"></span> | ||
</td> | ||
<td | ||
class="div_army_fabber_value_header_quitch div_spectator_player_info" | ||
style="padding-top: 5px;" | ||
> | ||
<span data-bind="text: fabberCount"></span> | ||
</td> | ||
<td | ||
class="div_army_factory_value_header_quitch div_spectator_player_info" | ||
style="padding-top: 5px;" | ||
> | ||
<span data-bind="text: factoryCount"></span> | ||
</td> | ||
<!-- /ko --> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.