Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/calendar component initial #1

Merged
merged 25 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
caa56c4
feat(CalendarComponent): Initial project creation
bkapustik Jun 18, 2024
c068789
feat(example): add DancingGoat
bkapustik Jun 19, 2024
3fa3213
feature(single-picker): added parametrization, finished base state
bkapustik Jun 26, 2024
928fdd6
feat(SingleDateTimePicker): finish all properties
bkapustik Jun 28, 2024
1ded931
feat(CalendarData): add calendar excluded data provider
bkapustik Jun 29, 2024
5d232c6
feat(calendar): add support for disabled dates and times
bkapustik Jul 1, 2024
26c2dbf
feat(calendar): multi and range calendar
bkapustik Jul 2, 2024
d471749
feat(docs): code comments
bkapustik Jul 3, 2024
3b9ef64
feat(docs): readme and usage
bkapustik Jul 3, 2024
805026b
fix(multi calendar): wrong format
bkapustik Jul 4, 2024
6cbada2
fix(pipeline): sln name
bkapustik Jul 4, 2024
4919b79
fix(calendar): run dotnet format
bkapustik Jul 4, 2024
97123a8
fix(calendar): formatting and delete redundancies
bkapustik Jul 4, 2024
8cfa63a
feat(calendar): difference between client and server
bkapustik Jul 4, 2024
6cafe12
feat(docs): time zone offset
bkapustik Jul 4, 2024
065861b
fix(formating): add gitattributes
bkapustik Jul 8, 2024
4595052
fix(flatpickr): initialize all components in one form builder
bkapustik Jul 8, 2024
90f4fac
fix(repo): delete RepoTemplate References
bkapustik Jul 12, 2024
5f48d02
delete docs
bkapustik Jul 16, 2024
0e5fdfa
fix(tasks): wrong path to example project
bkapustik Jul 16, 2024
6fbf80c
fix(package.json): project name
bkapustik Jul 16, 2024
aa61579
fix(calendar): Change path of the built js
bkapustik Jul 17, 2024
e5490a1
fix(client package): naming
bkapustik Jul 17, 2024
e2919fb
fix(naming): webpack and package
bkapustik Jul 17, 2024
7362b7f
fix(calendar): intendation, return values, comments, order of properties
bkapustik Jul 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
47 changes: 35 additions & 12 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Severity levels of analyzers https://docs.microsoft.com/en-us/visualstudio/code-quality/roslyn-analyzers-overview?view=vs-2019#severity-levels-of-analyzers
# Severity levels of analyzers https://docs.microsoft.com/en-us/visualstudio/code-quality/roslyn-analyzers-overview?view=vs-2019#severity-levels-of-analyzers

root = true

Expand Down Expand Up @@ -64,7 +64,7 @@ csharp_preserve_single_line_statements = fals
csharp_preserve_single_line_blocks = true

### Using directive options
csharp_using_directive_placement = outside_namespace : error
csharp_using_directive_placement = outside_namespace:error
dotnet_diagnostic.IDE0065.severity = error

# Code Style Rules
Expand Down Expand Up @@ -216,29 +216,29 @@ csharp_style_var_when_type_is_apparent = true
dotnet_diagnostic.IDE0007.severity = error
dotnet_diagnostic.IDE0008.severity = error

csharp_style_expression_bodied_constructors = true : error
csharp_style_expression_bodied_constructors = true:error
dotnet_diagnostic.IDE0021.severity = error

csharp_style_expression_bodied_methods = true : error
csharp_style_expression_bodied_methods = true:error
dotnet_diagnostic.IDE0022.severity = error

csharp_style_expression_bodied_operators = true : error
csharp_style_expression_bodied_operators = true:error
dotnet_diagnostic.IDE0023.severity = error
dotnet_diagnostic.IDE0024.severity = error

csharp_style_expression_bodied_properties = true : error
csharp_style_expression_bodied_properties = true:error
dotnet_diagnostic.IDE0025.severity = error

csharp_style_expression_bodied_indexers = true : error
csharp_style_expression_bodied_indexers = true:error
dotnet_diagnostic.IDE0026.severity = error

csharp_style_expression_bodied_accessors = true : error
csharp_style_expression_bodied_accessors = true:error
dotnet_diagnostic.IDE0027.severity = error

csharp_style_expression_bodied_lambdas = true : error
csharp_style_expression_bodied_lambdas = true:error
dotnet_diagnostic.IDE0053.severity = error

csharp_style_expression_bodied_local_functions = true : error
csharp_style_expression_bodied_local_functions = true:error
dotnet_diagnostic.IDE0061.severity = error

csharp_style_pattern_matching_over_as_with_null_check = true : error
Expand All @@ -256,10 +256,10 @@ dotnet_diagnostic.IDE0078.severity = erro
csharp_style_prefer_not_pattern = true : error
dotnet_diagnostic.IDE0083.severity = error

