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

total-ssm-sprite

v2.0.48

Published

total-ssm-sprite ui library

Downloads

2

Readme

total-ssm-sprite

  • 前端项目架构,包含服务组件,业务组建,工具类,项目核心结构等

Project Version

v1.1.0-alpha.1
更改整体的模板,使用SmartAdmin 4.5.1 

Project configuration

configuration.json 

"sandbox": Array - 兼容 AngularJS 项目的标识符,存放项目的编号 code 值,
"systemSetting": {- 系统配置
	"loginBackgroundImg": String - 配置登陆的背景图片的图片路径,
	"sMSLogin": Boolean - 是否允许短信登录,	
	"captchaMode": {
		"enable": Boolean - 是否启用aliyun滑块验证
		"aliyun": {
			"appkey": String - appkey,
			"scene": String - scene
		}
	},
	"appLogoImg": {
		default: String - 默认的app的logo图片路径
    	${appCode}: String - 指定appCode项目app的logo图片路径
	},
	"systemLogo": {
		default: String - 默认的系统logo图片路径
    	${appCode}: String - 指定的系统logo图片路径
	},
	"systemTitle": {
		default: String - 默认的系统标题
    	${appCode}: String - 指定的系统标题
	},
	"sidebarBackgroundImg": {
		default: String - 默认的系统菜单侧边栏背景图(左上一小块)
    	${appCode}: String - 指定的系统菜单侧边栏背景图(左上一小块)
	},
	"resourceServer": {	- 配置静态资源服务的地址,如果设置了该属性,会替换掉服务端的配置
		${appCode}: String - 静态资源服务的地址
	},
	"apiServer": { - 配置动态接口服务的地址,如果设置了该属性,会替换掉服务端的配置
    	${appCode}: String - 动态接口服务的地址
	},
	"cloudStorage": String - 静态云服务器的地址
},
"preference": { - 系统偏好设置,
	"shortcutMenuShow": Boolean - 是否允许显示快捷菜单,
	"language": Array - 该系统所支持的国际化标准,该节点可以省略,省略该节点系统会不显示国际化的切换按钮
	"setting": { 
		"enable": Boolean - 该节点为false时,以下节点设置失效,
		"appLayout": { - 应用程序的布局
			"fixedHeader": Boolean - 固定头
			"fixedNavigation": Boolean - 固定导航,
			"minifyNavigation": Boolean - 缩小导航,
			"hideNavigation": Boolean - 隐藏导航,
			"topNavigation": Boolean - 顶部导航,
			"fixedFooter": Boolean - 固定页脚,
			"boxedLayout": Boolean - 盒装版式
		},
		"accessibility": {	- 辅助功能
			"biggerContentFont": Boolean - 更大的内容字体,
			"highContrastText": Boolean - 提高字体的对比度
		},
		"globalModifications": { - 全局修改
			"cleanPageBackground": Boolean - 干净的页面背景,
			"hideNavigationIcons": Boolean - 隐藏导航图标,
			"disableCssAnimation": Boolean - 禁用css动画,(页面导航栏下面的加载线条)
			"hideInfoCard": Boolean - 隐藏信息卡,
			"leanSubheader": Boolean - 页面标题,
			"hierarchicalNavigation": Boolean - 清除导航链接的的左边细线,
			"darkNavigation": Boolean - 暗黑的导航背景
		},
		"globalFontSize": String - 全局字体大小,可取值(sm/md/lg/xl)
		"themeColors": String -主题颜色,可取值(Wisteria/Tapestry/Atlantis/Indigo/DodgerBlue/Tradewind/Cranberry/OsloGray/ChetwodeBlue/Apricot/BlueSmoke/GreenSmoke/WildBlueYonder/Emerald/Supernova/Hoki)
		"themeModes": String -主题模式(测试版本)-theme Modes(beta),可取值('light/default/dar')
	}
}
...
...
...
其他配置



示例
{
  "sandbox": ["bmw109"],
  "systemSetting": {
    "loginBackgroundImg": "assets/images/default-background-login.jpg",
    "sMSLogin": true,
    "captchaMode": {
      "enable": true,
      "aliyun": {
        "appkey": "FFFF0N000000000097D9",
        "scene": "nc_login"
      }
    },
    "appLogoImg": {
      "bmw109": "assets/images/default-logo-sidebar.png",
      "default": "assets/images/default-logo-sidebar.png"
    },
    "systemLogo": {
      "bmw109": "assets/images/logo.png",
      "default": "assets/images/default-logo-sidebar.png"
    },
    "systemTitle": {
      "bmw109": "bmw109 WebApp",
      "default": "SmartAdmin WebApp"
    },
    "sidebarBackgroundImg": {
      "bmw109": "assets/images/default-sidebar-bgImg.png",
      "default": "assets/images/default-sidebar-bgImg.png"
    },
    "resourceServer": {
      "bmw109": "http://localhost:8080/pandora"
    },
    "apiServer": {
      "bmw109": "http://127.0.0.1:8000/pandora"
    },
    "cloudStorage": "https://datavaluable.oss-cn-beijing.aliyuncs.com/"
  },
  "preference": {
    "shortcutMenuShow": false,
    "language": ["zh","en"],
    "setting": {
      "enable": true,
      "appLayout": {
        "fixedHeader": false,
        "fixedNavigation": false,
        "minifyNavigation": false,
        "hideNavigation": false,
        "topNavigation": false,
        "fixedFooter": false,
        "boxedLayout": false
      },
      "accessibility": {
        "biggerContentFont": false,
        "highContrastText": false
      },
      "globalModifications": {
        "cleanPageBackground": false,
        "hideNavigationIcons": false,
        "disableCssAnimation": false,
        "hideInfoCard": false,
        "leanSubheader": false,
        "hierarchicalNavigation": true,
        "darkNavigation": true
      },
      "globalFontSize": "sm",
      "themeColors": "Wisteria",
      "themeModes": "default"
    }
  }
  ...
}