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

@tailor-cms/tce-svelte

v0.0.1

Published

Content element starter template

Downloads

2

Readme

tailor-content-element

Template project to quickly get started developing custom content elements.

:warning: DISCLAIMER The project is in early prototype phase. More info will be added later.

Description

This project is a starting point used for developing custom content elements for Tailor. It is intended to get you up and running quickly by bootstraping the application structure and setting base default properties.

Requirements

Setup

The project is already preconfigured with certain defaults, however it is necessary to go through some properties and modify the values for the purposes of your specific custom content element.

Instructions

  1. Clone the repo by executing degit https://github.com/ExtensionEngine/tailor-content-element
  2. Install dependencies npm install
  3. Setup project by running npm run setup

content-element folder

Folder structure

Add code for the edit component of your element to edit/index.svelte file. If the element supports them, you can also add code for top toolbar and side toolbar in the designated files. In the same manner add code for the display component to display/index.svelte file. You can choose any kind of component composition, however only root Edit and Display components can be exposed as a part of the element's interface. TypeScript types can be added to support better developer experience and serve as a documentation for the element. Use the ElementData interface in typings.ts file to specify and list the data that your element requires and manages. The initState function can optionally be specified to return the initial state of that data. Make sure to edit the relevant properties of the manifest in index.ts file.

preview folder

The intent of the previewer is to provide a development environment outside of Tailor CMS and other external systems. That way, you're able to get early feedback on the element you're building and test it in isolation. Previewer supports sharing common properties between edit and display states if those exist. Look for the comments and placeholders in the code to wire up the components.

Used technologies

The project currently uses Svelte, Vite and Svelte Material UI.