augushong 45bc4a7f43 refactor(curd): 移除生成模板与框架页面 data-auth 声明(含 uploadfile 权限映射回归本页节点的行为变化说明)
- CURD 生成模板 index.code 删除 6 个 data-auth 属性行,生成页面零权限声明
- extend/base 13 个列表页 index.html 清理全部 data-auth-* 声明(含注释文本同步改写)
- system/host/index.js 的 set-master 按钮 auth 改写为全节点 'system.host/setMaster'
  (驼峰动作段逐字保留,parseNodeStr 仅 snake 化控制器段);system/auth 的
  assignUsers 解析后与注册节点逐字相等,无需改写
- 行为变化:system/uploadfile 页原 data-auth-add/edit/delete 误映射 system.menu/*
  (上游模板复制残留),删除后按钮按本页 system.uploadfile/* 节点判定——该页
  控制器仅注册 delete 动作,非超管用户的添加按钮从此正确隐藏(现状是
  有 system.menu/add 权限即显示但点击被后端拒绝),data-auth-edit 为死属性
  (本页无编辑按钮)
- VersionBase::VERSION v2.7.0 → v2.8.0,使 admin-core.js 静态引用缓存键
  (?t=get_site_version_key())失效,防下游升级后旧缓存 js 叠加新布局导致
  非超管按钮全隐
2026-10-04 01:31:36 +00:00
2024-06-07 11:09:53 +08:00
2021-11-15 18:00:19 +08:00

Project Introduction

For a better development experience.

Only for developers' services, only for demand customization' services.

A rapidly developed backend management system based on ThinkPHP and Layui 2.10.

Technical exchange QQ group: 207160418

Installation tutorial

ulthon_admin uses Composer to manage project dependencies. Therefore, before using ulthon_admin, make sure your machine has Composer installed.

It is recommended to set the composer's image to the Alibaba image source

Download the installation package through git, and install dependency packages through composer

The first step is to download the installation package
git clone https://gitee.com/ulthon/ulthon_admin

Or use composer to create
composer create-project ulthon/ulthon_admin


The second step is to install dependent packages (can be ignored when created using composer)
composer install

The third step, configure `.env`
Copy `.example.env` to `.env`
Modify `env` file

[DATABASE]
TYPE=mysql
HOSTNAME=host.docker.internal
DATABASE=ulthon
USERNAME=root
PASSWORD=root
HOSTPORT=3306
CHARSET=utf8
DEBUG=true
PREFIX=ul_


Step 4, install the database (create tables + initialize data)
php think migrate:run

Finally, run locally temporarily
php think run

This installation method is very friendly to the development experience

Download the complete package

The complete package download method is being updated.

Online installation (initialization) database

The framework does not have the function of online installation, and it will not be provided built-in in the future.

However, ulthon_admin uses the database migration tool to install the database. It does not have to be used in the command line environment. It can also be used in ordinary controllers. We provide a simple code script to demonstrate how to install it online.

How to install the database online

Why choose ulthon_admin

  • No plug-in ecology and application market, no historical baggage and development baggage
  • Keep up to date with the latest technology stack and development ideas
  • Continuously improve the development experience
  • You want to make a product or customized project that can be developed and maintained in the long term
  • You need a project that can reach a certain level of functional construction with simple code development
  • You want a complete tutorial document
    • ulthon_admin documentation will be continuously improved
    • The document agrees on detailed directory specifications, code specifications, code specification management tool configuration files, etc.
    • Documentation showing detailed best practices and feature use cases
    • Documentation includes frequently asked questions and low-level introduction
  • Standard dependency management supports streamlining and customization based on actual conditions

Site address

Code repository

Project Features

  • Compatible with PHP8.1
    • Minimum version PHP7.4
  • Support mobile form to card conversion
  • Support multiple skins
    • standard
    • quasi-object
    • Prototype
    • Sci-fi *GTK
    • pixels *WIN7
  • Fast CURD command line
    • Generate controller, model, view and JS files with one click
    • Support related queries, field settings, etc.
    • Supports generating database migration code
    • Supports generating property declarations for model fields
  • Permission management system based on auth
    • Implement auth authority node management through annotation
    • One-click update of auth permission nodes, no need to manually enter management
    • Complete back-end permission verification and front page button display and hide control
  • Perfect menu management
    • Management by modules
    • Infinitus menu
    • Menu editing will prompt Permission Node
  • Complete upload component function
    • Local storage *Alibaba Cloud OSSrecommended
    • Tencent Cloud COS
    • Qiniuyun OSS
  • Complete front-end component functions
    • Re-encapsulate layui's form form, eliminating the need to manually splice data requests
    • Simple and easy-to-use picture and file upload component
    • Simple and easy-to-use rich text editor ckeditor
    • Re-encapsulate the pop-up layer and use it in a minimalist way
    • Re-encapsulate the table to make it more comfortable to use
    • Encapsulate again according to the cols parameter of the table, provide interfaces to implement functions such as image, switch, list, etc., and then basically expand it yourself
    • Generate search form according to table parameters with one click, no need to write it yourself
  • Use database for logging by default
  • Deploy static resources to OSS with one click
    • All files in the public\static directory can be deployed with one click
    • One configuration item switches static resources (oss/local)
  • Upload file record management
  • Customize the background path to prevent others from finding the corresponding background address
  • Highly customizable
    • Can streamline code functions
    • Support customized deletion of unnecessary dependencies

new version update

Keep in sync with the versions of thinkPHP and layui.

In the future, whenever a new feature is implemented, a tag will be released.

The main meaning of tag is to facilitate querying documents and comparing differences. (ulthon_admin itself is for customization and will not be forced to update)

Open Source Agreement

Mulan Open Source Agreement

What is

tp6 background, thinkphp6 background, layui background, curd background

Skin Preview

Supports a variety of special effect skins, please go to Demo Site for more information

standard

Well-behaved, concise and generous, steady yet lively.

Skeuomorphism

Elegance is coming! Become an elegant programmer from now on.

Science Fiction

Suitable for night use and unconventional backend use such as Internet of Things systems, monitoring systems, and large-screen systems.

gnome

Feel the fear from gnome? A "Linux-compatible" backend framework.

Development dependencies

Basic environment

Only the most basic PHP development environment is required.

  • PHP8.0 (PATH environment variable is set correctly)
  • composer
  • Mysql5.7+ (necessary for development)

In the development environment, it is not necessary to install nginx, apache, ftp and other software, and you can develop directly through the built-in server.

In fact, if you use SQLite to develop, you don't even want to install MySQL, but SQLite cannot adjust data tables and columns very well, so you generally use conventional databases such as MySQL.

SASS

Some underlying components in the framework use SASS features, but generally you don’t need to worry about it. If you use vscode, you can refer to the following:

Name: Live Sass Compiler
ID: glenn2223.live-sass
Description: Compile Sass or Scss to CSS at realtime.
Version: 5.5.1
Posted by: Glenn Marks
VS Marketplace link: https://marketplace.visualstudio.com/items?itemName=glenn2223.live-sass

Configuration

Configuration of liveSassCompiler in vscode:

{
     "liveSassCompile.settings.includeItems": [
         "/public/static/common/css/theme/*.scss",
         "/public/static/plugs/lay-module/tableData/tableData.scss",
         "/public/static/plugs/lay-module/tagInput/tagInput.scss",
         "/public/static/plugs/lay-module/propertyInput/propertyInput.scss"
     ]
}
Description
No description provided
Readme MulanPSL-2.0 14 MiB
Languages
PHP 95%
SCSS 2.4%
Less 1%
Smarty 0.7%
Vue 0.5%
Other 0.4%