Skip to content

Steward-launcher/steward-newtab-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

中文

Since V4.0.0, Steward has componentized and rasterized newtab, providing APIs and official repositories

Component development

You can add help documentation for your component at this repository

Vue component development

Please refer to FranckFreiburger/http-vue-loader: load .vue files from your html/js

Components APIs

Vue prototype APIs

Global StewardApp object

For details, please view the source code or use console.log

window.stewardApp = {
  // Some plugin helpers
  helpers,
  // chrome apis
  chrome,
  util,
  constant,
  Toast,
  md5,
  browser,
  // user configuration for steward
  config
}

Configure the component in data.json

{
  // required
  "version": "0.1.0",
  // required,unique
  "id": "shortcuts",
  "icon": "https://i.imgur.com/4NVFlf3.png",
  // required
  "title": "Shortcuts",
  "subtitle": "Shortcuts",
  // required
  "source": "https://raw.githubusercontent.com/Steward-launcher/steward-newtab-components/master/components/shortcuts/0.1.0/index.vue",
  // your github ID
  "author": "solobat",
  // The default grid configuration, the format is [x coordinate, y coordinate, grid width, grid height], and the grid is a layout of 24 * 13
  // required
  "grid": [0, 0, 10, 1]
},

Grid configuration

Please refer to jbaysolutions/vue-grid-layout: A draggable and resizable grid layout, for Vue.js.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages