Skip to content

Commit

Permalink
Merge pull request #211 from tareqimbasher/solution-refactor
Browse files Browse the repository at this point in the history
Solution refactor
  • Loading branch information
tareqimbasher committed Jun 30, 2024
2 parents 23f6b3c + 57d650f commit 15bd926
Show file tree
Hide file tree
Showing 614 changed files with 5,650 additions and 7,945 deletions.
1 change: 0 additions & 1 deletion src/.editorconfig → .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ trim_trailing_whitespace = false

[*.{razor,cshtml}]
charset = utf-8-bom

9 changes: 4 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ BenchmarkDotNet.Artifacts/
project.lock.json
project.fragment.lock.json
artifacts/
**/Properties/launchSettings.json

# optional local settings
appsettings.Local.json
Expand Down Expand Up @@ -225,7 +224,7 @@ ClientBin/
*.publishsettings
orleans.codegen.cs

# Including strong name files can present a security risk
# Including strong name files can present a security risk
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
#*.snk

Expand Down Expand Up @@ -321,7 +320,7 @@ __pycache__/
# OpenCover UI analysis results
OpenCover/

# Azure Stream Analytics local run output
# Azure Stream Analytics local run output
ASALocalRun/

# MSBuild Binary and Structured Log
Expand All @@ -330,7 +329,7 @@ ASALocalRun/
# NVidia Nsight GPU debugger configuration file
*.nvuser

# MFractors (Xamarin productivity tool) working folder
# MFractors (Xamarin productivity tool) working folder
.mfractor/

*.DS_Store
Expand All @@ -348,4 +347,4 @@ src/Apps/Web/Blink.Apps.WebApp/global.json
NuGetScratch/
VBCSCompiler/
.dotnet/
dist/
dist/
13 changes: 13 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<Project>
<PropertyGroup>
<DefaultTargetFramework>net6.0</DefaultTargetFramework>
<EarliestSupportedTargetFramework>net6.0</EarliestSupportedTargetFramework>
<LangVersion>latest</LangVersion>
<Deterministic>True</Deterministic>
<Nullable>Enable</Nullable>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
<PackageProjectUrl>https://github.com/tareqimbasher/netpad</PackageProjectUrl>
<RepositoryUrl>https://github.com/tareqimbasher/netpad</RepositoryUrl>
<Authors>Tareq Imbasher</Authors>
</PropertyGroup>
</Project>
6 changes: 6 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sdk": {
"version": "8.0.0",
"rollForward": "latestMinor"
}
}
13 changes: 8 additions & 5 deletions src/Apps/NetPad.Apps.App/App/src/core/@common/utils/system.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import * as process from "process";

export class System {
/**
* Opens a URL in system-configured default browser.
Expand All @@ -15,9 +13,14 @@ export class System {
}

public static getPlatform() {
try {
return process.platform;
} catch {
if (this.isRunningInElectron()) {
try {
// eslint-disable-next-line @typescript-eslint/no-var-requires
return require("process").platform;
} catch {
return undefined;
}
} else {
return undefined;
}
}
Expand Down
Loading

0 comments on commit 15bd926

Please sign in to comment.