Skip to content

Commit

Permalink
Simplify debug switch for Fomantic minified files
Browse files Browse the repository at this point in the history
  • Loading branch information
hyazinthh committed Feb 15, 2024
1 parent 0d1893e commit 20845fa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
5 changes: 0 additions & 5 deletions src/Aardvark.UI.Primitives/Primitives/SimplePrimitives.fs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,8 @@ module SimplePrimitives =

let semui =
[
#if DEBUG
{ kind = Stylesheet; name = "semui"; url = "./resources/fomantic/semantic.css" }
{ kind = Script; name = "semui"; url = "./resources/fomantic/semantic.js" }
#else
{ kind = Stylesheet; name = "semui"; url = "./resources/fomantic/semantic.min.css" }
{ kind = Script; name = "semui"; url = "./resources/fomantic/semantic.min.js" }
#endif
{ kind = Stylesheet; name = "semui-overrides"; url = "./resources/fomantic/semantic-overrides.css" }
{ kind = Script; name = "essential"; url = "./resources/essentialstuff.js" }
]
Expand Down
10 changes: 4 additions & 6 deletions src/Aardvark.UI/Aardvark.UI.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@
<EmbeddedResource Include="resources\fomantic\themes\default\**">
<LogicalName>resources\fomantic\themes\default\%(RecursiveDir)%(Filename)%(Extension)</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="resources\fomantic\semantic.min.js" LogicalName="resources/fomantic/semantic.min.js" />
<EmbeddedResource Include="resources\fomantic\semantic.min.css" LogicalName="resources/fomantic/semantic.min.css" />
<EmbeddedResource Include="resources\fomantic\semantic.js" LogicalName="resources/fomantic/semantic.js" Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'" />
<EmbeddedResource Include="resources\fomantic\semantic.css" LogicalName="resources/fomantic/semantic.css" Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'" />
<EmbeddedResource Include="resources\fomantic\semantic.min.js" LogicalName="resources/fomantic/semantic.js" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
<EmbeddedResource Include="resources\fomantic\semantic.min.css" LogicalName="resources/fomantic/semantic.css" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
<EmbeddedResource Include="resources\fomantic\semantic-overrides.css" LogicalName="resources/fomantic/semantic-overrides.css" />
<EmbeddedResource Include="resources\aardvark.js" />
<EmbeddedResource Include="resources\aardvark.css" />
Expand All @@ -47,10 +49,6 @@
<None Include="paket.references" />
<None Include="paket.template" />
</ItemGroup>
<ItemGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<EmbeddedResource Include="resources\fomantic\semantic.js" LogicalName="resources/fomantic/semantic.js" />
<EmbeddedResource Include="resources\fomantic\semantic.css" LogicalName="resources/fomantic/semantic.css" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Aardvark.Service\Aardvark.Service.fsproj" />
</ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/Aardvark.UI/resources/aardvark.js
Original file line number Diff line number Diff line change
Expand Up @@ -1001,9 +1001,9 @@ if (!aardvark.openFileDialog) {

var refs =
[
{ kind: "stylesheet", name: "semui-css", url: "./resources/fomantic/semantic.min.css" },
{ kind: "stylesheet", name: "semui-css", url: "./resources/fomantic/semantic.css" },
{ kind: "stylesheet", name: "semui-overrides-css", url: "./resources/fomantic/semantic-overrides.css" },
{ kind: "script", name: "semui-js", url: "./resources/fomantic/semantic.min.js" },
{ kind: "script", name: "semui-js", url: "./resources/fomantic/semantic.js" },
{ kind: "stylesheet", name: "jtree-base", url: "https://cdnjs.cloudflare.com/ajax/libs/jstree/3.1.1/themes/default/style.min.css" },
{ kind: "stylesheet", name: "jtree-dark", url: "https://cdnjs.cloudflare.com/ajax/libs/jstree/3.3.3/themes/default-dark/style.min.css" },
{ kind: "script", name: "jstree", url: "https://cdnjs.cloudflare.com/ajax/libs/jstree/3.1.1/jstree.min.js" },
Expand Down

0 comments on commit 20845fa

Please sign in to comment.