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

Solution refactor #211

Merged
merged 1 commit into from
Jun 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
  •  
  •  
  •  
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
Loading