Browse Source

Merge pull request #945 from PixiEditor/beta-ext-remove

Removed beta extension
Krzysztof Krysiński 2 months ago
parent
commit
45c0ebd434

+ 0 - 29
src/PixiEditor.Beta/BetaExtension.cs

@@ -1,29 +0,0 @@
-using PixiEditor.Extensions.Sdk;
-
-namespace PixiEditor.Beta;
-
-public class BetaExtension : PixiEditorExtension
-{
-    public override void OnInitialized()
-    {
-        if (Api.Preferences.GetPreference<bool>("BetaWelcomeShown"))
-        {
-            return;
-        }
-
-        WelcomeMessage welcomeMessage = new();
-        var window = Api.WindowProvider.CreatePopupWindow("Welcome to the PixiEditor 2.0 beta!", welcomeMessage);
-        welcomeMessage.OnContinue += () =>
-        {
-            Api.Preferences.UpdatePreference("BetaWelcomeShown", true);
-            window.Close();
-        };
-
-        window.Width = 800;
-        window.Height = 650;
-
-        window.CanResize = false;
-        window.CanMinimize = false;
-        window.ShowDialog();
-    }
-}

+ 0 - 36
src/PixiEditor.Beta/PixiEditor.Beta.csproj

@@ -1,36 +0,0 @@
-<Project Sdk="Microsoft.NET.Sdk">
-
-  <PropertyGroup>
-    <TargetFramework>net8.0</TargetFramework>
-    <RuntimeIdentifier>wasi-wasm</RuntimeIdentifier>
-    <OutputType>Exe</OutputType>
-    <ImplicitUsings>enable</ImplicitUsings>
-    <Nullable>disable</Nullable>
-    <PublishTrimmed>true</PublishTrimmed>
-    <WasmSingleFileBundle>true</WasmSingleFileBundle>
-    <EventSourceSupport>false</EventSourceSupport>
-    <UseSystemResourceKeys>true</UseSystemResourceKeys>
-    <EnableUnsafeUTF7Encoding>false</EnableUnsafeUTF7Encoding>
-    <HttpActivityPropagationSupport>false</HttpActivityPropagationSupport>
-    <DebuggerSupport>false</DebuggerSupport>
-    <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
-    <ValidateExecutableReferencesMatchSelfContained>false</ValidateExecutableReferencesMatchSelfContained>
-    <RootNamespace>PixiEditor.Beta</RootNamespace>
-  </PropertyGroup>
-
-  <ItemGroup>
-    <ProjectReference Include="..\PixiEditor.Extensions.Sdk\PixiEditor.Extensions.Sdk.csproj"/>
-  </ItemGroup>
-
-  <ItemGroup>
-    <None Update="extension.json">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </None>
-  </ItemGroup>
-
-
-  <!--Below is not required if you use Nuget package, this sample references project directly, so it must be here-->
-  <Import Project="..\PixiEditor.Extensions.Sdk\build\PixiEditor.Extensions.Sdk.props"/>
-  <Import Project="..\PixiEditor.Extensions.Sdk\build\PixiEditor.Extensions.Sdk.targets"/>
-
-</Project>

+ 0 - 9
src/PixiEditor.Beta/Program.cs

@@ -1,9 +0,0 @@
-namespace PixiEditor.Beta;
-
-public static class Program
-{
-    public static void Main(string[] args)
-    {
-
-    }
-}

+ 0 - 15
src/PixiEditor.Beta/WelcomeMessage.cs

@@ -1,15 +0,0 @@
-using PixiEditor.Extensions.Sdk.Api.FlyUI;
-
-namespace PixiEditor.Beta;
-
-public class WelcomeMessage : StatefulElement<WelcomeMessageState>
-{
-    public event Action OnContinue;
-    
-    public override WelcomeMessageState CreateState()
-    { 
-        WelcomeMessageState state = new WelcomeMessageState();
-        state.OnContinue += () => OnContinue?.Invoke();
-        return state;
-    }
-}

+ 0 - 85
src/PixiEditor.Beta/WelcomeMessageState.cs

