定制 adrienpayet/praticable-blocks 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

adrienpayet/praticable-blocks

最新稳定版本:v1.1.0

Composer 安装命令:

composer require adrienpayet/praticable-blocks

包简介

Store Vue Praticable blocks coming from the front-end to Kirby blocks.

README 文档

README

This plugin mainly allows several blocks processes at the heart of the praticable.fr website.

Installation

Download

Download and copy this repository to /site/plugins/praticable-blocks.

Composer

composer require adrienpayet/praticable-blocks

Features

Documentation in progress

Store JSON data as Kirby blocks

One of the main features consist in storing JSON data sent from the front-end through a POST request to Kirby blocks. POST request can fetch any route ending by save.php, eg. www.your-website.com/save.json or www.your-website.com/page/save.json. Data should be stored in the body request, following that structure :

type BodyRequest = {
  pageUri: string
  blocks: Array<MarkdownBlock | ImageBlock>
}

type MarkdownBlock = {
  type: "markdown"
  content: {
    text: string
    width?: string = "400px"
    height?: string = "200px"
    transform?: string = "translate(912px, 240px)"
    zindex?: number = 0
    refs?: string = ""
  }
}

type ImageBlock = {
  type: "image"
  content: {
    image: Array<string> // eg. ['example-image.jpeg']
    b64: string // A b64 string of the image
    width?: string = "400px"
    height?: string = "400px"
    transform?: string = "translate(0px, 0px)"
    zindex?: number = 0
    iscover?: boolean = false
    caption?: string = ""
  }
}

Representatives

Concept

representative structure

Representatives are blocks that represent spaces (pages) and allow to navigate to it. At least, they contain the title of the represented space, linked to it (wrapped in a <a> tag). Optionnaly, they can contain a cover image and a introduction text.

Usage

License

MIT

Credits

统计信息

  • 总下载量: 46
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固