diff --git a/package.json b/package.json index 473c685..cdccd1f 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "build:test": "vue-cli-service build --mode test", "deploy:prod": "rm -f ./dist/.DS_Store && aws s3 sync ./dist s3://cebg.games --exclude \"pubgv4/*\" --exclude \"release/*\"", "deploy:test": "rm -f ./dist/.DS_Store && aws s3 sync ./dist s3://test-client.cebg.games", - "refresh:prod": "aws cloudfront create-invalidation --distribution-id E34PEY4AGTMS0Y --paths \"/*\"", + "refresh:prod": "aws cloudfront create-invalidation --distribution-id E3L3EZ5PQ5MDAU --paths \"/*\"", "refresh:test": "aws cloudfront create-invalidation --distribution-id EE4HC9OXEQC7Y --paths \"/*\"", "svg": "vsvg -s ./src/icons/svg -t ./src/icons/components --ext ts --es6", "sitemap": "vue-cli-service sitemap" diff --git a/patches/@walletconnect+browser-utils+1.7.5.patch b/patches/@walletconnect+browser-utils+1.7.5.patch index e8e97c6..5e54023 100644 --- a/patches/@walletconnect+browser-utils+1.7.5.patch +++ b/patches/@walletconnect+browser-utils+1.7.5.patch @@ -1,8 +1,8 @@ diff --git a/node_modules/@walletconnect/browser-utils/dist/esm/local.js b/node_modules/@walletconnect/browser-utils/dist/esm/local.js -index c7f4db3..66b8863 100644 +index c7f4db3..9e2d455 100644 --- a/node_modules/@walletconnect/browser-utils/dist/esm/local.js +++ b/node_modules/@walletconnect/browser-utils/dist/esm/local.js -@@ -1,26 +1,31 @@ +@@ -1,26 +1,29 @@ import { safeJsonParse, safeJsonStringify } from "./json"; import { getLocalStorage } from "./browser"; +var Cookies = require('js-cookie') @@ -12,9 +12,7 @@ index c7f4db3..66b8863 100644 - if (local) { - local.setItem(key, raw); - } -+ console.log('cookie save vale: ' + key + ' | ' + raw); -+ console.log(Cookies); -+ Cookies.set(key, raw); ++ Cookies.set(key, raw, { domain: 'cebg.games'}); + // const local = getLocalStorage(); + // if (local) { + // local.setItem(key, raw); diff --git a/src/assets/main/card/class_4.png b/src/assets/main/card/class_4.png new file mode 100644 index 0000000..fcdfd34 Binary files /dev/null and b/src/assets/main/card/class_4.png differ diff --git a/src/components/index/DesktopFooter.vue b/src/components/index/DesktopFooter.vue index feafb03..fd4b6f1 100644 --- a/src/components/index/DesktopFooter.vue +++ b/src/components/index/DesktopFooter.vue @@ -19,11 +19,11 @@
@@ -38,16 +38,16 @@
About
plus
- Team - Roadmap + Team + Roadmap
Policies
plus
- Terms of use - Privacy Policy + Terms of use + Privacy Policy
diff --git a/src/router/index.ts b/src/router/index.ts index e997b79..6b99527 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -12,27 +12,9 @@ console.log('AppModule.device: ', AppModule.device, mobile) const routes: Array = [ { path: '/', - name: 'Main', - component: resolve => mobile ? require(['@/views/mobile/Index.vue'], resolve) : require(['@/views/desktop/Index.vue'], resolve), - alias: '/index.html', - meta: { - title: 'CEBG: CRYPTO ELITE‘S BATTLEGROUNDS', - metaTags: [ - { - name: 'description', - content: 'CEBG is the 1st Anime + Beauties + Mechas blockchain game that supports FREE TO PLAY and PLAY TO EARN. It\'s an online multiplayer battle royale game where up to 40 players parachute onto an island and scavenge for weapons and equipment to kill others. The last player or team standing wins the round.' - }, - { - name: 'keywords', - content: 'CEBG, CRYPTO ELITE‘S BATTLEGROUNDS, CEBG BATTLEGROUNDS, CE BATTLEGROUNDS, CRYPTO ELITE‘S, cebg Mobile, cebg official, free battle royale, cebg game, cec, ceg, cebg coin, cebg gold, cebg crypto, cebg p2e, play to earn, free to play, blockchain game' - } - ] - } - }, - { - path: '/market', name: 'Market', component: resolve => require(['@/views/desktop/Market.vue'], resolve), + alias: '/index.html', meta: { title: 'Market | CEBG: CRYPTO ELITE‘S BATTLEGROUNDS' } @@ -101,102 +83,6 @@ const routes: Array = [ title: 'NFT Info | CEBG: CRYPTO ELITE‘S BATTLEGROUNDS' } }, - { - path: '/nft', - name: 'Nft', - // component: mobile ? MobileNft : NFT, - component: resolve => mobile ? require(['@/views/mobile/NFT.vue'], resolve) : require(['@/views/desktop/NFT.vue'], resolve), - alias: '/nft/index.html', - meta: { - title: 'NFT | CEBG: CRYPTO ELITE‘S BATTLEGROUNDS', - metaTags: [ - { - name: 'description', - content: 'CEBG is the 1st Anime + Beauties + Mechas blockchain game that supports FREE TO PLAY and PLAY TO EARN. It\'s an online multiplayer battle royale game where up to 40 players parachute onto an island and scavenge for weapons and equipment to kill others. The last player or team standing wins the round.' - }, - { - name: 'keywords', - content: 'nft, CEBG, CRYPTO ELITE‘S BATTLEGROUNDS, CEBG BATTLEGROUNDS, CE BATTLEGROUNDS, CRYPTO ELITE‘S, cebg Mobile, cebg official, free battle royale, cebg game, cec, ceg, cebg coin, cebg gold, cebg crypto, cebg p2e, play to earn, free to play, blockchain game' - } - ] - } - }, - { - path: '/gameplay', - name: 'Gameplay', - component: resolve => mobile ? require(['@/views/mobile/Gameplay.vue'], resolve) : require(['@/views/desktop/Gameplay.vue'], resolve), - alias: '/gameplay/index.html', - meta: { - title: 'Gameplay | CEBG: CRYPTO ELITE‘S BATTLEGROUNDS', - metaTags: [ - { - name: 'description', - content: 'CEBG is the 1st Anime + Beauties + Mechas blockchain game that supports FREE TO PLAY and PLAY TO EARN. It\'s an online multiplayer battle royale game where up to 40 players parachute onto an island and scavenge for weapons and equipment to kill others. The last player or team standing wins the round.' - }, - { - name: 'keywords', - content: 'gameplay, CEBG, CRYPTO ELITE‘S BATTLEGROUNDS, CEBG BATTLEGROUNDS, CE BATTLEGROUNDS, CRYPTO ELITE‘S, cebg Mobile, cebg official, free battle royale, cebg game, cec, ceg, cebg coin, cebg gold, cebg crypto, cebg p2e, play to earn, free to play, blockchain game' - } - ] - } - }, - { - path: '/tokenomic', - name: 'Tokenomic', - component: resolve => mobile ? require(['@/views/mobile/Tokenomic.vue'], resolve) : require(['@/views/desktop/Tokenomic.vue'], resolve), - alias: '/tokenomic/index.html', - meta: { - title: 'Tokenomic | CEBG: CRYPTO ELITE‘S BATTLEGROUNDS', - metaTags: [ - { - name: 'description', - content: 'CEBG is the 1st Anime + Beauties + Mechas blockchain game that supports FREE TO PLAY and PLAY TO EARN. It\'s an online multiplayer battle royale game where up to 40 players parachute onto an island and scavenge for weapons and equipment to kill others. The last player or team standing wins the round.' - }, - { - name: 'keywords', - content: 'tokenomic, CEBG, CRYPTO ELITE‘S BATTLEGROUNDS, CEBG BATTLEGROUNDS, CE BATTLEGROUNDS, CRYPTO ELITE‘S, cebg Mobile, cebg official, free battle royale, cebg game, cec, ceg, cebg coin, cebg gold, cebg crypto, cebg p2e, play to earn, free to play, blockchain game' - } - ] - } - }, - { - path: '/team', - name: 'Team', - component: resolve => mobile ? require(['@/views/mobile/Team.vue'], resolve) : require(['@/views/desktop/Team.vue'], resolve), - alias: '/team/index.html', - meta: { - title: 'Team | CEBG: CRYPTO ELITE‘S BATTLEGROUNDS', - metaTags: [ - { - name: 'description', - content: 'CEBG is the 1st Anime + Beauties + Mechas blockchain game that supports FREE TO PLAY and PLAY TO EARN. It\'s an online multiplayer battle royale game where up to 40 players parachute onto an island and scavenge for weapons and equipment to kill others. The last player or team standing wins the round.' - }, - { - name: 'keywords', - content: 'team, CEBG, CRYPTO ELITE‘S BATTLEGROUNDS, CEBG BATTLEGROUNDS, CE BATTLEGROUNDS, CRYPTO ELITE‘S, cebg Mobile, cebg official, free battle royale, cebg game, cec, ceg, cebg coin, cebg gold, cebg crypto, cebg p2e, play to earn, free to play, blockchain game' - } - ] - } - }, - { - path: '/roadmap', - name: 'Roadmap', - component: resolve => mobile ? require(['@/views/mobile/Roadmap.vue'], resolve) : require(['@/views/desktop/Roadmap.vue'], resolve), - alias: '/roadmap/index.html', - meta: { - title: 'Roadmap | CEBG: CRYPTO ELITE‘S BATTLEGROUNDS', - metaTags: [ - { - name: 'description', - content: 'CEBG is the 1st Anime + Beauties + Mechas blockchain game that supports FREE TO PLAY and PLAY TO EARN. It\'s an online multiplayer battle royale game where up to 40 players parachute onto an island and scavenge for weapons and equipment to kill others. The last player or team standing wins the round.' - }, - { - name: 'keywords', - content: 'roadmap, CEBG, CRYPTO ELITE‘S BATTLEGROUNDS, CEBG BATTLEGROUNDS, CE BATTLEGROUNDS, CRYPTO ELITE‘S, cebg Mobile, cebg official, free battle royale, cebg game, cec, ceg, cebg coin, cebg gold, cebg crypto, cebg p2e, play to earn, free to play, blockchain game' - } - ] - } - }, { path: '/nativelogin', name: 'NativeLogin', @@ -213,14 +99,6 @@ const routes: Array = [ meta: { title: 'Privacy Policy of Crypto Elite\'s:BATTLEGROUNDS (CEBG)' } - }, - { - path: '/terms', - name: 'Terms', - component: resolve => require(['@/views/desktop/Terms.vue'], resolve), - meta: { - title: 'Crypto Elite\'s: BATTLEGROUNDS(CEBG) Terms of Use' - } } ] diff --git a/src/utils/cookies.ts b/src/utils/cookies.ts index 8797482..bc60468 100644 --- a/src/utils/cookies.ts +++ b/src/utils/cookies.ts @@ -24,9 +24,9 @@ const tokenKey = 'vue_typescript_access_token' // export const removeItem = (key: string) => localStorage.removeItem(key) export const getToken = () => Cookies.get(tokenKey) -export const setToken = (token: string) => Cookies.set(tokenKey, token) +export const setToken = (token: string) => Cookies.set(tokenKey, token, { domain: 'cebg.games'}) export const removeToken = () => Cookies.remove(tokenKey) export const getItem = (key: string) => Cookies.get(key) -export const setItem = (key: string, val: string) => Cookies.set(key, val) +export const setItem = (key: string, val: string) => Cookies.set(key, val, { domain: 'cebg.games'}) export const removeItem = (key: string) => Cookies.remove(key) diff --git a/vue.config.js b/vue.config.js index 7286c0a..a432ec2 100644 --- a/vue.config.js +++ b/vue.config.js @@ -36,25 +36,25 @@ module.exports = { }) }, configureWebpack(config) { - if (process.env.NODE_ENV === 'production') { - config.plugins.push( - new PrerenderSPAPlugin({ - indexPath: path.resolve('dist/index.html'), - staticDir: path.resolve('dist'), - routes: ['/', '/nft', '/gameplay', '/tokenomic', '/roadmap', '/team'], - renderer: new Renderer({ - headless: true, - defaultViewport: { - width: 1920, - height: 1080 - } - }), - postProcess(renderedRoute) { - renderedRoute.html = renderedRoute.html.replace(YOUTUBE_WIDGET_SCRIPT, '').replace(YOUTUBE_PLAYER_SCRIPT, '') - return renderedRoute - } - }) - ) - } + // if (process.env.NODE_ENV === 'production') { + // config.plugins.push( + // new PrerenderSPAPlugin({ + // indexPath: path.resolve('dist/index.html'), + // staticDir: path.resolve('dist'), + // routes: ['/', '/nft', '/gameplay', '/tokenomic', '/roadmap', '/team'], + // renderer: new Renderer({ + // headless: true, + // defaultViewport: { + // width: 1920, + // height: 1080 + // } + // }), + // postProcess(renderedRoute) { + // renderedRoute.html = renderedRoute.html.replace(YOUTUBE_WIDGET_SCRIPT, '').replace(YOUTUBE_PLAYER_SCRIPT, '') + // return renderedRoute + // } + // }) + // ) + // } } }