updated core-js
This commit is contained in:
@@ -8,7 +8,7 @@ module.exports = {
|
|||||||
'eslint:recommended'
|
'eslint:recommended'
|
||||||
],
|
],
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
parser: 'babel-eslint'
|
parser: '@babel/eslint-parser'
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||||
|
631
.yarn/releases/yarn-3.0.2.cjs
vendored
631
.yarn/releases/yarn-3.0.2.cjs
vendored
File diff suppressed because one or more lines are too long
801
.yarn/releases/yarn-3.2.4.cjs
vendored
Executable file
801
.yarn/releases/yarn-3.2.4.cjs
vendored
Executable file
File diff suppressed because one or more lines are too long
@@ -4,4 +4,4 @@ plugins:
|
|||||||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
|
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
|
||||||
spec: "@yarnpkg/plugin-interactive-tools"
|
spec: "@yarnpkg/plugin-interactive-tools"
|
||||||
|
|
||||||
yarnPath: .yarn/releases/yarn-3.0.2.cjs
|
yarnPath: .yarn/releases/yarn-3.2.4.cjs
|
||||||
|
31
package.json
31
package.json
@@ -8,10 +8,12 @@
|
|||||||
"lint": "vue-cli-service lint"
|
"lint": "vue-cli-service lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@fontsource/open-sans": "^4.5.13",
|
||||||
|
"@fontsource/orbitron": "^4.5.10",
|
||||||
"@popperjs/core": "^2.11.6",
|
"@popperjs/core": "^2.11.6",
|
||||||
"axios": "^1.1.3",
|
"axios": "^1.1.3",
|
||||||
"bootstrap": "^5.2.2",
|
"bootstrap": "^5.2.2",
|
||||||
"core-js": "^3.26.0",
|
"core-js": "^3.26.1",
|
||||||
"dotenv-webpack": "^8.0.1",
|
"dotenv-webpack": "^8.0.1",
|
||||||
"echarts": "^5.4.0",
|
"echarts": "^5.4.0",
|
||||||
"fork-awesome": "^1.2.0",
|
"fork-awesome": "^1.2.0",
|
||||||
@@ -20,24 +22,25 @@
|
|||||||
"jquery": "^3.6.1",
|
"jquery": "^3.6.1",
|
||||||
"luxon": "^3.1.0",
|
"luxon": "^3.1.0",
|
||||||
"string-sanitizer": "^2.0.2",
|
"string-sanitizer": "^2.0.2",
|
||||||
"vue": "^3.2.41",
|
"vue": "^3.2.45",
|
||||||
"vue-matomo": "^4.2.0",
|
"vue-matomo": "^4.2.0",
|
||||||
"vue-router": "^4.1.6",
|
"vue-router": "^4.1.6",
|
||||||
"vue3-cookies": "^1.0.6",
|
"vue3-cookies": "^1.0.6",
|
||||||
"vuex": "^4.1.0"
|
"vuex": "^4.1.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vue/cli-plugin-babel": "~4.5.19",
|
"@babel/core": "^7.20.2",
|
||||||
"@vue/cli-plugin-eslint": "~4.5.19",
|
"@babel/eslint-parser": "^7.19.1",
|
||||||
"@vue/cli-plugin-router": "~4.5.19",
|
"@vue/cli-plugin-babel": "~5.0.8",
|
||||||
"@vue/cli-plugin-vuex": "~4.5.19",
|
"@vue/cli-plugin-eslint": "~5.0.8",
|
||||||
"@vue/cli-service": "~4.5.19",
|
"@vue/cli-plugin-router": "~5.0.8",
|
||||||
"@vue/compiler-sfc": "^3.2.41",
|
"@vue/cli-plugin-vuex": "~5.0.8",
|
||||||
"babel-eslint": "^10.1.0",
|
"@vue/cli-service": "~5.0.8",
|
||||||
"eslint": "^6.8.0",
|
"@vue/compiler-sfc": "^3.2.45",
|
||||||
"eslint-plugin-vue": "^7.20.0",
|
"eslint": "^8.27.0",
|
||||||
"sass": "^1.56.0",
|
"eslint-plugin-vue": "^9.7.0",
|
||||||
"sass-loader": "^10.2.1"
|
"sass": "^1.56.1",
|
||||||
|
"sass-loader": "^13.2.0"
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@3.0.2"
|
"packageManager": "yarn@3.2.4"
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
11
src/App.vue
11
src/App.vue
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<img alt="" class="bg-img" src="">
|
<img alt="" class="bg-img" src="">
|
||||||
<header>
|
<header>
|
||||||
<Nav/>
|
<CompNav/>
|
||||||
</header>
|
</header>
|
||||||
<main>
|
<main>
|
||||||
<div :style="{height: offset + 'px'}"/>
|
<div :style="{height: offset + 'px'}"/>
|
||||||
@@ -9,20 +9,20 @@
|
|||||||
<router-view name="main"/>
|
<router-view name="main"/>
|
||||||
</main>
|
</main>
|
||||||
<footer class="mt-auto">
|
<footer class="mt-auto">
|
||||||
<Footer/>
|
<CompFooter/>
|
||||||
</footer>
|
</footer>
|
||||||
<CookieConsentBtn id="cookie-btn"/>
|
<CookieConsentBtn id="cookie-btn"/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Nav from "@/components/Nav";
|
|
||||||
import Footer from "@/components/Footer";
|
|
||||||
import CookieConsentBtn from "@/components/CookieConsentBtn";
|
import CookieConsentBtn from "@/components/CookieConsentBtn";
|
||||||
import {onMounted, ref} from "vue";
|
import {onMounted, ref} from "vue";
|
||||||
import InfoModal from "@/components/InfoModal";
|
import InfoModal from "@/components/InfoModal";
|
||||||
|
import CompFooter from "@/components/CompFooter";
|
||||||
|
import CompNav from "@/components/CompNav";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {InfoModal, Footer, Nav, CookieConsentBtn},
|
components: {CompNav, CompFooter, InfoModal, CookieConsentBtn},
|
||||||
setup() {
|
setup() {
|
||||||
const offset = ref(0)
|
const offset = ref(0)
|
||||||
|
|
||||||
@@ -52,7 +52,6 @@ export default {
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Obitron";
|
font-family: "Obitron";
|
||||||
src: local("Obitron"), url("../public/fonts/Orbitron-VariableFont_wght.ttf") format("truetype");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-img {
|
.bg-img {
|
||||||
|
@@ -19,7 +19,7 @@ import {onMounted, reactive} from "vue";
|
|||||||
import {GetWeaponDmg} from "@/utils";
|
import {GetWeaponDmg} from "@/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Details",
|
name: "CompDetails",
|
||||||
components: {MultiKillsChart},
|
components: {MultiKillsChart},
|
||||||
setup() {
|
setup() {
|
||||||
const store = useStore()
|
const store = useStore()
|
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "Footer",
|
name: "CompFooter",
|
||||||
setup() {
|
setup() {
|
||||||
const version = process.env.VUE_APP_VERSION
|
const version = process.env.VUE_APP_VERSION
|
||||||
return {version}
|
return {version}
|
@@ -52,7 +52,7 @@ import {closeNav, GetUser, GoToPlayer} from '@/utils'
|
|||||||
import {StatusCodes as STATUS} from "http-status-codes";
|
import {StatusCodes as STATUS} from "http-status-codes";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Nav',
|
name: 'CompNav',
|
||||||
setup() {
|
setup() {
|
||||||
const store = useStore()
|
const store = useStore()
|
||||||
const data = reactive({
|
const data = reactive({
|
@@ -17,7 +17,7 @@ const routes = [
|
|||||||
path: '/',
|
path: '/',
|
||||||
name: 'Home',
|
name: 'Home',
|
||||||
components: {
|
components: {
|
||||||
main: lazyLoadView('Home')
|
main: lazyLoadView('HomeView')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -31,14 +31,14 @@ const routes = [
|
|||||||
path: '/matches',
|
path: '/matches',
|
||||||
name: 'Explore',
|
name: 'Explore',
|
||||||
components: {
|
components: {
|
||||||
main: lazyLoadView('Explore')
|
main: lazyLoadView('ExploreView')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/player/:id',
|
path: '/player/:id',
|
||||||
name: 'Player',
|
name: 'Player',
|
||||||
components: {
|
components: {
|
||||||
main: lazyLoadView('Player'),
|
main: lazyLoadView('PlayerView'),
|
||||||
},
|
},
|
||||||
props: true
|
props: true
|
||||||
},
|
},
|
||||||
@@ -46,7 +46,7 @@ const routes = [
|
|||||||
path: '/match/:match_id',
|
path: '/match/:match_id',
|
||||||
name: 'Match',
|
name: 'Match',
|
||||||
components: {
|
components: {
|
||||||
main: lazyLoadView('Match')
|
main: lazyLoadView('MatchView')
|
||||||
},
|
},
|
||||||
props: true,
|
props: true,
|
||||||
children: [
|
children: [
|
||||||
@@ -65,7 +65,7 @@ const routes = [
|
|||||||
{
|
{
|
||||||
path: 'details',
|
path: 'details',
|
||||||
components: {
|
components: {
|
||||||
score: lazyLoadComponent('Details')
|
score: lazyLoadComponent('CompDetails')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -92,21 +92,21 @@ const routes = [
|
|||||||
path: '/404',
|
path: '/404',
|
||||||
name: '404',
|
name: '404',
|
||||||
components: {
|
components: {
|
||||||
main: lazyLoadErrorPages('404')
|
main: lazyLoadErrorPages('Error404')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/500',
|
path: '/500',
|
||||||
name: '500',
|
name: '500',
|
||||||
components: {
|
components: {
|
||||||
main: lazyLoadErrorPages('500')
|
main: lazyLoadErrorPages('Error500')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/502',
|
path: '/502',
|
||||||
name: '502',
|
name: '502',
|
||||||
components: {
|
components: {
|
||||||
main: lazyLoadErrorPages('502')
|
main: lazyLoadErrorPages('Error502')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@@ -1,18 +1,15 @@
|
|||||||
// Custom.scss
|
// Custom.scss
|
||||||
//@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
|
|
||||||
|
@import "~@fontsource/orbitron/index.css";
|
||||||
|
@import "~@fontsource/open-sans/index.css";
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "OpenSans";
|
font-family: "OpenSans";
|
||||||
src: local('OpenSans'),
|
|
||||||
url("/fonts/OpenSans-VariableFont_wdth,wght.woff2") format("woff2"),
|
|
||||||
url("/fonts/OpenSans-VariableFont_wdth,wght.ttf") format("truetype");
|
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "OpenSansItalic";
|
font-family: "OpenSansItalic";
|
||||||
src: local('OpenSansItalic'),
|
|
||||||
url("/fonts/OpenSans-Italic-VariableFont_wdth,wght.woff2") format("woff2"),
|
|
||||||
url("/fonts/OpenSans-Italic-VariableFont_wdth,wght.ttf") format("truetype");
|
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,9 +23,6 @@
|
|||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Orbitron";
|
font-family: "Orbitron";
|
||||||
src: local('Orbitron'),
|
|
||||||
url("/fonts/Orbitron-VariableFont_wght.woff2") format("woff2"),
|
|
||||||
url("/fonts/Orbitron-VariableFont_wght.ttf") format("truetype");
|
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import {DateTime, Duration} from "luxon/build/es6/luxon";
|
import {DateTime, Duration} from "luxon";
|
||||||
|
|
||||||
export const ConvertTickToTime = (tick, rate = 64) => {
|
export const ConvertTickToTime = (tick, rate = 64) => {
|
||||||
const time = Duration.fromObject({hours: 0, minutes: 0, seconds: tick / rate || 0})
|
const time = Duration.fromObject({hours: 0, minutes: 0, seconds: tick / rate || 0})
|
||||||
|
@@ -29,7 +29,7 @@ import {useStore} from "vuex";
|
|||||||
import router from "@/router";
|
import router from "@/router";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Explore',
|
name: 'ExploreView',
|
||||||
components: {MatchesTable},
|
components: {MatchesTable},
|
||||||
setup() {
|
setup() {
|
||||||
document.title = "Matches | csgoWTF"
|
document.title = "Matches | csgoWTF"
|
@@ -84,7 +84,7 @@ import {onBeforeMount, ref} from "vue";
|
|||||||
import {useStore} from "vuex";
|
import {useStore} from "vuex";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Home',
|
name: 'HomeView',
|
||||||
setup() {
|
setup() {
|
||||||
setTitle('Home')
|
setTitle('Home')
|
||||||
const store = useStore()
|
const store = useStore()
|
||||||
@@ -148,7 +148,7 @@ table {
|
|||||||
.main-content {
|
.main-content {
|
||||||
.head {
|
.head {
|
||||||
// display jpg
|
// display jpg
|
||||||
background-image: url("/images/map_screenshots/default.jpg");
|
background-image: url("/images/map_screenshots/default.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
.head {
|
.head {
|
@@ -163,11 +163,11 @@ import {
|
|||||||
} from "@/utils";
|
} from "@/utils";
|
||||||
import {useStore} from "vuex";
|
import {useStore} from "vuex";
|
||||||
import {useRoute} from 'vue-router'
|
import {useRoute} from 'vue-router'
|
||||||
import {DateTime} from "luxon/build/es6/luxon";
|
import {DateTime} from "luxon";
|
||||||
import {FOOTER_HEIGHT, NAV_HEIGHT} from "@/constants";
|
import {FOOTER_HEIGHT, NAV_HEIGHT} from "@/constants";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Match',
|
name: 'MatchView',
|
||||||
props: ['match_id'],
|
props: ['match_id'],
|
||||||
setup(props) {
|
setup(props) {
|
||||||
const store = useStore()
|
const store = useStore()
|
@@ -166,7 +166,7 @@ import PlayerSideInfo from "@/components/PlayerSideInfo";
|
|||||||
import {StatusCodes as STATUS} from "http-status-codes";
|
import {StatusCodes as STATUS} from "http-status-codes";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Player',
|
name: 'PlayerView',
|
||||||
components: {PlayerSideInfo, MatchesTable},
|
components: {PlayerSideInfo, MatchesTable},
|
||||||
props: ['id'],
|
props: ['id'],
|
||||||
setup(props) {
|
setup(props) {
|
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "404"
|
name: "ErrorPage404"
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "500"
|
name: "ErrorPage500"
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "502"
|
name: "ErrorPage502"
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
@@ -5,6 +5,13 @@ module.exports = {
|
|||||||
configureWebpack: {
|
configureWebpack: {
|
||||||
plugins: [
|
plugins: [
|
||||||
new Dotenv()
|
new Dotenv()
|
||||||
]
|
],
|
||||||
|
},
|
||||||
|
css: {
|
||||||
|
loaderOptions: {
|
||||||
|
css: {
|
||||||
|
url: false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user