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
(async function(store){ | |
const res = await teamsApi.getTeams() | |
store.setState({teams: res}) | |
console.log(store.state) | |
// TODO 여기 왜 안 되는지 물어보기 | |
// window.document.addEventListener('DOMContentLoaded', () => { | |
// console.log(store.state) | |
// const teamBoards = new TeamBoards({ elements: '#team-boards', teams: store.state.teams }) | |
// }) |
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
// 상품 데이터 | |
const data = [ | |
{ name: '초콜렛', price: 2000 }, | |
{ name: '아이스크림', price: 1000 }, | |
{ name: '컵라면', price: 1600 }, | |
{ name: '볼펜', price: 2500 }, | |
{ name: '아메리카노', price: 4000 }, | |
{ name: '과자', price: 3000 }, | |
{ name: '탄산수', price: 1200 }, | |
{ name: '떡볶이', price: 3500 }, |
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
module.exports = { | |
root: true, | |
env: { | |
node: true | |
}, | |
extends: ['plugin:vue/essential', 'eslint:recommended', '@vue/prettier'], | |
parserOptions: { | |
parser: 'babel-eslint' | |
}, |
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
async function clickHandler() { | |
if (content === 'empty' || content === 'addDone') modalOff(); | |
else if (nickname === '') switchContent('empty'); | |
else if (content === 'add') { | |
switchContent('addDone'); | |
await sendFriendRequestFunc({ | |
variables: { id: testId, nickname }, | |
}); | |
} else if (content === 'delete') { | |
switchContent('deleteDone'); |
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
<template> | |
<div class="MyBookMarks"> | |
<MainWrapper> | |
<div class="container"> | |
<div class="row margin-top-40"> | |
<SideBarHeading | |
:title="title" | |
/> | |
</div> | |
<div class="row margin-top-35"> |
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
<template> | |
<div class="MyBookMarks"> | |
<MainWrapper> | |
<div class="container"> | |
<div class="row margin-top-40"> | |
<SideBarHeading | |
:title="title" | |
/> | |
</div> | |
<div class="row margin-top-35"> |
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
<template> | |
<div class="BookMarkList"> | |
<GigListByChunk | |
:gigs="chunkList(bookmarks)" | |
:chunk-count="chunkCount" | |
/> | |
</div> | |
</template> | |
<script> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | |
<title>Document</title> | |
<style> | |
textarea::-webkit-input-placeholder { | |
color: #0bf; |
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
var Person = class { | |
constructor(options) { | |
this.name = options.name; | |
[...Object.keys(options.methods)].forEach(key => { | |
this[key] = options.methods[key] | |
}) | |
} | |
} |
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
export default { | |
namespaced: true, | |
state: { | |
dateSet: [], // 캘린더 날짜 비교를 위한 배열 | |
updatedDateId: null, | |
}, | |
mutations: { | |
updateDateSet(state, data) { | |
state.updatedDateId = data.id; | |
switch (state.dateSet.length) { |
NewerOlder