Skip to content

Commit 9c58714

Browse files
Zeegaanelit0451
andauthoredMar 12, 2024··
V14: Rename new projects (#15836)
* Rename Web.UI.New back to Web.UI * Delete new backoffiec folder * Rename client project * Add new submodule * Update template csproj * Remove more mentions of new * Add missing views * Moving up the "Umbraco.Web.UI" proj reference, so that it is the first project listed in solution file (.sln) since it will be selected as startup one in VS by default. * don't include grid * Update with section of how to get started with backoffice * Update .github/BUILD.md Co-authored-by: Elitsa Marinovska <[email protected]> * Add line about white page --------- Co-authored-by: Elitsa <[email protected]> Co-authored-by: Elitsa Marinovska <[email protected]>
1 parent 69a691f commit 9c58714

25 files changed

+43
-83
lines changed
 

‎.github/BUILD.md

+10
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ If the answer is yes, please read on. Otherwise, make sure to head on over [to t
1313

1414
↖️ You can jump to any section by using the "table of contents" button ( ![Table of contents icon](img/tableofcontentsicon.svg) ) above.
1515

16+
## Getting Started:
17+
To run umbraco, we first need to initialize the client git submodule:
18+
* Execute `git submodule init` and then `git submodule update` to get the files into Umbraco.Web.UI.Client project
19+
* If you are going to work on the Backoffice, you can either go to the Umbraco.Web.UI.Client folder and check out a new branch or set it up in your IDE, which will allow you to commit to each repository simultaneously:
20+
* **Rider**: Preferences -> Version Control -> Directory Mappings -> Click the '+' sign
21+
* If you get a white page delete Umbraco.Cms.StaticAssets\wwwroot\umbraco folder and run `npm ci && npm run build:for:cms` inside Umbraco.Web.UI.Client folder to clear out any leftover files from older versions.
22+
23+
### Latest version
24+
* If you want to get the latest changes from the client repository, run `git submodule update` again which will pull the latest main branch.
25+
1626

1727
## Debugging source locally
1828

‎.github/New BackOffice - README.md

-38
This file was deleted.

‎.gitmodules

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[submodule "src/Umbraco.Web.UI.New.Client"]
2-
path = src/Umbraco.Web.UI.New.Client
1+
[submodule "src/Umbraco.Web.UI.Client"]
2+
path = src/Umbraco.Web.UI.Client
33
url = https://github.com/umbraco/Umbraco.CMS.Backoffice.git

‎build/azure-pipelines.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,17 @@ stages:
9393
workingDirectory: src/Umbraco.Web.UI.Login
9494
- script: npm ci --no-fund --no-audit --prefer-offline
9595
displayName: Run npm ci (Bellissima)
96-
workingDirectory: src/Umbraco.Web.UI.New.Client
96+
workingDirectory: src/Umbraco.Web.UI.Client
9797
- script: npm run generate:api-local
9898
displayName: Generate API models (Bellissima)
99-
workingDirectory: src/Umbraco.Web.UI.New.Client
99+
workingDirectory: src/Umbraco.Web.UI.Client
100100
enabled: false
101101
- script: npm run build:for:cms
102102
displayName: Run build (Bellissima)
103-
workingDirectory: src/Umbraco.Web.UI.New.Client
103+
workingDirectory: src/Umbraco.Web.UI.Client
104104
- script: npm run build
105105
displayName: Run Login Build (Bellissima)
106-
workingDirectory: src/Umbraco.Web.UI.New.Client/apps/auth
106+
workingDirectory: src/Umbraco.Web.UI.Client/apps/auth
107107
- task: UseDotNet@2
108108
displayName: Use .NET SDK from global.json
109109
inputs:
@@ -142,7 +142,7 @@ stages:
142142
displayName: Prepare Bellissima npm package
143143
env:
144144
PACKAGE_VERSION: $(build.NBGV_NpmPackageVersion)
145-
workingDirectory: src/Umbraco.Web.UI.New.Client
145+
workingDirectory: src/Umbraco.Web.UI.Client
146146
- task: PublishPipelineArtifact@1
147147
displayName: Publish Bellissima npm artifact
148148
inputs:
@@ -225,26 +225,26 @@ stages:
225225
- task: Cache@2
226226
displayName: Cache node_modules
227227
inputs:
228-
key: '"npm_client" | "$(Agent.OS)"| $(Build.SourcesDirectory)/src/Umbraco.Web.UI.New.Client/package-lock.json'
228+
key: '"npm_client" | "$(Agent.OS)"| $(Build.SourcesDirectory)/src/Umbraco.Web.UI.Client/package-lock.json'
229229
restoreKeys: |
230230
"npm_client" | "$(Agent.OS)"
231231
"npm_client"
232232
path: $(npm_config_cache)
233233
- script: npm ci --no-fund --no-audit --prefer-offline
234-
workingDirectory: src/Umbraco.Web.UI.New.Client
234+
workingDirectory: src/Umbraco.Web.UI.Client
235235
displayName: Run npm ci
236236
- script: npm run storybook:build
237237
displayName: Build Storybook
238238
env:
239239
VITE_BASE_PATH: $(BASE_PATH)/
240-
workingDirectory: $(Build.SourcesDirectory)/src/Umbraco.Web.UI.New.Client
240+
workingDirectory: $(Build.SourcesDirectory)/src/Umbraco.Web.UI.Client
241241
- script: sed -i "s|/umbraco/backoffice|$(BASE_PATH)/umbraco/backoffice|" assets/*.js
242242
displayName: Replace BASE_PATH on assets
243-
workingDirectory: $(Build.SourcesDirectory)/src/Umbraco.Web.UI.New.Client/storybook-static
243+
workingDirectory: $(Build.SourcesDirectory)/src/Umbraco.Web.UI.Client/storybook-static
244244
- task: ArchiveFiles@2
245245
displayName: Archive js Docs
246246
inputs:
247-
rootFolderOrFile: $(Build.SourcesDirectory)/src/Umbraco.Web.UI.New.Client/storybook-static
247+
rootFolderOrFile: $(Build.SourcesDirectory)/src/Umbraco.Web.UI.Client/storybook-static
248248
includeRootFolder: false
249249
archiveFile: $(Build.ArtifactStagingDirectory)/ui-docs.zip
250250
- task: PublishPipelineArtifact@1

‎src/Umbraco.Cms.StaticAssets/Umbraco.Cms.StaticAssets.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
</Target>
3232

3333
<Target Name="BuildBellissima">
34-
<Exec WorkingDirectory="$(ProjectDir)..\Umbraco.Web.UI.New.Client\" Command="npm ci --no-fund --no-audit --prefer-offline" />
35-
<Exec WorkingDirectory="$(ProjectDir)..\Umbraco.Web.UI.New.Client\" Command="npm run build:for:cms" />
34+
<Exec WorkingDirectory="$(ProjectDir)..\Umbraco.Web.UI.Client\" Command="npm ci --no-fund --no-audit --prefer-offline" />
35+
<Exec WorkingDirectory="$(ProjectDir)..\Umbraco.Web.UI.Client\" Command="npm run build:for:cms" />
3636
</Target>
3737

3838
<Target Name="BuildLogin" DependsOnTargets="BuildBellissima">
39-
<Exec WorkingDirectory="$(ProjectDir)..\Umbraco.Web.UI.New.Client\apps\auth" Command="npm run build" />
39+
<Exec WorkingDirectory="$(ProjectDir)..\Umbraco.Web.UI.Client\apps\auth" Command="npm run build" />
4040
<Exec WorkingDirectory="$(ProjectDir)..\Umbraco.Web.UI.Login\" Command="npm ci --no-fund --no-audit --prefer-offline" />
4141
<Exec WorkingDirectory="$(ProjectDir)..\Umbraco.Web.UI.Login\" Command="npm run build" />
4242
</Target>

‎src/Umbraco.Cms.Targets/Umbraco.Cms.Targets.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<!-- Generate JSON package schema on build (and before copying to project) -->
6363
<Target Name="GenerateUmbracoPackageSchema" BeforeTargets="Build;CopyUmbracoJsonSchemaFiles" Condition="!Exists('$(_UmbracoCmsPackageSchemaReference)')">
6464
<Message Text="Generating $(_UmbracoCmsPackageSchemaReference) because it doesn't exist" Importance="high" />
65-
<Exec WorkingDirectory="$(MsBuildThisFileDirectory)..\Umbraco.Web.UI.New.Client" Command="npm run generate:jsonschema -- --out &quot;$(MSBuildThisFileDirectory)$(_UmbracoCmsPackageSchemaReference)&quot; tsconfig.json UmbracoPackage" />
65+
<Exec WorkingDirectory="$(MsBuildThisFileDirectory)..\Umbraco.Web.UI.Client" Command="npm run generate:jsonschema -- --out &quot;$(MSBuildThisFileDirectory)$(_UmbracoCmsPackageSchemaReference)&quot; tsconfig.json UmbracoPackage" />
6666
</Target>
6767

6868
<!-- Remove generated JSON package schema on clean -->

‎src/Umbraco.Web.UI.Client

Submodule Umbraco.Web.UI.Client added at 5540b43

‎src/Umbraco.Web.UI.New.Client

-1
This file was deleted.
File renamed without changes.
File renamed without changes.

‎src/Umbraco.Web.UI.New/Umbraco.Web.UI.New.csproj ‎src/Umbraco.Web.UI/Umbraco.Web.UI.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22
<PropertyGroup>
3-
<RootNamespace>Umbraco.Cms.Web.UI.New</RootNamespace>
3+
<RootNamespace>Umbraco.Cms.Web.UI</RootNamespace>
44
<IsPackable>false</IsPackable>
55
<EnablePackageValidation>false</EnablePackageValidation>
66
</PropertyGroup>

‎templates/Umbraco.Templates.csproj

+8-12
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,26 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16-
<Content Include="UmbracoPackage\**" Exclude="bin;obj" />
17-
<Content Include="UmbracoPackageRcl\**" Exclude="bin;obj" />
18-
<Content Include="UmbracoProject\**" Exclude="bin;obj" />
19-
<Content Include="..\src\Umbraco.Web.UI.New\Program.cs">
16+
<Content Include="..\src\Umbraco.Web.UI\Program.cs">
2017
<Link>UmbracoProject\Program.cs</Link>
2118
<PackagePath>UmbracoProject</PackagePath>
2219
</Content>
23-
<Content Include="..\src\Umbraco.Web.UI.New\Views\Partials\blocklist\**">
20+
<Content Include="UmbracoPackage\**" Exclude="bin;obj" />
21+
<Content Include="UmbracoPackageRcl\**" Exclude="bin;obj" />
22+
<Content Include="UmbracoProject\**" Exclude="bin;obj" />
23+
<Content Include="..\src\Umbraco.Web.UI\Views\Partials\blocklist\**">
2424
<Link>UmbracoProject\Views\Partials\blocklist\%(RecursiveDir)%(Filename)%(Extension)</Link>
2525
<PackagePath>UmbracoProject\Views\Partials\blocklist</PackagePath>
2626
</Content>
27-
<Content Include="..\src\Umbraco.Web.UI.New\Views\Partials\grid\**">
28-
<Link>UmbracoProject\Views\Partials\grid\%(RecursiveDir)%(Filename)%(Extension)</Link>
29-
<PackagePath>UmbracoProject\Views\Partials\grid</PackagePath>
30-
</Content>
31-
<Content Include="..\src\Umbraco.Web.UI.New\Views\Partials\blockgrid\**">
27+
<Content Include="..\src\Umbraco.Web.UI\Views\Partials\blockgrid\**">
3228
<Link>UmbracoProject\Views\Partials\blockgrid\%(RecursiveDir)%(Filename)%(Extension)</Link>
3329
<PackagePath>UmbracoProject\Views\Partials\blockgrid</PackagePath>
3430
</Content>
35-
<Content Include="..\src\Umbraco.Web.UI.New\Views\_ViewImports.cshtml">
31+
<Content Include="..\src\Umbraco.Web.UI\Views\_ViewImports.cshtml">
3632
<Link>UmbracoProject\Views\_ViewImports.cshtml</Link>
3733
<PackagePath>UmbracoProject\Views</PackagePath>
3834
</Content>
39-
<Content Include="..\src\Umbraco.Web.UI.New\wwwroot\favicon.ico">
35+
<Content Include="..\src\Umbraco.Web.UI\wwwroot\favicon.ico">
4036
<Link>UmbracoProject\wwwroot\favicon.ico</Link>
4137
<PackagePath>UmbracoProject\wwwroot</PackagePath>
4238
</Content>

‎tests/Umbraco.Tests.Integration/DependencyInjection/UmbracoBuilderExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ private static ILocalizedTextService GetLocalizedTextService(IServiceProvider fa
120120

121121
var currFolder = new DirectoryInfo(srcFolder);
122122

123-
var uiProject = currFolder.GetDirectories("Umbraco.Web.UI.New", SearchOption.TopDirectoryOnly).First();
123+
var uiProject = currFolder.GetDirectories("Umbraco.Web.UI", SearchOption.TopDirectoryOnly).First();
124124
var mainLangFolder = new DirectoryInfo(Path.Combine(uiProject.FullName, globalSettings.Value.UmbracoPath.TrimStart("~/"), "config", "lang"));
125125

126126
return new LocalizedTextServiceFileSources(

‎umbraco.sln

+6-14
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio Version 17
33
VisualStudioVersion = 17.1.32328.378
44
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Umbraco.Web.UI", "src\Umbraco.Web.UI\Umbraco.Web.UI.csproj", "{C55CA725-9F4E-4618-9435-6B8AE05DA14D}"
6+
EndProject
57
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{B5BD12C1-A454-435E-8A46-FF4A364C0382}"
68
ProjectSection(SolutionItems) = preProject
79
tests\.editorconfig = tests\.editorconfig
@@ -92,11 +94,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Umbraco.Templates", "templa
9294
EndProject
9395
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Umbraco.Cms", "src\Umbraco.Cms\Umbraco.Cms.csproj", "{92EAA57A-CC99-4F5D-9D9C-B865293F6000}"
9496
EndProject
95-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "NewBackoffice", "NewBackoffice", "{995D9EFA-8BB1-4333-80AD-C525A06FD984}"
96-
ProjectSection(SolutionItems) = preProject
97-
.github\New BackOffice - README.md = .github\New BackOffice - README.md
98-
EndProjectSection
99-
EndProject
10097
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Umbraco.Cms.Api.Management", "src\Umbraco.Cms.Api.Management\Umbraco.Cms.Api.Management.csproj", "{0946531B-F06D-415B-A4E3-6CBFF5DB1C12}"
10198
EndProject
10299
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Umbraco.Cms.Targets", "src\Umbraco.Cms.Targets\Umbraco.Cms.Targets.csproj", "{B51C10FC-FD20-451E-90DD-A117133403DF}"
@@ -153,29 +150,27 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Umbraco.Cms.Imaging.ImageSh
153150
EndProject
154151
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tools", "Tools", "{05878304-40EB-4F84-B40B-91BDB70DE094}"
155152
EndProject
156-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Umbraco.Web.UI.New", "src\Umbraco.Web.UI.New\Umbraco.Web.UI.New.csproj", "{C55CA725-9F4E-4618-9435-6B8AE05DA14D}"
157-
EndProject
158153
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Umbraco.Cms.Api.Common", "src\Umbraco.Cms.Api.Common\Umbraco.Cms.Api.Common.csproj", "{D48B5D6B-82FF-4235-986C-CDE646F41DEC}"
159154
EndProject
160-
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "Umbraco.Web.UI.New.Client", "src\Umbraco.Web.UI.New.Client\", "{D88A926B-E8D6-495A-A2ED-8EFD0C847C62}"
155+
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "Umbraco.Web.UI.Client", "src\Umbraco.Web.UI.Client\", "{D88A926B-E8D6-495A-A2ED-8EFD0C847C62}"
161156
ProjectSection(WebsiteProperties) = preProject
162157
TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.8"
163158
Debug.AspNetCompiler.VirtualPath = "/localhost_55211"
164-
Debug.AspNetCompiler.PhysicalPath = "src\Umbraco.Web.UI.New.Client\"
159+
Debug.AspNetCompiler.PhysicalPath = "src\Umbraco.Web.UI.Client\"
165160
Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_55211\"
166161
Debug.AspNetCompiler.Updateable = "true"
167162
Debug.AspNetCompiler.ForceOverwrite = "true"
168163
Debug.AspNetCompiler.FixedNames = "false"
169164
Debug.AspNetCompiler.Debug = "True"
170165
Release.AspNetCompiler.VirtualPath = "/localhost_55211"
171-
Release.AspNetCompiler.PhysicalPath = "src\Umbraco.Web.UI.New.Client\"
166+
Release.AspNetCompiler.PhysicalPath = "src\Umbraco.Web.UI.Client\"
172167
Release.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_55211\"
173168
Release.AspNetCompiler.Updateable = "true"
174169
Release.AspNetCompiler.ForceOverwrite = "true"
175170
Release.AspNetCompiler.FixedNames = "false"
176171
Release.AspNetCompiler.Debug = "False"
177172
VWDPort = "55211"
178-
SlnRelativePath = "src\Umbraco.Web.UI.New.Client\"
173+
SlnRelativePath = "src\Umbraco.Web.UI.Client\"
179174
EndProjectSection
180175
EndProject
181176
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Umbraco.Cms.Api.Delivery", "src\Umbraco.Cms.Api.Delivery\Umbraco.Cms.Api.Delivery.csproj", "{9AA3D21F-81A9-4F27-85D1-CE850B59DC2D}"
@@ -388,14 +383,11 @@ Global
388383
{9102ABDF-E537-4E46-B525-C9ED4833EED0} = {B5BD12C1-A454-435E-8A46-FF4A364C0382}
389384
{2A5027D9-F71D-4957-929E-F7A56AA1B95A} = {05878304-40EB-4F84-B40B-91BDB70DE094}
390385
{05C1D0C8-C592-468F-AF8F-A299B9B3A903} = {6D72A60B-0542-4AA9-A493-DD4179E838A1}
391-
{0946531B-F06D-415B-A4E3-6CBFF5DB1C12} = {995D9EFA-8BB1-4333-80AD-C525A06FD984}
392386
{20CE9C97-9314-4A19-BCF1-D12CF49B7205} = {E5D4B5F9-6CCE-46CE-8985-9A350445F92B}
393387
{F2BF84D9-0A14-40AF-A0F3-B9BBBBC16A44} = {20CE9C97-9314-4A19-BCF1-D12CF49B7205}
394388
{2B47AD9F-FFF1-448A-88F1-D4F568811738} = {F2BF84D9-0A14-40AF-A0F3-B9BBBBC16A44}
395389
{25AECCB5-B187-4406-844B-91B8FF0FCB37} = {2B47AD9F-FFF1-448A-88F1-D4F568811738}
396390
{EA628ABD-624E-4AF3-B548-6710D4D66531} = {2B47AD9F-FFF1-448A-88F1-D4F568811738}
397-
{C55CA725-9F4E-4618-9435-6B8AE05DA14D} = {995D9EFA-8BB1-4333-80AD-C525A06FD984}
398-
{D88A926B-E8D6-495A-A2ED-8EFD0C847C62} = {995D9EFA-8BB1-4333-80AD-C525A06FD984}
399391
{A13FF0A0-69FA-468A-9F79-565401D5C341} = {B5BD12C1-A454-435E-8A46-FF4A364C0382}
400392
EndGlobalSection
401393
GlobalSection(ExtensibilityGlobals) = postSolution

0 commit comments

Comments
 (0)
Please sign in to comment.