npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue_sticky_note

v1.0.2

Published

make your memo in web site

Downloads

6

Readme

Vue를 이용한 메모 플러그인 (Used Vue.js - Memo Plugin)

vue를 이용하여 메모를 할 수 있는 플러그인 입니다.You can making sticky memo using vue.js plugin.

사용법 (How to use it)

dist 안에 있는 sticky.js를 가져와서 Vue 플러그인에 등록합니다. First, you import sticky.js in dist. And Then connect at Vue mother instence. 메모가 저장되는 곳은 LocalStorage 이므로 사용하시려면 서버가 돌아가고 있어야 합니다. On save data storage is LocalStorage. So, you must using this on your running server. 스타일시트를 기본적으로 붙이시려면 default.scss로 작성한 내용이 있으므로, 그걸 바탕으로 활용하시면 됩니다. If you want using stylesheet. You can refering 'default.scss'.

내부 디렉티브 (Directive in this plugin)

v-add-memo:add

클릭시 메모를 추가해 주는 버튼입니다. Click button, add new memo in document.

v-add-memo:remove

클릭시 메모를 삭제해 주는 버튼입니다. Click button, remove memo in document.

v-add-memo:modify

클릭시 메모를 수정해 주는 버튼입니다. Click button, modify memo in document.

v-add-memo:title

메모의 제목을 편집하는 input This input tag linked in your memo title.

v-add-memo:content

메모의 컨텐츠를 편집하는 textarea This textarea tag linked in your memo content.

v-add-memo:setindex

현재 편집할 메모의 id를 지정해주는 셀렉트박스 혹은 input This Element is Pointing your editable memo. (input or select)

example

import Vue from "vue";
import StickyPlugin from "vue_sticky_note";

Vue.use(StickyPlugin.sticky, {
  name: "Sample" // this is your LocalStorage item name. (여기에다가 LocalStorage 키 이름 작성해주세요)
});

window.app = new Vue({
  el: "#app",
  // main.vue 에서 만든 내용을 render 함수에서 덧씌워서 쓰겠단 의미
  render: h => h(App),
  StickyPlugin: StickyPlugin.sticky
});
<div id="app">
    <input type="text" v-add-memo:title />
    <textarea v-add-memo:content></textarea>
    <select v-add-memo:setindex
      >notthing</select
    >
    <button v-add-memo:add>추가</button> // add
    <button v-add-memo:remove>삭제</button> // remove
    <button v-add-memo:modify>수정</button> // modify
    <ul>
      <li
        v-for="(item, index) in memos"
        v-bind:key="item.id"
        v-bind:class="[index == activeMemo[0] ? 'active' : '']"
      >
        <strong>{{ item.title }}</strong>
        <span>{{ item.date | date }}</span>
        <div>{{ item.content }}</div>
      </li>
    </ul>