Skip to content

Commit

Permalink
Pre-release v0.8.5.2
Browse files Browse the repository at this point in the history
- Fix edited values not display updated in list view.
- Fix edited value not persist in some cases. Close #42.
- Document Editor resize improvement.
- Update Packages.
  • Loading branch information
julianpaulozzi committed Dec 19, 2019
1 parent e365aeb commit fe3f562
Show file tree
Hide file tree
Showing 44 changed files with 1,362 additions and 737 deletions.
24 changes: 4 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# <img src="https://raw.githubusercontent.com/julianpaulozzi/LiteDbExplorer/master/source/LiteDbExplorer/Images/icon.png" height="42"> LiteDB Explorer
Graphical editor for [LiteDB](https://github.com/mbdavid/LiteDB) databases.

<p>
<img align="center" src="https://raw.githubusercontent.com/julianpaulozzi/LiteDbExplorer/master/web/start_dark.png" width="880" >
</p>

# Download

Expand All @@ -24,10 +27,6 @@ The main purpose of keeping this fork is to meet my LiteDB use cases, refresh WP

I have seen some LiteDB use cases that go far beyond any that would have with this database. If you use LiteDB to store a large volume of data, large texts and many files ... this project currently will not meet your needs and is outside my current contribution scope. Any contribution is welcome, so before opening a issue mainly related to this topic collaborate and submit a pull request or use [other alternatives](https://github.com/mbdavid/LiteDB#3rd-party-tools-for-litedb).

<p>
<img align="center" src="https://raw.githubusercontent.com/julianpaulozzi/LiteDbExplorer/master/web/screen_01.png" width="880" >
</p>

## Features in current pre-release:
* Material dark and white theme.
* Open multiple databases at the same time.
Expand Down Expand Up @@ -70,22 +69,7 @@ Please make sure to read the Issue Reporting Checklist before opening an issue.

All contributions are welcome!

Regarding code styling, there are only a few major rules:
* private fields and properties should use _camelCase (with underscore)
* all methods (private and public) should use PascalCase
* use spaces instead of tabs with 4 spaces width
* always encapsulate with brackets:
```cs
if (true)
{
DoSomething()
}
```
instead of
```cs
if (true)
DoSomething()
```
Carefully read the code to check the style and patterns, follow them.

# License
[MIT License](http://opensource.org/licenses/MIT).
10 changes: 5 additions & 5 deletions source/LiteDbExplorer.Core/LiteDbExplorer.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@

<ItemGroup>
<PackageReference Include="CSharpFunctionalExtensions" Version="2.2.2" />
<PackageReference Include="DynamicData" Version="6.13.21" />
<PackageReference Include="Fody" Version="6.0.4">
<PackageReference Include="DynamicData" Version="6.14.1" />
<PackageReference Include="Fody" Version="6.0.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Humanizer.Core" Version="2.7.9" />
<PackageReference Include="JetBrains.Annotations" Version="2019.1.3" />
<PackageReference Include="LiteDB" Version="4.1.4" />
<PackageReference Include="PropertyChanged.Fody" Version="3.1.3" />
<PackageReference Include="PropertyChanged.Fody" Version="3.2.1" />
<PackageReference Include="PropertyChanging.Fody" Version="1.30.0" />
<PackageReference Include="Serilog" Version="2.9.0" />
<PackageReference Include="System.Reactive" Version="4.2.0" />
<PackageReference Include="System.Reflection.Emit" Version="4.6.0" />
<PackageReference Include="System.Reactive" Version="4.3.1" />
<PackageReference Include="System.Reflection.Emit" Version="4.7.0" />
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
</ItemGroup>

Expand Down
8 changes: 8 additions & 0 deletions source/LiteDbExplorer.Core/Store/DocumentReference.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.IO;
using System.Runtime.CompilerServices;
using LiteDB;

namespace LiteDbExplorer.Core
Expand All @@ -19,6 +20,7 @@ public DocumentReference(BsonDocument document, CollectionReference collection)

public CollectionReference Collection { get; set; }

[IndexerName(@"Item")]
public BsonValue this[string name]
{
get => LiteDocument[name];
Expand All @@ -40,6 +42,12 @@ public void RemoveSelf()
Collection?.RemoveItem(this);
}

public void NotifyDocumentChanged()
{
OnPropertyChanged(nameof(LiteDocument));
OnPropertyChanged(@"Item[]");
}

protected override void Dispose(bool disposing)
{
LiteDocument = null;
Expand Down
14 changes: 7 additions & 7 deletions source/LiteDbExplorer.Wpf/LiteDbExplorer.Wpf.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Themes\MaterialDesignTheme.TreeViewFullRow.xaml">
<Page Include="Themes\MaterialDesignTheme.TreeView.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
Expand All @@ -278,10 +278,10 @@
<Version>2.2.2</Version>
</PackageReference>
<PackageReference Include="Extended.Wpf.Toolkit">
<Version>3.5.0</Version>
<Version>3.7.0</Version>
</PackageReference>
<PackageReference Include="Fody">
<Version>6.0.4</Version>
<Version>6.0.5</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand All @@ -295,7 +295,7 @@
<Version>1.2.0</Version>
</PackageReference>
<PackageReference Include="MaterialDesignExtensions">
<Version>2.7.0</Version>
<Version>2.8.0</Version>
</PackageReference>
<PackageReference Include="MaterialDesignThemes">
<Version>2.6.0</Version>
Expand All @@ -304,13 +304,13 @@
<Version>0.1.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.Win32.Registry">
<Version>4.6.0</Version>
<Version>4.7.0</Version>
</PackageReference>
<PackageReference Include="Newtonsoft.Json">
<Version>12.0.3</Version>
</PackageReference>
<PackageReference Include="PropertyChanged.Fody">
<Version>3.1.3</Version>
<Version>3.2.1</Version>
</PackageReference>
<PackageReference Include="PropertyTools.Wpf">
<Version>3.0.0</Version>
Expand All @@ -319,7 +319,7 @@
<Version>2.9.0</Version>
</PackageReference>
<PackageReference Include="System.Reactive">
<Version>4.2.0</Version>
<Version>4.3.1</Version>
</PackageReference>
<PackageReference Include="System.ValueTuple">
<Version>4.5.0</Version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml" />
<ResourceDictionary Source="../../Themes/MaterialDesignTheme.TreeViewFullRow.xaml" />
<ResourceDictionary Source="../../Themes/MaterialDesignTheme.TreeView.xaml" />
</ResourceDictionary.MergedDictionaries>

<Style TargetType="Control" BasedOn="{StaticResource {x:Type Control}}">
Expand Down
Loading

0 comments on commit fe3f562

Please sign in to comment.