cnvs/studio

该包已被废弃且不再维护。作者建议使用 austintoddj/studio 包。

Canvas的前端框架,灵感来源于Medium。

v1.1.0 2020-08-26 01:34 UTC

This package is auto-updated.

Last update: 2020-08-26 01:43:08 UTC


README

HEADER.png

68747470733a2f2f706f7365722e707567782e6f72672f61757374696e746f64646a2f73747564696f2f646f776e6c6f616473 68747470733a2f2f706f7365722e707567782e6f72672f61757374696e746f64646a2f73747564696f2f762f737461626c65 68747470733a2f2f706f7365722e707567782e6f72672f61757374696e746f64646a2f73747564696f2f6c6963656e7365

简介

虽然Canvas没有规定您前端的具体设计,但它确实提供了一个使用BootstrapVue的基本起点,这对于许多应用将是有帮助的。

安装

您可以使用composer将Studio安装到您的Laravel项目中

composer require austintoddj/studio

一旦安装了austintoddj/studio包,您可以使用studio:install Artisan命令安装前端脚手架

php artisan studio:install

安装了austintoddj/studio Composer包并生成了前端脚手架后,您的package.json文件将包含安装和编译所需的依赖项

# Using NPM
npm install
npm run dev

# Using Yarn
yarn
yarn dev

配置

编译Studio的资产后,主配置文件将位于config/studio.php。此文件允许您自定义应用程序使用该包的各个方面。

Studio默认在/studio处提供一个简单的UI。这可以通过更新path选项来更改

/*
|--------------------------------------------------------------------------
| Base Route
|--------------------------------------------------------------------------
|
| This is the URI path where Studio will be accessible from. You are free
| to change this path to anything you like. Note that the URI will not
| affect the paths of its internal API that aren't exposed to users.
|
*/

'path' => env('STUDIO_PATH_NAME', 'studio'),

/*
|--------------------------------------------------------------------------
| User Identifier
|--------------------------------------------------------------------------
|
| This is the publicly identifying attribute given in the URL to expose
| users. By default, the User ID will be used. Note that "username"
| requires a canvas_user_meta record to exist and be defined.
|
| Supported Identifiers: "id", "username"
|
*/

'identifier' => env('STUDIO_USER_IDENTIFIER', 'id'),

许可证

Studio是开源软件,采用MIT许可证