activeadmin 4.0.0.beta2 → 4.0.0.beta22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -2
- data/CONTRIBUTING.md +13 -13
- data/README.md +4 -4
- data/UPGRADING.md +274 -0
- data/app/controllers/active_admin/base_controller/authorization.rb +1 -1
- data/app/controllers/active_admin/base_controller/menu.rb +2 -2
- data/app/controllers/active_admin/resource_controller/data_access.rb +9 -4
- data/app/controllers/active_admin/resource_controller/decorators.rb +1 -1
- data/app/controllers/active_admin/resource_controller/streaming.rb +3 -3
- data/app/controllers/active_admin/resource_controller.rb +1 -1
- data/app/helpers/active_admin/display_helper.rb +3 -3
- data/app/helpers/active_admin/form_helper.rb +1 -1
- data/app/helpers/active_admin/layout_helper.rb +2 -2
- data/app/javascript/active_admin/features/batch_actions.js +10 -4
- data/app/javascript/active_admin/features/main_menu.js +3 -2
- data/app/views/active_admin/_flash_messages.html.erb +4 -4
- data/app/views/active_admin/_main_navigation.html.erb +28 -11
- data/app/views/active_admin/_page_header.html.erb +2 -2
- data/app/views/active_admin/_site_footer.html.erb +1 -1
- data/app/views/active_admin/_site_header.html.erb +7 -7
- data/app/views/active_admin/devise/confirmations/new.html.erb +1 -1
- data/app/views/active_admin/devise/passwords/edit.html.erb +1 -1
- data/app/views/active_admin/devise/passwords/new.html.erb +1 -1
- data/app/views/active_admin/devise/registrations/new.html.erb +1 -1
- data/app/views/active_admin/devise/sessions/new.html.erb +1 -1
- data/app/views/active_admin/devise/unlocks/new.html.erb +1 -1
- data/app/views/active_admin/kaminari/_gap.html.erb +1 -1
- data/app/views/active_admin/kaminari/_next_page.html.erb +1 -1
- data/app/views/active_admin/kaminari/_prev_page.html.erb +1 -1
- data/app/views/active_admin/page/index.html.arb +1 -2
- data/app/views/active_admin/resource/_form.html.arb +0 -1
- data/app/views/active_admin/resource/_form_default.html.arb +0 -1
- data/app/views/active_admin/resource/_index_as_table_default.html.arb +0 -1
- data/app/views/active_admin/resource/_show_default.html.arb +0 -1
- data/app/views/active_admin/resource/edit.html.arb +0 -1
- data/app/views/active_admin/resource/index.html.arb +1 -2
- data/app/views/active_admin/resource/new.html.arb +0 -1
- data/app/views/active_admin/resource/show.html.arb +0 -1
- data/app/views/active_admin/shared/_resource_comments.html.erb +7 -7
- data/app/views/active_admin/shared/_sidebar_section.html.arb +0 -1
- data/app/views/layouts/active_admin.html.erb +1 -1
- data/config/importmap.rb +5 -0
- data/config/locales/ar.yml +136 -100
- data/config/locales/az.yml +103 -102
- data/config/locales/bg.yml +91 -90
- data/config/locales/bs.yml +95 -94
- data/config/locales/ca.yml +131 -77
- data/config/locales/cs.yml +82 -81
- data/config/locales/da.yml +102 -101
- data/config/locales/de.yml +130 -125
- data/config/locales/el.yml +94 -93
- data/config/locales/en-CA.yml +104 -103
- data/config/locales/en-GB.yml +104 -103
- data/config/locales/en.yml +134 -130
- data/config/locales/eo.yml +107 -106
- data/config/locales/es-MX.yml +70 -69
- data/config/locales/es.yml +129 -122
- data/config/locales/fa.yml +91 -90
- data/config/locales/fi.yml +84 -83
- data/config/locales/fr.yml +135 -126
- data/config/locales/he.yml +103 -102
- data/config/locales/hr.yml +95 -94
- data/config/locales/hu.yml +76 -75
- data/config/locales/id.yml +97 -96
- data/config/locales/it.yml +134 -124
- data/config/locales/ja.yml +109 -104
- data/config/locales/ko.yml +136 -92
- data/config/locales/lt.yml +106 -105
- data/config/locales/lv.yml +70 -69
- data/config/locales/mk.yml +100 -99
- data/config/locales/nb.yml +98 -97
- data/config/locales/nl.yml +113 -114
- data/config/locales/pl.yml +137 -130
- data/config/locales/pt-BR.yml +134 -105
- data/config/locales/pt-PT.yml +71 -70
- data/config/locales/ro.yml +74 -73
- data/config/locales/ru.yml +142 -106
- data/config/locales/sk.yml +131 -130
- data/config/locales/sv-SE.yml +126 -125
- data/config/locales/tr.yml +105 -104
- data/config/locales/uk.yml +140 -103
- data/config/locales/vi.yml +125 -124
- data/config/locales/zh-CN.yml +135 -125
- data/config/locales/zh-TW.yml +136 -100
- data/lib/active_admin/application.rb +5 -5
- data/lib/active_admin/application_settings.rb +1 -1
- data/lib/active_admin/async_count.rb +21 -0
- data/lib/active_admin/batch_actions/resource_extension.rb +2 -2
- data/lib/active_admin/batch_actions/views/batch_action_form.rb +1 -1
- data/lib/active_admin/batch_actions/views/selection_cells.rb +1 -1
- data/lib/active_admin/batch_actions.rb +4 -4
- data/lib/active_admin/collection_decorator.rb +1 -1
- data/lib/active_admin/csv_builder.rb +1 -1
- data/lib/active_admin/dependency.rb +1 -1
- data/lib/active_admin/dsl.rb +2 -2
- data/lib/active_admin/dynamic_settings_node.rb +2 -2
- data/lib/active_admin/engine.rb +5 -2
- data/lib/active_admin/filters/active.rb +2 -2
- data/lib/active_admin/filters/active_filter.rb +1 -7
- data/lib/active_admin/filters/forms.rb +0 -3
- data/lib/active_admin/filters/resource_extension.rb +2 -2
- data/lib/active_admin/filters.rb +5 -5
- data/lib/active_admin/form_builder.rb +4 -9
- data/lib/active_admin/helpers/optional_display.rb +1 -1
- data/lib/active_admin/inputs/filters/base/search_method_select.rb +2 -2
- data/lib/active_admin/inputs/filters/select_input.rb +1 -3
- data/lib/active_admin/localizers.rb +1 -1
- data/lib/active_admin/menu.rb +2 -2
- data/lib/active_admin/menu_item.rb +1 -1
- data/lib/active_admin/namespace.rb +1 -1
- data/lib/active_admin/namespace_settings.rb +1 -1
- data/lib/active_admin/orm/active_record/comments/views/active_admin_comments.rb +1 -1
- data/lib/active_admin/orm/active_record/comments/views.rb +2 -2
- data/lib/active_admin/orm/active_record/comments.rb +7 -7
- data/lib/active_admin/orm/active_record.rb +1 -1
- data/lib/active_admin/pundit_adapter.rb +4 -4
- data/lib/active_admin/resource/action_items.rb +3 -3
- data/lib/active_admin/resource/attributes.rb +8 -1
- data/lib/active_admin/resource/belongs_to.rb +0 -1
- data/lib/active_admin/resource/naming.rb +1 -1
- data/lib/active_admin/resource/page_presenters.rb +2 -2
- data/lib/active_admin/resource/sidebars.rb +1 -1
- data/lib/active_admin/resource.rb +21 -19
- data/lib/active_admin/resource_collection.rb +1 -1
- data/lib/active_admin/resource_dsl.rb +2 -2
- data/lib/active_admin/router.rb +5 -5
- data/lib/active_admin/scope.rb +10 -0
- data/lib/active_admin/version.rb +1 -1
- data/lib/active_admin/view_helpers/method_or_proc_helper.rb +1 -1
- data/lib/active_admin/views/components/active_admin_form.rb +2 -2
- data/lib/active_admin/views/components/attributes_table.rb +10 -4
- data/lib/active_admin/views/components/paginated_collection.rb +4 -1
- data/lib/active_admin/views/components/panel.rb +1 -1
- data/lib/active_admin/views/components/scopes.rb +26 -4
- data/lib/active_admin/views/components/table_for.rb +7 -2
- data/lib/active_admin/views/index_as_table.rb +22 -6
- data/lib/active_admin.rb +11 -6
- data/lib/activeadmin.rb +1 -1
- data/lib/generators/active_admin/assets/templates/active_admin.css +3 -3
- data/lib/generators/active_admin/assets/templates/tailwind.config.js +9 -5
- data/lib/generators/active_admin/devise/devise_generator.rb +2 -2
- data/lib/generators/active_admin/install/templates/active_admin.rb.erb +1 -1
- data/lib/generators/active_admin/resource/resource_generator.rb +6 -2
- data/lib/generators/active_admin/resource/templates/resource.rb.erb +2 -2
- data/plugin.js +424 -0
- data/vendor/javascript/flowbite.js +1 -2
- data/vendor/javascript/rails_ujs_esm.js +1 -0
- metadata +35 -20
- data/config/locales/de-CH.yml +0 -84
- data/lib/active_admin/views/components/tabs.rb +0 -40
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t="a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",e={selector:"button[data-remote]:not([form]), button[data-confirm]:not([form])",exclude:"form button"},n="select[data-remote], input[data-remote], textarea[data-remote]",a="form:not([data-turbo=true])",o="form:not([data-turbo=true]) input[type=submit], form:not([data-turbo=true]) input[type=image], form:not([data-turbo=true]) button[type=submit], form:not([data-turbo=true]) button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",r="input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",i="input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",u="a[data-disable-with], a[data-disable]",c="button[data-remote][data-disable-with], button[data-remote][data-disable]";let s=null;const l=()=>{const t=document.querySelector("meta[name=csp-nonce]");return s=t&&t.content},d=()=>s||l(),m=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector,p=function(t,e){return e.exclude?m.call(t,e.selector)&&!m.call(t,e.exclude):m.call(t,e)},f="_ujsData",b=(t,e)=>t[f]?t[f][e]:void 0,h=function(t,e,n){return t[f]||(t[f]={}),t[f][e]=n},y=t=>Array.prototype.slice.call(document.querySelectorAll(t)),j=function(t){var e=!1;do{if(t.isContentEditable){e=!0;break}t=t.parentElement}while(t);return e},v=()=>{const t=document.querySelector("meta[name=csrf-token]");return t&&t.content},E=()=>{const t=document.querySelector("meta[name=csrf-param]");return t&&t.content},g=t=>{const e=v();if(e)return t.setRequestHeader("X-CSRF-Token",e)},w=()=>{const t=v(),e=E();if(t&&e)return y('form input[name="'+e+'"]').forEach((e=>e.value=t))},x={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},S=t=>{t=k(t);var e=C(t,(function(){const n=T(null!=e.response?e.response:e.responseText,e.getResponseHeader("Content-Type"));return 2===Math.floor(e.status/100)?"function"==typeof t.success&&t.success(n,e.statusText,e):"function"==typeof t.error&&t.error(n,e.statusText,e),"function"==typeof t.complete?t.complete(e,e.statusText):void 0}));return!(t.beforeSend&&!t.beforeSend(e,t))&&(e.readyState===XMLHttpRequest.OPENED?e.send(t.data):void 0)};var k=function(t){return t.url=t.url||location.href,t.type=t.type.toUpperCase(),"GET"===t.type&&t.data&&(t.url.indexOf("?")<0?t.url+="?"+t.data:t.url+="&"+t.data),t.dataType in x||(t.dataType="*"),t.accept=x[t.dataType],"*"!==t.dataType&&(t.accept+=", */*; q=0.01"),t},C=function(t,e){const n=new XMLHttpRequest;return n.open(t.type,t.url,!0),n.setRequestHeader("Accept",t.accept),"string"==typeof t.data&&n.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),t.crossDomain||(n.setRequestHeader("X-Requested-With","XMLHttpRequest"),g(n)),n.withCredentials=!!t.withCredentials,n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE)return e(n)},n},T=function(t,e){if("string"==typeof t&&"string"==typeof e)if(e.match(/\bjson\b/))try{t=JSON.parse(t)}catch(t){}else if(e.match(/\b(?:java|ecma)script\b/)){const e=document.createElement("script");e.setAttribute("nonce",d()),e.text=t,document.head.appendChild(e).parentNode.removeChild(e)}else if(e.match(/\b(xml|html|svg)\b/)){const n=new DOMParser;e=e.replace(/;.+/,"");try{t=n.parseFromString(t,e)}catch(t){}}return t};const A=function(t){const e=document.createElement("a");e.href=location.href;const n=document.createElement("a");try{return n.href=t,!((!n.protocol||":"===n.protocol)&&!n.host||e.protocol+"//"+e.host==n.protocol+"//"+n.host)}catch(t){return!0}};let D,{CustomEvent:M}=window;"function"!=typeof M&&(M=function(t,e){const n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n},M.prototype=window.Event.prototype,({preventDefault:D}=M.prototype),M.prototype.preventDefault=function(){const t=D.call(this);return this.cancelable&&!this.defaultPrevented&&Object.defineProperty(this,"defaultPrevented",{get:()=>!0}),t});const L=(t,e,n)=>{const a=new M(e,{bubbles:!0,cancelable:!0,detail:n});return t.dispatchEvent(a),!a.defaultPrevented},R=t=>{L(t.target,"ujs:everythingStopped"),t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()},q=(t,e,n,a)=>t.addEventListener(n,(function(t){let{target:n}=t;for(;n instanceof Element&&!p(n,e);)n=n.parentNode;n instanceof Element&&!1===a.call(n,t)&&(t.preventDefault(),t.stopPropagation())})),H=t=>Array.prototype.slice.call(t),P=(t,e)=>{let n=[t];p(t,"form")&&(n=H(t.elements));const a=[];return n.forEach((function(t){t.name&&!t.disabled&&(p(t,"fieldset[disabled] *")||(p(t,"select")?H(t.options).forEach((function(e){e.selected&&a.push({name:t.name,value:e.value})})):(t.checked||-1===["radio","checkbox","submit"].indexOf(t.type))&&a.push({name:t.name,value:t.value})))})),e&&a.push(e),a.map((function(t){return t.name?`${encodeURIComponent(t.name)}=${encodeURIComponent(t.value)}`:t})).join("&")},O=(t,e)=>p(t,"form")?H(t.elements).filter((t=>p(t,e))):H(t.querySelectorAll(e));var I=function(t,e){let n;const a=t.getAttribute("data-confirm");if(!a)return!0;let o=!1;if(L(t,"confirm")){try{o=e.confirm(a,t)}catch(t){}n=L(t,"confirm:complete",[o])}return o&&n};const N=function(t){this.disabled&&R(t)},X=t=>{let e;if(t instanceof Event){if(K(t))return;e=t.target}else e=t;if(!j(e))return p(e,u)?F(e):p(e,c)||p(e,i)?z(e):p(e,a)?G(e):void 0},$=t=>{const e=t instanceof Event?t.target:t;if(!j(e))return p(e,u)?_(e):p(e,c)||p(e,r)?U(e):p(e,a)?Q(e):void 0};var _=function(t){if(b(t,"ujs:disabled"))return;const e=t.getAttribute("data-disable-with");return null!=e&&(h(t,"ujs:enable-with",t.innerHTML),t.innerHTML=e),t.addEventListener("click",R),h(t,"ujs:disabled",!0)},F=function(t){const e=b(t,"ujs:enable-with");return null!=e&&(t.innerHTML=e,h(t,"ujs:enable-with",null)),t.removeEventListener("click",R),h(t,"ujs:disabled",null)},Q=t=>O(t,r).forEach(U),U=function(t){if(b(t,"ujs:disabled"))return;const e=t.getAttribute("data-disable-with");return null!=e&&(p(t,"button")?(h(t,"ujs:enable-with",t.innerHTML),t.innerHTML=e):(h(t,"ujs:enable-with",t.value),t.value=e)),t.disabled=!0,h(t,"ujs:disabled",!0)},G=t=>O(t,i).forEach((t=>z(t))),z=function(t){const e=b(t,"ujs:enable-with");return null!=e&&(p(t,"button")?t.innerHTML=e:t.value=e,h(t,"ujs:enable-with",null)),t.disabled=!1,h(t,"ujs:disabled",null)},K=function(t){const e=t.detail?t.detail[0]:void 0;return e&&e.getResponseHeader("X-Xhr-Redirect")};const B=function(t){const e=this,{form:n}=e;if(n)return e.name&&h(n,"ujs:submit-button",{name:e.name,value:e.value}),h(n,"ujs:formnovalidate-button",e.formNoValidate),h(n,"ujs:submit-button-formaction",e.getAttribute("formaction")),h(n,"ujs:submit-button-formmethod",e.getAttribute("formmethod"))},J=function(t){const e=(this.getAttribute("data-method")||"GET").toUpperCase(),n=this.getAttribute("data-params"),a=(t.metaKey||t.ctrlKey)&&"GET"===e&&!n;(null!=t.button&&0!==t.button||a)&&t.stopImmediatePropagation()},V={$:y,ajax:S,buttonClickSelector:e,buttonDisableSelector:c,confirm:(t,e)=>window.confirm(t),cspNonce:d,csrfToken:v,csrfParam:E,CSRFProtection:g,delegate:q,disableElement:$,enableElement:X,fileInputSelector:"input[name][type=file]:not([disabled])",fire:L,formElements:O,formEnableSelector:i,formDisableSelector:r,formInputClickSelector:o,formSubmitButtonClick:B,formSubmitSelector:a,getData:b,handleDisabledElement:N,href:t=>t.href,inputChangeSelector:n,isCrossDomain:A,linkClickSelector:t,linkDisableSelector:u,loadCSPNonce:l,matches:p,preventInsignificantClick:J,refreshCSRFTokens:w,serializeElement:P,setData:h,stopEverything:R},W=(Y=V,function(t){I(this,Y)||R(t)});var Y;V.handleConfirm=W;const Z=(t=>function(e){const n=this,a=n.getAttribute("data-method");if(!a)return;if(j(this))return;const o=t.href(n),r=v(),i=E(),u=document.createElement("form");let c=`<input name='_method' value='${a}' type='hidden' />`;i&&r&&!A(o)&&(c+=`<input name='${i}' value='${r}' type='hidden' />`),c+='<input type="submit" />',u.method="post",u.action=o,u.target=n.target,u.innerHTML=c,u.style.display="none",document.body.appendChild(u),u.querySelector('[type="submit"]').click(),R(e)})(V);V.handleMethod=Z;const tt=(t=>function(o){let r,i,u;const c=this;if(!function(t){const e=t.getAttribute("data-remote");return null!=e&&"false"!==e}(c))return!0;if(!L(c,"ajax:before"))return L(c,"ajax:stopped"),!1;if(j(c))return L(c,"ajax:stopped"),!1;const s=c.getAttribute("data-with-credentials"),l=c.getAttribute("data-type")||"script";if(p(c,a)){const t=b(c,"ujs:submit-button");i=b(c,"ujs:submit-button-formmethod")||c.getAttribute("method")||"get",u=b(c,"ujs:submit-button-formaction")||c.getAttribute("action")||location.href,"GET"===i.toUpperCase()&&(u=u.replace(/\?.*$/,"")),"multipart/form-data"===c.enctype?(r=new FormData(c),null!=t&&r.append(t.name,t.value)):r=P(c,t),h(c,"ujs:submit-button",null),h(c,"ujs:submit-button-formmethod",null),h(c,"ujs:submit-button-formaction",null)}else p(c,e)||p(c,n)?(i=c.getAttribute("data-method"),u=c.getAttribute("data-url"),r=P(c,c.getAttribute("data-params"))):(i=c.getAttribute("data-method"),u=t.href(c),r=c.getAttribute("data-params"));S({type:i||"GET",url:u,data:r,dataType:l,beforeSend:(t,e)=>L(c,"ajax:beforeSend",[t,e])?L(c,"ajax:send",[t]):(L(c,"ajax:stopped"),!1),success:(...t)=>L(c,"ajax:success",t),error:(...t)=>L(c,"ajax:error",t),complete:(...t)=>L(c,"ajax:complete",t),crossDomain:A(u),withCredentials:null!=s&&"false"!==s}),R(o)})(V);V.handleRemote=tt;if(V.start=function(){if(window._rails_loaded)throw new Error("rails-ujs has already been loaded!");return window.addEventListener("pageshow",(function(){y(i).forEach((function(t){b(t,"ujs:disabled")&&X(t)})),y(u).forEach((function(t){b(t,"ujs:disabled")&&X(t)}))})),q(document,u,"ajax:complete",X),q(document,u,"ajax:stopped",X),q(document,c,"ajax:complete",X),q(document,c,"ajax:stopped",X),q(document,t,"click",J),q(document,t,"click",N),q(document,t,"click",W),q(document,t,"click",$),q(document,t,"click",tt),q(document,t,"click",Z),q(document,e,"click",J),q(document,e,"click",N),q(document,e,"click",W),q(document,e,"click",$),q(document,e,"click",tt),q(document,n,"change",N),q(document,n,"change",W),q(document,n,"change",tt),q(document,a,"submit",N),q(document,a,"submit",W),q(document,a,"submit",tt),q(document,a,"submit",(t=>setTimeout((()=>$(t)),13))),q(document,a,"ajax:send",$),q(document,a,"ajax:complete",X),q(document,o,"click",J),q(document,o,"click",N),q(document,o,"click",W),q(document,o,"click",B),document.addEventListener("DOMContentLoaded",w),document.addEventListener("DOMContentLoaded",l),window._rails_loaded=!0},"undefined"!=typeof jQuery&&jQuery&&jQuery.ajax){if(jQuery.rails)throw new Error("If you load both jquery_ujs and rails-ujs, use rails-ujs only.");jQuery.rails=V,jQuery.ajaxPrefilter((function(t,e,n){if(!t.crossDomain)return g(n)}))}export{V as default};
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activeadmin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0.0.
|
|
4
|
+
version: 4.0.0.beta22
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Charles Maresh
|
|
@@ -12,10 +12,9 @@ authors:
|
|
|
12
12
|
- Piers C
|
|
13
13
|
- Sean Linsley
|
|
14
14
|
- Timo Schilling
|
|
15
|
-
autorequire:
|
|
16
15
|
bindir: bin
|
|
17
16
|
cert_chain: []
|
|
18
|
-
date:
|
|
17
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
19
18
|
dependencies:
|
|
20
19
|
- !ruby/object:Gem::Dependency
|
|
21
20
|
name: arbre
|
|
@@ -31,48 +30,62 @@ dependencies:
|
|
|
31
30
|
- - "~>"
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
32
|
version: '2.0'
|
|
33
|
+
- !ruby/object:Gem::Dependency
|
|
34
|
+
name: csv
|
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - ">="
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '0'
|
|
40
|
+
type: :runtime
|
|
41
|
+
prerelease: false
|
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - ">="
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '0'
|
|
34
47
|
- !ruby/object:Gem::Dependency
|
|
35
48
|
name: formtastic
|
|
36
49
|
requirement: !ruby/object:Gem::Requirement
|
|
37
50
|
requirements:
|
|
38
51
|
- - ">="
|
|
39
52
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
53
|
+
version: '6.0'
|
|
41
54
|
type: :runtime
|
|
42
55
|
prerelease: false
|
|
43
56
|
version_requirements: !ruby/object:Gem::Requirement
|
|
44
57
|
requirements:
|
|
45
58
|
- - ">="
|
|
46
59
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '
|
|
60
|
+
version: '6.0'
|
|
48
61
|
- !ruby/object:Gem::Dependency
|
|
49
62
|
name: formtastic_i18n
|
|
50
63
|
requirement: !ruby/object:Gem::Requirement
|
|
51
64
|
requirements:
|
|
52
65
|
- - ">="
|
|
53
66
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '0.
|
|
67
|
+
version: '0.7'
|
|
55
68
|
type: :runtime
|
|
56
69
|
prerelease: false
|
|
57
70
|
version_requirements: !ruby/object:Gem::Requirement
|
|
58
71
|
requirements:
|
|
59
72
|
- - ">="
|
|
60
73
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '0.
|
|
74
|
+
version: '0.7'
|
|
62
75
|
- !ruby/object:Gem::Dependency
|
|
63
76
|
name: inherited_resources
|
|
64
77
|
requirement: !ruby/object:Gem::Requirement
|
|
65
78
|
requirements:
|
|
66
79
|
- - "~>"
|
|
67
80
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '
|
|
81
|
+
version: '2.0'
|
|
69
82
|
type: :runtime
|
|
70
83
|
prerelease: false
|
|
71
84
|
version_requirements: !ruby/object:Gem::Requirement
|
|
72
85
|
requirements:
|
|
73
86
|
- - "~>"
|
|
74
87
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '
|
|
88
|
+
version: '2.0'
|
|
76
89
|
- !ruby/object:Gem::Dependency
|
|
77
90
|
name: kaminari
|
|
78
91
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -93,14 +106,14 @@ dependencies:
|
|
|
93
106
|
requirements:
|
|
94
107
|
- - ">="
|
|
95
108
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: '
|
|
109
|
+
version: '7.2'
|
|
97
110
|
type: :runtime
|
|
98
111
|
prerelease: false
|
|
99
112
|
version_requirements: !ruby/object:Gem::Requirement
|
|
100
113
|
requirements:
|
|
101
114
|
- - ">="
|
|
102
115
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: '
|
|
116
|
+
version: '7.2'
|
|
104
117
|
- !ruby/object:Gem::Dependency
|
|
105
118
|
name: ransack
|
|
106
119
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -125,12 +138,14 @@ extra_rdoc_files:
|
|
|
125
138
|
- CODE_OF_CONDUCT.md
|
|
126
139
|
- CONTRIBUTING.md
|
|
127
140
|
- README.md
|
|
141
|
+
- UPGRADING.md
|
|
128
142
|
files:
|
|
129
143
|
- CHANGELOG.md
|
|
130
144
|
- CODE_OF_CONDUCT.md
|
|
131
145
|
- CONTRIBUTING.md
|
|
132
146
|
- LICENSE
|
|
133
147
|
- README.md
|
|
148
|
+
- UPGRADING.md
|
|
134
149
|
- app/assets/config/active_admin_manifest.js
|
|
135
150
|
- app/controllers/active_admin/base_controller.rb
|
|
136
151
|
- app/controllers/active_admin/base_controller/authorization.rb
|
|
@@ -201,6 +216,7 @@ files:
|
|
|
201
216
|
- app/views/active_admin/shared/_sidebar_sections.html.erb
|
|
202
217
|
- app/views/layouts/active_admin.html.erb
|
|
203
218
|
- app/views/layouts/active_admin_logged_out.html.erb
|
|
219
|
+
- config/importmap.rb
|
|
204
220
|
- config/locales/ar.yml
|
|
205
221
|
- config/locales/az.yml
|
|
206
222
|
- config/locales/bg.yml
|
|
@@ -208,7 +224,6 @@ files:
|
|
|
208
224
|
- config/locales/ca.yml
|
|
209
225
|
- config/locales/cs.yml
|
|
210
226
|
- config/locales/da.yml
|
|
211
|
-
- config/locales/de-CH.yml
|
|
212
227
|
- config/locales/de.yml
|
|
213
228
|
- config/locales/el.yml
|
|
214
229
|
- config/locales/en-CA.yml
|
|
@@ -247,6 +262,7 @@ files:
|
|
|
247
262
|
- lib/active_admin.rb
|
|
248
263
|
- lib/active_admin/application.rb
|
|
249
264
|
- lib/active_admin/application_settings.rb
|
|
265
|
+
- lib/active_admin/async_count.rb
|
|
250
266
|
- lib/active_admin/authorization_adapter.rb
|
|
251
267
|
- lib/active_admin/batch_actions.rb
|
|
252
268
|
- lib/active_admin/batch_actions/controller.rb
|
|
@@ -340,7 +356,6 @@ files:
|
|
|
340
356
|
- lib/active_admin/views/components/scopes.rb
|
|
341
357
|
- lib/active_admin/views/components/status_tag.rb
|
|
342
358
|
- lib/active_admin/views/components/table_for.rb
|
|
343
|
-
- lib/active_admin/views/components/tabs.rb
|
|
344
359
|
- lib/active_admin/views/index_as_table.rb
|
|
345
360
|
- lib/activeadmin.rb
|
|
346
361
|
- lib/generators/active_admin/assets/assets_generator.rb
|
|
@@ -359,20 +374,21 @@ files:
|
|
|
359
374
|
- lib/generators/active_admin/resource/resource_generator.rb
|
|
360
375
|
- lib/generators/active_admin/resource/templates/resource.rb.erb
|
|
361
376
|
- lib/generators/active_admin/views_generator.rb
|
|
377
|
+
- plugin.js
|
|
362
378
|
- vendor/javascript/flowbite.js
|
|
379
|
+
- vendor/javascript/rails_ujs_esm.js
|
|
363
380
|
homepage: https://activeadmin.info
|
|
364
381
|
licenses:
|
|
365
382
|
- MIT
|
|
366
383
|
metadata:
|
|
367
384
|
bug_tracker_uri: https://github.com/activeadmin/activeadmin/issues
|
|
368
|
-
changelog_uri: https://github.com/activeadmin/activeadmin/
|
|
385
|
+
changelog_uri: https://github.com/activeadmin/activeadmin/releases
|
|
369
386
|
documentation_uri: https://activeadmin.info
|
|
370
387
|
homepage_uri: https://activeadmin.info
|
|
371
388
|
mailing_list_uri: https://groups.google.com/group/activeadmin
|
|
372
389
|
rubygems_mfa_required: 'true'
|
|
373
390
|
source_code_uri: https://github.com/activeadmin/activeadmin
|
|
374
391
|
wiki_uri: https://github.com/activeadmin/activeadmin/wiki
|
|
375
|
-
post_install_message:
|
|
376
392
|
rdoc_options: []
|
|
377
393
|
require_paths:
|
|
378
394
|
- lib
|
|
@@ -380,15 +396,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
380
396
|
requirements:
|
|
381
397
|
- - ">="
|
|
382
398
|
- !ruby/object:Gem::Version
|
|
383
|
-
version: '2
|
|
399
|
+
version: '3.2'
|
|
384
400
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
385
401
|
requirements:
|
|
386
|
-
- - "
|
|
402
|
+
- - ">="
|
|
387
403
|
- !ruby/object:Gem::Version
|
|
388
|
-
version:
|
|
404
|
+
version: '0'
|
|
389
405
|
requirements: []
|
|
390
|
-
rubygems_version:
|
|
391
|
-
signing_key:
|
|
406
|
+
rubygems_version: 4.0.7
|
|
392
407
|
specification_version: 4
|
|
393
408
|
summary: Active Admin is a Ruby on Rails plugin for generating administration style
|
|
394
409
|
interfaces. It abstracts common business application patterns to make it simple
|
data/config/locales/de-CH.yml
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"de-CH":
|
|
2
|
-
active_admin:
|
|
3
|
-
dashboard: Übersicht
|
|
4
|
-
view: "Anzeigen"
|
|
5
|
-
edit: "Bearbeiten"
|
|
6
|
-
delete: "Löschen"
|
|
7
|
-
delete_confirmation: "Wollen Sie dieses Element wirklich löschen?"
|
|
8
|
-
new_model: "%{model} erstellen"
|
|
9
|
-
edit_model: "%{model} bearbeiten"
|
|
10
|
-
delete_model: "%{model} löschen"
|
|
11
|
-
details: "%{model} Details"
|
|
12
|
-
cancel: "Abbrechen"
|
|
13
|
-
empty: "Leer"
|
|
14
|
-
previous: "Zurück"
|
|
15
|
-
next: "Weiter"
|
|
16
|
-
download: "Herunterladen:"
|
|
17
|
-
has_many_new: "%{model} hinzufügen"
|
|
18
|
-
has_many_delete: "Löschen"
|
|
19
|
-
has_many_remove: "Entfernen"
|
|
20
|
-
filters:
|
|
21
|
-
buttons:
|
|
22
|
-
filter: "Filtern"
|
|
23
|
-
clear: "Filter entfernen"
|
|
24
|
-
status_tag:
|
|
25
|
-
"yes": "Ja"
|
|
26
|
-
"no": "Nicht"
|
|
27
|
-
"unset": "Nicht"
|
|
28
|
-
logout: "Abmelden"
|
|
29
|
-
powered_by: "Powered by %{active_admin} %{version}"
|
|
30
|
-
sidebars:
|
|
31
|
-
filters: "Filter"
|
|
32
|
-
pagination:
|
|
33
|
-
empty: "Keine %{model} gefunden"
|
|
34
|
-
one: "Zeige <b>1</b> %{model}"
|
|
35
|
-
one_page: "Zeige <b>alle %{n}</b> %{model}"
|
|
36
|
-
multiple: "Zeige %{model} <b>%{from} – %{to}</b> von <b>%{total}</b>"
|
|
37
|
-
multiple_without_total: "Zeige %{model} <b>%{from} – %{to}</b>"
|
|
38
|
-
entry:
|
|
39
|
-
one: "Eintrag"
|
|
40
|
-
other: "Einträge"
|
|
41
|
-
any: "Alle"
|
|
42
|
-
blank_slate:
|
|
43
|
-
content: "Es gibt noch keine %{resource_name}."
|
|
44
|
-
link: "Erstellen"
|
|
45
|
-
batch_actions:
|
|
46
|
-
button_label: "Stapelverarbeitung"
|
|
47
|
-
default_confirmation: "Bist du sicher, dass Sie dies tun wollen?"
|
|
48
|
-
delete_confirmation: "Sind Sie sicher dass sie diese %{plural_model} löschen wollen?"
|
|
49
|
-
succesfully_destroyed:
|
|
50
|
-
one: "Erfolgreich 1 %{model} gelöscht"
|
|
51
|
-
other: "Erfolgreich %{count} %{plural_model} gelöscht"
|
|
52
|
-
selection_toggle_explanation: "(Auswahl umschalten)"
|
|
53
|
-
action_label: "%{title} ausgewählte"
|
|
54
|
-
labels:
|
|
55
|
-
destroy: "Lösche"
|
|
56
|
-
comments:
|
|
57
|
-
body: "Inhalt"
|
|
58
|
-
author: "Autor"
|
|
59
|
-
resource: "Resource"
|
|
60
|
-
add: "Kommentar hinzufügen"
|
|
61
|
-
delete: "Löschen"
|
|
62
|
-
delete_confirmation: "Sind Sie sicher dass sie diesen Kommentar löschen wollen?"
|
|
63
|
-
no_comments_yet: "Es gibt noch keine Kommentare."
|
|
64
|
-
title_content: "Kommentare (%{count})"
|
|
65
|
-
errors:
|
|
66
|
-
empty_text: "Der Kommentar wurde nicht gespeichert, da der Text fehlt."
|
|
67
|
-
devise:
|
|
68
|
-
login:
|
|
69
|
-
title: "Login"
|
|
70
|
-
remember_me: "erinnere dich an mich"
|
|
71
|
-
submit: "Login"
|
|
72
|
-
reset_password:
|
|
73
|
-
title: "Passwort vergessen?"
|
|
74
|
-
submit: "Mein Passwort zurücksetzen"
|
|
75
|
-
change_password:
|
|
76
|
-
title: "Ändern Sie Ihr Passwort"
|
|
77
|
-
submit: "Mein Passwort ändern"
|
|
78
|
-
links:
|
|
79
|
-
sign_up: "Registrieren"
|
|
80
|
-
sign_in: "Anmeldung"
|
|
81
|
-
forgot_your_password: "Passwort vergessen?"
|
|
82
|
-
sign_in_with_omniauth_provider: "Anmeldung mit %{provider}"
|
|
83
|
-
resend_unlock_instructions: "Entsperrungsanweisung erneut senden"
|
|
84
|
-
resend_confirmation_instructions: "Bestätigungsanweisung erneut senden"
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
module ActiveAdmin
|
|
3
|
-
module Views
|
|
4
|
-
class Tabs < ActiveAdmin::Component
|
|
5
|
-
builder_method :tabs
|
|
6
|
-
|
|
7
|
-
def tab(title, options = {}, &block)
|
|
8
|
-
title = title.to_s.titleize if title.is_a? Symbol
|
|
9
|
-
@menu << build_menu_item(title, options, &block)
|
|
10
|
-
@tabs_content << build_content_item(title, options, &block)
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
def build(attributes = {}, &block)
|
|
14
|
-
super(attributes)
|
|
15
|
-
add_class "tabs"
|
|
16
|
-
@menu = nav(class: "tabs-nav", role: "tablist", "data-tabs-toggle": "#tabs-container-#{object_id}")
|
|
17
|
-
@tabs_content = div(class: "tabs-content", id: "tabs-container-#{object_id}")
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
def build_menu_item(title, options, &block)
|
|
21
|
-
fragment = options.fetch(:id, fragmentize(title))
|
|
22
|
-
html_options = options.fetch(:html_options, {}).merge("data-tabs-target": "##{fragment}", role: "tab", "aria-controls": fragment)
|
|
23
|
-
button html_options do
|
|
24
|
-
title
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
def build_content_item(title, options, &block)
|
|
29
|
-
options = options.reverse_merge(id: fragmentize(title), class: "hidden", role: "tabpanel", "aria-labelledby": "#{title}-tab")
|
|
30
|
-
div(options, &block)
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
private
|
|
34
|
-
|
|
35
|
-
def fragmentize(string)
|
|
36
|
-
"tabs-#{string.parameterize}-#{object_id}"
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
end
|