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

gitee-mobile-view

v2.7.0-alpha.1

Published

码云移动端视图库

Downloads

29

Readme

gitee-mobile-view

gitee-release-cli

目录

介绍

码云移动端视图库。

开源工具

  • UI 组件库:mint-ui
  • timeago:vue-timeago
  • 代码高亮:highlight.js
  • 数据可视化:echarts
  • 网络库:axios
  • 国际化:vue-i18n
  • 低频扩展:html2canvas、vue-cookie、qrcode-generator 等

自定义部分

axios:

网络工具库,目前将过滤器定义和一些预处理放在这里,以后扩充多 axios 实例也将在这里进行。

手机版全局 Vue 模块:

  • 单评论框组件 replyBox.vue
  • 评论列表组件 comments.vue
  • 通用评论组件 commonComments.vue
  • 图片预览组件——支持单图片和 html 字符串内的图片 imageView.vue
  • loading UI 组件 loading.vue
  • loadmore UI 组件 loadmore.vue

全局指令:

  • auth.js
    进行 UI 类型基础权限判别。
  • device_orientation.js
    手机横屏判定,添加 ‘landscape’ 类
  • scroll_fixed.js
    滑动固定元素位置,目前是固定于顶部。 滑动时 scrollTop 超过元素所在位置时固定。
  • textarea_autoresize.js
    自动调整 textarea 的高度。换行时调整 textarea 的高度。
  • image_zoom.js
    使用弹层来预览图片
  • autoshrink.js
    收起/展开显示元素内超过最大高度的部分

全局 mixins:

只包括全局的,和单个入口有关的放置在对应目录

  • base 放置基础 mixin,将会 mixin 到整个实例对象。
  • emitter
    该 mixin 是为了解决组件间通讯。 含 dispatch 方法和 broadcast 方法。
    dispatch - 用于向子组件发送事件。
    broadcast - 用于向上发送事件。

待办

  • 将主仓库中的移动端相关的 CSS 和 JavaScript 文件全部移入此仓库中,与主仓库完全分离。
  • 移除 gitee-locales 依赖,gitee-locales 的翻译文本是给 PC 端用的,大部分都用不到。