This file contains hidden or 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
| // VirtualFileInput | |
| type FileCallbackType = ( | |
| event: { | |
| file: File | |
| thumbnail: string | ArrayBuffer | null | |
| getFormData: (name: string) => FormData | |
| } | void | |
| ) => void |
This file contains hidden or 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
| /** | |
| * @description | |
| * | |
| * ๋ธ๋ผ์ฐ์ ์์ ํน์ ์ค๋ธ์ ํธ ์์ ํธ๋ฆฌํํ๋ก | |
| * ์กด์ฌํ๋ ๊ฐ์ฒด๋ค๊ณผ ํจ์์ ์ ๊ทผํด์ key ๋ฅผ ์ฐพ์๋ ๋๋ค. | |
| * | |
| * In the browser, access objects and functions that exist | |
| * in tree form within a specific object to find the key. | |
| * | |
| * @param targetObject Object |
This file contains hidden or 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
| { | |
| "์์ธํน๋ณ์/๊ฐ๋จ๊ตฌ": { | |
| "lat": "37.4951", | |
| "long": "127.06278" | |
| }, | |
| "์์ธํน๋ณ์/๊ฐ๋๊ตฌ": { | |
| "lat": "37.55274", | |
| "long": "127.14546" | |
| }, | |
| "์์ธํน๋ณ์/๊ฐ๋ถ๊ตฌ": { |
This file contains hidden or 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
| import matcher from 'matcher' | |
| import CORS from 'cors' | |
| let corsOptions = { | |
| origin: (origin, callback) => { | |
| let allow = false | |
| for (let allowAccessDomain of settingsData.allowAccessDomains) { // [ "*.mydomain.com"] | |
| if (matcher.isMatch(origin, allowAccessDomain)) { | |
| allow = true | |
| break |
This file contains hidden or 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
| import moment from 'moment' | |
| import 'moment-duration-format' | |
| let currentMoment = moment() | |
| let currentMinuteNum = Number(currentMoment.format('mm')) | |
| let nextMin = 1 | |
| let _nextContractTime = moment(currentMoment) | |
| .add(nextMin, 'minute') |
This file contains hidden or 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
| // @ts-ignore | |
| import SummernoteTab from './SummernoteTab.svelte' | |
| // * ์์์ฉ ๋๋ฏธ ๋ณ์๋ค | |
| declare var toolbarElement: any | |
| declare var editorElement: any | |
| declare var optionsStore: any | |
| declare var activatedOptionStore: any | |
| declare var tabInstance: any |
This file contains hidden or 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
| import axios from 'axios' | |
| import { JSDOM } from 'jsdom' | |
| export const crawling = async (url: string) => { | |
| try { | |
| const response = await axios.get(url) | |
| const { window } = new JSDOM(response.data) | |
| // * ํฌ๋กค๋ง ์ฝ๋ ์์ | |
| const iframePath = window.document.querySelector('#contentarea_left > iframe').src |
This file contains hidden or 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
| <script context="module"> | |
| const importScript = src => { | |
| return new Promise((resolve, reject) => { | |
| let s = document.createElement('script') | |
| s.addEventListener('load', resolve) | |
| s.type = 'text/javascript' | |
| s.charset = 'utf-8' | |
| s.src = src | |
| let x = document.getElementsByTagName('script')[0] | |
| if (x.parentNode) x.parentNode.insertBefore(s, x) |
This file contains hidden or 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
| import ngeohash from 'ngeohash' | |
| import sortByDistance from 'sort-by-distance' | |
| import { readFileSync } from 'fs' | |
| export const geoQuery = async ({ | |
| x, | |
| y, | |
| rangeMeter = 70000, // ๋ฒ์ (๋ฏธํฐ)) | |
| limit = 50, // ์ฟผ๋ฆฌ ๊ฒฐ๊ณผ๋ฌผ ๊ฐฏ์ | |
| memGeo, |
This file contains hidden or 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
| let clientId = '' | |
| let clientSecret = '' | |
| let token = '' | |
| let randomId = '' // ํด๋ผ์ด์ธํธ์๊ฒ ์ ๋ฌ๋ ๊ฐ | |
| const naverLogin = async () => { | |
| let accessTokenRequestURL = `https://nid.naver.com/oauth2.0/token?client_id=${clientId}&client_secret=${clientSecret}&grant_type=authorization_code&state=${randomId}&code=${token}` | |
| let auctualTokenRequestResponse = await axios.get( |