@@ -1,85 +0,0 @@
-using PixiEditor.Extensions.Sdk.Api.FlyUI;
-using PixiEditor.Extensions.CommonApi.FlyUI.Properties;
-
-namespace PixiEditor.Beta;
-
-public class WelcomeMessageState : State
-{
-    private const string Body1 = @"
-We are extremely excited to share this version with you, early testers. Before you jump in and test all the new things, we have a few things to note:
-
-- This is a very early version of PixiEditor 2.0. Not every feature promised in the roadmap is
-  implemented yet. 
-
-- App is not production ready! Expect bugs, crashes, unfinished features, placeholders and other signs of development.
-";
-
-    private const string Body2 =
-        "- Your feedback is the most important thing of this beta, please take a moment to report any issues and suggestions on PixiEditor Forum.";
-
-    private const string Body3 = @"
-- We are collecting anonymous usage data to fix bugs, crashes and performance issues. This data will help us to improve the app. During the beta 
-there is no option to opt-out. No personal data is collected.
-
-Click on below checkboxes that you understand what you are getting into and you are ready to test the app.
-
-I understand that:
-";
-
-    private bool[] _checkboxes = new bool[4];
-
-    public event Action OnContinue;
-
-    public override LayoutElement BuildElement()
-    {
-        return new Layout(body:
-            new Align(
-                Alignment.TopCenter,
-                new Column(
-                    new Center(new Text("Welcome to the open beta of PixiEditor 2.0!", TextWrap.Wrap,
-                        new TextStyle(fontSize: 24))),
-                    new Text(Body1, TextWrap.Wrap, new TextStyle(fontSize: 16)),
-                    new Hyperlink("https://forum.pixieditor.net", Body2,
-                        textStyle: new TextStyle(fontSize: 16), textWrap: TextWrap.Wrap),
-                    new Text(Body3, TextWrap.Wrap, new TextStyle(fontSize: 16)),
-                    new CheckBox(
-                        new Text("The app may be unstable, crash or freeze",
-                            textStyle: new TextStyle(fontStyle: FontStyle.Italic, fontSize: 16)),
-                        onCheckedChanged: (args) => CheckboxChanged(args.Sender as CheckBox, 0)),
-                    new CheckBox(
-                        new Text("I may encounter unfinished features and placeholders",
-                            textStyle: new TextStyle(fontSize: 16, fontStyle: FontStyle.Italic)),
-                        onCheckedChanged: (args) => CheckboxChanged(args.Sender as CheckBox, 1)),
-                    new CheckBox(new Text("I may lose my work due to bugs",
-                        textStyle: new TextStyle(fontSize: 16, fontStyle: FontStyle.Italic)),
-                        onCheckedChanged: (args) => CheckboxChanged(args.Sender as CheckBox, 2)),
-                    new CheckBox(
-                        new Text("I will have a lot of fun testing the app",
-                            textStyle: new TextStyle(fontSize: 16, fontStyle: FontStyle.Italic)),
-                        onCheckedChanged: (args) => CheckboxChanged(args.Sender as CheckBox, 3)),
-                    new Container(
-                        margin: new Edges(0, 5, 0, 0),
-                        width: AllCheckBoxesChecked() ? 100 : 200,
-                        child:
-                        AllCheckBoxesChecked()
-                            ? new Button(new Text("Continue"), onClick: (args) => { OnContinue?.Invoke(); })
-                            : new Text("Select All Checkboxes to continue")
-                    )
-                )
-            )
-        );
-    }
-
-    void CheckboxChanged(CheckBox checkBox, int index)
-    {
-        SetState(() =>
-        {
-            _checkboxes[index] = checkBox.IsChecked;
-        });
-    }
-
-    private bool AllCheckBoxesChecked()
-    {
-        return _checkboxes.All(x => x);
-    }
-}

+ 0 - 20
src/PixiEditor.Beta/extension.json

@@ -1,20 +0,0 @@
-{
-  "displayName": "PixiEditor Beta",
-  "uniqueName": "PixiEditor.Beta",
-  "description": "Open Beta of PixiEditor 2.0",
-  "version": "1.0.1",
-  "author": {
-    "name": "PixiEditor",
-    "email": "[email protected]",
-    "website": "https://pixieditor.net"
-  },
-  "publisher": {
-    "name": "PixiEditor",
-    "email": "[email protected]",
-    "website": "https://pixieditor.net"
-  },
-  "license": "Copyright PixiEditor Organization",
-  "categories": [
-    "Beta"
-  ]
-}

+ 0 - 31
src/PixiEditor.sln

@@ -90,8 +90,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PixiEditor.Common", "PixiEd
 EndProject
 EndProject
 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "BuiltInExtensions", "BuiltInExtensions", "{99903753-40A6-434E-8B8F-CE55417CF7FC}"
 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "BuiltInExtensions", "BuiltInExtensions", "{99903753-40A6-434E-8B8F-CE55417CF7FC}"
 EndProject
 EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PixiEditor.Beta", "PixiEditor.Beta\PixiEditor.Beta.csproj", "{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}"
-EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PixiDocks.Avalonia", "PixiDocks\src\PixiDocks.Avalonia\PixiDocks.Avalonia.csproj", "{2B4A9926-0532-4C59-9289-37775A7499A4}"
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PixiDocks.Avalonia", "PixiDocks\src\PixiDocks.Avalonia\PixiDocks.Avalonia.csproj", "{2B4A9926-0532-4C59-9289-37775A7499A4}"
 EndProject
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PixiParser.Skia", "PixiParser\src\PixiParser.Skia\PixiParser.Skia.csproj", "{47BC7BC5-C070-49F4-8C8C-542DEDFC78B5}"
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PixiParser.Skia", "PixiParser\src\PixiParser.Skia\PixiParser.Skia.csproj", "{47BC7BC5-C070-49F4-8C8C-542DEDFC78B5}"
@@ -690,34 +688,6 @@ Global
 		{E92E7B0E-C24B-4087-9DD9-AD10DA3BE80A}.Steam|ARM64.Build.0 = Debug|Any CPU
 		{E92E7B0E-C24B-4087-9DD9-AD10DA3BE80A}.Steam|ARM64.Build.0 = Debug|Any CPU
 		{E92E7B0E-C24B-4087-9DD9-AD10DA3BE80A}.Steam|x64.ActiveCfg = Release|Any CPU
 		{E92E7B0E-C24B-4087-9DD9-AD10DA3BE80A}.Steam|x64.ActiveCfg = Release|Any CPU
 		{E92E7B0E-C24B-4087-9DD9-AD10DA3BE80A}.Steam|x64.Build.0 = Release|Any CPU
 		{E92E7B0E-C24B-4087-9DD9-AD10DA3BE80A}.Steam|x64.Build.0 = Release|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.Debug|x64.ActiveCfg = Debug|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.Debug|x64.Build.0 = Debug|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.Debug|ARM64.ActiveCfg = Debug|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.Debug|ARM64.Build.0 = Debug|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.DevRelease|x64.ActiveCfg = Debug|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.DevRelease|x64.Build.0 = Debug|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.DevRelease|ARM64.ActiveCfg = Debug|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.DevRelease|ARM64.Build.0 = Debug|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.DevSteam|x64.ActiveCfg = Debug|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.DevSteam|x64.Build.0 = Debug|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.DevSteam|ARM64.ActiveCfg = Debug|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.DevSteam|ARM64.Build.0 = Debug|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.MSIX Debug|x64.ActiveCfg = Debug|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.MSIX Debug|x64.Build.0 = Debug|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.MSIX Debug|ARM64.ActiveCfg = Debug|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.MSIX Debug|ARM64.Build.0 = Debug|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.MSIX|x64.ActiveCfg = Debug|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.MSIX|x64.Build.0 = Debug|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.MSIX|ARM64.ActiveCfg = Debug|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.MSIX|ARM64.Build.0 = Debug|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.Release|x64.ActiveCfg = Release|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.Release|x64.Build.0 = Release|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.Release|ARM64.ActiveCfg = Release|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.Release|ARM64.Build.0 = Release|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.Steam|ARM64.ActiveCfg = Debug|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.Steam|ARM64.Build.0 = Debug|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.Steam|x64.ActiveCfg = Release|Any CPU
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78}.Steam|x64.Build.0 = Release|Any CPU
 		{2B4A9926-0532-4C59-9289-37775A7499A4}.Debug|x64.ActiveCfg = Debug|Any CPU
 		{2B4A9926-0532-4C59-9289-37775A7499A4}.Debug|x64.ActiveCfg = Debug|Any CPU
 		{2B4A9926-0532-4C59-9289-37775A7499A4}.Debug|x64.Build.0 = Debug|Any CPU
 		{2B4A9926-0532-4C59-9289-37775A7499A4}.Debug|x64.Build.0 = Debug|Any CPU
 		{2B4A9926-0532-4C59-9289-37775A7499A4}.Debug|ARM64.ActiveCfg = Debug|Any CPU
 		{2B4A9926-0532-4C59-9289-37775A7499A4}.Debug|ARM64.ActiveCfg = Debug|Any CPU
@@ -1356,7 +1326,6 @@ Global
 		{9B552A44-9587-4410-8673-254B31E2E4F7} = {2BA72059-FFD7-4887-AE88-269017198933}
 		{9B552A44-9587-4410-8673-254B31E2E4F7} = {2BA72059-FFD7-4887-AE88-269017198933}
 		{CD863C88-72E3-40F4-9AAE-5696BBB4460C} = {2BA72059-FFD7-4887-AE88-269017198933}
 		{CD863C88-72E3-40F4-9AAE-5696BBB4460C} = {2BA72059-FFD7-4887-AE88-269017198933}
 		{E92E7B0E-C24B-4087-9DD9-AD10DA3BE80A} = {1E816135-76C1-4255-BE3C-BF17895A65AA}
 		{E92E7B0E-C24B-4087-9DD9-AD10DA3BE80A} = {1E816135-76C1-4255-BE3C-BF17895A65AA}
-		{059904E2-9ACC-41E6-B78D-F0BC03CA9D78} = {99903753-40A6-434E-8B8F-CE55417CF7FC}
 		{2B4A9926-0532-4C59-9289-37775A7499A4} = {E8A74431-F76F-43B1-BC66-CA05E249E6F4}
 		{2B4A9926-0532-4C59-9289-37775A7499A4} = {E8A74431-F76F-43B1-BC66-CA05E249E6F4}
 		{1CCCA0DF-C0D4-4482-B15D-BB9702726C04} = {E8A74431-F76F-43B1-BC66-CA05E249E6F4}
 		{1CCCA0DF-C0D4-4482-B15D-BB9702726C04} = {E8A74431-F76F-43B1-BC66-CA05E249E6F4}
 		{47BC7BC5-C070-49F4-8C8C-542DEDFC78B5} = {E8A74431-F76F-43B1-BC66-CA05E249E6F4}
 		{47BC7BC5-C070-49F4-8C8C-542DEDFC78B5} = {E8A74431-F76F-43B1-BC66-CA05E249E6F4}