Skip to content

Commit

Permalink
πŸš€ Release/1.2.2 (#182)
Browse files Browse the repository at this point in the history
πŸš€ Release/1.2.2
  • Loading branch information
yjkwon07 authored Dec 14, 2021
2 parents 7c2e850 + 6796e48 commit d32941f
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "urlink-chrome-extension",
"version": "1.2.1",
"version": "1.2.2",
"private": true,
"dependencies": {
"@craco/craco": "^6.1.1",
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "urLink",
"version": "1.2.1",
"version": "1.2.2",
"manifest_version": 2,
"description": "λΆλ§ˆν¬λ³΄λ‹€ μ†μ‰½κ²Œ μ›Ήμ‚¬μ΄νŠΈλ₯Ό λ³΄κ΄€ν•˜κ³  μ •λ¦¬ν•˜μ„Έμš”.",
"permissions": ["<all_urls>", "identity", "history", "notifications"],
Expand Down
4 changes: 2 additions & 2 deletions public/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<span>링크 μ €μž₯ν•˜κΈ°</span>
</div>

<div class="urlLink-open-btn">
<a class="urlLink-open-btn-text" href="%PUBLIC_URL%/index.html" target="blank">μœ μ–΄λ§ν¬ μ—΄κΈ°</a>
<div class="urLink-open-btn">
<a id="urLinkOpen" class="urLink-open-btn-text" href="%PUBLIC_URL%/index.html" target="blank">μœ μ–΄λ§ν¬ μ—΄κΈ°</a>
</div>

<div class="center">
Expand Down
12 changes: 6 additions & 6 deletions src/assets/css/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@ body {
color: #fff;
}

/* urlLink open */
.urlLink-open-btn {
/* urLink open */
.urLink-open-btn {
align-items: center;
display: flex;
justify-content: center;
Expand All @@ -336,22 +336,22 @@ body {
background-color: var(--powder-blue);
}

.urlLink-open-btn .urlLink-open-btn-text {
.urLink-open-btn .urLink-open-btn-text {
padding: 14px;
width: 100%;
height: 20px;
color: var(--maincolor);
}

a.urlLink-open-btn-text:link {
a.urLink-open-btn-text:link {
text-decoration: none;
}

a.urlLink-open-btn-text:visited {
a.urLink-open-btn-text:visited {
text-decoration: none;
}

a.urlLink-open-btn-text:hover {
a.urLink-open-btn-text:hover {
text-decoration: none;
}

Expand Down
18 changes: 18 additions & 0 deletions src/popup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ window.addEventListener('DOMContentLoaded', () => {
EventSetting.categoryCreateCancelEventSetting()

EventSetting.linkSaveEventSetting()

EventSetting.urLinkOpenEventSetting()
} else {
document.getElementById('categoryList').innerHTML = Template.loginRequired()
}
Expand Down Expand Up @@ -58,6 +60,7 @@ const EventListener = {
currentCategoryElement.classList.add('check')
if (!linkSaveElement.classList.contains('active')) linkSaveElement.classList.add('active')
linkSaveElement.dataset.categoryId = data.id
window.ga('send', 'event', 'νŒμ—…', 'νŒμ—…_μΉ΄ν…Œκ³ λ¦¬ 선택')
},

categoryCreateButtonEventListener(e) {
Expand All @@ -68,6 +71,7 @@ const EventListener = {
categoryCreateInputWrapperElement.classList.remove('hide')
const enterCategoryNameInputElement = document.getElementById('enterCategoryNameInput')
enterCategoryNameInputElement.focus()
window.ga('send', 'event', 'νŒμ—…', 'νŒμ—…_μΉ΄ν…Œκ³ λ¦¬ 생성 ν…μŠ€νŠΈ μž…λ ₯창으둜 ν† κΈ€')
},

categoryCreateCancelEventListener(e) {
Expand All @@ -78,6 +82,7 @@ const EventListener = {
categoryCreateInputWrapperElement.classList.add('hide')
const enterCategoryNameInputElement = document.getElementById('enterCategoryNameInput')
enterCategoryNameInputElement.value = ''
window.ga('send', 'event', 'νŒμ—…', 'νŒμ—…_μΉ΄ν…Œκ³ λ¦¬ 생성 μ·¨μ†Œ')
},

async categoryCreateOkEventListener(e) {
Expand All @@ -96,6 +101,7 @@ const EventListener = {
await APILoad.categoryListAppend()
popupMessage({ message: 'μΉ΄ν…Œκ³ λ¦¬κ°€ 생성 λ˜μ—ˆμŠ΅λ‹ˆλ‹€.' })
enterCategoryNameInputElement.value = ''
window.ga('send', 'event', 'νŒμ—…', 'νŒμ—…_μΉ΄ν…Œκ³ λ¦¬ 생성 μ™„λ£Œ')
}
} catch (error) {
popupMessage({ message: error.message })
Expand All @@ -120,6 +126,7 @@ const EventListener = {
await APILoad.categoryListAppend()
popupMessage({ message: 'μΉ΄ν…Œκ³ λ¦¬κ°€ 생성 λ˜μ—ˆμŠ΅λ‹ˆλ‹€.' })
enterCategoryNameInputElement.value = ''
window.ga('send', 'event', 'νŒμ—…', 'νŒμ—…_μΉ΄ν…Œκ³ λ¦¬ 생성 μ™„λ£Œ')
}
}
} catch (error) {
Expand All @@ -141,6 +148,7 @@ const EventListener = {
if (data?.length) {
categoryCardElement.classList.add('upload-finish')
popupMessage({ message: '링크가 이동 λ˜μ—ˆμŠ΅λ‹ˆλ‹€.' })
window.ga('send', 'event', 'νŒμ—…', 'νŒμ—…_링크 μ €μž₯')
}
await APILoad.categoryListAppend()
} catch (error) {
Expand All @@ -152,6 +160,10 @@ const EventListener = {
}
}
},

urLinkOpenEventListener() {
window.ga('send', 'event', 'νŒμ—…', 'νŒμ—…_μœ μ–΄λ§ν¬ μ—΄κΈ°')
},
}

const EventSetting = {
Expand Down Expand Up @@ -190,6 +202,12 @@ const EventSetting = {
linkSaveElement.removeEventListener('click', EventListener.linkSaveEventListener)
linkSaveElement.addEventListener('click', EventListener.linkSaveEventListener, false)
},

urLinkOpenEventSetting() {
const urLinkOpenElement = document.getElementById('urLinkOpen')
urLinkOpenElement.removeEventListener('click', EventListener.urLinkOpenEventListener)
urLinkOpenElement.addEventListener('click', EventListener.urLinkOpenEventListener, false)
},
}

const Template = {
Expand Down

0 comments on commit d32941f

Please sign in to comment.