csharp_prefer_braces = true : error
csharp_prefer_braces = true:error
dotnet_diagnostic.IDE0011.severity = error

csharp_prefer_simple_using_statement = true : error
csharp_prefer_simple_using_statement = true:error
dotnet_diagnostic.IDE0063.severity = error

csharp_style_prefer_index_operator = true : warning
Expand Down Expand Up @@ -339,3 +339,26 @@ dotnet_naming_style.member_style.capitalization = pasc
dotnet_naming_rule.members_are_pascal_case.severity = error
dotnet_naming_rule.members_are_pascal_case.symbols = member_symbol
dotnet_naming_rule.members_are_pascal_case.style = member_style
csharp_style_namespace_declarations = block_scoped:silent
csharp_style_prefer_method_group_conversion = true:silent
csharp_style_prefer_top_level_statements = true:silent
csharp_style_prefer_primary_constructors = true:suggestion
[*.{cs,vb}]
dotnet_style_operator_placement_when_wrapping = beginning_of_line
tab_width = 4
indent_size = 4
end_of_line = crlf
dotnet_style_coalesce_expression = true:error
dotnet_style_null_propagation = true:error
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:error
dotnet_style_prefer_auto_properties = true:warning
dotnet_style_object_initializer = true:error
dotnet_style_collection_initializer = true:error
dotnet_style_prefer_simplified_boolean_expressions = true:warning
dotnet_style_prefer_conditional_expression_over_assignment = true:error
dotnet_style_prefer_conditional_expression_over_return = true:silent
dotnet_style_explicit_tuple_names = true:error
dotnet_style_prefer_inferred_tuple_names = true:error
dotnet_style_prefer_inferred_anonymous_type_member_names = true:error
dotnet_style_prefer_compound_assignment = true:error
dotnet_style_prefer_simplified_interpolation = true:error
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text eol=crlf
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v4

