npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

svelte-material-fix

v0.0.1

Published

- 使用svelte框架 // https://www.sveltejs.cn/docs - js - vite - Svelte Material UI // https://sveltematerialui.com/ - 路由:svelte-spa-router // https://www.npmjs.com/package/svelte-spa-router

Downloads

4

Readme

构成

- 使用svelte框架 // https://www.sveltejs.cn/docs
- js
- vite
- Svelte Material UI // https://sveltematerialui.com/
- 路由:svelte-spa-router // https://www.npmjs.com/package/svelte-spa-router

参考

- 页面跳转:参考home
- 父子组件:参考baseCompany
- 路由定义:/routes/index
- 全局样式:app.css
- UI组件:参考baseCompany,注:每个不同的组件单独npm install
- 修改UI组件样式:参考App.svelte,注意在顶层App.svelte修改的样式是全局的
- 主题修改:/src/assets/smui.css 这个是原件,要覆盖的修改在/theme/smui.css 内修改
- 响应性:采用 triggered by assignment 方式,即 = 触发。push 和 splice 之类的方法就不会触发自动更新。用扩展符解决这个问题。
- store使用:简单解释就是,在store.js定义可写或可读的全局属性,export导出全局属性对象,
在A页面import全局属性对象,然后对应属性执行subscribe(),在B页面对全局属性执行update(),
update回调的return值即新的修改值,A页面取到的值对应变化。参考:baseCompany和BaseForm