1.10.0 • Published 5 months ago

@servable-community/publishable v1.10.0

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

Publishable protocol for Servable

@servable-community/publishable

npm Package NPM Downloads Build Status License: MIT JavaScript Style Guide

A complete lifecycle management for publication

Allow any object to be in a published or drafted state.

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

%%{

  init: {

    'theme': 'base',

    'themeVariables': {

      'primaryColor': '#fff',

      'primaryTextColor': '#323232',

      'primaryBorderColor': '#323232',

      'lineColor': '#323232',

      'fontFamily': 'ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace'

    }

  }

}%%

flowchart TD

    start([Launch Servable]) --> requiresMigration{A protocol\n requires\n migration?}

    requiresMigration -- Yes --> migrate[Migrate every protocol \nthat requires migration]

    requiresMigration -- No --> doLaunch[Do Launch]

    migrate --> doLaunch[Do Launch]

Available in Servable registry

@servable-community/publishable is available at servable registry.

Use in your servable project:

yo servable -t useprotocol --protocolid @servable-community/publishable

Install

yarn add @servable-community/publishable

or

npm install @servable-community/publishable

Compatible framework adapters

AdapterVersionLink
@servable-community/parse-server-adapter*https://github.com/servable-community/parse-server-adapter.git

Used APIs

ApiVersion
Object*
Cloud*
User*
Role*
Session*
Installation*
Config*
LiveQuery*

Categories

Static Badge Static Badge

Companion packages

Dependencies

Target classes

Managed classes

Applies to classes: commentableEntry

Usage

Template

Add this template to your class' protocols.json file. Fill the values to fit your needs with the right parameters.

{
  "id": "publishable",
  "name": "Publishable",
  "slug": "",
  "params": {}
}

Parameters

typeidMessageDefault valuevacuity
inputwaitForValidationWait for validationoptional
inputerrorMessageError messageCould not publishmandatory
inputnotifyOnErrorNotify on errormandatory

Seed

Protocol class

Before init

After init

Config

Functions

Live Classes

Schema

Target class

Fields

NameTypeTarget classDefault value
publishableStatusString

Class Level Permissions

NameContent
protectedFields{"*":[]}

Indexes

NameContent
_publishableStatus{"publishableStatus":1}

System

Lib

Triggers

Resources

Servable Documentation

You can find here the complete servable documentation with guides and api reference.

Servable Registry

You can find other Servable protocols at the Servable registry

License

MIT © servable-community

1.10.0

5 months ago

1.9.0

5 months ago

1.8.1

5 months ago

1.8.0

5 months ago

1.6.2

5 months ago

1.7.0

5 months ago

1.6.1

5 months ago

1.5.2

5 months ago

1.6.0

5 months ago

1.5.1

5 months ago

1.5.0

5 months ago

1.4.0

5 months ago

1.3.0

5 months ago

1.2.0

6 months ago