6 Commits
1.0.6 ... 1.0.7

Author SHA1 Message Date
0ccb76345e added new map screenshots
All checks were successful
CSGOWTF/csgowtf/pipeline/pr-master This commit looks good
CSGOWTF/csgowtf/pipeline/head This commit looks good
2022-02-22 12:22:38 +01:00
33c11dd391 version 1.0.7
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good
CSGOWTF/csgowtf/pipeline/pr-master This commit looks good
2022-02-22 12:06:16 +01:00
420f4b141e new map icons
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good
2022-02-22 12:05:30 +01:00
9c7834f443 set expiredate for cookies to infinity
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good
2022-02-21 05:29:42 +01:00
800e45fe96 updated readme and added new badges 2022-02-21 05:23:13 +01:00
3963f6decf fixed #69
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good
2022-02-13 01:33:43 +01:00
19 changed files with 12457 additions and 75 deletions

View File

@@ -1,7 +1,16 @@
# CSGOW.TF # CSGOW.TF
[![](https://img.shields.io/badge/license-GPL3-blue)](https://git.harting.dev/CSGOWTF/csgowtf/src/branch/master/LICENSE) [![](https://img.shields.io/liberapay/patrons/CSGOWTF.svg?logo=liberapay)](https://liberapay.com/CSGOWTF/)
Statistics for CS:GO matchmaking matches. [![Vue3](https://img.shields.io/badge/created%20with-Vue3-%2342b883?style=flat-square)](https://vuejs.org/)
[![Go](https://img.shields.io/badge/created%20with-Go-%2379d4fd?style=flat-square)](https://go.dev/)
[![GPL3](https://img.shields.io/badge/licence-GPL3-%23007ec6?style=flat-square)](https://git.harting.dev/CSGOWTF/csgowtf/src/branch/master/LICENSE)
[![Liberapay](https://img.shields.io/badge/donate%20on-LiberaPay-%23f6c915?style=flat-square)](https://liberapay.com/CSGOWTF/)
[![Liberapay patrons](https://img.shields.io/liberapay/patrons/csgowtf?style=flat-square)](https://liberapay.com/CSGOWTF/)
[![Website](https://img.shields.io/website?down_message=down&label=csgow.tf&style=flat-square&up_message=up&url=https%3A%2F%2Fcsgow.tf)](https://csgow.tf/)
<!--[![Typescript](https://img.shields.io/badge/created%20with-typescript-%233178c6?style=flat-square)](https://www.typescriptlang.org/)-->
### Statistics for CS:GO matchmaking matches.
---
## Backend ## Backend
This is the frontend to the [csgowtfd](https://git.harting.dev/CSGOWTF/csgowtfd) backend. This is the frontend to the [csgowtfd](https://git.harting.dev/CSGOWTF/csgowtfd) backend.

View File

@@ -1,6 +1,6 @@
{ {
"name": "csgowtf", "name": "csgowtf",
"version": "1.0.6", "version": "1.0.7",
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 212 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 212 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 212 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 212 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 213 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 503 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 904 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 753 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

View File

@@ -39,7 +39,7 @@ export default {
const handleConsent = () => { const handleConsent = () => {
window._paq.push(['rememberCookieConsentGiven']) window._paq.push(['rememberCookieConsentGiven'])
cookies.set('consent', 'given') cookies.set('consent', 'given', Infinity)
if (tracking.value){ if (tracking.value){
window._paq.push(['rememberConsentGiven']) window._paq.push(['rememberConsentGiven'])

View File

@@ -7,7 +7,7 @@
@translated="handleTranslatedText" @translated="handleTranslatedText"
/> />
<div v-if="data.chat.length > 0" class="chat-history mt-2"> <div v-if="data.chat.length > 0" class="chat-history mt-2">
<table class="table table-borderless"> <table id="chat" :style="`max-width: ${data.clientWidth}px; width: ${data.clientWidth}px`" class="table table-borderless">
<tbody> <tbody>
<tr v-for="(m, id) in data.chat" :key="id"> <tr v-for="(m, id) in data.chat" :key="id">
<td class="td-time"> <td class="td-time">
@@ -79,23 +79,20 @@ export default {
const data = reactive({ const data = reactive({
chat: [], chat: [],
translatedText: [], translatedText: [],
originalChat: [] originalChat: [],
clientWidth: 0
}) })
const handleTranslatedText = async (e) => { const handleTranslatedText = async (e) => {
const res = await e const [res, toggle] = await e
if (res === 'original' && data.originalChat.length > 0) {
data.chat = data.originalChat
return
}
if (res === 'already translated' && data.translatedText.length > 0) {
data.chat = data.translatedText
return
}
if (res !== null) { if (res !== null) {
if (toggle === 'translated') {
data.translatedText = await setPlayer(sortChatHistory(res, true)) data.translatedText = await setPlayer(sortChatHistory(res, true))
data.chat = data.translatedText data.chat = data.translatedText
} else if (toggle === 'original') {
data.chat = data.originalChat
}
} }
} }
@@ -158,8 +155,21 @@ export default {
return arr return arr
} }
const sizeTable = () => {
if (document.documentElement.clientWidth <= 768) {
data.clientWidth = document.documentElement.clientWidth - 32
} else {
data.clientWidth = 700
}
}
window.onresize = () => {
sizeTable()
}
onMounted(() => { onMounted(() => {
getChatHistory() getChatHistory()
sizeTable()
}) })
return { return {
@@ -188,9 +198,6 @@ export default {
margin-top: .5rem; margin-top: .5rem;
} }
table {
width: 700px;
max-width: 700px;
td { td {
padding: .5rem; padding: .5rem;
} }
@@ -201,6 +208,7 @@ table {
.td-avatar { .td-avatar {
width: 30px; width: 30px;
.avatar { .avatar {
width: 20px; width: 20px;
height: 20px; height: 20px;
@@ -209,8 +217,8 @@ table {
} }
.td-name { .td-name {
width: 250px; width: 200px;
max-width: 250px; max-width: 200px;
cursor: pointer; cursor: pointer;
text-align: left; text-align: left;
white-space: nowrap; white-space: nowrap;
@@ -237,20 +245,30 @@ table {
} }
.td-message { .td-message {
width: 320px; width: 400px !important;
}
@media screen and (max-width: 768px) {
.container {
justify-content: flex-start;
align-items: flex-start;
margin-left: 1rem;
}
.td-name {
width: 120px !important;
max-width: 120px !important;
}
.td-message {
width: auto !important;
} }
} }
@media screen and (max-width: 576px) { @media screen and (max-width: 576px) {
.container {
margin-left: 0;
}
.td-avatar { .td-avatar {
display: none; display: none;
} }
.td-name {
width: 120px;
max-width: 120px;
}
.td-message {
width: auto;
}
} }
</style> </style>

View File

@@ -33,7 +33,7 @@ export default {
required: true required: true
} }
}, },
setup(props) { setup() {
const store = useStore() const store = useStore()
const data = reactive({ const data = reactive({
@@ -67,18 +67,12 @@ export default {
toggleShow() toggleShow()
if (!props.translated && toggle.value === 'translated') {
response = await GetChatHistoryTranslated(store, store.state.matchDetails.match_id) response = await GetChatHistoryTranslated(store, store.state.matchDetails.match_id)
}
if (props.translated && toggle.value === 'translated')
response = 'already translated'
if (toggle.value === 'original')
response = 'original'
if (refreshButton.classList.contains('show')) if (refreshButton.classList.contains('show'))
refreshButton.classList.remove('show') refreshButton.classList.remove('show')
return response return [response, toggle.value]
} }
const toggleShow = () => { const toggleShow = () => {
@@ -108,6 +102,7 @@ export default {
.toggle-btn { .toggle-btn {
margin: 0 auto; margin: 0 auto;
cursor: pointer; cursor: pointer;
width: 100%;
.fa { .fa {
display: none; display: none;