@@ -314,30 +217,26 @@ import {
constructAvatarUrl,
DisplayRank,
FixMapName,
- FormatDate,
- FormatDuration,
- FormatFullDate,
- FormatFullDuration,
FormatVacDate,
- GetHLTV_1,
GetPlayerMeta,
GetUser,
GetWinLoss,
GoToLink,
- GoToMatch,
GoToPlayer,
LoadImage,
LoadMoreMatches,
+ MatchNotParsedTime,
SaveLastVisitedToLocalStorage,
setTitle,
sortObjectValue,
- TrackMe,
- MatchNotParsedTime
+ TrackMe
} from "../utils";
import {FOOTER_HEIGHT, NAV_HEIGHT} from "@/constants";
+import MatchesTable from "@/components/MatchesTable";
export default {
name: 'Player',
+ components: {MatchesTable},
props: ['id'],
setup(props) {
// Variables
@@ -562,12 +461,6 @@ export default {
RefreshData,
TrackMe,
GetWinLoss,
- FormatDate,
- FormatFullDate,
- FormatDuration,
- FormatFullDuration,
- GoToMatch,
- GetHLTV_1,
DisplayRank,
constructAvatarUrl,
FormatVacDate,
@@ -806,225 +699,6 @@ export default {
}
}
-table {
- margin-bottom: 0;
-
- tr {
- th {
- line-height: 1;
- }
-
- td {
- line-height: 60px;
- font-size: 1rem;
- }
-
- th:last-child, td:last-child {
- text-align: right;
- width: 150px;
- }
-
- th[title] {
- text-decoration: underline dotted grey;
- }
-
- td {
- vertical-align: middle;
- }
-
- .map {
- padding-left: 3rem;
- }
-
- .match-len {
- width: 18px;
- height: 18px;
- }
-
- .td-map {
- position: relative;
- padding-left: 3rem;
- text-align: left !important;
- width: 50px;
-
- .parsed {
- position: absolute;
- left: 7px;
- bottom: 23px;
- color: var(--bs-warning);
- font-size: 1.7rem;
- }
-
- .not-yet-parsed {
- position: absolute;
- left: 10px;
- bottom: 25px;
- color: darkgrey;
- font-size: 1.7rem;
- }
-
- .map-not-found {
- position: absolute;
- top: 4px;
- left: 48px;
- font-size: 4.35rem;
- color: rgba(255, 193, 7, .86);
- }
-
- img {
- width: 60px;
- height: auto;
- }
- }
-
- .td-rank {
- .uprank {
- box-shadow: 0 0 20px greenyellow;
- border: 1px solid greenyellow;
- border-radius: 5px;
- }
-
- .downrank {
- box-shadow: 0 0 20px #ff2f2f;
- border: 1px solid #ff2f2f;
- border-radius: 5px;
- }
-
- img {
- width: 70px;
- height: auto;
-
- .rank-icon {
- height: 35px;
- }
- }
- }
-
- .td-score {
- font-size: 1.2rem;
- width: 120px;
- }
-
- .td-date, .date {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- }
-
- .match {
- $first: rgb(0, 0, 0);
- $last: rgb(0, 0, 0);
- $win: false;
- $loss: false;
- $draw: false;
- $ban: false;
-
- &.win {
- $first: rgb(0, 255, 0);
- background: linear-gradient(to right,
- rgba($first, 0.2) 0%,
- rgba($first, 0.1) 15%,
- rgba(0, 0, 0, 0.4) 30%,
- rgba(0, 0, 0, 0.4) 70%,
- rgba($last, 0.6) 80%,
- rgba($last, 0.6) 100%
- );
-
- &:hover {
- background: linear-gradient(to right,
- rgba($first, 0.3) 0%,
- rgba($first, 0.2) 15%,
- rgba(0, 0, 0, 0.5) 30%,
- rgba(0, 0, 0, 0.5) 70%,
- rgba($last, 0.7) 80%,
- rgba($last, 0.7) 100%
- );
- }
- }
-
- &.draw {
- $first: rgb(255, 255, 0);
- background: linear-gradient(to right,
- rgba($first, 0.2) 0%,
- rgba($first, 0.1) 15%,
- rgba(0, 0, 0, 0.4) 30%,
- rgba(0, 0, 0, 0.4) 70%,
- rgba($last, 0.6) 80%,
- rgba($last, 0.6) 100%
- );
-
- &:hover {
- background: linear-gradient(to right,
- rgba($first, 0.3) 0%,
- rgba($first, 0.2) 15%,
- rgba(0, 0, 0, 0.5) 30%,
- rgba(0, 0, 0, 0.5) 70%,
- rgba($last, 0.7) 80%,
- rgba($last, 0.7) 100%
- );
- }
- }
-
- &.loss {
- $first: rgb(255, 0, 0);
- background: linear-gradient(to right,
- rgba($first, 0.2) 0%,
- rgba($first, 0.1) 15%,
- rgba(0, 0, 0, 0.4) 30%,
- rgba(0, 0, 0, 0.4) 70%,
- rgba($last, 0.6) 80%,
- rgba($last, 0.6) 100%
- );
-
- &:hover {
- background: linear-gradient(to right,
- rgba($first, 0.3) 0%,
- rgba($first, 0.2) 15%,
- rgba(0, 0, 0, 0.5) 30%,
- rgba(0, 0, 0, 0.5) 70%,
- rgba($last, 0.7) 80%,
- rgba($last, 0.7) 100%
- );
- }
- }
-
-
- &.ban {
- $last: rgb(93, 3, 3);
- background: linear-gradient(to right,
- rgba($first, 0.2) 0%,
- rgba($first, 0.1) 15%,
- rgba(0, 0, 0, 0.4) 30%,
- rgba(0, 0, 0, 0.4) 70%,
- rgba($last, 0.6) 80%,
- rgba($last, 0.6) 100%
- );
-
- &:hover {
- background: linear-gradient(to right,
- rgba($first, 0.3) 0%,
- rgba($first, 0.2) 15%,
- rgba(0, 0, 0, 0.5) 30%,
- rgba(0, 0, 0, 0.5) 70%,
- rgba($last, 0.7) 80%,
- rgba($last, 0.7) 100%
- );
- }
- }
-
- border-bottom: 1px solid rgba(73, 73, 73, 0.73);
-
- &:last-child {
- border: none;
- }
-
- &:hover {
- cursor: pointer;
- }
- }
-}
-
@media screen and (max-width: 768px) {
.card {
.avatar {
@@ -1045,50 +719,6 @@ table {
}
}
}
-
- .map {
- padding-left: 2.2rem !important;
- }
-
- .td-map {
- position: relative;
- padding-left: 2.2rem !important;
- width: 35px !important;
-
- .parsed {
- position: absolute;
- left: .3rem !important;
- }
-
- .not-yet-parsed {
- position: absolute;
- left: .3rem !important;
- }
-
- img {
- width: 40px !important;
- height: auto;
- }
- }
- .td-rank img {
- width: 50px !important;
- height: auto;
- max-width: 50px;
- }
-
- .td-score {
- font-size: 1rem !important;
- max-width: 90px;
- }
-
- .td-date {
- font-size: 1rem !important;
- }
-
- .kills, .deaths, .assists, .kdiff, .duration, .hltv, .length,
- .td-kills, .td-deaths, .td-assists, .td-plus, .td-duration, .td-hltv, .td-length {
- display: none;
- }
}
@media screen and (max-width: 991px) {
@@ -1098,18 +728,5 @@ table {
.side-info {
display: none !important;
}
- .avatar {
- width: 100px !important;
- height: 100px !important;
- }
- .trackme-btn {
- top: 25px;
- }
-}
-
-@media screen and (max-width: 1199px) {
- .td-plus, .kdiff {
- display: none;
- }
}