Skip to content

revathiajay/svelte-ionic-app

 
 

Repository files navigation

Ionic Svelte UI demo

A showcase app for all Ionic UI elements. Use this app to try-out the elements you like for your app, and then navigate directly to the API docs or the source code (now: only svelte).

Published as web app: https://ionicsvelte.firebaseapp.com

Or if you want to run it locally:

npm install -g degit
degit Tommertom/svelte-ionic-app svelte-ionic-app
cd svelte-ionic-app
npm i
npm run dev

The app will be served on localhost:8080.

All items also available as individual REPLs: https://github.com/Tommertom/svelte-ionic-app/blob/master/REPLS.md

NEW FEATURE: click to view source! For all components (except tab) you can click the lower right source button to view the source and copy/paste in your app. If you use fullscreen view, the menu will be a sidepanel instead of a hamburger!

NEW FEATURE2: click on share button in source view to link directly to the Ionic API docs

NEW FEATURE3: almost all UI elements have a separate REPL (coding playground)

Do you like this work? Please star this project!

Screen1.PNG

And the source view with copy feature and you can select text with the mouse: Screen2.PNG

All features (vision/realised)

  • All Ionic Framework UI components showcased (100% done)
  • Run as SPA (100% done) - Router via "svelte-routing" repo
  • Service Worker setup via workbox (50%)
  • PWA compliance via Ligthouse score (40% - missing the service worker mostly)
  • Stores (0%)
  • RXJS usage (100%)
  • Localstorage via localforage (50%)
  • Firebase SDK - analytics/firestore (75%)
  • Capacitor for mobile native support (100%)
  • Ionic Theming in local styles and global CSS (100%)
  • REPLs for each element (100%)
  • Source code previewer (100%)
  • Cookie Popup (100%)

Known issues

Ion Tabs

May need to refactor the IonTab.svelte

IonMenu gives warning

Need to use other api

ion-back-button does not show

Ion Back Button does not appear in the app. Neither in a REPL. Made a custom version.

Nav needs customElement

Not necessarily an issue, but still a bit undesireable to make a custom element to be using a IonNav (as in <ion-nav root="my-element">). Therefore made IonNav.svelte to handle this and developers can include svelte component instead of manually registering a customElement.

Altdetails is not taking the route argument

Needing some debugging

Cupertino pane has issue after closing of button

The demo does not have this issue as I removed the _this.parentEl.appendChild(_this.contentEl); in/around line 428 (this.paneEl.addEventListener('transitionend', function (t) { in closePane ) of file node_modules/cupertino-pane/dist/cupertino-pane.esm.bundle.js.

Todo's

A number of todo's:

About

Ionic UI showcase app - try Ionic UI and directly go to API or source code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 94.7%
  • JavaScript 4.8%
  • CSS 0.5%