satis 1.0.75 → 2.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +47 -25
- data/app/assets/config/satis_manifest.js +8 -1
- data/app/assets/fontawesome/brands.js +6 -0
- data/app/assets/fontawesome/fontawesome.js +6 -0
- data/app/assets/fontawesome/solid.js +6 -0
- data/app/assets/images/satis/flags/1x1/ac.svg +81 -0
- data/app/assets/images/satis/flags/1x1/ad.svg +148 -0
- data/app/assets/images/satis/flags/1x1/ae.svg +6 -0
- data/app/assets/images/satis/flags/1x1/af.svg +81 -0
- data/app/assets/images/satis/flags/1x1/ag.svg +14 -0
- data/app/assets/images/satis/flags/1x1/ai.svg +763 -0
- data/app/assets/images/satis/flags/1x1/al.svg +5 -0
- data/app/assets/images/satis/flags/1x1/am.svg +5 -0
- data/app/assets/images/satis/flags/1x1/ao.svg +13 -0
- data/app/assets/images/satis/flags/1x1/aq.svg +5 -0
- data/app/assets/images/satis/flags/1x1/ar.svg +31 -0
- data/app/assets/images/satis/flags/1x1/as.svg +33 -0
- data/app/assets/images/satis/flags/1x1/at.svg +6 -0
- data/app/assets/images/satis/flags/1x1/au.svg +11 -0
- data/app/assets/images/satis/flags/1x1/aw.svg +186 -0
- data/app/assets/images/satis/flags/1x1/ax.svg +18 -0
- data/app/assets/images/satis/flags/1x1/az.svg +8 -0
- data/app/assets/images/satis/flags/1x1/ba.svg +12 -0
- data/app/assets/images/satis/flags/1x1/bb.svg +6 -0
- data/app/assets/images/satis/flags/1x1/bd.svg +4 -0
- data/app/assets/images/satis/flags/1x1/be.svg +7 -0
- data/app/assets/images/satis/flags/1x1/bf.svg +7 -0
- data/app/assets/images/satis/flags/1x1/bg.svg +7 -0
- data/app/assets/images/satis/flags/1x1/bh.svg +9 -0
- data/app/assets/images/satis/flags/1x1/bi.svg +15 -0
- data/app/assets/images/satis/flags/1x1/bj.svg +14 -0
- data/app/assets/images/satis/flags/1x1/bl.svg +7 -0
- data/app/assets/images/satis/flags/1x1/bm.svg +99 -0
- data/app/assets/images/satis/flags/1x1/bn.svg +36 -0
- data/app/assets/images/satis/flags/1x1/bo.svg +678 -0
- data/app/assets/images/satis/flags/1x1/bq.svg +5 -0
- data/app/assets/images/satis/flags/1x1/br.svg +45 -0
- data/app/assets/images/satis/flags/1x1/bs.svg +13 -0
- data/app/assets/images/satis/flags/1x1/bt.svg +89 -0
- data/app/assets/images/satis/flags/1x1/bv.svg +13 -0
- data/app/assets/images/satis/flags/1x1/bw.svg +7 -0
- data/app/assets/images/satis/flags/1x1/by.svg +22 -0
- data/app/assets/images/satis/flags/1x1/bz.svg +145 -0
- data/app/assets/images/satis/flags/1x1/ca.svg +4 -0
- data/app/assets/images/satis/flags/1x1/cc.svg +19 -0
- data/app/assets/images/satis/flags/1x1/cd.svg +12 -0
- data/app/assets/images/satis/flags/1x1/cf.svg +15 -0
- data/app/assets/images/satis/flags/1x1/cg.svg +12 -0
- data/app/assets/images/satis/flags/1x1/ch.svg +9 -0
- data/app/assets/images/satis/flags/1x1/ci.svg +7 -0
- data/app/assets/images/satis/flags/1x1/ck.svg +11 -0
- data/app/assets/images/satis/flags/1x1/cl.svg +13 -0
- data/app/assets/images/satis/flags/1x1/cm.svg +15 -0
- data/app/assets/images/satis/flags/1x1/cn.svg +11 -0
- data/app/assets/images/satis/flags/1x1/co.svg +7 -0
- data/app/assets/images/satis/flags/1x1/cp.svg +7 -0
- data/app/assets/images/satis/flags/1x1/cr.svg +7 -0
- data/app/assets/images/satis/flags/1x1/cu.svg +13 -0
- data/app/assets/images/satis/flags/1x1/cv.svg +13 -0
- data/app/assets/images/satis/flags/1x1/cw.svg +14 -0
- data/app/assets/images/satis/flags/1x1/cx.svg +15 -0
- data/app/assets/images/satis/flags/1x1/cy.svg +6 -0
- data/app/assets/images/satis/flags/1x1/cz.svg +5 -0
- data/app/assets/images/satis/flags/1x1/de.svg +5 -0
- data/app/assets/images/satis/flags/1x1/dg.svg +140 -0
- data/app/assets/images/satis/flags/1x1/dj.svg +13 -0
- data/app/assets/images/satis/flags/1x1/dk.svg +5 -0
- data/app/assets/images/satis/flags/1x1/dm.svg +152 -0
- data/app/assets/images/satis/flags/1x1/do.svg +6745 -0
- data/app/assets/images/satis/flags/1x1/dz.svg +5 -0
- data/app/assets/images/satis/flags/1x1/ea.svg +547 -0
- data/app/assets/images/satis/flags/1x1/ec.svg +138 -0
- data/app/assets/images/satis/flags/1x1/ee.svg +7 -0
- data/app/assets/images/satis/flags/1x1/eg.svg +38 -0
- data/app/assets/images/satis/flags/1x1/eh.svg +16 -0
- data/app/assets/images/satis/flags/1x1/er.svg +13 -0
- data/app/assets/images/satis/flags/1x1/es-ct.svg +4 -0
- data/app/assets/images/satis/flags/1x1/es-ga.svg +189 -0
- data/app/assets/images/satis/flags/1x1/es.svg +547 -0
- data/app/assets/images/satis/flags/1x1/et.svg +14 -0
- data/app/assets/images/satis/flags/1x1/eu.svg +28 -0
- data/app/assets/images/satis/flags/1x1/fi.svg +5 -0
- data/app/assets/images/satis/flags/1x1/fj.svg +125 -0
- data/app/assets/images/satis/flags/1x1/fk.svg +93 -0
- data/app/assets/images/satis/flags/1x1/fm.svg +11 -0
- data/app/assets/images/satis/flags/1x1/fo.svg +12 -0
- data/app/assets/images/satis/flags/1x1/fr.svg +7 -0
- data/app/assets/images/satis/flags/1x1/ga.svg +7 -0
- data/app/assets/images/satis/flags/1x1/gb-eng.svg +5 -0
- data/app/assets/images/satis/flags/1x1/gb-nir.svg +131 -0
- data/app/assets/images/satis/flags/1x1/gb-sct.svg +4 -0
- data/app/assets/images/satis/flags/1x1/gb-wls.svg +9 -0
- data/app/assets/images/satis/flags/1x1/gb.svg +7 -0
- data/app/assets/images/satis/flags/1x1/gd.svg +27 -0
- data/app/assets/images/satis/flags/1x1/ge.svg +6 -0
- data/app/assets/images/satis/flags/1x1/gf.svg +7 -0
- data/app/assets/images/satis/flags/1x1/gg.svg +9 -0
- data/app/assets/images/satis/flags/1x1/gh.svg +6 -0
- data/app/assets/images/satis/flags/1x1/gi.svg +32 -0
- data/app/assets/images/satis/flags/1x1/gl.svg +4 -0
- data/app/assets/images/satis/flags/1x1/gm.svg +9 -0
- data/app/assets/images/satis/flags/1x1/gn.svg +7 -0
- data/app/assets/images/satis/flags/1x1/gp.svg +7 -0
- data/app/assets/images/satis/flags/1x1/gq.svg +23 -0
- data/app/assets/images/satis/flags/1x1/gr.svg +16 -0
- data/app/assets/images/satis/flags/1x1/gs.svg +245 -0
- data/app/assets/images/satis/flags/1x1/gt.svg +204 -0
- data/app/assets/images/satis/flags/1x1/gu.svg +39 -0
- data/app/assets/images/satis/flags/1x1/gw.svg +15 -0
- data/app/assets/images/satis/flags/1x1/gy.svg +9 -0
- data/app/assets/images/satis/flags/1x1/hk.svg +30 -0
- data/app/assets/images/satis/flags/1x1/hm.svg +11 -0
- data/app/assets/images/satis/flags/1x1/hn.svg +18 -0
- data/app/assets/images/satis/flags/1x1/hr.svg +56 -0
- data/app/assets/images/satis/flags/1x1/ht.svg +116 -0
- data/app/assets/images/satis/flags/1x1/hu.svg +7 -0
- data/app/assets/images/satis/flags/1x1/ic.svg +7 -0
- data/app/assets/images/satis/flags/1x1/id.svg +6 -0
- data/app/assets/images/satis/flags/1x1/ie.svg +7 -0
- data/app/assets/images/satis/flags/1x1/il.svg +14 -0
- data/app/assets/images/satis/flags/1x1/im.svg +36 -0
- data/app/assets/images/satis/flags/1x1/in.svg +25 -0
- data/app/assets/images/satis/flags/1x1/io.svg +140 -0
- data/app/assets/images/satis/flags/1x1/iq.svg +10 -0
- data/app/assets/images/satis/flags/1x1/ir.svg +219 -0
- data/app/assets/images/satis/flags/1x1/is.svg +12 -0
- data/app/assets/images/satis/flags/1x1/it.svg +7 -0
- data/app/assets/images/satis/flags/1x1/je.svg +47 -0
- data/app/assets/images/satis/flags/1x1/jm.svg +8 -0
- data/app/assets/images/satis/flags/1x1/jo.svg +16 -0
- data/app/assets/images/satis/flags/1x1/jp.svg +11 -0
- data/app/assets/images/satis/flags/1x1/ke.svg +23 -0
- data/app/assets/images/satis/flags/1x1/kg.svg +15 -0
- data/app/assets/images/satis/flags/1x1/kh.svg +61 -0
- data/app/assets/images/satis/flags/1x1/ki.svg +36 -0
- data/app/assets/images/satis/flags/1x1/km.svg +16 -0
- data/app/assets/images/satis/flags/1x1/kn.svg +14 -0
- data/app/assets/images/satis/flags/1x1/kp.svg +15 -0
- data/app/assets/images/satis/flags/1x1/kr.svg +24 -0
- data/app/assets/images/satis/flags/1x1/kw.svg +13 -0
- data/app/assets/images/satis/flags/1x1/ky.svg +225 -0
- data/app/assets/images/satis/flags/1x1/kz.svg +23 -0
- data/app/assets/images/satis/flags/1x1/la.svg +12 -0
- data/app/assets/images/satis/flags/1x1/lb.svg +15 -0
- data/app/assets/images/satis/flags/1x1/lc.svg +8 -0
- data/app/assets/images/satis/flags/1x1/li.svg +43 -0
- data/app/assets/images/satis/flags/1x1/lk.svg +22 -0
- data/app/assets/images/satis/flags/1x1/lr.svg +14 -0
- data/app/assets/images/satis/flags/1x1/ls.svg +8 -0
- data/app/assets/images/satis/flags/1x1/lt.svg +7 -0
- data/app/assets/images/satis/flags/1x1/lu.svg +5 -0
- data/app/assets/images/satis/flags/1x1/lv.svg +6 -0
- data/app/assets/images/satis/flags/1x1/ly.svg +13 -0
- data/app/assets/images/satis/flags/1x1/ma.svg +4 -0
- data/app/assets/images/satis/flags/1x1/mc.svg +6 -0
- data/app/assets/images/satis/flags/1x1/md.svg +71 -0
- data/app/assets/images/satis/flags/1x1/me.svg +118 -0
- data/app/assets/images/satis/flags/1x1/mf.svg +7 -0
- data/app/assets/images/satis/flags/1x1/mg.svg +7 -0
- data/app/assets/images/satis/flags/1x1/mh.svg +8 -0
- data/app/assets/images/satis/flags/1x1/mk.svg +5 -0
- data/app/assets/images/satis/flags/1x1/ml.svg +7 -0
- data/app/assets/images/satis/flags/1x1/mm.svg +16 -0
- data/app/assets/images/satis/flags/1x1/mn.svg +13 -0
- data/app/assets/images/satis/flags/1x1/mo.svg +9 -0
- data/app/assets/images/satis/flags/1x1/mp.svg +86 -0
- data/app/assets/images/satis/flags/1x1/mq.svg +7 -0
- data/app/assets/images/satis/flags/1x1/mr.svg +6 -0
- data/app/assets/images/satis/flags/1x1/ms.svg +70 -0
- data/app/assets/images/satis/flags/1x1/mt.svg +50 -0
- data/app/assets/images/satis/flags/1x1/mu.svg +8 -0
- data/app/assets/images/satis/flags/1x1/mv.svg +6 -0
- data/app/assets/images/satis/flags/1x1/mw.svg +15 -0
- data/app/assets/images/satis/flags/1x1/mx.svg +378 -0
- data/app/assets/images/satis/flags/1x1/my.svg +11 -0
- data/app/assets/images/satis/flags/1x1/mz.svg +21 -0
- data/app/assets/images/satis/flags/1x1/na.svg +16 -0
- data/app/assets/images/satis/flags/1x1/nc.svg +14 -0
- data/app/assets/images/satis/flags/1x1/ne.svg +6 -0
- data/app/assets/images/satis/flags/1x1/nf.svg +11 -0
- data/app/assets/images/satis/flags/1x1/ng.svg +6 -0
- data/app/assets/images/satis/flags/1x1/ni.svg +129 -0
- data/app/assets/images/satis/flags/1x1/nl.svg +5 -0
- data/app/assets/images/satis/flags/1x1/no.svg +7 -0
- data/app/assets/images/satis/flags/1x1/np.svg +19 -0
- data/app/assets/images/satis/flags/1x1/nr.svg +12 -0
- data/app/assets/images/satis/flags/1x1/nu.svg +26 -0
- data/app/assets/images/satis/flags/1x1/nz.svg +42 -0
- data/app/assets/images/satis/flags/1x1/om.svg +115 -0
- data/app/assets/images/satis/flags/1x1/pa.svg +13 -0
- data/app/assets/images/satis/flags/1x1/pe.svg +244 -0
- data/app/assets/images/satis/flags/1x1/pf.svg +18 -0
- data/app/assets/images/satis/flags/1x1/pg.svg +16 -0
- data/app/assets/images/satis/flags/1x1/ph.svg +9 -0
- data/app/assets/images/satis/flags/1x1/pk.svg +15 -0
- data/app/assets/images/satis/flags/1x1/pl.svg +6 -0
- data/app/assets/images/satis/flags/1x1/pm.svg +7 -0
- data/app/assets/images/satis/flags/1x1/pn.svg +100 -0
- data/app/assets/images/satis/flags/1x1/pr.svg +13 -0
- data/app/assets/images/satis/flags/1x1/ps.svg +15 -0
- data/app/assets/images/satis/flags/1x1/pt.svg +57 -0
- data/app/assets/images/satis/flags/1x1/pw.svg +11 -0
- data/app/assets/images/satis/flags/1x1/py.svg +156 -0
- data/app/assets/images/satis/flags/1x1/qa.svg +4 -0
- data/app/assets/images/satis/flags/1x1/re.svg +7 -0
- data/app/assets/images/satis/flags/1x1/ro.svg +7 -0
- data/app/assets/images/satis/flags/1x1/rs.svg +296 -0
- data/app/assets/images/satis/flags/1x1/ru.svg +7 -0
- data/app/assets/images/satis/flags/1x1/rw.svg +13 -0
- data/app/assets/images/satis/flags/1x1/sa.svg +26 -0
- data/app/assets/images/satis/flags/1x1/sb.svg +13 -0
- data/app/assets/images/satis/flags/1x1/sc.svg +14 -0
- data/app/assets/images/satis/flags/1x1/sd.svg +13 -0
- data/app/assets/images/satis/flags/1x1/se.svg +5 -0
- data/app/assets/images/satis/flags/1x1/sg.svg +13 -0
- data/app/assets/images/satis/flags/1x1/sh.svg +81 -0
- data/app/assets/images/satis/flags/1x1/si.svg +18 -0
- data/app/assets/images/satis/flags/1x1/sj.svg +7 -0
- data/app/assets/images/satis/flags/1x1/sk.svg +9 -0
- data/app/assets/images/satis/flags/1x1/sl.svg +12 -0
- data/app/assets/images/satis/flags/1x1/sm.svg +89 -0
- data/app/assets/images/satis/flags/1x1/sn.svg +8 -0
- data/app/assets/images/satis/flags/1x1/so.svg +11 -0
- data/app/assets/images/satis/flags/1x1/sr.svg +6 -0
- data/app/assets/images/satis/flags/1x1/ss.svg +8 -0
- data/app/assets/images/satis/flags/1x1/st.svg +16 -0
- data/app/assets/images/satis/flags/1x1/sv.svg +594 -0
- data/app/assets/images/satis/flags/1x1/sx.svg +56 -0
- data/app/assets/images/satis/flags/1x1/sy.svg +6 -0
- data/app/assets/images/satis/flags/1x1/sz.svg +45 -0
- data/app/assets/images/satis/flags/1x1/ta.svg +81 -0
- data/app/assets/images/satis/flags/1x1/tc.svg +52 -0
- data/app/assets/images/satis/flags/1x1/td.svg +7 -0
- data/app/assets/images/satis/flags/1x1/tf.svg +15 -0
- data/app/assets/images/satis/flags/1x1/tg.svg +14 -0
- data/app/assets/images/satis/flags/1x1/th.svg +7 -0
- data/app/assets/images/satis/flags/1x1/tj.svg +26 -0
- data/app/assets/images/satis/flags/1x1/tk.svg +5 -0
- data/app/assets/images/satis/flags/1x1/tl.svg +13 -0
- data/app/assets/images/satis/flags/1x1/tm.svg +203 -0
- data/app/assets/images/satis/flags/1x1/tn.svg +13 -0
- data/app/assets/images/satis/flags/1x1/to.svg +10 -0
- data/app/assets/images/satis/flags/1x1/tr.svg +8 -0
- data/app/assets/images/satis/flags/1x1/tt.svg +7 -0
- data/app/assets/images/satis/flags/1x1/tv.svg +16 -0
- data/app/assets/images/satis/flags/1x1/tw.svg +32 -0
- data/app/assets/images/satis/flags/1x1/tz.svg +15 -0
- data/app/assets/images/satis/flags/1x1/ua.svg +6 -0
- data/app/assets/images/satis/flags/1x1/ug.svg +30 -0
- data/app/assets/images/satis/flags/1x1/um.svg +15 -0
- data/app/assets/images/satis/flags/1x1/un.svg +16 -0
- data/app/assets/images/satis/flags/1x1/us.svg +10 -0
- data/app/assets/images/satis/flags/1x1/uy.svg +28 -0
- data/app/assets/images/satis/flags/1x1/uz.svg +30 -0
- data/app/assets/images/satis/flags/1x1/va.svg +479 -0
- data/app/assets/images/satis/flags/1x1/vc.svg +8 -0
- data/app/assets/images/satis/flags/1x1/ve.svg +26 -0
- data/app/assets/images/satis/flags/1x1/vg.svg +127 -0
- data/app/assets/images/satis/flags/1x1/vi.svg +28 -0
- data/app/assets/images/satis/flags/1x1/vn.svg +11 -0
- data/app/assets/images/satis/flags/1x1/vu.svg +18 -0
- data/app/assets/images/satis/flags/1x1/wf.svg +7 -0
- data/app/assets/images/satis/flags/1x1/ws.svg +7 -0
- data/app/assets/images/satis/flags/1x1/xk.svg +16 -0
- data/app/assets/images/satis/flags/1x1/xx.svg +5 -0
- data/app/assets/images/satis/flags/1x1/ye.svg +7 -0
- data/app/assets/images/satis/flags/1x1/yt.svg +7 -0
- data/app/assets/images/satis/flags/1x1/za.svg +17 -0
- data/app/assets/images/satis/flags/1x1/zm.svg +27 -0
- data/app/assets/images/satis/flags/1x1/zw.svg +21 -0
- data/app/assets/images/satis/flags/4x3/ac.svg +76 -0
- data/app/assets/images/satis/flags/4x3/ad.svg +150 -0
- data/app/assets/images/satis/flags/4x3/ae.svg +6 -0
- data/app/assets/images/satis/flags/4x3/af.svg +81 -0
- data/app/assets/images/satis/flags/4x3/ag.svg +14 -0
- data/app/assets/images/satis/flags/4x3/ai.svg +763 -0
- data/app/assets/images/satis/flags/4x3/al.svg +5 -0
- data/app/assets/images/satis/flags/4x3/am.svg +5 -0
- data/app/assets/images/satis/flags/4x3/ao.svg +13 -0
- data/app/assets/images/satis/flags/4x3/aq.svg +5 -0
- data/app/assets/images/satis/flags/4x3/ar.svg +31 -0
- data/app/assets/images/satis/flags/4x3/as.svg +33 -0
- data/app/assets/images/satis/flags/4x3/at.svg +6 -0
- data/app/assets/images/satis/flags/4x3/au.svg +9 -0
- data/app/assets/images/satis/flags/4x3/aw.svg +186 -0
- data/app/assets/images/satis/flags/4x3/ax.svg +18 -0
- data/app/assets/images/satis/flags/4x3/az.svg +8 -0
- data/app/assets/images/satis/flags/4x3/ba.svg +12 -0
- data/app/assets/images/satis/flags/4x3/bb.svg +6 -0
- data/app/assets/images/satis/flags/4x3/bd.svg +4 -0
- data/app/assets/images/satis/flags/4x3/be.svg +7 -0
- data/app/assets/images/satis/flags/4x3/bf.svg +7 -0
- data/app/assets/images/satis/flags/4x3/bg.svg +7 -0
- data/app/assets/images/satis/flags/4x3/bh.svg +9 -0
- data/app/assets/images/satis/flags/4x3/bi.svg +15 -0
- data/app/assets/images/satis/flags/4x3/bj.svg +14 -0
- data/app/assets/images/satis/flags/4x3/bl.svg +7 -0
- data/app/assets/images/satis/flags/4x3/bm.svg +99 -0
- data/app/assets/images/satis/flags/4x3/bn.svg +36 -0
- data/app/assets/images/satis/flags/4x3/bo.svg +676 -0
- data/app/assets/images/satis/flags/4x3/bq.svg +5 -0
- data/app/assets/images/satis/flags/4x3/br.svg +45 -0
- data/app/assets/images/satis/flags/4x3/bs.svg +13 -0
- data/app/assets/images/satis/flags/4x3/bt.svg +89 -0
- data/app/assets/images/satis/flags/4x3/bv.svg +13 -0
- data/app/assets/images/satis/flags/4x3/bw.svg +7 -0
- data/app/assets/images/satis/flags/4x3/by.svg +20 -0
- data/app/assets/images/satis/flags/4x3/bz.svg +145 -0
- data/app/assets/images/satis/flags/4x3/ca.svg +4 -0
- data/app/assets/images/satis/flags/4x3/cc.svg +19 -0
- data/app/assets/images/satis/flags/4x3/cd.svg +5 -0
- data/app/assets/images/satis/flags/4x3/cf.svg +15 -0
- data/app/assets/images/satis/flags/4x3/cg.svg +12 -0
- data/app/assets/images/satis/flags/4x3/ch.svg +9 -0
- data/app/assets/images/satis/flags/4x3/ci.svg +7 -0
- data/app/assets/images/satis/flags/4x3/ck.svg +9 -0
- data/app/assets/images/satis/flags/4x3/cl.svg +13 -0
- data/app/assets/images/satis/flags/4x3/cm.svg +15 -0
- data/app/assets/images/satis/flags/4x3/cn.svg +11 -0
- data/app/assets/images/satis/flags/4x3/co.svg +7 -0
- data/app/assets/images/satis/flags/4x3/cp.svg +7 -0
- data/app/assets/images/satis/flags/4x3/cr.svg +7 -0
- data/app/assets/images/satis/flags/4x3/cu.svg +13 -0
- data/app/assets/images/satis/flags/4x3/cv.svg +13 -0
- data/app/assets/images/satis/flags/4x3/cw.svg +14 -0
- data/app/assets/images/satis/flags/4x3/cx.svg +15 -0
- data/app/assets/images/satis/flags/4x3/cy.svg +6 -0
- data/app/assets/images/satis/flags/4x3/cz.svg +5 -0
- data/app/assets/images/satis/flags/4x3/de.svg +5 -0
- data/app/assets/images/satis/flags/4x3/dg.svg +138 -0
- data/app/assets/images/satis/flags/4x3/dj.svg +13 -0
- data/app/assets/images/satis/flags/4x3/dk.svg +5 -0
- data/app/assets/images/satis/flags/4x3/dm.svg +152 -0
- data/app/assets/images/satis/flags/4x3/do.svg +6745 -0
- data/app/assets/images/satis/flags/4x3/dz.svg +5 -0
- data/app/assets/images/satis/flags/4x3/ea.svg +544 -0
- data/app/assets/images/satis/flags/4x3/ec.svg +138 -0
- data/app/assets/images/satis/flags/4x3/ee.svg +7 -0
- data/app/assets/images/satis/flags/4x3/eg.svg +38 -0
- data/app/assets/images/satis/flags/4x3/eh.svg +16 -0
- data/app/assets/images/satis/flags/4x3/er.svg +8 -0
- data/app/assets/images/satis/flags/4x3/es-ct.svg +4 -0
- data/app/assets/images/satis/flags/4x3/es-ga.svg +189 -0
- data/app/assets/images/satis/flags/4x3/es.svg +544 -0
- data/app/assets/images/satis/flags/4x3/et.svg +14 -0
- data/app/assets/images/satis/flags/4x3/eu.svg +28 -0
- data/app/assets/images/satis/flags/4x3/fi.svg +5 -0
- data/app/assets/images/satis/flags/4x3/fj.svg +122 -0
- data/app/assets/images/satis/flags/4x3/fk.svg +90 -0
- data/app/assets/images/satis/flags/4x3/fm.svg +11 -0
- data/app/assets/images/satis/flags/4x3/fo.svg +12 -0
- data/app/assets/images/satis/flags/4x3/fr.svg +7 -0
- data/app/assets/images/satis/flags/4x3/ga.svg +7 -0
- data/app/assets/images/satis/flags/4x3/gb-eng.svg +5 -0
- data/app/assets/images/satis/flags/4x3/gb-nir.svg +132 -0
- data/app/assets/images/satis/flags/4x3/gb-sct.svg +4 -0
- data/app/assets/images/satis/flags/4x3/gb-wls.svg +9 -0
- data/app/assets/images/satis/flags/4x3/gb.svg +7 -0
- data/app/assets/images/satis/flags/4x3/gd.svg +27 -0
- data/app/assets/images/satis/flags/4x3/ge.svg +6 -0
- data/app/assets/images/satis/flags/4x3/gf.svg +7 -0
- data/app/assets/images/satis/flags/4x3/gg.svg +9 -0
- data/app/assets/images/satis/flags/4x3/gh.svg +6 -0
- data/app/assets/images/satis/flags/4x3/gi.svg +32 -0
- data/app/assets/images/satis/flags/4x3/gl.svg +4 -0
- data/app/assets/images/satis/flags/4x3/gm.svg +14 -0
- data/app/assets/images/satis/flags/4x3/gn.svg +7 -0
- data/app/assets/images/satis/flags/4x3/gp.svg +7 -0
- data/app/assets/images/satis/flags/4x3/gq.svg +23 -0
- data/app/assets/images/satis/flags/4x3/gr.svg +16 -0
- data/app/assets/images/satis/flags/4x3/gs.svg +242 -0
- data/app/assets/images/satis/flags/4x3/gt.svg +204 -0
- data/app/assets/images/satis/flags/4x3/gu.svg +39 -0
- data/app/assets/images/satis/flags/4x3/gw.svg +13 -0
- data/app/assets/images/satis/flags/4x3/gy.svg +9 -0
- data/app/assets/images/satis/flags/4x3/hk.svg +30 -0
- data/app/assets/images/satis/flags/4x3/hm.svg +9 -0
- data/app/assets/images/satis/flags/4x3/hn.svg +18 -0
- data/app/assets/images/satis/flags/4x3/hr.svg +58 -0
- data/app/assets/images/satis/flags/4x3/ht.svg +116 -0
- data/app/assets/images/satis/flags/4x3/hu.svg +7 -0
- data/app/assets/images/satis/flags/4x3/ic.svg +7 -0
- data/app/assets/images/satis/flags/4x3/id.svg +6 -0
- data/app/assets/images/satis/flags/4x3/ie.svg +7 -0
- data/app/assets/images/satis/flags/4x3/il.svg +14 -0
- data/app/assets/images/satis/flags/4x3/im.svg +36 -0
- data/app/assets/images/satis/flags/4x3/in.svg +25 -0
- data/app/assets/images/satis/flags/4x3/io.svg +138 -0
- data/app/assets/images/satis/flags/4x3/iq.svg +10 -0
- data/app/assets/images/satis/flags/4x3/ir.svg +219 -0
- data/app/assets/images/satis/flags/4x3/is.svg +12 -0
- data/app/assets/images/satis/flags/4x3/it.svg +7 -0
- data/app/assets/images/satis/flags/4x3/je.svg +47 -0
- data/app/assets/images/satis/flags/4x3/jm.svg +8 -0
- data/app/assets/images/satis/flags/4x3/jo.svg +16 -0
- data/app/assets/images/satis/flags/4x3/jp.svg +11 -0
- data/app/assets/images/satis/flags/4x3/ke.svg +23 -0
- data/app/assets/images/satis/flags/4x3/kg.svg +15 -0
- data/app/assets/images/satis/flags/4x3/kh.svg +61 -0
- data/app/assets/images/satis/flags/4x3/ki.svg +36 -0
- data/app/assets/images/satis/flags/4x3/km.svg +16 -0
- data/app/assets/images/satis/flags/4x3/kn.svg +14 -0
- data/app/assets/images/satis/flags/4x3/kp.svg +15 -0
- data/app/assets/images/satis/flags/4x3/kr.svg +24 -0
- data/app/assets/images/satis/flags/4x3/kw.svg +13 -0
- data/app/assets/images/satis/flags/4x3/ky.svg +225 -0
- data/app/assets/images/satis/flags/4x3/kz.svg +23 -0
- data/app/assets/images/satis/flags/4x3/la.svg +12 -0
- data/app/assets/images/satis/flags/4x3/lb.svg +15 -0
- data/app/assets/images/satis/flags/4x3/lc.svg +8 -0
- data/app/assets/images/satis/flags/4x3/li.svg +43 -0
- data/app/assets/images/satis/flags/4x3/lk.svg +22 -0
- data/app/assets/images/satis/flags/4x3/lr.svg +14 -0
- data/app/assets/images/satis/flags/4x3/ls.svg +8 -0
- data/app/assets/images/satis/flags/4x3/lt.svg +7 -0
- data/app/assets/images/satis/flags/4x3/lu.svg +5 -0
- data/app/assets/images/satis/flags/4x3/lv.svg +6 -0
- data/app/assets/images/satis/flags/4x3/ly.svg +13 -0
- data/app/assets/images/satis/flags/4x3/ma.svg +4 -0
- data/app/assets/images/satis/flags/4x3/mc.svg +6 -0
- data/app/assets/images/satis/flags/4x3/md.svg +70 -0
- data/app/assets/images/satis/flags/4x3/me.svg +116 -0
- data/app/assets/images/satis/flags/4x3/mf.svg +7 -0
- data/app/assets/images/satis/flags/4x3/mg.svg +7 -0
- data/app/assets/images/satis/flags/4x3/mh.svg +7 -0
- data/app/assets/images/satis/flags/4x3/mk.svg +5 -0
- data/app/assets/images/satis/flags/4x3/ml.svg +7 -0
- data/app/assets/images/satis/flags/4x3/mm.svg +16 -0
- data/app/assets/images/satis/flags/4x3/mn.svg +13 -0
- data/app/assets/images/satis/flags/4x3/mo.svg +9 -0
- data/app/assets/images/satis/flags/4x3/mp.svg +86 -0
- data/app/assets/images/satis/flags/4x3/mq.svg +7 -0
- data/app/assets/images/satis/flags/4x3/mr.svg +6 -0
- data/app/assets/images/satis/flags/4x3/ms.svg +78 -0
- data/app/assets/images/satis/flags/4x3/mt.svg +49 -0
- data/app/assets/images/satis/flags/4x3/mu.svg +8 -0
- data/app/assets/images/satis/flags/4x3/mv.svg +6 -0
- data/app/assets/images/satis/flags/4x3/mw.svg +10 -0
- data/app/assets/images/satis/flags/4x3/mx.svg +382 -0
- data/app/assets/images/satis/flags/4x3/my.svg +11 -0
- data/app/assets/images/satis/flags/4x3/mz.svg +21 -0
- data/app/assets/images/satis/flags/4x3/na.svg +16 -0
- data/app/assets/images/satis/flags/4x3/nc.svg +14 -0
- data/app/assets/images/satis/flags/4x3/ne.svg +6 -0
- data/app/assets/images/satis/flags/4x3/nf.svg +9 -0
- data/app/assets/images/satis/flags/4x3/ng.svg +6 -0
- data/app/assets/images/satis/flags/4x3/ni.svg +129 -0
- data/app/assets/images/satis/flags/4x3/nl.svg +5 -0
- data/app/assets/images/satis/flags/4x3/no.svg +7 -0
- data/app/assets/images/satis/flags/4x3/np.svg +14 -0
- data/app/assets/images/satis/flags/4x3/nr.svg +12 -0
- data/app/assets/images/satis/flags/4x3/nu.svg +26 -0
- data/app/assets/images/satis/flags/4x3/nz.svg +42 -0
- data/app/assets/images/satis/flags/4x3/om.svg +115 -0
- data/app/assets/images/satis/flags/4x3/pa.svg +14 -0
- data/app/assets/images/satis/flags/4x3/pe.svg +244 -0
- data/app/assets/images/satis/flags/4x3/pf.svg +19 -0
- data/app/assets/images/satis/flags/4x3/pg.svg +9 -0
- data/app/assets/images/satis/flags/4x3/ph.svg +9 -0
- data/app/assets/images/satis/flags/4x3/pk.svg +15 -0
- data/app/assets/images/satis/flags/4x3/pl.svg +6 -0
- data/app/assets/images/satis/flags/4x3/pm.svg +7 -0
- data/app/assets/images/satis/flags/4x3/pn.svg +97 -0
- data/app/assets/images/satis/flags/4x3/pr.svg +13 -0
- data/app/assets/images/satis/flags/4x3/ps.svg +15 -0
- data/app/assets/images/satis/flags/4x3/pt.svg +57 -0
- data/app/assets/images/satis/flags/4x3/pw.svg +11 -0
- data/app/assets/images/satis/flags/4x3/py.svg +157 -0
- data/app/assets/images/satis/flags/4x3/qa.svg +4 -0
- data/app/assets/images/satis/flags/4x3/re.svg +7 -0
- data/app/assets/images/satis/flags/4x3/ro.svg +7 -0
- data/app/assets/images/satis/flags/4x3/rs.svg +292 -0
- data/app/assets/images/satis/flags/4x3/ru.svg +7 -0
- data/app/assets/images/satis/flags/4x3/rw.svg +13 -0
- data/app/assets/images/satis/flags/4x3/sa.svg +26 -0
- data/app/assets/images/satis/flags/4x3/sb.svg +13 -0
- data/app/assets/images/satis/flags/4x3/sc.svg +14 -0
- data/app/assets/images/satis/flags/4x3/sd.svg +13 -0
- data/app/assets/images/satis/flags/4x3/se.svg +5 -0
- data/app/assets/images/satis/flags/4x3/sg.svg +13 -0
- data/app/assets/images/satis/flags/4x3/sh.svg +76 -0
- data/app/assets/images/satis/flags/4x3/si.svg +18 -0
- data/app/assets/images/satis/flags/4x3/sj.svg +7 -0
- data/app/assets/images/satis/flags/4x3/sk.svg +9 -0
- data/app/assets/images/satis/flags/4x3/sl.svg +7 -0
- data/app/assets/images/satis/flags/4x3/sm.svg +91 -0
- data/app/assets/images/satis/flags/4x3/sn.svg +8 -0
- data/app/assets/images/satis/flags/4x3/so.svg +11 -0
- data/app/assets/images/satis/flags/4x3/sr.svg +6 -0
- data/app/assets/images/satis/flags/4x3/ss.svg +8 -0
- data/app/assets/images/satis/flags/4x3/st.svg +16 -0
- data/app/assets/images/satis/flags/4x3/sv.svg +594 -0
- data/app/assets/images/satis/flags/4x3/sx.svg +56 -0
- data/app/assets/images/satis/flags/4x3/sy.svg +6 -0
- data/app/assets/images/satis/flags/4x3/sz.svg +45 -0
- data/app/assets/images/satis/flags/4x3/ta.svg +76 -0
- data/app/assets/images/satis/flags/4x3/tc.svg +52 -0
- data/app/assets/images/satis/flags/4x3/td.svg +7 -0
- data/app/assets/images/satis/flags/4x3/tf.svg +15 -0
- data/app/assets/images/satis/flags/4x3/tg.svg +14 -0
- data/app/assets/images/satis/flags/4x3/th.svg +7 -0
- data/app/assets/images/satis/flags/4x3/tj.svg +22 -0
- data/app/assets/images/satis/flags/4x3/tk.svg +5 -0
- data/app/assets/images/satis/flags/4x3/tl.svg +13 -0
- data/app/assets/images/satis/flags/4x3/tm.svg +206 -0
- data/app/assets/images/satis/flags/4x3/tn.svg +13 -0
- data/app/assets/images/satis/flags/4x3/to.svg +10 -0
- data/app/assets/images/satis/flags/4x3/tr.svg +8 -0
- data/app/assets/images/satis/flags/4x3/tt.svg +5 -0
- data/app/assets/images/satis/flags/4x3/tv.svg +16 -0
- data/app/assets/images/satis/flags/4x3/tw.svg +34 -0
- data/app/assets/images/satis/flags/4x3/tz.svg +13 -0
- data/app/assets/images/satis/flags/4x3/ua.svg +6 -0
- data/app/assets/images/satis/flags/4x3/ug.svg +30 -0
- data/app/assets/images/satis/flags/4x3/um.svg +15 -0
- data/app/assets/images/satis/flags/4x3/un.svg +16 -0
- data/app/assets/images/satis/flags/4x3/us.svg +10 -0
- data/app/assets/images/satis/flags/4x3/uy.svg +28 -0
- data/app/assets/images/satis/flags/4x3/uz.svg +30 -0
- data/app/assets/images/satis/flags/4x3/va.svg +479 -0
- data/app/assets/images/satis/flags/4x3/vc.svg +8 -0
- data/app/assets/images/satis/flags/4x3/ve.svg +26 -0
- data/app/assets/images/satis/flags/4x3/vg.svg +127 -0
- data/app/assets/images/satis/flags/4x3/vi.svg +28 -0
- data/app/assets/images/satis/flags/4x3/vn.svg +11 -0
- data/app/assets/images/satis/flags/4x3/vu.svg +18 -0
- data/app/assets/images/satis/flags/4x3/wf.svg +7 -0
- data/app/assets/images/satis/flags/4x3/ws.svg +7 -0
- data/app/assets/images/satis/flags/4x3/xk.svg +16 -0
- data/app/assets/images/satis/flags/4x3/xx.svg +5 -0
- data/app/assets/images/satis/flags/4x3/ye.svg +7 -0
- data/app/assets/images/satis/flags/4x3/yt.svg +7 -0
- data/app/assets/images/satis/flags/4x3/za.svg +17 -0
- data/app/assets/images/satis/flags/4x3/zm.svg +27 -0
- data/app/assets/images/satis/flags/4x3/zw.svg +21 -0
- data/app/assets/images/satis/intl-tel-input/flags.png +0 -0
- data/app/assets/images/satis/intl-tel-input/flags@2x.png +0 -0
- data/app/assets/images/satis/leaflet/layers-2x.png +0 -0
- data/app/assets/images/satis/leaflet/layers.png +0 -0
- data/app/assets/images/satis/leaflet/marker-icon-2x.png +0 -0
- data/app/assets/images/satis/leaflet/marker-icon.png +0 -0
- data/app/assets/images/satis/leaflet/marker-shadow.png +0 -0
- data/app/assets/stylesheets/satis/application.css +68 -15
- data/app/assets/stylesheets/satis/components/diffy.css +74 -0
- data/app/assets/stylesheets/satis/components/flag-icons.min.css +1 -0
- data/app/assets/stylesheets/satis/components/form.css +158 -0
- data/app/assets/stylesheets/satis/components/intlTelInput.min.css +1 -0
- data/app/assets/stylesheets/satis/components/leaflet.css +661 -0
- data/app/assets/stylesheets/satis/components/phone-number.css +30 -0
- data/app/assets/stylesheets/satis/components/tippyjs.css +8 -0
- data/app/assets/stylesheets/satis/components/trix.css +412 -0
- data/app/components/satis/appearance_switcher/{component.scss → component.css} +1 -1
- data/app/components/satis/appearance_switcher/component.html.slim +1 -1
- data/app/components/satis/appearance_switcher/component_controller.js +3 -4
- data/app/components/satis/application_component.rb +8 -42
- data/app/components/satis/avatar/component.rb +3 -1
- data/app/components/satis/calendar_month/component.html.slim +522 -0
- data/app/components/satis/calendar_month/component.rb +9 -0
- data/app/components/satis/card/component.css +19 -0
- data/app/components/satis/card/component.html.slim +8 -32
- data/app/components/satis/card/component.rb +35 -8
- data/app/components/satis/date_time_picker/component.rb +10 -10
- data/app/components/satis/date_time_picker/component_controller.js +61 -45
- data/app/components/satis/dialog/component.html.slim +26 -0
- data/app/components/satis/dialog/component.rb +22 -0
- data/app/components/satis/dialog/component_controller.js +16 -0
- data/app/components/satis/dropdown/{component.scss → component.css} +5 -1
- data/app/components/satis/dropdown/component.html.slim +28 -14
- data/app/components/satis/dropdown/component.rb +44 -7
- data/app/components/satis/dropdown/component_controller.js +568 -172
- data/app/components/satis/editor/component.css +3 -0
- data/app/components/satis/editor/component.html.slim +5 -0
- data/app/components/satis/editor/component.rb +45 -0
- data/app/components/satis/editor/component_controller.js +90 -0
- data/app/components/satis/flash_messages/{component.scss → component.css} +5 -4
- data/app/components/satis/info_item/component.html.slim +2 -2
- data/app/components/satis/info_item/component.rb +10 -2
- data/app/components/satis/input/component_controller.js +20 -0
- data/app/components/satis/input_array/component.css +3 -0
- data/app/components/satis/input_array/component.html.slim +33 -0
- data/app/components/satis/input_array/component.rb +18 -0
- data/app/components/satis/input_array/component_controller.js +54 -0
- data/app/components/satis/map/{component.scss → component.css} +1 -1
- data/app/components/satis/map/component.html.slim +1 -1
- data/app/components/satis/map/component_controller.js +14 -12
- data/app/components/satis/menu/component.html.slim +4 -5
- data/app/components/satis/menu/component.rb +8 -3
- data/app/components/satis/menu/component_controller.js +139 -17
- data/app/components/satis/menu_item/component.html.slim +13 -8
- data/app/components/satis/menu_item/component.rb +1 -0
- data/app/components/satis/page/component.html.slim +30 -12
- data/app/components/satis/page/component_controller.js +2 -2
- data/app/components/satis/progress_bar/component.html.slim +4 -0
- data/app/components/satis/progress_bar/component.rb +57 -0
- data/app/components/satis/sidebar_menu/component.css +0 -0
- data/app/components/satis/sidebar_menu/component.html.slim +2 -3
- data/app/components/satis/sidebar_menu/component_controller.js +3 -4
- data/app/components/satis/sidebar_menu/mobile/component.html.slim +1 -2
- data/app/components/satis/sidebar_menu_item/component.html.slim +8 -5
- data/app/components/satis/sidebar_menu_item/component.rb +1 -0
- data/app/components/satis/sidebar_menu_item/component_controller.js +13 -4
- data/app/components/satis/switch/component_controller.js +3 -4
- data/app/components/satis/tab/component.rb +41 -17
- data/app/components/satis/tabs/{component.scss → component.css} +17 -1
- data/app/components/satis/tabs/component.html.slim +23 -9
- data/app/components/satis/tabs/component.rb +9 -2
- data/app/components/satis/tabs/component_controller.js +34 -19
- data/app/controllers/satis/dialogs_controller.rb +20 -0
- data/app/controllers/satis/documentation/avatars_controller.rb +7 -0
- data/app/controllers/satis/documentation/cards_controller.rb +6 -0
- data/app/controllers/satis/documentation/editors_controller.rb +12 -0
- data/app/controllers/satis/documentation/forms_controller.rb +14 -0
- data/app/controllers/satis/documentation/tabs_controller.rb +7 -0
- data/app/controllers/satis/documentation_controller.rb +6 -0
- data/app/controllers/satis/user_data_controller.rb +5 -4
- data/app/helpers/satis/showcases/avatars_helper.rb +4 -0
- data/app/javascript/satis/application.js +8 -0
- data/app/javascript/satis/controllers/application.js +12 -0
- data/app/javascript/satis/controllers/application_controller.js +71 -0
- data/app/javascript/satis/controllers/fields_for_controller.js +74 -0
- data/app/javascript/satis/controllers/file_controller.js +26 -0
- data/app/javascript/satis/controllers/form_controller.js +77 -0
- data/app/javascript/satis/controllers/index.js +70 -0
- data/app/javascript/satis/controllers/link_controller.js +34 -0
- data/app/javascript/satis/controllers/phone_number_controller.js +30 -0
- data/app/javascript/satis/elements/copyable_element.js +57 -0
- data/app/javascript/satis/utility_controllers/draggable_controller.js +144 -0
- data/app/javascript/satis/utility_controllers/help_controller.js +18 -0
- data/app/javascript/satis/utility_controllers/index.js +14 -0
- data/app/javascript/satis/utility_controllers/show_hide_controller.js +71 -0
- data/app/javascript/satis/utility_controllers/toggle_controller.js +100 -0
- data/app/javascript/satis/utils.js +41 -0
- data/app/models/satis/user_data.rb +3 -1
- data/app/views/satis/documentation/avatars/index.html.slim +39 -0
- data/app/views/satis/documentation/cards/index.html.slim +72 -0
- data/app/views/satis/documentation/editors/index.html.slim +44 -0
- data/app/views/satis/documentation/forms/index.html.slim +109 -0
- data/app/views/satis/documentation/forms/select.html.slim +7 -0
- data/app/views/satis/documentation/index.html.slim +6 -0
- data/app/views/satis/documentation/tabs/index.html.slim +31 -0
- data/app/views/shared/_fields_for.html.slim +3 -3
- data/config/importmap.rb +49 -0
- data/config/locales/en.yml +9 -0
- data/config/routes.rb +14 -0
- data/db/migrate/20221212083110_change_satis_user_data.rb +2 -2
- data/db/migrate/20230918115448_add_type_to_satis_user_data.rb +10 -0
- data/lib/generators/satis/install_generator.rb +22 -0
- data/lib/generators/satis/tailwind_config_generator.rb +24 -0
- data/lib/generators/satis/templates/config/initializers/satis.rb +13 -0
- data/lib/satis/concerns/contextual_translations.rb +58 -0
- data/lib/satis/configuration.rb +51 -30
- data/lib/satis/engine.rb +25 -10
- data/lib/satis/forms/builder.rb +130 -87
- data/lib/satis/forms/concerns/buttons.rb +2 -2
- data/lib/satis/forms/concerns/file.rb +1 -1
- data/lib/satis/helpers/container.rb +9 -7
- data/lib/satis/menus/item.rb +1 -1
- data/lib/satis/menus/menu.rb +3 -2
- data/lib/satis/version.rb +1 -1
- data/lib/satis.rb +2 -10
- data/lib/tasks/satis_tasks.rake +13 -4
- metadata +706 -20
- data/app/components/satis/card/component.md +0 -14
- data/app/components/satis/card/component.scss +0 -15
- /data/app/components/satis/breadcrumbs/{component.scss → component.css} +0 -0
- /data/app/components/satis/date_time_picker/{component.scss → component.css} +0 -0
- /data/app/components/satis/{sidebar_menu/component.scss → dialog/component.css} +0 -0
- /data/app/components/satis/input/{component.scss → component.css} +0 -0
- /data/app/components/satis/menu/{component.scss → component.css} +0 -0
- /data/app/components/satis/sidebar_menu_item/{component.scss → component.css} +0 -0
@@ -3,6 +3,7 @@ html lang="en"
|
|
3
3
|
head
|
4
4
|
= head
|
5
5
|
body
|
6
|
+
= turbo_frame_tag "dialog"
|
6
7
|
.h-screen.flex.overflow-hidden.bg-gray-100.dark:bg-gray-600 data-controller="satis-page"
|
7
8
|
/ Off-canvas menu for mobile, show/hide based on off-canvas menu state.
|
8
9
|
.fixed.inset-0.flex.z-40.md:hidden.hidden aria-modal="true" role="dialog" data-satis-page-target="dialog"
|
@@ -12,7 +13,7 @@ html lang="en"
|
|
12
13
|
.relative.flex-1.flex.flex-col.max-w-xs.w-full.pt-5.pb-4.bg-white.transform.hidden data-satis-page-target="offCanvasMenu"
|
13
14
|
|
14
15
|
.absolute.top-0.right-0.-mr-12.pt-2.hidden data-satis-page-target="closeButton"
|
15
|
-
button.ml-1.flex.items-center.justify-center.h-10.w-10.rounded-full.focus:outline-none.focus:ring-2.focus:ring-inset.focus:ring-white data-action="satis-
|
16
|
+
button.ml-1.flex.items-center.justify-center.h-10.w-10.rounded-full.focus:outline-none.focus:ring-2.focus:ring-inset.focus:ring-white data-action="click->satis-dialog#close"
|
16
17
|
span.sr-only Close sidebar
|
17
18
|
i.fal.fa-2x.fa-xmark.text-white aria-hidden="true"
|
18
19
|
= sidebar_mobile
|
@@ -20,17 +21,18 @@ html lang="en"
|
|
20
21
|
.flex-shrink-0.w-14 aria-hidden="true"
|
21
22
|
/ Dummy element to force sidebar to shrink to fit close icon
|
22
23
|
|
23
|
-
|
24
|
-
|
25
|
-
.flex.flex-
|
26
|
-
|
24
|
+
- unless Satis.config.full_width_topbar
|
25
|
+
/ SIDEBAR - for desktop
|
26
|
+
.hidden.md:flex.md:flex-shrink-0
|
27
|
+
.flex.flex-col.w-64
|
28
|
+
/! Sidebar component, swap this element with another sidebar if you like
|
27
29
|
|
28
|
-
|
29
|
-
|
30
|
+
.flex.flex-col.flex-grow.border-r.border-gray-200.pt-5.pb-4.bg-white.overflow-y-auto.dark:bg-gray-900.dark:border-gray-900.dark:border-opacity-75.dark:bg-opacity-75.dark:px-4.drop-shadow-xl.bg-opacity-75
|
31
|
+
= sidebar
|
30
32
|
|
31
33
|
/ TOPBAR
|
32
34
|
.flex.flex-col.w-0.flex-1.overflow-hidden
|
33
|
-
.relative.z-10.flex-shrink-0.flex.h-16.bg-white.shadow.dark:bg-gray-900.dark:
|
35
|
+
.relative.z-10.flex-shrink-0.flex.h-16.bg-white.shadow.dark:bg-gray-900.dark:bg-opacity-75.dark:py-4.bg-opacity-75
|
34
36
|
button.px-4.border-r.border-gray-200.text-gray-500.focus:outline-none.focus:ring-2.focus:ring-inset.focus:ring-primary-500.md:hidden data-action="satis-page#open"
|
35
37
|
span.sr-only Open sidebar
|
36
38
|
i.fal.fa-2x.fa-bars
|
@@ -38,8 +40,24 @@ html lang="en"
|
|
38
40
|
.flex-1.px-4.flex.justify-between
|
39
41
|
= navbar
|
40
42
|
|
41
|
-
|
42
|
-
.
|
43
|
-
|
44
|
-
|
43
|
+
- if Satis.config.full_width_topbar
|
44
|
+
.flex.flex-row
|
45
|
+
|
46
|
+
/ SIDEBAR - for desktop
|
47
|
+
.hidden.md:flex.md:flex-shrink-0
|
48
|
+
.flex.flex-col.w-64
|
49
|
+
/! Sidebar component, swap this element with another sidebar if you like
|
50
|
+
|
51
|
+
.flex.flex-col.flex-grow.border-r.border-gray-200.pt-5.pb-4.bg-white.overflow-y-auto.dark:bg-gray-900.dark:border-gray-900.dark:border-opacity-75.dark:bg-opacity-75.dark:px-4.drop-shadow-xl.bg-opacity-75
|
52
|
+
= sidebar
|
53
|
+
|
54
|
+
main.flex-1.relative.overflow-y-auto.focus:outline-none.dark:bg-gray-900
|
55
|
+
.mt-4
|
56
|
+
.max-w.mx-auto.px-4.sm:px-4.md:px-4
|
57
|
+
= body
|
58
|
+
- else
|
59
|
+
main.flex-1.relative.overflow-y-auto.focus:outline-none.dark:bg-gray-900
|
60
|
+
.mt-4
|
61
|
+
.max-w.mx-auto.px-4.sm:px-4.md:px-4
|
62
|
+
= body
|
45
63
|
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import ApplicationController from "
|
1
|
+
import ApplicationController from "satis/controllers/application_controller"
|
2
2
|
|
3
|
-
export default class extends ApplicationController {
|
3
|
+
export default class PageComponentController extends ApplicationController {
|
4
4
|
static targets = ["closeButton", "openButton", "offCanvasMenu", "overlay", "dialog"]
|
5
5
|
connect() {
|
6
6
|
super.connect()
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Satis
|
4
|
+
module ProgressBar
|
5
|
+
class Component < Satis::ApplicationComponent
|
6
|
+
attr_reader :percentage
|
7
|
+
|
8
|
+
def initialize(percentage, size: :default, label: false)
|
9
|
+
super
|
10
|
+
@percentage = percentage
|
11
|
+
@size = size
|
12
|
+
@label = label
|
13
|
+
end
|
14
|
+
|
15
|
+
def label
|
16
|
+
return if size == :small || size == :default
|
17
|
+
if @label.is_a? FalseClass
|
18
|
+
''
|
19
|
+
elsif @label.is_a? TrueClass
|
20
|
+
"#{percentage}%"
|
21
|
+
else
|
22
|
+
@label
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def padding
|
27
|
+
if @size == :large
|
28
|
+
"p-0.5"
|
29
|
+
elsif @size == :xlarge
|
30
|
+
"p-1"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
def text_size
|
35
|
+
if @size == :large
|
36
|
+
"text-xs"
|
37
|
+
elsif @size == :xlarge
|
38
|
+
"text-sm"
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
|
43
|
+
def size
|
44
|
+
case @size
|
45
|
+
when :small
|
46
|
+
"h-1.5"
|
47
|
+
when :large
|
48
|
+
"h-4"
|
49
|
+
when :xlarge
|
50
|
+
"h-6"
|
51
|
+
else
|
52
|
+
"h-2"
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
File without changes
|
@@ -1,3 +1,2 @@
|
|
1
|
-
nav.flex-1.px-2.space-y-1 aria-label="Sidebar"
|
2
|
-
|
3
|
-
= render(Satis::SidebarMenuItem::Component.new(item: item, menu_options: menu_options))
|
1
|
+
nav.sidebar.flex-1.px-2.space-y-1 aria-label="Sidebar"
|
2
|
+
= render(Satis::SidebarMenuItem::Component.with_collection(@menu.items, menu_options: menu_options))
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import ApplicationController from "
|
2
|
-
|
3
|
-
import { debounce } from "../../../../frontend/utils"
|
1
|
+
import ApplicationController from "satis/controllers/application_controller"
|
2
|
+
import { debounce } from "satis/utils"
|
4
3
|
|
5
|
-
export default class extends ApplicationController {
|
4
|
+
export default class SidebarMenuComponentController extends ApplicationController {
|
6
5
|
connect() {
|
7
6
|
super.connect()
|
8
7
|
}
|
@@ -1,15 +1,18 @@
|
|
1
1
|
.sts-sidebar-menu-item class="#{item.level >= 1 ? 'pl-4' : ''}" data-controller="satis-sidebar-menu-item"
|
2
2
|
a.sts-sidebar-menu-item__link aria-controls="sub-menu-1" aria-expanded="false" href=item.link *item.link_attributes data-satis-sidebar-menu-item-target="link" data-action=data_actions
|
3
|
-
- if item.icon
|
4
|
-
|
3
|
+
- if item.icon.present?
|
4
|
+
- if item.icon.respond_to?(:keys)
|
5
|
+
.sts-sidebar-menu-item__icon class=item.icon.keys.first style="width: 20px;"
|
6
|
+
- item.icon[item.icon.keys.first].each do |si|
|
7
|
+
i class=si
|
8
|
+
- else
|
9
|
+
i.sts-sidebar-menu-item__icon.fa-lg class=item.icon style="width: 20px;"
|
5
10
|
- else
|
6
11
|
i.sts-sidebar-menu-item__no-icon style="width: 20px;"
|
7
|
-
|
8
12
|
span.sts-sidebar-menu-item__label= item.label
|
9
13
|
- if item.menu
|
10
14
|
i.sts-sidebar-menu-item__menu-icon.fa-solid.fa-angle-right style="width: 20px;" data-satis-sidebar-menu-item-target="indicator"
|
11
15
|
|
12
16
|
- if item.menu
|
13
17
|
div.hidden data-satis-sidebar-menu-item-target="submenu"
|
14
|
-
|
15
|
-
= render(Satis::SidebarMenuItem::Component.new(item: sub_item))
|
18
|
+
= render(Satis::SidebarMenuItem::Component.with_collection(item.menu.items))
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import ApplicationController from "
|
2
|
-
|
3
|
-
import { debounce } from "../../../../frontend/utils"
|
1
|
+
import ApplicationController from "satis/controllers/application_controller"
|
2
|
+
import { debounce } from "satis/utils"
|
4
3
|
|
5
|
-
export default class extends ApplicationController {
|
4
|
+
export default class SidebarMenuItemComponentController extends ApplicationController {
|
6
5
|
static targets = ["link", "indicator", "submenu"]
|
7
6
|
|
8
7
|
connect() {
|
@@ -11,6 +10,13 @@ export default class extends ApplicationController {
|
|
11
10
|
// Primitive, yes
|
12
11
|
Array.from(this.element.querySelectorAll('[data-satis-sidebar-menu-item-target="link"]')).forEach((el) => {
|
13
12
|
if (el.href.length > 0 && window.location.href.indexOf(el.href) >= 0) {
|
13
|
+
let sidebar = el.closest("nav.sidebar")
|
14
|
+
if(sidebar.querySelectorAll('.active').length > 0){
|
15
|
+
sidebar.querySelectorAll('.active').forEach((ele) => {
|
16
|
+
ele.classList.remove("active")
|
17
|
+
ele.classList.remove("focus")
|
18
|
+
})
|
19
|
+
}
|
14
20
|
el.classList.add("active")
|
15
21
|
}
|
16
22
|
})
|
@@ -21,6 +27,9 @@ export default class extends ApplicationController {
|
|
21
27
|
if (this.hasSubmenuTarget) {
|
22
28
|
this.submenuTarget.classList.remove("hidden")
|
23
29
|
this.indicatorTarget.setAttribute("data-fa-transform", "rotate-90")
|
30
|
+
if (this.linkTarget){
|
31
|
+
this.linkTarget.classList.add("focus")
|
32
|
+
}
|
24
33
|
} else {
|
25
34
|
this.linkTarget.classList.add("focus")
|
26
35
|
}
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import ApplicationController from "
|
2
|
-
|
3
|
-
import { debounce } from "../../../../frontend/utils"
|
1
|
+
import ApplicationController from "satis/controllers/application_controller"
|
2
|
+
import { debounce } from "satis/utils"
|
4
3
|
|
5
|
-
export default class extends ApplicationController {
|
4
|
+
export default class SwitchComponentController extends ApplicationController {
|
6
5
|
static targets = ["hiddenInput", "switch", "button", "cross", "check"]
|
7
6
|
|
8
7
|
connect() {
|
@@ -3,36 +3,60 @@
|
|
3
3
|
module Satis
|
4
4
|
module Tab
|
5
5
|
class Component < Satis::ApplicationComponent
|
6
|
-
attr_reader :
|
6
|
+
attr_reader :name, :icon, :badge, :id, :tab_menu, :menu,
|
7
|
+
:selected, :dirty, :padding, :title, :responsive, :options, :selected_tab_index
|
7
8
|
|
8
|
-
def initialize(name
|
9
|
+
def initialize(name = nil,
|
10
|
+
icon: nil,
|
11
|
+
badge: nil,
|
12
|
+
id: nil,
|
13
|
+
tab_menu: nil,
|
14
|
+
menu: nil,
|
15
|
+
padding: false,
|
16
|
+
dirty: false,
|
17
|
+
title: nil,
|
18
|
+
responsive: false,
|
19
|
+
options: nil,
|
20
|
+
selected_tab_index: nil,
|
21
|
+
selected: false,
|
22
|
+
&block)
|
9
23
|
super
|
24
|
+
|
10
25
|
@name = name
|
11
|
-
@
|
12
|
-
@
|
13
|
-
@
|
14
|
-
@
|
15
|
-
@
|
16
|
-
@
|
26
|
+
@icon = icon
|
27
|
+
@id = id || name.to_s.underscore
|
28
|
+
@badge = badge
|
29
|
+
@padding = padding
|
30
|
+
@dirty = dirty
|
31
|
+
@title = title
|
32
|
+
@responsive = responsive
|
33
|
+
@selected = selected
|
34
|
+
|
35
|
+
@menu = menu
|
36
|
+
# FIXME: Obsolete these
|
37
|
+
if tab_menu.present?
|
38
|
+
@menu ||= tab_menu
|
39
|
+
ActiveSupport::Deprecation.warn('Calling tab with the tab_menu parameter, use menu instead')
|
40
|
+
end
|
41
|
+
|
42
|
+
if selected_tab_index.present?
|
43
|
+
@selected_tab_index = selected_tab_index # use selected
|
44
|
+
ActiveSupport::Deprecation.warn('Calling tab with the selected_tab_index parameter, use selected instead')
|
45
|
+
end
|
46
|
+
|
17
47
|
@block = block
|
18
|
-
@selected_tab_index = options[:selected_tab_index]
|
19
|
-
@dirty = options[:dirty]
|
20
48
|
end
|
21
49
|
|
22
50
|
def responsive?
|
23
|
-
|
51
|
+
responsive == true
|
24
52
|
end
|
25
53
|
|
26
54
|
def selected?
|
27
|
-
|
55
|
+
selected == true
|
28
56
|
end
|
29
57
|
|
30
58
|
def dirty?
|
31
|
-
|
32
|
-
end
|
33
|
-
|
34
|
-
def title
|
35
|
-
options[:title]
|
59
|
+
dirty == true
|
36
60
|
end
|
37
61
|
|
38
62
|
def call
|
@@ -1,6 +1,10 @@
|
|
1
1
|
.sts-tabs {
|
2
2
|
&__nav {
|
3
|
-
@apply -mb-px flex space-x-4 overflow-x-auto;
|
3
|
+
@apply -mb-px flex space-x-4 overflow-x-auto ml-4;
|
4
|
+
|
5
|
+
a:first {
|
6
|
+
@apply text-primary-600;
|
7
|
+
}
|
4
8
|
}
|
5
9
|
|
6
10
|
.tab {
|
@@ -24,11 +28,23 @@
|
|
24
28
|
a {
|
25
29
|
@apply text-primary-600;
|
26
30
|
}
|
31
|
+
|
32
|
+
.sts-menu {
|
33
|
+
&__button {
|
34
|
+
span {
|
35
|
+
@apply block;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
27
39
|
}
|
28
40
|
|
29
41
|
.sts-menu {
|
30
42
|
&__button {
|
31
43
|
@apply h-0 w-0 pl-4;
|
44
|
+
|
45
|
+
span {
|
46
|
+
@apply hidden;
|
47
|
+
}
|
32
48
|
}
|
33
49
|
}
|
34
50
|
|
@@ -1,23 +1,37 @@
|
|
1
|
-
.sts-tabs id=
|
2
|
-
.sm:hidden
|
1
|
+
.sts-tabs id=group data-controller="satis-tabs" data-satis-tabs-persist-value=persist data-satis-tabs-key-value=key data-action="keydown.ctrl->satis-tabs#selectFromKeyboard"
|
2
|
+
.sm:hidden.pl-4.pr-6
|
3
3
|
label.sr-only for="tabs" Select a tab
|
4
|
-
select#tabs.block.w-full.
|
4
|
+
select#tabs.block.w-full.py-2.text-base.border-gray-300.focus:outline-none.focus:ring-primary-500.focus:border-primary-500.sm:text-sm.rounded-md name="tabs" data-action="change->satis-tabs#select" data-satis-tabs-target="select"
|
5
5
|
- tabs.each do |tab|
|
6
|
-
option selected=tab.selected? = ct(".#{tab.name}", scope:
|
6
|
+
option selected=tab.selected? = ct(".#{tab.name}", scope: :tab)
|
7
7
|
.hidden.sm:block
|
8
8
|
.border-b.border-gray-200
|
9
9
|
nav.sts-tabs__nav aria-label="Tabs"
|
10
|
-
- tabs.each do |tab|
|
11
|
-
|
10
|
+
- tabs.each.with_index do |tab, index|
|
11
|
+
- id = tab.id.present? ? tab.id : tab.name
|
12
|
+
.flex.tab id="#{id}" href="#" class="#{index == (tab.selected_tab_index) ? 'selected' : ''}" data-satis-tabs-target="tab" data-action="click->satis-tabs#select"
|
13
|
+
a.relative
|
12
14
|
- if tab.icon
|
13
15
|
i.mr-2 class=tab.icon
|
14
|
-
|
16
|
+
span.flex.absolute.h-2.w-2.top-0.left-0 id="tab_changed_#{tab.id}" class="mt-0.5 ml-2.5"
|
17
|
+
- if tab.dirty?
|
18
|
+
span.relative.inline-flex.rounded-full.h-2.w-2.bg-blue-500
|
19
|
+
span id="tab_label_#{tab.id}"
|
20
|
+
= ct(".#{tab.name}", scope: :tab)
|
15
21
|
i.fal.fa-triangle-exclamation.ml-2.hidden
|
16
22
|
- if tab.badge
|
17
23
|
span.badge
|
18
24
|
= tab.badge
|
25
|
+
- if tab.menu
|
26
|
+
/ FIXME: fix this id
|
27
|
+
.inline-flex.cursor-pointer id="menu_update_#{tab.id}"
|
28
|
+
/ FIXME: count on render? in menu component
|
29
|
+
- if tab.menu.items.present?
|
30
|
+
= render(Satis::Menu::Component.new(tab.menu, icon: 'fas fa-chevron-down'))
|
31
|
+
- if custom_link.present?
|
32
|
+
== custom_link
|
19
33
|
|
20
34
|
div
|
21
|
-
- tabs.each do |tab|
|
22
|
-
|
35
|
+
- tabs.each.with_index do |tab, index|
|
36
|
+
.tab-content id="#{tab.name}-content" aria-current="#{tab.selected? ? "page" : ''}" class="#{tab.padding == false ? '' : 'px-6 py-6'} #{tab.selected_tab_index == index ? 'selected' : ''}" data-satis-tabs-target="content"
|
23
37
|
= tab.to_s
|
@@ -1,16 +1,23 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# FIXME:
|
4
|
+
# translation scope seems wrong:
|
5
|
+
# old/okay) title="translation missing: en.users.edit.card.profile.tab.about"
|
6
|
+
# new/broken) title="translation missing: en.users.edit.tabs.main.tab.about"
|
7
|
+
|
3
8
|
module Satis
|
4
9
|
module Tabs
|
5
10
|
class Component < Satis::ApplicationComponent
|
6
11
|
renders_many :tabs, Tab::Component
|
7
|
-
attr_reader :group, :persist, :key
|
12
|
+
attr_reader :group, :persist, :key, :custom_link
|
8
13
|
|
9
|
-
def initialize(group: :main, persist: false, key: nil)
|
14
|
+
def initialize(group: :main, persist: false, key: nil, custom_link: nil)
|
10
15
|
super
|
11
16
|
@group = group
|
12
17
|
@persist = persist
|
13
18
|
@key = key
|
19
|
+
@scope = group
|
20
|
+
@custom_link = custom_link
|
14
21
|
end
|
15
22
|
end
|
16
23
|
end
|
@@ -1,25 +1,12 @@
|
|
1
|
-
import ApplicationController from "
|
1
|
+
import ApplicationController from "satis/controllers/application_controller"
|
2
2
|
|
3
3
|
/*
|
4
4
|
* Tabs controller
|
5
5
|
*/
|
6
|
-
export default class extends ApplicationController {
|
6
|
+
export default class TabsComponentController extends ApplicationController {
|
7
7
|
static targets = ["tab", "content", "select"]
|
8
8
|
static values = { persist: Boolean, key: String }
|
9
9
|
|
10
|
-
static keyBindings = [
|
11
|
-
{
|
12
|
-
keys: ["ctrl+1", "ctrl+2", "ctrl+3", "ctrl+4", "ctrl+5", "ctrl+6", "ctrl+7", "ctrl+8", "ctrl+9", "ctrl+0"],
|
13
|
-
handler: (event, combo, controller) => {
|
14
|
-
let index = -1 + +combo.split("+")[1]
|
15
|
-
if (index == -1) {
|
16
|
-
index = 10
|
17
|
-
}
|
18
|
-
controller.open(index)
|
19
|
-
},
|
20
|
-
},
|
21
|
-
]
|
22
|
-
|
23
10
|
connect() {
|
24
11
|
super.connect()
|
25
12
|
|
@@ -43,6 +30,19 @@ export default class extends ApplicationController {
|
|
43
30
|
}
|
44
31
|
}
|
45
32
|
|
33
|
+
selectFromKeyboard(event) {
|
34
|
+
const isNumber = isFinite(event.key)
|
35
|
+
|
36
|
+
if (isNumber) {
|
37
|
+
let index = Number(event.key) - 1
|
38
|
+
if (index === -1) {
|
39
|
+
index = 9
|
40
|
+
}
|
41
|
+
|
42
|
+
this.open(index, true)
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
46
|
select(event) {
|
47
47
|
let index = null
|
48
48
|
if (event.srcElement.tagName == "SELECT") {
|
@@ -53,7 +53,7 @@ export default class extends ApplicationController {
|
|
53
53
|
return el.attributes["id"] === clickedTab.attributes["id"]
|
54
54
|
})
|
55
55
|
}
|
56
|
-
this.open(index)
|
56
|
+
this.open(index, true)
|
57
57
|
|
58
58
|
if (this.keyValue) {
|
59
59
|
this.setUserData(this.keyValue, { tab_index: index }).then((data) => {
|
@@ -66,7 +66,8 @@ export default class extends ApplicationController {
|
|
66
66
|
return false
|
67
67
|
}
|
68
68
|
|
69
|
-
open(index) {
|
69
|
+
open(index, focusFirstElement = false) {
|
70
|
+
const self = this
|
70
71
|
if (index == -1 || this.tabTargets[index] === undefined) {
|
71
72
|
return
|
72
73
|
}
|
@@ -80,8 +81,22 @@ export default class extends ApplicationController {
|
|
80
81
|
target.classList.remove("selected")
|
81
82
|
})
|
82
83
|
this.contentTargets[index].classList.add("selected")
|
84
|
+
setTimeout(() => {
|
85
|
+
let turboFrame = this.contentTargets[index].querySelector("turbo-frame")
|
86
|
+
if (turboFrame && turboFrame.ariaBusy != "true") {
|
87
|
+
let loading = turboFrame.getAttribute("loading")
|
88
|
+
turboFrame.setAttribute("loading", "eager")
|
89
|
+
turboFrame.reload()
|
90
|
+
turboFrame.setAttribute("loading", loading)
|
91
|
+
}
|
92
|
+
}, 100)
|
83
93
|
this.selectTarget.selectedIndex = index
|
84
|
-
}
|
85
94
|
|
86
|
-
|
95
|
+
//focus first element in tab content for easy switching to another one tab
|
96
|
+
if (focusFirstElement) {
|
97
|
+
this.contentTargets[index]
|
98
|
+
.querySelector("select:not(.hidden), input:not([type=hidden]), textarea:not(.hidden), button:not([disabled])")
|
99
|
+
?.focus()
|
100
|
+
}
|
101
|
+
}
|
87
102
|
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Satis
|
4
|
+
class DialogsController < ::ApplicationController
|
5
|
+
layout false
|
6
|
+
before_action :ensure_turbo_frame_response, only: [:show]
|
7
|
+
|
8
|
+
def show
|
9
|
+
render params[:id]
|
10
|
+
end
|
11
|
+
|
12
|
+
private
|
13
|
+
|
14
|
+
def ensure_turbo_frame_response
|
15
|
+
return unless Rails.env.development?
|
16
|
+
|
17
|
+
# redirect_to main_app.root_path unless turbo_frame_request?
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module Satis
|
2
|
+
class Documentation::EditorsController < ApplicationController
|
3
|
+
|
4
|
+
class Document
|
5
|
+
include ActiveModel::Model
|
6
|
+
attr_accessor :code
|
7
|
+
end
|
8
|
+
def index
|
9
|
+
@document = Document.new(code: "<html>\n<head>\n<title>Test</title>\n</head>\n<body>\n Test\n</body>\n</html>\n")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module Satis
|
2
|
+
class Documentation::FormsController < ApplicationController
|
3
|
+
def index
|
4
|
+
@user = User.new
|
5
|
+
end
|
6
|
+
|
7
|
+
def select
|
8
|
+
@users = (1..1000).map do |i|
|
9
|
+
[Faker::Name.first_name, Faker::Name.first_name].join(" ")
|
10
|
+
end
|
11
|
+
render layout: false
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -2,7 +2,7 @@ module Satis
|
|
2
2
|
class UserDataController < ApplicationController
|
3
3
|
def show
|
4
4
|
key = request.url.split('/user_data/').last
|
5
|
-
data = Satis.config.current_user.user_data.keyed(key)
|
5
|
+
data = Satis.config.current_user.call.user_data.keyed(key)
|
6
6
|
|
7
7
|
if data.id.present?
|
8
8
|
render json: data.data, status: 200
|
@@ -13,9 +13,10 @@ module Satis
|
|
13
13
|
|
14
14
|
def update
|
15
15
|
key = request.url.split('/user_data/').last
|
16
|
-
data = Satis.config.current_user.user_data.keyed(key)
|
17
|
-
|
18
|
-
data.data =
|
16
|
+
data = Satis.config.current_user.call.user_data.keyed(key)
|
17
|
+
new_data = data.data.merge(user_data_update_params.as_json)
|
18
|
+
data.data = new_data
|
19
|
+
#data.data = user_data_update_params.as_json
|
19
20
|
data.save!
|
20
21
|
|
21
22
|
render json: data.data, status: 200
|