-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
1,023 additions
and
828 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"singleQuote": true, | ||
"semi": true, | ||
"tabWidth": 4, | ||
"printWidth": 100, | ||
"singleAttributePerLine": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
module.exports = { | ||
"presets": [ | ||
"@vue/cli-plugin-babel/preset" | ||
] | ||
} | ||
presets: ['@vue/cli-plugin-babel/preset'], | ||
}; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,28 @@ | ||
export function utcDateStrToVisualLocalDateStr(utcDateStr) | ||
{ | ||
export function utcDateStrToVisualLocalDateStr(utcDateStr) { | ||
return dateToVisualDateStr(utcDateStrToLocalDate(utcDateStr)); | ||
} | ||
|
||
export function utcDateStrToLocalDate(utcDateStr) | ||
{ | ||
export function utcDateStrToLocalDate(utcDateStr) { | ||
const date = dateStrToDate(utcDateStr); | ||
date.setMinutes(date.getMinutes() - date.getTimezoneOffset()); | ||
return date; | ||
} | ||
|
||
// YYYYMMDDHHMMSS | ||
export function dateStrToDate(dateStr) | ||
{ | ||
export function dateStrToDate(dateStr) { | ||
return new Date( | ||
parseInt(dateStr.substring(0, 4)), | ||
parseInt(dateStr.substring(4, 6)) - 1, | ||
parseInt(dateStr.substring(6, 8)), | ||
parseInt(dateStr.substring(8, 10)), | ||
parseInt(dateStr.substring(10, 12)), | ||
parseInt(dateStr.substring(12, 14))); | ||
parseInt(dateStr.substring(12, 14)) | ||
); | ||
} | ||
|
||
export function dateToVisualDateStr(date) | ||
{ | ||
export function dateToVisualDateStr(date) { | ||
return ` | ||
${date.getFullYear()}/${date.getMonth() + 1}/${date.getDate()} | ||
${date.getHours()}:${date.getMinutes()}:${date.getSeconds()} | ||
` | ||
`; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
export function confirm(that, message) { | ||
return that.$bvModal.msgBoxConfirm(message, { | ||
hideHeader: true, | ||
okTitle: '확인', | ||
cancelTitle: '취소', | ||
noFade: false, | ||
size: 'sm', | ||
buttonSize: 'sm', | ||
okVariant: 'warning', | ||
cancelVariant: 'secondary', | ||
headerClass: 'p-2 border-bottom-0', | ||
footerClass: 'p-2 border-top-0', | ||
}); | ||
} | ||
|
||
export function ok(that, message) { | ||
return that.$bvModal.msgBoxOk(message, { | ||
hideHeader: true, | ||
okTitle: '확인', | ||
noFade: false, | ||
size: 'sm', | ||
buttonSize: 'sm', | ||
okVariant: 'success', | ||
headerClass: 'p-2 border-bottom-0', | ||
footerClass: 'p-2 border-top-0', | ||
}); | ||
} | ||
export function confirm(that, message) { | ||
return that.$bvModal.msgBoxConfirm(message, { | ||
hideHeader: true, | ||
okTitle: '확인', | ||
cancelTitle: '취소', | ||
noFade: false, | ||
size: 'sm', | ||
buttonSize: 'sm', | ||
okVariant: 'warning', | ||
cancelVariant: 'secondary', | ||
headerClass: 'p-2 border-bottom-0', | ||
footerClass: 'p-2 border-top-0', | ||
}); | ||
} | ||
|
||
export function ok(that, message) { | ||
return that.$bvModal.msgBoxOk(message, { | ||
hideHeader: true, | ||
okTitle: '확인', | ||
noFade: false, | ||
size: 'sm', | ||
buttonSize: 'sm', | ||
okVariant: 'success', | ||
headerClass: 'p-2 border-bottom-0', | ||
footerClass: 'p-2 border-top-0', | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
import Vue from 'vue'; | ||
|
||
// 0. 편의를 위해 아이콘은 알파벳 순서대로 추가하자. | ||
// 1. 설치했던 fontawesome-svg-core 와 vue-fontawesome | ||
import { library } from '@fortawesome/fontawesome-svg-core'; | ||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'; | ||
|
||
// 2. 설치했던 아이콘 파일에서 원하는 아이콘 불러오기 | ||
import { | ||
faAngleLeft, | ||
faAngleRight, | ||
faLocationDot, | ||
faTimes, | ||
faPlus | ||
} from "@fortawesome/free-solid-svg-icons"; | ||
|
||
// 3. 불러온 아이콘을 라이브러리에 담기 | ||
library.add(faAngleLeft); | ||
library.add(faAngleRight); | ||
library.add(faLocationDot); | ||
library.add(faTimes); | ||
library.add(faPlus); | ||
|
||
// 4. fontawesome 아이콘을 Vue 템플릿에서 사용할 수 있도록 등록 | ||
Vue.component("FontAwesomeIcon", FontAwesomeIcon); | ||
import Vue from 'vue'; | ||
|
||
// 0. 편의를 위해 아이콘은 알파벳 순서대로 추가하자. | ||
// 1. 설치했던 fontawesome-svg-core 와 vue-fontawesome | ||
import { library } from '@fortawesome/fontawesome-svg-core'; | ||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'; | ||
|
||
// 2. 설치했던 아이콘 파일에서 원하는 아이콘 불러오기 | ||
import { | ||
faAngleLeft, | ||
faAngleRight, | ||
faLocationDot, | ||
faTimes, | ||
faPlus, | ||
} from '@fortawesome/free-solid-svg-icons'; | ||
|
||
// 3. 불러온 아이콘을 라이브러리에 담기 | ||
library.add(faAngleLeft); | ||
library.add(faAngleRight); | ||
library.add(faLocationDot); | ||
library.add(faTimes); | ||
library.add(faPlus); | ||
|
||
// 4. fontawesome 아이콘을 Vue 템플릿에서 사용할 수 있도록 등록 | ||
Vue.component('FontAwesomeIcon', FontAwesomeIcon); |
Oops, something went wrong.