PageSourceSearch

https://linuxos.ovh/yunohost/admin/assets/GroupCreate-CPGfrMA7.js

js linuxos.ovh collected 2026-10-08 03:34:38 UTC 866 bytes, 1 lines download raw bytes

1import{u as d,f as c,e as _,a as f}from"./index-mGgJqOFQ.js";import{d as g,y as h,S as v,E as b,o as S,a as C,aa as I,u as r,bl as V}from"./core-Cu1dlvv4.js";const F=g({__name:"GroupCreate",setup(k){const{t:e}=h(),s=v(),o=b({groupname:""}),t={groupname:{component:"InputItem",label:e("group_name"),description:e("group_format_name_help"),rules:{required:f,alphalownumdot_:_},cProps:{id:"groupname",placeholder:e("placeholder.groupname")}}},{v:u,onSubmit:p}=d(o,t),l=p(a=>{V.post({uri:"users/groups",cachePath:"groups",data:o.value}).then(()=>{s.push({name:"group-list"})}).catch(a)});return(a,n)=>{const m=c;return S(),C(m,{modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=i=>o.value=i),icon:"users",fields:t,title:a.$t("group_add"),validations:r(u),onSubmit:I(r(l),["prevent"])},null,8,["modelValue","title","validations","onSubmit"])}}});export{F as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.