forked from siteserver/cms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSite.cs
More file actions
237 lines (130 loc) · 7.39 KB
/
Site.cs
File metadata and controls
237 lines (130 loc) · 7.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
using System;
using System.Collections.Generic;
using Datory;
using Datory.Annotations;
using SSCMS.Enums;
namespace SSCMS.Models
{
[DataTable("siteserver_Site")]
public class Site : Entity
{
[DataColumn]
public string SiteDir { get; set; }
[DataColumn]
public string SiteName { get; set; }
[DataColumn]
public string SiteType { get; set; }
[DataColumn]
public string ImageUrl { get; set; }
[DataColumn]
public string Keywords { get; set; }
[DataColumn]
public string Description { get; set; }
[DataColumn]
public string TableName { get; set; }
[DataColumn]
public bool Root { get; set; }
[DataColumn]
public int ParentId { get; set; }
[DataColumn]
public int Taxis { get; set; }
public IList<Site> Children { get; set; }
public int PageSize { get; set; } = 30;
public int CheckContentLevel { get; set; } = 1;
public int CheckContentDefaultLevel { get; set; } = 1;
public bool IsSaveImageInTextEditor { get; set; } = true;
public bool IsAutoPageInTextEditor { get; set; }
public int AutoPageWordNum { get; set; } = 1500;
public bool IsContentTitleBreakLine { get; set; } = true;
public bool IsContentSubTitleBreakLine { get; set; } = true;
public bool IsAutoCheckKeywords { get; set; }
public int PhotoSmallWidth { get; set; } = 70;
public int PhotoMiddleWidth { get; set; } = 400;
public bool IsWaterMark { get; set; }
public bool IsImageWaterMark { get; set; }
public int WaterMarkPosition { get; set; } = 9;
public int WaterMarkTransparency { get; set; } = 5;
public int WaterMarkMinWidth { get; set; } = 200;
public int WaterMarkMinHeight { get; set; } = 200;
public string WaterMarkFormatString { get; set; }
public string WaterMarkFontName { get; set; }
public int WaterMarkFontSize { get; set; } = 12;
public string WaterMarkImagePath { get; set; }
public bool IsSeparatedWeb { get; set; }
public string SeparatedWebUrl { get; set; }
public bool IsSeparatedAssets { get; set; }
public string SeparatedAssetsUrl { get; set; }
public string AssetsDir { get; set; } = "upload";
public string ChannelFilePathRule { get; set; } = "/channels/{@ChannelID}.html";
public string ContentFilePathRule { get; set; } = "/contents/{@ChannelID}/{@ContentID}.html";
public bool IsCreateContentIfContentChanged { get; set; } = true;
public bool IsCreateChannelIfChannelChanged { get; set; } = true;
public bool IsCreateShowPageInfo { get; set; }
public bool IsCreateIe8Compatible { get; set; }
public bool IsCreateBrowserNoCache { get; set; }
public bool IsCreateJsIgnoreError { get; set; }
public bool IsCreateWithJQuery { get; set; } = true;
public bool IsCreateDoubleClick { get; set; }
public int CreateStaticMaxPage { get; set; } = 10;
public bool IsCreateUseDefaultFileName { get; set; }
public string CreateDefaultFileName { get; set; } = "index.html";
public bool IsCreateStaticContentByAddDate { get; set; }
public DateTime CreateStaticContentAddDate { get; set; } = DateTime.MinValue;
public bool IsCrossSiteTransChecked { get; set; }
public List<string> SearchListColumns { get; set; }
public List<string> CheckListColumns { get; set; }
public List<string> RecycleListColumns { get; set; }
public bool ConfigUEditorVideoIsImageUrl { get; set; }
public bool ConfigUEditorVideoIsAutoPlay { get; set; }
public bool ConfigUEditorVideoIsWidth { get; set; }
public bool ConfigUEditorVideoIsHeight { get; set; }
public string ConfigUEditorVideoPlayBy { get; set; }
public int ConfigUEditorVideoWidth { get; set; } = 600;
public int ConfigUEditorVideoHeight { get; set; } = 400;
public bool ConfigUEditorAudioIsAutoPlay { get; set; }
public string ConfigExportType { get; set; }
public string ConfigExportPeriods { get; set; }
public string ConfigExportDisplayAttributes { get; set; }
public string ConfigExportIsChecked { get; set; }
public string ConfigSelectImageCurrentUrl { get; set; }
public string ConfigSelectVideoCurrentUrl { get; set; }
public string ConfigSelectFileCurrentUrl { get; set; }
public string ConfigUploadImageIsTitleImage { get; set; } = "True";
public string ConfigUploadImageTitleImageWidth { get; set; } = "300";
public string ConfigUploadImageTitleImageHeight { get; set; }
public string ConfigUploadImageIsShowImageInTextEditor { get; set; } = "True";
public string ConfigUploadImageIsLinkToOriginal { get; set; }
public string ConfigUploadImageIsSmallImage { get; set; } = "True";
public string ConfigUploadImageSmallImageWidth { get; set; } = "500";
public string ConfigUploadImageSmallImageHeight { get; set; }
public bool ConfigImageIsFix { get; set; } = true;
public string ConfigImageFixWidth { get; set; } = "300";
public string ConfigImageFixHeight { get; set; }
public bool ConfigImageIsEditor { get; set; } = true;
public bool ConfigImageEditorIsFix { get; set; } = true;
public string ConfigImageEditorFixWidth { get; set; } = "500";
public string ConfigImageEditorFixHeight { get; set; }
public bool ConfigImageEditorIsLinkToOriginal { get; set; }
public string ImageUploadDirectoryName { get; set; } = "upload/images";
public DateFormatType ImageUploadDateFormatString { get; set; } = DateFormatType.Month;
public bool IsImageUploadChangeFileName { get; set; } = true;
public string ImageUploadExtensions { get; set; } = ".gif,.jpg,.jpeg,.bmp,.png,.pneg,.swf,.webp";
public int ImageUploadTypeMaxSize { get; set; } = 15360;
public string AudioUploadDirectoryName { get; set; } = "upload/audio";
public DateFormatType AudioUploadDateFormatString { get; set; } = DateFormatType.Month;
public string VideoUploadDirectoryName { get; set; } = "upload/videos";
public DateFormatType VideoUploadDateFormatString { get; set; } = DateFormatType.Month;
public bool IsVideoUploadChangeFileName { get; set; } = true;
public string VideoUploadExtensions { get; set; } =
".asf,.asx,.avi,.flv,.mid,.midi,.mov,.mp3,.mp4,.mpg,.mpeg,.ogg,.ra,.rm,.rmb,.rmvb,.rp,.rt,.smi,.swf,.wav,.webm,.wma,.wmv,.viv";
public int VideoUploadTypeMaxSize { get; set; } = 307200;
public string FileUploadDirectoryName { get; set; } = "upload/files";
public DateFormatType FileUploadDateFormatString { get; set; } = DateFormatType.Month;
public bool IsFileUploadChangeFileName { get; set; } = true;
public string FileUploadExtensions { get; set; } = ".zip,.rar,.7z,.tar,.gz,.bz2,.cab,.iso,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.txt,.md,.xml,.js,.css";
public int FileUploadTypeMaxSize { get; set; } = 307200;
public string TemplatesAssetsIncludeDir { get; set; } = "include";
public string TemplatesAssetsJsDir { get; set; } = "js";
public string TemplatesAssetsCssDir { get; set; } = "css";
}
}