dcat-admin / docs Goto Github PK
View Code? Open in Web Editor NEWDcat Admin官方文档
Home Page: http://www.dcatadmin.com
Dcat Admin官方文档
Home Page: http://www.dcatadmin.com
how can the editor field with tinymce be set to use a relative path instead of an absolute one?
语言我设置为繁体以后,很多繁体字显示不出来,就比如本身自带的/resources/lang/zh-TW/admin.php文件里,很多繁体字都显示不出来,我觉得是字体库的问题,但不知道要怎么更改dcat的显示字体。
//邀请码
$grid->invite_code->qrcode(function(){
return $this->url;
});
我按照文档设置中文
修改了我的config/app.php里的locale=zh_CN
,但是界面并没有变成中文
查询laravel里相关issue,找到这个帖子standard: locale should be zh_CN not zh-CN
按照帖子里的描述,设置locale=zh-CN
, 界面变成中文了。
我觉得文档需要指明这一点。
我的composer.json:
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.3|^8.0",
"dcat/laravel-admin": "2.*",
"maatwebsite/excel": "^3.1",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.12",
"laravel/tinker": "^2.5"
},
"require-dev": {
"facade/ignition": "^2.5",
"fakerphp/faker": "^1.9.1",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.2",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.3.3"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
}
}
当我执行composer install
时,
会得到一个跟composer require dcat/laravel-admin:"2.*" -vvv failed一样的错误:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires dcat/laravel-admin 2.*, found dcat/laravel-admin[2.0.0-beta, 2.0.1-beta, 2.0.2-beta, 2.0.3-beta, 2.0.4-beta, 2.0.5-beta, 2.0.6-beta, 2.0.7-beta, 2.0.8-beta, 2.0.9-beta, 2.0.10-beta, 2.0.11-beta, 2.0.12-beta, 2.0.13-beta, 2.0.14-beta, 2.0.15-beta, 2.0.16-beta, 2.0.17-beta, 2.0.18-beta, 2.0.19-beta, 2.0.20-beta, 2.0.x-dev] but it does not match your minimum-stability.
缺少静态文件资源,
以dcat-page
构建之后发现没有图片
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.