Skip to content

Commit

Permalink
🔥 feat: 광고 솔루션을 Google Adsense로 변경, 라이브러리 업데이트
Browse files Browse the repository at this point in the history
  • Loading branch information
kms0219kms committed Jan 8, 2024
1 parent d210ba0 commit 0648d12
Show file tree
Hide file tree
Showing 9 changed files with 83 additions and 31 deletions.
6 changes: 3 additions & 3 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ enableGlobalCache: false
nodeLinker: node-modules

packageExtensions:
"@nuxt/components@*":
'@nuxt/components@*':
dependencies:
consola: "*"
consola: '*'
css-loader@*:
dependencies:
webpack: ^4.27.0
eslint-config-prettier@*:
dependencies:
eslint: ">=7.0.0"
eslint: '>=7.0.0'
postcss-loader@*:
dependencies:
webpack: ^4.0.0
Expand Down
76 changes: 64 additions & 12 deletions app.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,81 @@
{{ HEAD }}

<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-KKQTHLK');</script>
<script>
;(function (w, d, s, l, i) {
w[l] = w[l] || []
w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' })
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : ''
j.async = true
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl
f.parentNode.insertBefore(j, f)
})(window, document, 'script', 'dataLayer', 'GTM-KKQTHLK')
</script>
<!-- End Google Tag Manager -->

<!-- Google Adsense -->
<script
async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7700677534024923"
></script>

<script
async
src="https://fundingchoicesmessages.google.com/i/pub-7700677534024923?ers=1"
nonce="QHzY_FUE44g8R4HbPxq60A"
></script>

<script nonce="QHzY_FUE44g8R4HbPxq60A">
;(function () {
function signalGooglefcPresent() {
if (!window.frames['googlefcPresent']) {
if (document.body) {
const iframe = document.createElement('iframe')
iframe.style = 'width: 0; height: 0; border: none; z-index: -1000; left: -1000px; top: -1000px;'
iframe.style.display = 'none'
iframe.name = 'googlefcPresent'
document.body.appendChild(iframe)
} else {
setTimeout(signalGooglefcPresent, 0)
}
}
}
signalGooglefcPresent()
})()
</script>
<!-- End Google Adsense -->

<!-- MS Clarity -->
<script type="text/javascript">
(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "kdxoqws6v8");
;(function (c, l, a, r, i, t, y) {
c[a] =
c[a] ||
function () {
;(c[a].q = c[a].q || []).push(arguments)
}
t = l.createElement(r)
t.async = 1
t.src = 'https://www.clarity.ms/tag/' + i
y = l.getElementsByTagName(r)[0]
y.parentNode.insertBefore(t, y)
})(window, document, 'clarity', 'script', 'kdxoqws6v8')
</script>
<!-- End MS Clarity -->
</head>
<body {{ BODY_ATTRS }}>
{{ APP }}

<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KKQTHLK"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<noscript
><iframe
src="https://www.googletagmanager.com/ns.html?id=GTM-KKQTHLK"
height="0"
width="0"
style="display: none; visibility: hidden"
></iframe
></noscript>
<!-- End Google Tag Manager (noscript) -->
</body>
</html>
2 changes: 1 addition & 1 deletion assets/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ body {
.vi {
/* Vietnamese Fonts */
font-family: 'Be Vietnam Pro' !important;
}
}
4 changes: 2 additions & 2 deletions components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
{{ $t('navbar.support') }}
</a>
<!-- <a href="https://nguard.xyz/upgrade" class="nav_item"> -->
<!-- NGuard 프리미어 플랜 -->
<!-- {{ $t('navbar.upgrade') }} -->
<!-- NGuard 프리미어 플랜 -->
<!-- {{ $t('navbar.upgrade') }} -->
<!-- </a> -->
</div>
</transition>
Expand Down
14 changes: 7 additions & 7 deletions components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@
</NuxtLink>
<hr class="mx-2.5 my-2 border-zinc-700" />
<!-- <a href="https://nguard.xyz/upgrade" target="_blank" class="nav_item nav_item_premium"> -->
<!-- <img src="https://cdn.nguard.dev/assets/dashboard/images/gold_logo.webp" alt="NGuard logo" /> -->
<!-- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 0c-2.995 2.995-7.486 4-11 4 0 8.583 5.068 16.097 11 20 5.932-3.903 11-11.417 11-20-3.514 0-8.005-1.005-11-4z"/></svg> -->
<!-- NGuard 유료 플랜 -->
<!-- {{ $t('navbar.upgrade') }} -->
<!-- navbar 소스 재활용 -->
<!-- <img src="https://cdn.nguard.dev/assets/dashboard/images/gold_logo.webp" alt="NGuard logo" /> -->
<!-- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 0c-2.995 2.995-7.486 4-11 4 0 8.583 5.068 16.097 11 20 5.932-3.903 11-11.417 11-20-3.514 0-8.005-1.005-11-4z"/></svg> -->
<!-- NGuard 유료 플랜 -->
<!-- {{ $t('navbar.upgrade') }} -->
<!-- navbar 소스 재활용 -->
<!-- </a> -->
</nav>
</transition>
Expand Down Expand Up @@ -202,7 +202,7 @@ export default {
this.server = (
await this.$axios.$get('/dashboard/servers?now=' + this.$route.query.id, {
headers: {
Authorization: "Bearer " + localStorage.getItem('access_token'),
Authorization: 'Bearer ' + localStorage.getItem('access_token'),
},
})
).data
Expand Down Expand Up @@ -444,7 +444,7 @@ export default {
display: flex;
flex-shrink: 0;
align-items: center;
width: 100%;
padding: 0.7rem;
cursor: pointer;
Expand Down
2 changes: 1 addition & 1 deletion pages/dashboard/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ export default {
this.summary = (
await this.$axios.$get('/dashboard/summary?id=' + this.$route.query.id, {
headers: {
Authorization: "Bearer " + localStorage.getItem('access_token'),
Authorization: 'Bearer ' + localStorage.getItem('access_token'),
},
})
).data
Expand Down
4 changes: 2 additions & 2 deletions pages/dashboard/members.vue
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export default {
const memberList = (
await this.$axios.$get('/dashboard/members?id=' + this.$route.query.id, {
headers: {
Authorization: "Bearer " + localStorage.getItem('access_token'),
Authorization: 'Bearer ' + localStorage.getItem('access_token'),
},
})
).data
Expand Down Expand Up @@ -238,7 +238,7 @@ export default {
},
{
headers: {
Authorization: "Bearer " + localStorage.getItem('access_token'),
Authorization: 'Bearer ' + localStorage.getItem('access_token'),
},
},
)
Expand Down
4 changes: 2 additions & 2 deletions pages/dashboard/verify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ export default {
await this.$axios.$post(
'/dashboard/verify?id=' + this.$route.query.id,
{
status: this.switch_.confirm,
role: this.input.role,
status: this.switch_.confirm,
role: this.input.role,
},
{
headers: {
Expand Down
2 changes: 1 addition & 1 deletion pages/servers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export default {
const serverList = (
await this.$axios.$get('/dashboard/servers', {
headers: {
Authorization: "Bearer " + localStorage.getItem('access_token'),
Authorization: 'Bearer ' + localStorage.getItem('access_token'),
},
})
).data
Expand Down

0 comments on commit 0648d12

Please sign in to comment.