加入ViewerJS,目前什么都没有实现
This commit is contained in:
parent
c1f6934a86
commit
797a958490
13
assets/ViewerJsAsset.php
Normal file
13
assets/ViewerJsAsset.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace app\assets;
|
||||
|
||||
use yii\web\AssetBundle;
|
||||
|
||||
class ViewerJsAsset extends AssetBundle
|
||||
{
|
||||
public $sourcePath = '@npm/viewerjs/dist';
|
||||
public $js = [
|
||||
'viewer.min.js',
|
||||
];
|
||||
}
|
170
composer.json
170
composer.json
@ -1,84 +1,94 @@
|
||||
{
|
||||
"name": "yiisoft/yii2-app-basic",
|
||||
"description": "Yii 2 Basic Project Template",
|
||||
"keywords": ["yii2", "framework", "basic", "project template"],
|
||||
"homepage": "https://www.yiiframework.com/",
|
||||
"type": "project",
|
||||
"license": "BSD-3-Clause",
|
||||
"support": {
|
||||
"issues": "https://github.com/yiisoft/yii2/issues?state=open",
|
||||
"forum": "https://www.yiiframework.com/forum/",
|
||||
"wiki": "https://www.yiiframework.com/wiki/",
|
||||
"irc": "ircs://irc.libera.chat:6697/yii",
|
||||
"source": "https://github.com/yiisoft/yii2"
|
||||
"name": "yiisoft/yii2-app-basic",
|
||||
"description": "Yii 2 Basic Project Template",
|
||||
"keywords": [
|
||||
"yii2",
|
||||
"framework",
|
||||
"basic",
|
||||
"project template"
|
||||
],
|
||||
"homepage": "https://www.yiiframework.com/",
|
||||
"type": "project",
|
||||
"license": "BSD-3-Clause",
|
||||
"support": {
|
||||
"issues": "https://github.com/yiisoft/yii2/issues?state=open",
|
||||
"forum": "https://www.yiiframework.com/forum/",
|
||||
"wiki": "https://www.yiiframework.com/wiki/",
|
||||
"irc": "ircs://irc.libera.chat:6697/yii",
|
||||
"source": "https://github.com/yiisoft/yii2"
|
||||
},
|
||||
"minimum-stability": "stable",
|
||||
"require": {
|
||||
"php": ">=8.2.0",
|
||||
"yiisoft/yii2": "~2.0.45",
|
||||
"yiisoft/yii2-bootstrap5": "~2.0.2",
|
||||
"yiisoft/yii2-symfonymailer": "~2.0.3",
|
||||
"sam-it/yii2-mariadb": "^3.1",
|
||||
"bestyii/yii2-gii-rest": "*",
|
||||
"bestyii/yii2-openapi-reader": "dev-master",
|
||||
"fortawesome/font-awesome": "^6.5",
|
||||
"ext-zip": "*",
|
||||
"ext-rar": "*",
|
||||
"wapmorgan/unified-archive": "^1.2",
|
||||
"symfony/console": "^6.1",
|
||||
"gemorroj/archive7z": "^5.7",
|
||||
"npm-asset/viewerjs": "^1.11"
|
||||
},
|
||||
"require-dev": {
|
||||
"yiisoft/yii2-debug": "~2.1.0",
|
||||
"yiisoft/yii2-gii": "~2.2.0",
|
||||
"yiisoft/yii2-faker": "~2.0.0",
|
||||
"phpunit/phpunit": "~9.5.0",
|
||||
"codeception/codeception": "^5.0.0 || ^4.0",
|
||||
"codeception/lib-innerbrowser": "^4.0 || ^3.0 || ^1.1",
|
||||
"codeception/module-asserts": "^3.0 || ^1.1",
|
||||
"codeception/module-yii2": "^1.1",
|
||||
"codeception/module-filesystem": "^3.0 || ^2.0 || ^1.1",
|
||||
"codeception/verify": "^3.0 || ^2.2",
|
||||
"symfony/browser-kit": "^6.0 || >=2.7 <=4.2.4"
|
||||
},
|
||||
"config": {
|
||||
"allow-plugins": {
|
||||
"yiisoft/yii2-composer": true
|
||||
},
|
||||
"minimum-stability": "stable",
|
||||
"require": {
|
||||
"php": ">=8.2.0",
|
||||
"yiisoft/yii2": "~2.0.45",
|
||||
"yiisoft/yii2-bootstrap5": "~2.0.2",
|
||||
"yiisoft/yii2-symfonymailer": "~2.0.3",
|
||||
"sam-it/yii2-mariadb": "^3.1",
|
||||
"bestyii/yii2-gii-rest": "*",
|
||||
"bestyii/yii2-openapi-reader": "dev-master",
|
||||
"fortawesome/font-awesome": "^6.5",
|
||||
"ext-zip": "*",
|
||||
"ext-rar": "*",
|
||||
"wapmorgan/unified-archive": "^1.2",
|
||||
"symfony/console": "^6.1",
|
||||
"gemorroj/archive7z": "^5.7"
|
||||
},
|
||||
"require-dev": {
|
||||
"yiisoft/yii2-debug": "~2.1.0",
|
||||
"yiisoft/yii2-gii": "~2.2.0",
|
||||
"yiisoft/yii2-faker": "~2.0.0",
|
||||
"phpunit/phpunit": "~9.5.0",
|
||||
"codeception/codeception": "^5.0.0 || ^4.0",
|
||||
"codeception/lib-innerbrowser": "^4.0 || ^3.0 || ^1.1",
|
||||
"codeception/module-asserts": "^3.0 || ^1.1",
|
||||
"codeception/module-yii2": "^1.1",
|
||||
"codeception/module-filesystem": "^3.0 || ^2.0 || ^1.1",
|
||||
"codeception/verify": "^3.0 || ^2.2",
|
||||
"symfony/browser-kit": "^6.0 || >=2.7 <=4.2.4"
|
||||
},
|
||||
"config": {
|
||||
"allow-plugins": {
|
||||
"yiisoft/yii2-composer" : true
|
||||
},
|
||||
"process-timeout": 1800,
|
||||
"fxp-asset": {
|
||||
"enabled": false
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"post-install-cmd": [
|
||||
"yii\\composer\\Installer::postInstall"
|
||||
],
|
||||
"post-create-project-cmd": [
|
||||
"yii\\composer\\Installer::postCreateProject",
|
||||
"yii\\composer\\Installer::postInstall"
|
||||
]
|
||||
},
|
||||
"extra": {
|
||||
"yii\\composer\\Installer::postCreateProject": {
|
||||
"setPermission": [
|
||||
{
|
||||
"runtime": "0777",
|
||||
"web/assets": "0777",
|
||||
"yii": "0755"
|
||||
}
|
||||
]
|
||||
},
|
||||
"yii\\composer\\Installer::postInstall": {
|
||||
"generateCookieValidationKey": [
|
||||
"config/web.php"
|
||||
]
|
||||
}
|
||||
},
|
||||
"repositories": [
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "https://asset-packagist.org"
|
||||
}
|
||||
"process-timeout": 1800,
|
||||
"fxp-asset": {
|
||||
"enabled": false
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"post-install-cmd": [
|
||||
"yii\\composer\\Installer::postInstall"
|
||||
],
|
||||
"post-create-project-cmd": [
|
||||
"yii\\composer\\Installer::postCreateProject",
|
||||
"yii\\composer\\Installer::postInstall"
|
||||
]
|
||||
},
|
||||
"extra": {
|
||||
"yii\\composer\\Installer::postCreateProject": {
|
||||
"setPermission": [
|
||||
{
|
||||
"runtime": "0777",
|
||||
"web/assets": "0777",
|
||||
"yii": "0755"
|
||||
}
|
||||
]
|
||||
},
|
||||
"yii\\composer\\Installer::postInstall": {
|
||||
"generateCookieValidationKey": [
|
||||
"config/web.php"
|
||||
]
|
||||
}
|
||||
},
|
||||
"repositories": [
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "https://asset-packagist.org"
|
||||
},
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "https://asset-packagist.org"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
/* @var $directory string 当前路径 */
|
||||
|
||||
use app\assets\ViewerJsAsset;
|
||||
use app\models\NewFolderForm;
|
||||
use app\models\RenameForm;
|
||||
use app\models\Share;
|
||||
@ -24,6 +25,7 @@ $this->title = '文件管理';
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
FontAwesomeAsset::register($this);
|
||||
JqueryAsset::register($this);
|
||||
ViewerJsAsset::register($this);
|
||||
$this->registerCssFile('@web/css/home_style.css');
|
||||
?>
|
||||
<div class="home-directory">
|
||||
|
Loading…
Reference in New Issue
Block a user