Skip to content

Instantly share code, notes, and snippets.

@abe-lib
abe-lib / index.js
Last active March 17, 2019 06:37
LGTMaker
new Vue({
el: "#app",
data: function () {
return {
dragging: false,
text: "LGTM",
fontfamily: "Arial",
fonts : ['American Typewriter','Arial','Arial Black','Cambria','Chalkboard','Copperplate','Futura','Georgia','Gill Sans','Helvetica','Impact','PT Mono','PT Sans','Tahoma','Times New Roman','Verdana'],
size: 100,
color:"#000000",
@abe-lib
abe-lib / index.html
Created March 15, 2019 01:50
LGTMaker
<div id="app">
<header class="header">
<h1>LGTMaker</h1>
</header>
<div class="container">
<div class="canvas">
<svg viewbox="0 0 600 400" width="600" height="400" id="svg" xmlns="http://www.w3.org/2000/svg" xmlns:vectos="http://www.vectos.org/xlink" xmlns:xlink="http://www.w3.org/1999/xlink">
<text :x=d.x :y=d.y dy="0" dx="0"
:font-family=fontfamily
:stroke-width=borderthin
@abe-lib
abe-lib / index.js
Last active November 21, 2018 00:52
簡易メモ帳store
import Vuex from 'vuex'
import firebase from '@/plugins/firebase'
const store = () => {
return new Vuex.Store({
state: {
memos:[],
user:[]
},
mutations: {
@abe-lib
abe-lib / content.vue
Last active November 15, 2018 04:31
簡易メモ帳components
<template>
<div style="display: flex;flex-direction: column; width: 100%;">
<el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect">
<el-menu-item v-for="(item) in memos"
:key="item.key"
:index="item.key">
<el-popover
class="popOver"
placement="top-start"
width="240"
@abe-lib
abe-lib / index.vue
Last active November 15, 2018 02:59
簡易メモ帳page
<template>
<el-container class="is-vertical" style="height: 100vh;">
<Header
@viewChange="viewChange"
:viewMode="viewMode"
@formVisible="dialogFormChange"
:dialogFormVisible="dialogFormVisible"
:isLogin="isLogin" />
<el-main >
<Content
@abe-lib
abe-lib / nuxt.config.js
Last active November 15, 2018 00:55
簡易メモ帳設定ファイル
const pkg = require('./package')
module.exports = {
mode: 'spa',
head: {
title: "TEMPO MEMO",
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: pkg.description }