Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
* Remove eslint and prettier completely, rely on Deno tools instead
* fixed tooltip test crash
  • Loading branch information
thednp committed Oct 26, 2024
1 parent 278da5b commit eb52066
Show file tree
Hide file tree
Showing 172 changed files with 1,785 additions and 1,488 deletions.
199 changes: 0 additions & 199 deletions .eslintrc.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/badges.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@v3

- name: Update version badges 🏷
run: npx -p dependency-version-badge update-badge typescript eslint vitest vite
run: npx -p dependency-version-badge update-badge typescript vitest vite

- name: Commit any changed files 💾
uses: stefanzweifel/git-auto-commit-action@v4
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
[![NPM Version](https://img.shields.io/npm/v/bootstrap.native.svg)](https://www.npmjs.com/package/bootstrap.native)
[![jsDeliver](https://img.shields.io/jsdelivr/npm/hw/bootstrap.native)](https://www.jsdelivr.com/package/npm/bootstrap.native)
[![typescript version](https://img.shields.io/badge/typescript-5.6.3-brightgreen)](https://www.typescriptlang.org/)
[![eslint version](https://img.shields.io/badge/eslint-8.57.1-brightgreen)](https://github.com/eslint)
[![vitest version](https://img.shields.io/badge/vitest-2.1.3-brightgreen)](https://vitest.dev/)
[![vite version](https://img.shields.io/badge/vite-5.4.10-brightgreen)](https://vitejs.dev/)

Expand Down
6 changes: 2 additions & 4 deletions dist/bootstrap-native.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,8 @@ a!==l&&yn(this,l);return}const{offsets:r}=this;// istanbul ignore else @preserve
if(a&&n<r[0]&&r[0]>0){this.activeItem=null;// istanbul ignore else @preserve
e&&Oo(e);return}c.forEach((l,h)=>{a!==l&&n>=r[h]&&(typeof r[h+1]>"u"||n<r[h+1])&&yn(this,l)})}});d(this,"_toggleEventListeners",e=>{(e?_:B)(this.scrollTarget,Be,this.refresh,nt)});const{element:o,options:i}=this;this.target=H(i.target,E(o)),this.target&&(this.scrollTarget=o.clientHeight<o.scrollHeight?o:oe(o),this.scrollHeight=No(this.scrollTarget),this._toggleEventListeners(!0),this.refresh())}get name(){return ko}get defaults(){return Ac}dispose(){this._toggleEventListeners(),super.dispose()}}d(Gt,"selector",Dc),d(Gt,"init",Lc),d(Gt,"getInstance",Ic);const ye="tab",Mo="Tab",Cn=`[${ct}="${ye}"]`,_o=t=>W(t,Mo),Oc=t=>new Qt(t),cs=$(`show.bs.${ye}`),Sn=$(`shown.bs.${ye}`),as=$(`hide.bs.${ye}`),xn=$(`hidden.bs.${ye}`),me=new Map,Hn=t=>{const{tabContent:s,nav:e}=t;// istanbul ignore else @preserve
s&&g(s,Ot)&&(s.style.height="",b(s,Ot));// istanbul ignore else @preserve
e&&u.clear(e)},Pn=t=>{const{element:s,tabContent:e,content:n,nav:o}=t,{tab:i}=T(o)&&me.get(o)||{tab:null};// istanbul ignore next @preserve
// istanbul ignore else @preserve
if(e&&n&&g(n,R)){const{currentHeight:c,nextHeight:a}=me.get(s)||{currentHeight:0,nextHeight:0};// istanbul ignore next @preserve
// istanbul ignore else @preserve: vitest won't validate this branch
e&&u.clear(e)},Pn=t=>{const{element:s,tabContent:e,content:n,nav:o}=t,{tab:i}=T(o)&&me.get(o)||{tab:null};// istanbul ignore else @preserve
if(e&&n&&g(n,R)){const{currentHeight:c,nextHeight:a}=me.get(s)||{currentHeight:0,nextHeight:0};// istanbul ignore else @preserve: vitest won't validate this branch
c!==a?setTimeout(()=>{e.style.height=`${a}px`,_t(e),A(e,()=>Hn(t))},50):Hn(t)}else o&&u.clear(o);Sn.relatedTarget=i,w(s,Sn)},Dn=t=>{const{element:s,content:e,tabContent:n,nav:o}=t,{tab:i,content:c}=o&&me.get(o)||{tab:null,content:null};let a=0;// istanbul ignore else @preserve
n&&e&&g(e,R)&&([c,e].forEach(r=>{// istanbul ignore else @preserve
T(r)&&f(r,"overflow-hidden")}),a=T(c)?c.scrollHeight:0),cs.relatedTarget=i,xn.relatedTarget=s,w(s,cs);// istanbul ignore else @preserve
Expand Down
2 changes: 1 addition & 1 deletion dist/bootstrap-native.cjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/bootstrap-native.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export interface BaseOptions {
[key: string]: any;
[key: string]: unknown;
}
declare class BaseComponent {
element: HTMLElement;
Expand Down
6 changes: 2 additions & 4 deletions dist/bootstrap-native.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/bootstrap-native.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit eb52066

Please sign in to comment.