Skip to content

Commit c2d7f7b

Browse files
Grand.Web.Store – A Store Management Module #570
1 parent 22c554f commit c2d7f7b

File tree

1,265 files changed

+31338
-3469
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,265 files changed

+31338
-3469
lines changed

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: "CodeQL"
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ develop ]
66
pull_request:
7-
branches: [ main ]
7+
branches: [ develop ]
88
schedule:
99
- cron: '0 3 * * 1'
1010

.github/workflows/docker-image-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Docker Image CI
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: [ "develop" ]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: [ "develop" ]
88

99
jobs:
1010
build:

.github/workflows/grandnode.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Build and deploy .NET Core app to Linux WebApp grandnode
22
on:
33
push:
4-
branches: [ "main" ]
4+
branches: [ "develop" ]
55

66
env:
77
AZURE_WEBAPP_NAME: grandnode-dev

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,4 +374,10 @@ src/Web/Grand.Web.Vendor/App_Data/Settings.cfg
374374
src/Web/Grand.Web.Vendor/Plugins/*
375375
src/Web/Grand.Web.Vendor/Modules/*
376376
src/Web/Grand.Web.Vendor/App_Data/DataProtectionKeys/*
377-
src/Web/Grand.Web.Vendor/wwwroot/assets/images/thumbs/*.**
377+
src/Web/Grand.Web.Vendor/wwwroot/assets/images/thumbs/*.**
378+
src/Web/Grand.Web.Store/App_Data/InstalledPlugins.cfg
379+
src/Web/Grand.Web.Store/App_Data/Settings.cfg
380+
src/Web/Grand.Web.Store/Plugins/*
381+
src/Web/Grand.Web.Store/Modules/*
382+
src/Web/Grand.Web.Store/App_Data/DataProtectionKeys/*
383+
src/Web/Grand.Web.Store/wwwroot/assets/images/thumbs/*.**

GrandNode.sln

Lines changed: 490 additions & 0 deletions
Large diffs are not rendered by default.

azure-pipelines.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,12 @@ steps:
2424
script: |
2525
dotnet workload install aspire
2626
27-
- task: NuGetToolInstaller@1
28-
displayName: 'Install NuGet >=6.3.0-0'
29-
inputs:
30-
versionSpec: '>=6.3.0-0'
31-
checkLatest: true
32-
33-
- task: NuGetCommand@2
27+
# Replaced NuGet tasks with dotnet CLI commands to fix Ubuntu 24.04 compatibility
28+
- task: DotNetCoreCLI@2
29+
displayName: 'dotnet restore'
3430
inputs:
35-
command: 'restore'
36-
restoreSolution: '**/*.sln'
31+
command: 'restore'
32+
projects: '**/*.sln'
3733
feedsToUse: 'select'
3834

3935
- task: DotNetCoreCLI@2

src/Business/Grand.Business.Common/Services/Directory/GroupService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public virtual async Task<bool> IsInCustomerGroup(Customer customer,
145145
bool? isSystem = null)
146146
{
147147
ArgumentNullException.ThrowIfNull(customer);
148-
ArgumentNullException.ThrowIfNullOrEmpty(customerGroupSystemName);
148+
ArgumentException.ThrowIfNullOrEmpty(customerGroupSystemName);
149149

150150
var customerGroup = await GetCustomerGroupBySystemName(customerGroupSystemName);
151151
if (customerGroup == null)
@@ -160,9 +160,9 @@ public virtual async Task<bool> IsInCustomerGroup(Customer customer,
160160
return result;
161161
}
162162

163-
public Task<bool> IsStaff(Customer customer)
163+
public Task<bool> IsStoreManager(Customer customer)
164164
{
165-
return IsInCustomerGroup(customer, SystemCustomerGroupNames.Staff, true, true);
165+
return IsInCustomerGroup(customer, SystemCustomerGroupNames.StoreManager, true, true);
166166
}
167167

168168
public Task<bool> IsAdmin(Customer customer)

src/Business/Grand.Business.Common/Services/Security/PermissionProvider.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public virtual IEnumerable<Permission> GetPermissions()
1111
return [
1212
StandardPermission.ManageAccessAdminPanel,
1313
StandardPermission.ManageAccessVendorPanel,
14+
StandardPermission.ManageAccessStoreManagerPanel,
1415
StandardPermission.AllowCustomerImpersonation,
1516
StandardPermission.ManageProducts,
1617
StandardPermission.ManageCategories,
@@ -195,9 +196,9 @@ public virtual IEnumerable<DefaultPermission> GetDefaultPermissions()
195196
]
196197
},
197198
new DefaultPermission {
198-
CustomerGroupSystemName = SystemCustomerGroupNames.Staff,
199+
CustomerGroupSystemName = SystemCustomerGroupNames.StoreManager,
199200
Permissions = [
200-
StandardPermission.ManageAccessAdminPanel,
201+
StandardPermission.ManageAccessStoreManagerPanel,
201202
StandardPermission.ManageProducts,
202203
StandardPermission.ManageFiles,
203204
StandardPermission.ManagePictures,

src/Business/Grand.Business.Core/Interfaces/Common/Directory/IGroupService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Task<bool> IsInCustomerGroup(Customer customer,
2323
/// </summary>
2424
/// <param name="customer">Customer</param>
2525
/// <returns>Result</returns>
26-
Task<bool> IsStaff(Customer customer);
26+
Task<bool> IsStoreManager(Customer customer);
2727

2828
/// <summary>
2929
/// Gets a value indicating whether customer is administrator

src/Core/Grand.Domain/Catalog/CatalogSettings.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -387,22 +387,12 @@ public class CatalogSettings : ISettings
387387
/// <summary>
388388
/// Gets or sets the default value to use for Category page size options (for new categories)
389389
/// </summary>
390-
public string DefaultCategoryPageSizeOptions { get; set; }
390+
public string DefaultPageSizeOptions { get; set; }
391391

392392
/// <summary>
393393
/// Gets or sets the default value to use for Category page size (for new categories)
394394
/// </summary>
395-
public int DefaultCategoryPageSize { get; set; }
396-
397-
/// <summary>
398-
/// Gets or sets the default value to use for Collection page size options (for new collections)
399-
/// </summary>
400-
public string DefaultCollectionPageSizeOptions { get; set; }
401-
402-
/// <summary>
403-
/// Gets or sets the default value to use for Collection page size (for new collections)
404-
/// </summary>
405-
public int DefaultCollectionPageSize { get; set; }
395+
public int DefaultPageSize { get; set; }
406396

407397
/// <summary>
408398
/// Gets or sets the default value to use show extra field quantity on catalog pages

0 commit comments

Comments
 (0)