[实战]MVC5+EF6+MySql企业网盘实战(29)——更新日志
摘要
NetDisk更新日志,及项目使用说明。
开发工具
Vs2013+mysql+ef6+mvc5
bug
1、在加载列表的时候,默认加载的所有,修改为,过滤逻辑删除的文件。
2、加载音乐,文档等分类时,过滤逻辑删除的文件。
3、删除了api文件夹。
4、将图标文件路径,以及项目中用到的提示语,提取到一个常量类中。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web; namespace Wolfy.NetDisk.Site.Models
{
/// <summary>
/// 常量参数
/// </summary>
public class NetDiskConstParameters
{
/// <summary>
/// 图片图标相对路径
/// </summary>
public const string ImageIconRelativePath = "/Content/Images/FileIcon/ImgType.png";
/// <summary>
/// apk应用 图标相对路径
/// </summary>
public const string ApkIconRelativePath = "/Content/Images/FileIcon/ApkType.png";
/// <summary>
/// 种子,图标相对路径
/// </summary>
public const string BtIconRelativePath = "/Content/Images/FileIcon/TorrentType.png";
/// <summary>
/// cad 图纸 图标相对路径
/// </summary>
public const string CadIconRelativePath = "/Content/Images/FileIcon/CADType.png";
/// <summary>
/// 文档 图标相对路径
/// </summary>
public const string DocIconRelativePath = "/Content/Images/FileIcon/DocType.png";
/// <summary>
/// excel 图标相对路径
/// </summary>
public const string ExcelIconRelativePath = "/Content/Images/FileIcon/ExeType.png";
/// <summary>
/// 文件夹 图标相对路径
/// </summary>
public const string FolderIconRelativePath = "/Content/Images/FileIcon/FolderType.png";
/// <summary>
/// ios应用 图标相对路径
/// </summary>
public const string IosIconRelativePath = "/Content/Images/FileIcon/IpaType.png";
/// <summary>
/// 压缩包 图标相对路径
/// </summary>
public const string RarIconRelativePath = "/Content/Images/FileIcon/RarType.png";
/// <summary>
/// cad 图纸 图标相对路径
/// </summary>
public const string ZipIconRelativePath = "/Content/Images/FileIcon/Apps.png";
/// <summary>
/// 音乐图标相对路径
/// </summary>
public const string MusicIconRelativePath = "/Content/Images/FileIcon/MusicType.png";
/// <summary>
/// 其他 图标相对路径
/// </summary>
public const string OtherIconRelativePath = "/Content/Images/FileIcon/OtherType.png";
/// <summary>
///pdf 图标相对路径
/// </summary>
public const string PdfIconRelativePath = "/Content/Images/FileIcon/PdfType.png";
/// <summary>
/// cad 图纸 图标相对路径
/// </summary>
public const string PptIconRelativePath = "/Content/Images/FileIcon/PptType.png";
/// <summary>
///txt 图标相对路径
/// </summary>
public const string TxtIconRelativePath = "/Content/Images/FileIcon/TxtType.png";
/// <summary>
/// 视频 图标相对路径
/// </summary>
public const string VideoIconRelativePath = "/Content/Images/FileIcon/VideoType.png";
/// <summary>
/// vsd
/// </summary>
public const string VsdIconRelativePath = "/Content/Images/FileIcon/VsdType.png";
/// <summary>
/// vsd
/// </summary>
public const string VsdIconRelativePath = "/Content/Images/FileIcon/VsdType.png"; /// <summary>
/// vsd
/// </summary>
public const string VsdIconRelativePath = "/Content/Images/FileIcon/XlsType.png";
}
}
项目使用说明
1、在使用之前,需要对项目进行简单的数据初始化,使用视图Views/Setting/Init.cshtml。
2、初始化会创建所需的数据表,以及两个用户管理员,一个普通用户帐号。
3、会默认添加部门分类。
4、默认几种文件图标。
5、默认的管理员或者用户的导航列表。
总结
目前实现的功能有
1、用户注册、登录。
2、上传头像。
3、上传文件。
4、下载文件,删除文件。
该项目,是一个以学习为目的的测试项目,肯定有很多不足的地方,望提出或者进行参与改进。
项目git
https://git.oschina.net/wolfy/NetDisk
[实战]MVC5+EF6+MySql企业网盘实战(29)——更新日志的更多相关文章
- [实战]MVC5+EF6+MySql企业网盘实战(28)——其他列表
写在前面 本篇文章将实现,其他文件类型的列表. 系列文章 [EF]vs15+ef6+mysql code first方式 [实战]MVC5+EF6+MySql企业网盘实战(1) [实战]MVC5+EF ...
- [实战]MVC5+EF6+MySql企业网盘实战(27)——应用列表
写在前面 本篇文章将实现应用列表,同样和其他列表的不同之处,在于查询条件的不同. 系列文章 [EF]vs15+ef6+mysql code first方式 [实战]MVC5+EF6+MySql企业网盘 ...
- [实战]MVC5+EF6+MySql企业网盘实战(4)——上传头像
写在前面 最近又开始忙了,工期紧比较赶,另外明天又要去驾校,只能一个功能一个功能的添加了,也许每次完成的功能确实不算什么,等将功能都实现了,然后在找一个好点的ui对前端重构一下. 系列文章 [EF]v ...
- [实战]MVC5+EF6+MySql企业网盘实战(2)——验证码
写在前面 断断续续,今天算是把验证码的东东弄出来了. 系列文章 [EF]vs15+ef6+mysql code first方式 [实战]MVC5+EF6+MySql企业网盘实战(1) [实战]MVC5 ...
- [实战]MVC5+EF6+MySql企业网盘实战(2)——用户注册
写在前面 上篇文章简单介绍了项目的结构,这篇文章将实现用户的注册.当然关于漂亮的ui,这在追后再去添加了,先将功能实现.也许代码中有不合适的地方,也只有在之后慢慢去优化了. 系列文章 [EF]vs15 ...
- [实战]MVC5+EF6+MySql企业网盘实战(1)
写在前面 不久前,一个朋友让帮他弄一个单位的企业网盘的管理站点,一直忙,最近抽出了点时间,也想琢磨琢磨mvc,ef,mysql,这算是边琢磨,边实践吧. 系列文章 [实战]MVC5+EF6+MySql ...
- [实战]MVC5+EF6+MySql企业网盘实战(26)——音乐列表
写在前面 本篇文章将实现,音乐列表,同样和其他列表的不同之处,在于查询条件的不同. 系列文章 [EF]vs15+ef6+mysql code first方式 [实战]MVC5+EF6+MySql企业网 ...
- [实战]MVC5+EF6+MySql企业网盘实战(25)——种子列表
写在前面 上篇文章实现了视频列表,本篇文章继续实现其他的文件列表.功能相似.这里就不再赘述. 系列文章 [EF]vs15+ef6+mysql code first方式 [实战]MVC5+EF6+MyS ...
- [实战]MVC5+EF6+MySql企业网盘实战(24)——视频列表
写在前面 上篇文章实现了文档列表,所以实现视频列表就依葫芦画瓢就行了. 系列文章 [EF]vs15+ef6+mysql code first方式 [实战]MVC5+EF6+MySql企业网盘实战(1) ...
- [实战]MVC5+EF6+MySql企业网盘实战(23)——文档列表
写在前面 上篇文章实现了图片列表,这篇文章实现文档列表将轻车熟路,因为逻辑基本相似,只是查询条件的不同.这里将txt,doc,docx,ppt,pptx,xls,xlsx的文件都归为文档列表中. 系列 ...
随机推荐
- [Python核心编程] 第1章 欢迎来到Python世界
什么是Python Python的起源 Python的特点 下载Python 安装Python 运行Python Python文档 比较Python 其他实现 1.什么是Python ...
- LeetCode题解-----Sliding Window Maximum
题目描述: Given an array nums, there is a sliding window of size k which is moving from the very left of ...
- c# MongoDB 经纬度应用示例
class Program { static string mongodb = "mongodb://127.0.0.1:27017"; ...
- [LeetCode] Nested List Weight Sum 嵌套链表权重和
Given a nested list of integers, return the sum of all integers in the list weighted by their depth. ...
- [LeetCode] Path Sum II 二叉树路径之和之二
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given su ...
- [LeetCode] Convert Sorted List to Binary Search Tree 将有序链表转为二叉搜索树
Given a singly linked list where elements are sorted in ascending order, convert it to a height bala ...
- JavaScript中实现extend()方法
var male = { sex: "male" }; var xiaoming = { name: "xiaoming", school: "xin ...
- UEFI+GPT安装windows
首先bios开启uefi windows安装选择驱动器界面:F10 进入命令行: list disk select disk 0 clean convert gpt
- 安卓 Handler
1. 看视频有关Handler操作,没有用过,里面的老师也没有讲(新手太难了) 查了一下资料. 一.Handler的定义: 主要接受子线程发送的数据, 并用此数据配合主线程更新UI. 解释:当应用程序 ...
- Shell命令_smem
监控各个进程.用户的内存使用情况 基础条件:需要安装yum工具 centos 7.0 1.安装smem [root@VM_31_182_centos src]# yum install smem py ...