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
import VueQuillEditor from 'vue-quill-editor/dist/ssr' | |
const BlockEmbed = VueQuillEditor.Quill.import('blots/block/embed') | |
class LinkPreviewBlot extends BlockEmbed { | |
/** | |
* valueメソッドが返す値が後述のcreateに入ります | |
* @param {Element} domNode | |
*/ | |
static value (domNode) { | |
const link = domNode.children[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
export function retry<T>(func: () => Promise<T>, retryCount: number) { | |
let promise = func(); | |
for (let i = 1; i <= retryCount; ++i) { | |
promise = promise.catch(func); | |
} | |
return promise; | |
} |
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
import firebase, { firestore } from 'firebase' | |
import { | |
computed, | |
onUnmounted, | |
reactive, | |
Ref, | |
toRefs, | |
watch, | |
} from '@vue/composition-api' | |
import QuerySnapshot = firebase.firestore.QuerySnapshot; |
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
%使うパッケージ | |
\usepackage{comment} | |
\usepackage{ifthen} | |
\usepackage{okumacro} | |
\usepackage{here} | |
%円マークをタイプライタ体で表示 | |
\newcommand{\enm}{ | |
\ts{\yen } | |
} | |
%これからは模擬テスト用のマクロ |