From 93b33e66cdc8c1dcc0ba3a108beb102b12a219f6 Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Wed, 14 Feb 2024 13:45:37 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/README.md b/README.md index 336d897..c8f282a 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,45 @@ DIRECTORY STRUCTURE views/ contains view files for the Web application web/ contains the entry script and Web resources +目前已实现的功能 +------------------- +用户登录、注册 + +文件显示 + +文件操作(下载,删除,重命名) + +文件夹操作(删除,重命名) + +文件/文件夹上传 + +计划实现的功能 +------------------- + +文件夹打包下载 + +批量操作 + +文件校验信息查看 + +文件预览 + +文件/文件夹分享 + +分享管理 + +交互性提升(右键菜单) + +个人资料管理 + +访问控制 + +系统设置 + +设计主页,删除无用页面 + +EXTRA: 客户端开发 REQUIREMENTS ------------ From 5d74e7aaf88e8dce2617a0d3433862551d58694d Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Wed, 14 Feb 2024 13:57:07 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改+翻译 --- README.md | 54 +++++++++++++++++------------------------------------- 1 file changed, 17 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index c8f282a..0dd7c59 100644 --- a/README.md +++ b/README.md @@ -5,14 +5,11 @@

基于Yii 2框架的网盘系统

-Yii 2 Basic Project Template is a skeleton [Yii 2](https://www.yiiframework.com/) application best for -rapidly creating small projects. +这是一个基于[Yii 2](https://www.yiiframework.com/) PHP框架设计的小型网盘系统,作为我的毕业设计作业,它具备基本的网盘功能。 -The template contains the basic features including user login/logout and a contact page. -It includes all commonly used configurations that would allow you to focus on adding new -features to your application. +这个项目基于Yii 2 基础项目模板,使用了模板中较少一部分的内容作为项目的一部分。 -DIRECTORY STRUCTURE +项目结构 ------------------- assets/ contains assets definition @@ -67,39 +64,23 @@ DIRECTORY STRUCTURE EXTRA: 客户端开发 -REQUIREMENTS +运行所需环境 ------------ PHP >= 8.0 +MySQL/MariaDB -INSTALLATION +安装步骤 ------------ -### Install via Composer +### 通过压缩档案进行安装 -If you do not have [Composer](https://getcomposer.org/), you may install it by following the instructions -at [getcomposer.org](https://getcomposer.org/doc/00-intro.md#installation-nix). +在[本项目](https://git.chenx221.cyou/chenx221/test_project)的release下载最新版本的归档文件,解压到web根目录下. -You can then install this project template using the following command: +执行composer install,安装必要的依赖项。 -~~~ -composer create-project --prefer-dist yiisoft/yii2-app-basic basic -~~~ - -Now you should be able to access the application through the following URL, assuming `basic` is the directory -directly under the Web root. - -~~~ -http://localhost/basic/web/ -~~~ - -### Install from an Archive File - -Extract the archive file downloaded from [yiiframework.com](https://www.yiiframework.com/download/) to -a directory named `basic` that is directly under the Web root. - -Set cookie validation key in `config/web.php` file to some random secret string: +在`config/web.php`文件中设置一些随机的密钥: ```php 'request' => [ @@ -108,18 +89,18 @@ Set cookie validation key in `config/web.php` file to some random secret string: ], ``` -You can then access the application through the following URL: +现在你可以通过以下链接访问你的站点: ~~~ http://localhost/basic/web/ ~~~ -CONFIGURATION +配置 ------------- -### Database +### 数据库 -Edit the file `config/db.php` with real data, for example: +像这样修改config/db.php文件: ```php return [ @@ -131,10 +112,9 @@ return [ ]; ``` -**NOTES:** -- Yii won't create the database for you, this has to be done manually before you can access it. -- Check and edit the other files in the `config/` directory to customize your application as required. -- Refer to the README in the `tests` directory for information specific to basic application tests. +**提示:** +- 我们不会帮你创建好数据库,请在使用项目前自行创建。 +- 检查`config/`目录下的其他配置文件以客制化你的安装。 TESTING