All Projects → Gonzih → Glue

Gonzih / Glue

Licence: mit
Configure Vue.js components using ClojureScript, manage global state using Atoms.

Programming Languages

clojure
4091 projects
clojurescript
191 projects

Projects that are alternatives of or similar to Glue

Vue Fullpage
a single page scroll plugin for [email protected] https://river-lee.github.io/vue-fullpage/examples/
Stars: ✭ 148 (-9.76%)
Mutual labels:  vuejs2
Vs
Vue Visualisation Package using d3.js and leaflet.
Stars: ✭ 157 (-4.27%)
Mutual labels:  vuejs2
Vue Notifyjs
Minimalist 1kb Notification component
Stars: ✭ 160 (-2.44%)
Mutual labels:  vuejs2
Multiple Select
A jQuery plugin to select multiple elements with checkboxes :)
Stars: ✭ 1,847 (+1026.22%)
Mutual labels:  vuejs2
Vue Ba
vue 百度统计埋点插件
Stars: ✭ 155 (-5.49%)
Mutual labels:  vuejs2
Vue Codemirror
⌨️ @codemirror component for @vuejs
Stars: ✭ 2,115 (+1189.63%)
Mutual labels:  vuejs2
Vue Webgulp
Vue.js + Webpack + Gulp + Vue Loader
Stars: ✭ 146 (-10.98%)
Mutual labels:  vuejs2
Vue Supply
Create resources that can automatically be activated and deactivated when used (like subscriptions)
Stars: ✭ 162 (-1.22%)
Mutual labels:  vuejs2
Vue Ui For Pc
基于Vue2.x的一套PC端UI组件,包括了Carousel 跑马灯、Cascader 级联、Checkbox 多选框、Collapse 折叠面板、DatePicker 日期选择、Dialog 对话框、Form 表单、Input 输入框、InputNumber 数字输入框、Layer 弹窗层、Loading 加载、Menu 菜单、Page 分页、Progress 进度条、Radio 单选框、SelectDropDown 仿select、Switch 开关、Table 表格、Tabs 标签页、Textarea 文本框、Tooltip 文字提示、BackTop 返回顶部、steps 步骤条、Transfer 穿梭框、Tree 树形、Upload 文件上传、Lazy 图片懒加载、Loading 加载、Pagination 分页等等
Stars: ✭ 156 (-4.88%)
Mutual labels:  vuejs2
Vue Info Card
Simple and beautiful card component with an elegant spark line, for VueJS.
Stars: ✭ 159 (-3.05%)
Mutual labels:  vuejs2
Gpk admin
✨ GeekPark Content Management System
Stars: ✭ 150 (-8.54%)
Mutual labels:  vuejs2
V Tooltip
💬 Easy tooltips, popovers, dropdown for Vue
Stars: ✭ 2,109 (+1185.98%)
Mutual labels:  vuejs2
Vuetify Todo Pwa
✔️ A simple Todo PWA built with Vue CLI 3 + Vuex + Vuetify.
Stars: ✭ 160 (-2.44%)
Mutual labels:  vuejs2
Vue Full Loading
Full overlay loading with spinner for Vue
Stars: ✭ 148 (-9.76%)
Mutual labels:  vuejs2
Github Ranking
🔍GitHub不同语言热门项目排行,Vue.js做页面展示
Stars: ✭ 160 (-2.44%)
Mutual labels:  vuejs2
Beep
BEEP Account Security Scanner - Detect if your credentials have been compromised (Vue + Ionic)
Stars: ✭ 148 (-9.76%)
Mutual labels:  vuejs2
Pendulum
A simple markdown editor for static files (Hugo, Nexo, Jekyll, MkDocs, ...)
Stars: ✭ 157 (-4.27%)
Mutual labels:  vuejs2
Vue Kotlin
Libraries and tools supporting the use of Vue.js in Kotlin.
Stars: ✭ 162 (-1.22%)
Mutual labels:  vuejs2
Vue Materialize Datatable
A fancy Materialize CSS datatable VueJS component.
Stars: ✭ 162 (-1.22%)
Mutual labels:  vuejs2
Vue Chimera
VueJS reactive RESTful API
Stars: ✭ 160 (-2.44%)
Mutual labels:  vuejs2

glue

Downloads Dependencies Status Build License Clojars Project

Trying to glue cljs and vue together.

Overview

So far main idea is just to configure components via clojurescript.

Demo

Check out the glue cljs demo app for the usage example.

Example

    <template id="sample-template">
        <div>
            <span>{{ label }} | </span>
            <span>{{ counterLabel }}</span>
            <button @click="clickMe">Click</button>
            <hr/>
        </div>
    </template>

    <div id="app">
        <sample-template label="sample button"></sample-template>
    </div>
(ns app.core
  (:refer-clojure :exclude [atom])
  (:require [glue.api :as g :refer [atom]]))

(g/defcomponent
  :sample-component
  {:template "#sample-template"
   :props [:label]
   :state (fn [] {:counter (atom 0)})
   :computed {:counter-label (fn [this state]
                               (str @(:counter state) " clicks"))}
   :methods {:click-me (fn [this state _]
                         (println "Click happened on" (g/prop this :label))
                         (swap! (:counter state) inc))}})

(g/vue {:el "#app"})

License

Copyright © 2017-2019 Max Gonzih gonzih @ gmail.com

Distributed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].