This repository has been archived by the owner on Jul 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Don't include the co-design sources directly. #46
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -232,3 +232,7 @@ _Pvt_Extensions | |
|
||
# FAKE - F# Make | ||
.fake/ | ||
|
||
# Addendum | ||
node_modules/ | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/codidact/core" | ||
}, | ||
"license": "AGPL-3.0-only", | ||
"dependencies": { | ||
"@codidact/co-design": "0.4.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,31 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
<PropertyGroup> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
<RootNamespace>Codidact.WebUI</RootNamespace> | ||
<AssemblyName>Codidact.WebUI</AssemblyName> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
<RootNamespace>Codidact.WebUI</RootNamespace> | ||
<AssemblyName>Codidact.WebUI</AssemblyName> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="3.1.0" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="3.1.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\src\Application\Application.csproj" /> | ||
<ProjectReference Include="..\Infrastructure\Infrastructure.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="3.1.0" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="3.1.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\src\Application\Application.csproj" /> | ||
<ProjectReference Include="..\Infrastructure\Infrastructure.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<CodesignCssFiles Include="../../node_modules/@codidact/co-design/dist/*" /> | ||
<CodesignAssets Include="../../node_modules/@codidact/co-design/assets/**" /> | ||
</ItemGroup> | ||
|
||
<Target Name="Install co-design" BeforeTargets="Build"> | ||
<Exec Command="npm install" /> | ||
<Copy SourceFiles="@(CodesignCssFiles)" DestinationFolder="wwwroot/lib/co-design/css" /> | ||
<Copy SourceFiles="@(CodesignAssets)" DestinationFolder="wwwroot/lib/co-design/assets/%(RecursiveDir)" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
co-design/ |
93 changes: 0 additions & 93 deletions
93
src/WebUI/wwwroot/lib/co-design/assets/fonts/Red_Hat_Display/OFL.txt
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-76.1 KB
src/WebUI/wwwroot/lib/co-design/assets/fonts/Red_Hat_Display/RedHatDisplay-Black.ttf
Binary file not shown.
Binary file removed
BIN
-77.8 KB
src/WebUI/wwwroot/lib/co-design/assets/fonts/Red_Hat_Display/RedHatDisplay-BlackItalic.ttf
Binary file not shown.
Binary file removed
BIN
-74.7 KB
src/WebUI/wwwroot/lib/co-design/assets/fonts/Red_Hat_Display/RedHatDisplay-Bold.ttf
Binary file not shown.
Binary file removed
BIN
-76.2 KB
src/WebUI/wwwroot/lib/co-design/assets/fonts/Red_Hat_Display/RedHatDisplay-BoldItalic.ttf
Binary file not shown.
Binary file removed
BIN
-74.6 KB
src/WebUI/wwwroot/lib/co-design/assets/fonts/Red_Hat_Display/RedHatDisplay-Italic.ttf
Binary file not shown.
Binary file removed
BIN
-73.7 KB
src/WebUI/wwwroot/lib/co-design/assets/fonts/Red_Hat_Display/RedHatDisplay-Medium.ttf
Binary file not shown.
Binary file removed
BIN
-75.3 KB
src/WebUI/wwwroot/lib/co-design/assets/fonts/Red_Hat_Display/RedHatDisplay-MediumItalic.ttf
Binary file not shown.
Binary file removed
BIN
-73.2 KB
src/WebUI/wwwroot/lib/co-design/assets/fonts/Red_Hat_Display/RedHatDisplay-Regular.ttf
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand this is larger than the scope of this pull request, but the naming here doesn't follow the recommended pattern of Company.Technology.*. In this case it should be Codidact.Web.UI.
This should be addressed in the coding standards when they get published and ratified. We should fix this as early on in the project as possible, as addressing it later will be more difficult.
I assume there are more problematic namespaces elsewhere in the project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, we should address this very quickly. It might already be difficult because we have a few large pull requests.
I'll look for some other locations and create an issue about it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DoctaJonez I was going through the sources and must say, I am conflicted about whether this is a good idea or not.
Your explicit suggestion doesn't really fit the schema either, because
Web
isn't really a technology that we develop. I'd say we are creating anQA
product, thusCodidact.QA.WebServer
would be correct, or something of the sort.If this schema were applied rigorously it could look like this:
This looks better than before but only marginally. Unless there is another big plus that I missed, this doesn't seem to be worth the trouble. (I also renamed
WebUI
toWebServer
andAuth
toAuthServer
.)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WebServer is the wrong word because its not a server for the web. WebUI refers to it being a presentation layer, as in displays stuff in the web.
Also the other projects will be sharing the infrastructure, domain and application projects so when we have an API for instance it will access these projects. So you can't really relate these projects to only QA.
I like this answer personally: https://stackoverflow.com/a/3929357/2490286
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So you consider e.g. Infrastructure a project standing on its own? I am confused now.
If we were to add say a blog at
codidact.com/blog
that is completely independent from the question/answer thing, would these projects have the same infrastructure?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually giving it a lot of though these past 10 minutes I agree maybe we should add .QA after the Codidact since if we add a solution like blogging it will want to have its own infrastructure and domain.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might want to choose a different name though, there was some discussion somewhere about other types of posts, not just questions. I can't think of an umbrella term for it.
Addendum. On the other hand the landing page says "The Open Source Q&A Platform."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some good thoughts here.
I agree we need to choose an appropriate product name, which would leave the namespace as Codidact.ProductName.*
I had the same thoughts about Codidact.Web.* but for other reasons. Codidact.Web is a valid namespace that we might want to use at some point. Whenever we make utilities or extensions for various Microsoft namespaces, the convention is to mirror Microsoft's namespace, but using our own organisation name. So we may end up with libraries along the lines of:
I'm not saying we'd definitely need to implement these, just that it would be an appropriate convention, and we don't want to muddle these kinds of libraries with application specific code.
These theoretical libraries could also be exposed as public nuget packages if we feel there's anything useful in there that's worth making available for general consumption.