diff --git a/.gitignore b/.gitignore
index 587b4d29..ee66b814 100644
--- a/.gitignore
+++ b/.gitignore
@@ -273,7 +273,7 @@ deps/*.dll
zero.Commerce/
zero.Stories/
zero.Forms/
-zero.Web.UI/package.json
-zero.Web.UI/package-lock.json
-zero.Web.UI/app/core/plugins.js
-zero.Web.UI/dist
+zero.Backoffice.UI/package.json
+zero.Backoffice.UI/package-lock.json
+zero.Backoffice.UI/app/core/plugins.js
+zero.Backoffice.UI/dist
diff --git a/zero.Backoffice.UI/app/env.d.ts b/zero.Backoffice.UI/app/env.d.ts
index 659d7139..3bda204a 100644
--- a/zero.Backoffice.UI/app/env.d.ts
+++ b/zero.Backoffice.UI/app/env.d.ts
@@ -1,15 +1,15 @@
///
-declare module '*.vue' {
- import { DefineComponent } from 'vue'
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
- const component: DefineComponent<{}, {}, any>
- export default component
-}
-
declare module 'vue' {
import { CompatVue } from '@vue/runtime-dom'
const Vue: CompatVue
export default Vue
export * from '@vue/runtime-dom'
+}
+
+declare module '*.vue' {
+ import { DefineComponent } from 'vue'
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
+ const component: DefineComponent<{}, {}, any>
+ export default component
}
\ No newline at end of file
diff --git a/zero.Backoffice.UI/app/modules/mails/picker/ui-mailtemplatepicker.vue b/zero.Backoffice.UI/app/modules/mails/picker/ui-mailtemplatepicker.vue
index 1264f578..9b7236af 100644
--- a/zero.Backoffice.UI/app/modules/mails/picker/ui-mailtemplatepicker.vue
+++ b/zero.Backoffice.UI/app/modules/mails/picker/ui-mailtemplatepicker.vue
@@ -6,8 +6,8 @@
+
+
+ ";
+ }
+ string content = TokenReplacement.Apply(await LoadTemplate("zero.Backoffice.Resources.backoffice.tpl.html"), model);
return Content(content, "text/html");
}
@@ -94,11 +67,4 @@ public class ZeroIndexController : Controller
using StreamReader reader = new(stream);
return await reader.ReadToEndAsync();
}
-}
-
-public class ZeroBackofficeModel
-{
- public int Port { get; set; }
-
- public IZeroVue Vue { get; set; }
-}
+}
\ No newline at end of file
diff --git a/zero.Backoffice/Plugin.cs b/zero.Backoffice/Plugin.cs
index 70d2a79b..a51b7c9a 100644
--- a/zero.Backoffice/Plugin.cs
+++ b/zero.Backoffice/Plugin.cs
@@ -28,7 +28,6 @@ public class ZeroBackofficePlugin : ZeroPlugin
services.AddOptions().Bind(configuration.GetSection("Zero:Backoffice")).Configure(ConfigureOptions);
services.TryAddEnumerable(ServiceDescriptor.Transient, ZeroBackofficeMvcOptions>());
services.AddHostedService();
- services.AddTransient();
services.AddSingleton();
services.AddScoped();
@@ -70,7 +69,7 @@ public class ZeroBackofficePlugin : ZeroPlugin
Prefix = "fth"
});
- options.SupportedLanguages = new string[2] { "en-US", "de-DE" };
+ options.SupportedLanguages = new string[1] { "en-US" }; //, "de-DE" };
options.DefaultLanguage = options.SupportedLanguages[0];
}
}
\ No newline at end of file
diff --git a/zero.Backoffice/Resources/auth.tpl.html b/zero.Backoffice/Resources/auth.tpl.html
deleted file mode 100644
index db2c16ae..00000000
--- a/zero.Backoffice/Resources/auth.tpl.html
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {css}
- zero says hi
-
-
-
-
-
- {js}
-
-
-
\ No newline at end of file
diff --git a/zero.Backoffice/Resources/backoffice.tpl.html b/zero.Backoffice/Resources/backoffice.tpl.html
index 4c008e68..12eb4d88 100644
--- a/zero.Backoffice/Resources/backoffice.tpl.html
+++ b/zero.Backoffice/Resources/backoffice.tpl.html
@@ -11,15 +11,15 @@
-
- {css}
+
+ {top}
zero
- {js}
+ {bottom}