@social-mail/social-mail-client 1.8.369 → 1.8.371
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/content/images/svg/splash/comment.svg +45 -0
- package/dist/admin/AdminAppIndex.pack.global.css +1 -1
- package/dist/admin/AdminAppIndex.pack.global.css.map +1 -1
- package/dist/admin/AdminAppIndex.pack.js +45 -3
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/BaseApp.d.ts.map +1 -1
- package/dist/common/BaseApp.js +5 -2
- package/dist/common/BaseApp.js.map +1 -1
- package/dist/common/pages/splash/SplashScreenPage.d.ts +14 -0
- package/dist/common/pages/splash/SplashScreenPage.d.ts.map +1 -0
- package/dist/common/pages/splash/SplashScreenPage.global.css +2 -0
- package/dist/common/pages/splash/SplashScreenPage.global.css.map +1 -0
- package/dist/common/pages/splash/SplashScreenPage.js +36 -0
- package/dist/common/pages/splash/SplashScreenPage.js.map +1 -0
- package/dist/site-editor-app/SiteEditorApp.pack.global.css +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.global.css.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +45 -3
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.d.ts.map +1 -1
- package/dist/web/AppIndex.js +5 -2
- package/dist/web/AppIndex.js.map +1 -1
- package/dist/web/AppIndex.pack.global.css +1 -1
- package/dist/web/AppIndex.pack.global.css.map +1 -1
- package/dist/web/AppIndex.pack.js +45 -3
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/common/BaseApp.tsx +3 -0
- package/src/common/pages/splash/SplashScreenPage.global.css +21 -0
- package/src/common/pages/splash/SplashScreenPage.tsx +34 -0
- package/src/web/AppIndex.tsx +4 -0
package/package.json
CHANGED
package/src/common/BaseApp.tsx
CHANGED
|
@@ -16,6 +16,7 @@ import { AppLocation } from "./TestMode";
|
|
|
16
16
|
|
|
17
17
|
import "../style/GlobalStyle";
|
|
18
18
|
import BusyProgress from "../services/BusyProgress";
|
|
19
|
+
import SplashScreenPage from "./pages/splash/SplashScreenPage";
|
|
19
20
|
|
|
20
21
|
|
|
21
22
|
(Symbol as any).asyncDispose ??= Symbol("asyncDispose");
|
|
@@ -37,6 +38,8 @@ export default abstract class BaseApp extends MobileDesktopApp {
|
|
|
37
38
|
|
|
38
39
|
async init() {
|
|
39
40
|
|
|
41
|
+
PageNavigator.openPage(SplashScreenPage);
|
|
42
|
+
|
|
40
43
|
this.commands.install(this);
|
|
41
44
|
|
|
42
45
|
// attach upload events..
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
splash-screen-page {
|
|
2
|
+
overflow: hidden;
|
|
3
|
+
&[data-base-page=base-page]>[data-page-element=content] {
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
}
|
|
6
|
+
splash-screen {
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
display: grid;
|
|
11
|
+
grid-template-columns: auto 30vw auto;
|
|
12
|
+
grid-template-rows: auto 30vh auto;
|
|
13
|
+
& > * {
|
|
14
|
+
grid-column: 2;
|
|
15
|
+
grid-row: 2;
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { UMD } from "@web-atoms/core/dist/core/types";
|
|
2
|
+
import XNode from "@web-atoms/core/dist/core/XNode";
|
|
3
|
+
import FetchBuilder from "@web-atoms/core/dist/services/FetchBuilder";
|
|
4
|
+
import { ContentPage } from "@web-atoms/web-controls/dist/mobile-app/MobileApp";
|
|
5
|
+
import "./SplashScreenPage.global.css";
|
|
6
|
+
|
|
7
|
+
const svg = UMD.resolvePath("@social-mail/social-mail-client/content/images/svg/splash/comment.svg");
|
|
8
|
+
|
|
9
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
10
|
+
declare global {
|
|
11
|
+
namespace JSX {
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
13
|
+
interface IntrinsicElements {
|
|
14
|
+
"splash-screen": any;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default class SplashScreenPage extends ContentPage {
|
|
20
|
+
|
|
21
|
+
constructor(app, e = document.createElement("splash-screen-page")) {
|
|
22
|
+
super(app, e);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
async init() {
|
|
26
|
+
this.hideToolbar = true;
|
|
27
|
+
this.renderer = <div>
|
|
28
|
+
<splash-screen/>
|
|
29
|
+
</div>;
|
|
30
|
+
const text = await FetchBuilder.get(svg).asText();
|
|
31
|
+
this.element.querySelector("splash-screen").innerHTML = text;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
}
|
package/src/web/AppIndex.tsx
CHANGED
|
@@ -20,6 +20,7 @@ import SocialMailApp from "../common/SocialMailApp";
|
|
|
20
20
|
import MiniComposePage from "./page/mails/mini-compose/MiniComposePage";
|
|
21
21
|
import { AppLocation } from "../common/TestMode";
|
|
22
22
|
import BusyProgress from "../services/BusyProgress";
|
|
23
|
+
import SplashScreenPage from "../common/pages/splash/SplashScreenPage";
|
|
23
24
|
|
|
24
25
|
(Symbol as any).asyncDispose ??= Symbol("asyncDispose");
|
|
25
26
|
(Symbol as any).dispose ??= Symbol("dispose");
|
|
@@ -36,6 +37,9 @@ export default class AppIndex extends MobileDesktopApp {
|
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
async init() {
|
|
40
|
+
|
|
41
|
+
PageNavigator.openPage(SplashScreenPage);
|
|
42
|
+
|
|
39
43
|
AppCommands.install(this);
|
|
40
44
|
|
|
41
45
|
// attach upload events..
|