diff --git a/.env.production b/.env.production index 574ed3b..33e24cc 100644 --- a/.env.production +++ b/.env.production @@ -1 +1 @@ -VUE_APP_API_HOST='http://192.168.100.83:3000' \ No newline at end of file +VUE_APP_API_HOST='https://invitation.cebggame.com' \ No newline at end of file diff --git a/package.json b/package.json index 9e9e3c3..5f73397 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", - "lint": "vue-cli-service lint" + "lint": "vue-cli-service lint", + "deploy:prod": "rm -f ./dist/.DS_Store && aws s3 sync ./dist s3://activity.cebg.games --acl public-read", + "refresh:prod": "aws cloudfront create-invalidation --distribution-id E3DQJTHKOKHHZ7 --paths \"/*\"" }, "dependencies": { "axios": "^1.1.3", diff --git a/public/desktop.html b/public/desktop.html index 487fc2a..eb65f33 100755 --- a/public/desktop.html +++ b/public/desktop.html @@ -5,7 +5,7 @@ - CEBG + CEBG 1,000 Commander Rally @@ -68,7 +68,7 @@ - @@ -308,7 +308,7 @@ var checkActivity = function (address, cb) { var settings = { - url: "http://192.168.100.83:3000/aa1/user_status", + url: "https://invitation.cebggame.com/aa1/user_status", method: "POST", headers: { "Content-Type": "application/json", diff --git a/public/mobile.html b/public/mobile.html index 005f388..f45c7e6 100755 --- a/public/mobile.html +++ b/public/mobile.html @@ -5,7 +5,7 @@ - CEBG + CEBG 1,000 Commander Rally @@ -420,7 +420,7 @@ var checkActivity = function (address, cb) { var settings = { - url: "http://192.168.100.83:3000/aa1/user_status", + url: "https://invitation.cebggame.com/aa1/user_status", method: "POST", headers: { "Content-Type": "application/json", diff --git a/src/router/index.js b/src/router/index.js index d621717..a29413b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -18,21 +18,21 @@ const routes = [ { path: "/login", name: "login", - meta: { title: "login" }, + meta: { title: "CEBG 1,000 Commander Rally" }, component: () => import(/* webpackChunkName: "login" */ "../views/mobile/Login.vue"), }, { path: "/signup", name: "Signup", - meta: { title: "Signup" }, + meta: { title: "CEBG 1,000 Commander Rally" }, component: () => import(/* webpackChunkName: "singup" */ "../views/mobile/Signup.vue"), }, { path: "/recommend", name: "Recommend", - meta: { title: "Recommend" }, + meta: { title: "CEBG 1,000 Commander Rally" }, component: () => import( /* webpackChunkName: "recommend" */ "../views/mobile/Recommend.vue" @@ -41,7 +41,7 @@ const routes = [ { path: "/success", name: "Success", - meta: { title: "Success" }, + meta: { title: "CEBG 1,000 Commander Rally" }, component: () => import( /* webpackChunkName: "success" */ "../views/mobile/Success.vue" @@ -50,7 +50,7 @@ const routes = [ { path: "/rankinglist", name: "RankingList", - meta: { title: "Quest Info" }, + meta: { title: "CEBG 1,000 Commander Rally" }, component: () => import( /* webpackChunkName: "rankinglist" */ "../views/mobile/RankingList.vue" @@ -59,7 +59,7 @@ const routes = [ { path: "/listdetails", name: "ListDetails", - meta: { title: "Leader board" }, + meta: { title: "CEBG 1,000 Commander Rally" }, component: () => import( /* webpackChunkName: "listdetails" */ "../views/mobile/ListDetails.vue" diff --git a/src/views/layout/Header.vue b/src/views/layout/Header.vue index f52601b..3fa0815 100644 --- a/src/views/layout/Header.vue +++ b/src/views/layout/Header.vue @@ -38,13 +38,13 @@ export default { this.hide = true }, toHome() { - location.href = '/mobile.html' + location.href = isMobile()? '/mobile.html' : '/desktop.html' }, logout() { chain.logout(); localStorage.removeItem('userinfo'); localStorage.removeItem('invite_code'); - location.href = '/desktop.html' + location.href = isMobile()? '/mobile.html' : '/desktop.html' this.hide = false }, toQuest(e) { diff --git a/src/views/mobile/Signup.vue b/src/views/mobile/Signup.vue index 0cc25c4..ec5994f 100644 --- a/src/views/mobile/Signup.vue +++ b/src/views/mobile/Signup.vue @@ -7,7 +7,7 @@