Remove .idea, add music db config and logging
This commit is contained in:
parent
146d353724
commit
c8d9dab5ca
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.idea
|
13
.idea/.idea.Embedio-test/.idea/.gitignore
generated
vendored
13
.idea/.idea.Embedio-test/.idea/.gitignore
generated
vendored
@ -1,13 +0,0 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Rider ignored files
|
||||
/projectSettingsUpdater.xml
|
||||
/.idea.Embedio-test.iml
|
||||
/modules.xml
|
||||
/contentModel.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
29
.idea/.idea.Embedio-test/.idea/dataSources.xml
generated
29
.idea/.idea.Embedio-test/.idea/dataSources.xml
generated
@ -1,29 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
||||
<data-source source="LOCAL" name="card" uuid="7bf27c58-38de-41e7-b19b-c8212b4120e6">
|
||||
<driver-ref>sqlite.xerial</driver-ref>
|
||||
<synchronize>true</synchronize>
|
||||
<jdbc-driver>org.sqlite.JDBC</jdbc-driver>
|
||||
<jdbc-url>jdbc:sqlite:C:\Users\10614\RiderProjects\Embedio-test\GC-local-server-rewrite\db\card.db3</jdbc-url>
|
||||
<working-dir>$ProjectFileDir$</working-dir>
|
||||
<libraries>
|
||||
<library>
|
||||
<url>file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/Xerial SQLiteJDBC/3.36.0.3/sqlite-jdbc-3.36.0.3.jar</url>
|
||||
</library>
|
||||
</libraries>
|
||||
</data-source>
|
||||
<data-source source="LOCAL" name="music" uuid="54da1572-ff2e-4bdb-880e-177dd34312b5">
|
||||
<driver-ref>sqlite.xerial</driver-ref>
|
||||
<synchronize>true</synchronize>
|
||||
<jdbc-driver>org.sqlite.JDBC</jdbc-driver>
|
||||
<jdbc-url>jdbc:sqlite:C:\Users\10614\RiderProjects\Embedio-test\GC-local-server-rewrite\db\music.db3</jdbc-url>
|
||||
<working-dir>$ProjectFileDir$</working-dir>
|
||||
<libraries>
|
||||
<library>
|
||||
<url>file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/Xerial SQLiteJDBC/3.36.0.3/sqlite-jdbc-3.36.0.3.jar</url>
|
||||
</library>
|
||||
</libraries>
|
||||
</data-source>
|
||||
</component>
|
||||
</project>
|
4
.idea/.idea.Embedio-test/.idea/encodings.xml
generated
4
.idea/.idea.Embedio-test/.idea/encodings.xml
generated
@ -1,4 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
|
||||
</project>
|
8
.idea/.idea.Embedio-test/.idea/indexLayout.xml
generated
8
.idea/.idea.Embedio-test/.idea/indexLayout.xml
generated
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="UserContentModel">
|
||||
<attachedFolders />
|
||||
<explicitIncludes />
|
||||
<explicitExcludes />
|
||||
</component>
|
||||
</project>
|
13
.idea/.idea.GC-local-server-rewrite/.idea/.gitignore
generated
vendored
13
.idea/.idea.GC-local-server-rewrite/.idea/.gitignore
generated
vendored
@ -1,13 +0,0 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Rider ignored files
|
||||
/modules.xml
|
||||
/.idea.GC-local-server-rewrite.iml
|
||||
/projectSettingsUpdater.xml
|
||||
/contentModel.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
@ -1,17 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
||||
<data-source source="LOCAL" name="card" uuid="115a7206-912c-4128-b8d4-a552698ecb5e">
|
||||
<driver-ref>sqlite.xerial</driver-ref>
|
||||
<synchronize>true</synchronize>
|
||||
<jdbc-driver>org.sqlite.JDBC</jdbc-driver>
|
||||
<jdbc-url>jdbc:sqlite:C:\Users\10614\RiderProjects\GC-local-server-rewrite\GC-local-server-rewrite\db\card.db3</jdbc-url>
|
||||
<working-dir>$ProjectFileDir$</working-dir>
|
||||
<libraries>
|
||||
<library>
|
||||
<url>file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/Xerial SQLiteJDBC/3.36.0.3/sqlite-jdbc-3.36.0.3.jar</url>
|
||||
</library>
|
||||
</libraries>
|
||||
</data-source>
|
||||
</component>
|
||||
</project>
|
@ -1,4 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
|
||||
</project>
|
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="UserContentModel">
|
||||
<attachedFolders />
|
||||
<explicitIncludes />
|
||||
<explicitExcludes />
|
||||
</component>
|
||||
</project>
|
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
@ -7,5 +7,6 @@
|
||||
<add key="SkinCount" value="21"/>
|
||||
<add key="SeCount" value="25"/>
|
||||
<add key="TitleCount" value="4942"/>
|
||||
<add key="MusicDBName" value="music.db3"/>
|
||||
</appSettings>
|
||||
</configuration>
|
@ -20,6 +20,26 @@
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="log" />
|
||||
<None Remove="db\music.db3" />
|
||||
<Content Include="db\music.db3">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<None Remove="static\favicon.ico" />
|
||||
<Content Include="static\favicon.ico">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<None Remove="static\index.html" />
|
||||
<Content Include="static\index.html">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<None Remove="static\news.png" />
|
||||
<Content Include="static\news.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<None Remove="GC-local-server-rewrite.exe.config.xml" />
|
||||
<None Include="App.config">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
@ -13,6 +13,8 @@ internal class Program
|
||||
Batteries_V2.Init();
|
||||
|
||||
InitializeLogging();
|
||||
|
||||
LogConfigValues();
|
||||
|
||||
var urlPrefixes = args.Length > 0 ? args : new[] { "http://*:80", "https://*:443" };
|
||||
|
||||
@ -82,4 +84,16 @@ internal class Program
|
||||
|
||||
Console.ReadKey(true);
|
||||
}
|
||||
|
||||
private static void LogConfigValues()
|
||||
{
|
||||
var log = $"Config values: {nameof(Configs.SE_COUNT)} : {Configs.SE_COUNT}\n" +
|
||||
$"{nameof(Configs.ITEM_COUNT)} : {Configs.ITEM_COUNT}\n" +
|
||||
$"{nameof(Configs.SKIN_COUNT)} : {Configs.SKIN_COUNT}\n" +
|
||||
$"{nameof(Configs.TITLE_COUNT)} : {Configs.TITLE_COUNT}\n" +
|
||||
$"{nameof(Configs.AVATAR_COUNT)} : {Configs.AVATAR_COUNT}\n" +
|
||||
$"{nameof(Configs.NAVIGATOR_COUNT)} : {Configs.NAVIGATOR_COUNT}\n" +
|
||||
$"{nameof(Configs.MUSIC_DB_NAME)} : {Configs.MUSIC_DB_NAME}\n";
|
||||
log.Info();
|
||||
}
|
||||
}
|
@ -36,8 +36,6 @@ public static class Configs
|
||||
|
||||
public const string CARD_DB_NAME = "card.db3";
|
||||
|
||||
public const string MUSIC_DB_NAME = "music.db3";
|
||||
|
||||
public const string ROOT_XPATH = "/root";
|
||||
|
||||
public const string DATA_XPATH = $"{ROOT_XPATH}/data";
|
||||
@ -137,4 +135,6 @@ public static class Configs
|
||||
|
||||
public static readonly int SE_COUNT = int.Parse(
|
||||
ConfigurationManager.AppSettings.Get("SeCount") ?? "25");
|
||||
|
||||
public static readonly string MUSIC_DB_NAME = ConfigurationManager.AppSettings.Get("MusicDBName") ?? "music.db3";
|
||||
}
|
BIN
GC-local-server-rewrite/db/music4MAX.db3
Normal file
BIN
GC-local-server-rewrite/db/music4MAX.db3
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user