- name: Run dotnet format
run: dotnet format Kentico.Xperience.RepoTemplate.sln --exclude ./examples/** --verify-no-changes
run: dotnet format Kentico.Xperience.CalendarComponent.sln --exclude ./examples/** --verify-no-changes

build_and_test:
name: Build and Test
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,4 @@ segments_2i
**/CMSModules/WebFarm/*

# Files Generated by this integration
**/App_Data/RepoTemplate/*
**/App_Data/CalendarComponent/*
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/src/Kentico.Xperience.RepoTemplate.Sample/bin/Debug/net6.0/DancingGoat.dll",
"program": "${workspaceFolder}/examples/DancingGoatCore/bin/Debug/net6.0/DancingGoatCore.dll",
"args": [],
"cwd": "${workspaceFolder}/src/Kentico.Xperience.RepoTemplate.Sample",
"cwd": "${workspaceFolder}/examples/DancingGoatCore",
"stopAtEntry": false,
"serverReadyAction": {
"action": "openExternally",
Expand Down
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
"editor.defaultFormatter": "ms-dotnettools.csharp"
},

"dotnet.defaultSolution": "Kentico.Xperience.RepoTemplate.sln",
"dotnet.defaultSolution": "Kentico.Xperience.CalendarComponent.sln",

"eslint.workingDirectories": [
"./src/Kentico.Xperience.RepoTemplate/Admin/Client"
"./src/Kentico.Xperience.CalendarComponent/Admin/Client"
],

"files.associations": {
Expand Down
20 changes: 10 additions & 10 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
{
"type": "npm",
"script": "install",
"path": "src/Kentico.Xperience.RepoTemplate/Admin/Client",
"path": "src/Kentico.Xperience.CalendarComponent/Admin/Client",
"group": "clean",
"problemMatcher": [],
"label": "npm: install - src/Kentico.Xperience.RepoTemplate/Admin/Client",
"label": "npm: install - src/Kentico.Xperience.CalendarComponent/Admin/Client",
"detail": "install dependencies from package"
},
{
Expand All @@ -22,7 +22,7 @@
"command": "dotnet",
"args": [
"format",
"Kentico.Xperience.RepoTemplate.sln",
"Kentico.Xperience.CalendarComponent.sln",
"--exclude",
"./examples/**"
],
Expand All @@ -40,27 +40,27 @@
{
"type": "npm",
"script": "build",
"path": "src/Kentico.Xperience.RepoTemplate/Admin/Client",
"path": "src/Kentico.Xperience.CalendarComponent/Admin/Client",
"group": "build",
"problemMatcher": [],
"label": "npm: build - src/Kentico.Xperience.RepoTemplate/Admin/Client",
"label": "npm: build - src/Kentico.Xperience.CalendarComponent/Admin/Client",
"detail": "webpack --mode=production"
},
{
"type": "npm",
"script": "build:dev",
"path": "src/Kentico.Xperience.RepoTemplate/Admin/Client",
"path": "src/Kentico.Xperience.CalendarComponent/Admin/Client",
"group": "build",
"problemMatcher": [],
"label": "npm: build:dev - src/Kentico.Xperience.RepoTemplate/Admin/Client",
"label": "npm: build:dev - src/Kentico.Xperience.CalendarComponent/Admin/Client",
"detail": "webpack --mode=development"
},
{
"type": "npm",
"script": "start",
"path": "src/Kentico.Xperience.RepoTemplate/Admin/Client",
"path": "src/Kentico.Xperience.CalendarComponent/Admin/Client",
"problemMatcher": [],
"label": "npm: start - src/Kentico.Xperience.RepoTemplate/Admin/Client",
"label": "npm: start - src/Kentico.Xperience.CalendarComponent/Admin/Client",
"detail": "webpack serve --mode development"
},
{
Expand All @@ -71,7 +71,7 @@
"watch",
"run",
"--project",
"${workspaceFolder}/src/Kentico.Xperience.RepoTemplate.Sample/DancingGoat.csproj"
"${workspaceFolder}/examples/DancingGoatCore/DancingGoatCore.csproj"
],
"options": {
"env": {
Expand Down
9 changes: 3 additions & 6 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,15 @@
</ItemGroup>

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<WarningsAsErrors>nullable</WarningsAsErrors>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<CopyDocumentationFilesFromPackages>true</CopyDocumentationFilesFromPackages>
<CopyDebugSymbolFilesFromPackages>true</CopyDebugSymbolFilesFromPackages>
<NoWarn>$(NoWarn);1591</NoWarn>
<RootNamespace>Kentico.Xperience.RepoTemplate</RootNamespace>

<EnableDefaultEmbeddedResourceItems>false</EnableDefaultEmbeddedResourceItems>
<TimestampServerUrl>http://timestamp.digicert.com</TimestampServerUrl>
<NoWarn>$(NoWarn);1591;S3267</NoWarn>
<RootNamespace>Kentico.Xperience.CalendarComponent</RootNamespace>
</PropertyGroup>

<PropertyGroup Condition=" $(Configuration) == 'Release' ">
Expand Down
7 changes: 3 additions & 4 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Kentico.Xperience.Admin" Version="28.4.2" />
<PackageVersion Include="Kentico.Xperience.WebApp" Version="28.4.2" />
<PackageVersion Include="kentico.xperience.azurestorage" Version="28.4.2" />
<PackageVersion Include="kentico.xperience.imageprocessing" Version="28.4.2" />
<PackageVersion Include="Kentico.Xperience.AspNetCore.WebApp" Version="13.0.152" />
<PackageVersion Include="SonarAnalyzer.CSharp" Version="9.23.0.88079" />
<PackageVersion Include="Microsoft.Extensions.Logging.Debug" Version="3.1.8" />
<PackageVersion Include="Microsoft.jQuery.Unobtrusive.Ajax" Version="3.2.5" />
</ItemGroup>
</Project>
56 changes: 56 additions & 0 deletions Kentico.Xperience.CalendarComponent.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.33516.290
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{7AB5D6CC-26C8-4466-BF12-4770B307E0CB}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
Directory.Build.props = Directory.Build.props
Directory.build.targets = Directory.build.targets
Directory.Packages.props = Directory.Packages.props
global.json = global.json
nuget.config = nuget.config
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "examples", "examples", "{3F95FD4E-CC8B-4E24-B468-67FE0629E0C2}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{70EB2CDF-D033-42F6-BA68-FF6A4BDCBD00}"
ProjectSection(SolutionItems) = preProject
.gitignore = .gitignore
.markdownlint.json = .markdownlint.json
LICENSE.md = LICENSE.md
README.md = README.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{EDA41262-F588-415E-956D-98081AFD8E04}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Kentico.Xperience.CalendarComponent", "src\Kentico.Xperience.CalendarComponent\Kentico.Xperience.CalendarComponent.csproj", "{E134487B-6432-491A-B7EA-691090B6E6B7}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DancingGoatCore", "examples\DancingGoatCore\DancingGoatCore.csproj", "{C410E29E-D72A-429C-9200-236042993496}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E134487B-6432-491A-B7EA-691090B6E6B7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E134487B-6432-491A-B7EA-691090B6E6B7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E134487B-6432-491A-B7EA-691090B6E6B7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E134487B-6432-491A-B7EA-691090B6E6B7}.Release|Any CPU.Build.0 = Release|Any CPU
{C410E29E-D72A-429C-9200-236042993496}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C410E29E-D72A-429C-9200-236042993496}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C410E29E-D72A-429C-9200-236042993496}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C410E29E-D72A-429C-9200-236042993496}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{C410E29E-D72A-429C-9200-236042993496} = {3F95FD4E-CC8B-4E24-B468-67FE0629E0C2}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {1B2A20BC-F57B-4AAE-B1C2-E4DC52EFCAC5}
EndGlobalSection
EndGlobal
19 changes: 0 additions & 19 deletions Kentico.Xperience.RepoTemplate.sln

This file was deleted.

Loading