@social-mail/social-mail-client 1.2.38 → 1.2.40

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.
@@ -12,45 +12,48 @@
12
12
  </style>
13
13
  </head>
14
14
  <body>
15
- <section>
16
- <div
17
- styler-layout="floating-nav-bar"
18
- styler-background-color="header"
19
- styler-color="header"
20
- styler-backdrop-filter="blur"
21
- styler-box-shadow="default"
22
- styler-align-self="stretch">
23
- <h1>Social Mail</h1>
24
- <div styler-element="navbar">
25
- <input type="checkbox" styler-element="drawer">
26
- <nav>
27
- <a>Home</a>
28
- <a>Features</a>
29
- </nav>
30
- </div>
31
- </div>
32
- <div styler-layout="block" styler-display="flex" styler-flex-direction="column" styler-align-items="center">
33
- <div
34
- styler-layout="column"
35
- styler-max-width="rel-size-x-l">Social media features on email, Social Mail. Social Mail consists of
36
- an email server and a client, which lets you communicate with others over email,
37
- however we have incorporated features such as like, comment, follow (subscribe) etc.
38
- </div>
39
- <div
40
- styler-layout="column"
41
- styler-max-width="rel-size-x-l">Most social networks want you to signup, and they track your every activity,
42
- so does all chat apps. With Social Mail, you don't need to visit anyone's website, nor can they track,
43
- you just send each other emails.
44
- </div>
45
- <div
46
- styler-layout="column"
47
- styler-max-width="rel-size-x-l">
48
- Like, Comment, Follow ....
49
- </div>
50
- </div>
51
- <div styler-layout="column">
52
- <p>Simple Web Site</p>
15
+ <div
16
+ styler-layout="floating-nav-bar"
17
+ styler-background-color="header"
18
+ styler-color="header"
19
+ styler-backdrop-filter="blur"
20
+ styler-box-shadow="default"
21
+ styler-colors="primary">
22
+ <h1>Social Mail</h1>
23
+ <div styler-element="navbar">
24
+ <input type="checkbox" styler-element="drawer">
25
+ <nav>
26
+ <a>Home</a>
27
+ <a>Features</a>
28
+ </nav>
53
29
  </div>
30
+ </div>
31
+ <section styler-layout="card" styler-colors="primary">
32
+ <h4 styler-element="accent">Demo 1</h4>
33
+ <section styler-element="surface">This is a demo 2.</section>
34
+ </section>
35
+ <section styler-layout="columns-3">
36
+ <section>
37
+ <section styler-layout="card" styler-colors="primary">
38
+ <h4 styler-element="accent">Address</h4>
39
+ <section styler-element="surface">404 Not Found,<div>HTTP/1.1 Protocol</div>
40
+ </section>
41
+ </section>
42
+ </section>
43
+ <section>
44
+ <section styler-layout="card" styler-colors="secondary">
45
+ <h4 styler-element="accent">Another Address</h4>
46
+ <section styler-element="surface">No where to be found<div>This is another demo.</div>
47
+ </section>
48
+ </section>
49
+ </section>
50
+ <section>
51
+ <section styler-layout="card" styler-colors="tertiary">
52
+ <h4 styler-element="accent">Color does not match</h4>
53
+ <section styler-element="surface">Something is wrong&nbsp;<div>With this as well</div>
54
+ </section>
55
+ </section>
56
+ </section>
54
57
  </section>
55
58
  </body>
56
59
  </html>
@@ -0,0 +1,67 @@
1
+ * {
2
+ --size-tiny: 2px;
3
+ --size-small: 5px;
4
+ --size-smaller: 7px;
5
+ --size-default: 10px;
6
+ --size-larger: 15px;
7
+ --size-large: 20px;
8
+ --rel-size-x-s: 20rem;
9
+ --rel-size-small: 24rem;
10
+ --rel-size-medium: 28rem;
11
+ --rel-size-large: 32rem;
12
+ --rel-size-x-l: 36rem;
13
+ --rel-size2-x-l: 42rem;
14
+ --rel-size3-x-l: 48rem;
15
+ --rel-size4-x-l: 56rem;
16
+ --rel-size5-x-l: 64rem;
17
+ --rel-size6-x-l: 72rem;
18
+ --rel-size7-x-l: 80rem;
19
+ --rel-size-full: 100%;
20
+ --rel-size-prose: 65ch;
21
+ --default-color: canvas;
22
+ --default-text-color: canvastext;
23
+ --border-color: lightgray;
24
+ --header-color: #0571ff30;
25
+ --header-text-color: ;
26
+ --accent-color: blue;
27
+ --accent-text-color: white;
28
+ --note-color: #ffffe0;
29
+ --note-text-color: ;
30
+ --warning-color: #FFC107;
31
+ --warning-text-color: darkgray;
32
+ --selection-color: highlight;
33
+ --selection-text-color: highlightText;
34
+ --hover-color: #A0A0A010;
35
+ --hover-text-color: CanvasText;
36
+ --stop-color: red;
37
+ --stop-text-color: white;
38
+ --go-color: green;
39
+ --go-text-color: white;
40
+ --accept-color: blue;
41
+ --accept-text-color: white;
42
+ --reject-color: red;
43
+ --reject-text-color: white;
44
+ --font-size-small: 0.8125em;
45
+ --command-bg-color: #F0F0F0;
46
+ --menu-bg-color: #808080;
47
+ --menu-color: #F0F0F0;
48
+ --link-color: blue;
49
+ --primary-background: #b372dd50;
50
+ --primary-color: gray;
51
+ --primary-accent: #6145a9c9;
52
+ --primary-accent-text: white;
53
+ --primary-surface: #FFFFFFA0;
54
+ --primary-surface-text: gray;
55
+ --secondary-background: #00808050;
56
+ --secondary-color: gray;
57
+ --secondary-accent: #9ec93ca8;
58
+ --secondary-accent-text: white;
59
+ --secondary-surface: #FFFFFFA0;
60
+ --secondary-surface-text: gray;
61
+ --tertiary-background: #cfa55c87;
62
+ --tertiary-color: gray;
63
+ --tertiary-accent: #e17b42cf;
64
+ --tertiary-accent-text: white;
65
+ --tertiary-surface: #FFFFFFA0;
66
+ --tertiary-surface-text: gray;
67
+ }
@@ -18763,7 +18763,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
18763
18763
  }) {
18764
18764
  return __awaiter(this, void 0, void 0, function* () {
18765
18765
  const userID = SocialMailApp.user.userID;
18766
- let q = this.entityService.query(AppFile).where(x => x.isFolder === true && x.parentID === null && x.path !== null);
18766
+ let q = this.entityService.query(AppFile).where(x => x.isFolder === true && x.parentID === null && x.path !== null && x.contentType !== "snapshot");
18767
18767
  if (search) {
18768
18768
  q = q.where({
18769
18769
  search
@@ -18889,6 +18889,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
18889
18889
  folder,
18890
18890
  cancelToken,
18891
18891
  showDeleted = false,
18892
+ showSnapShot = false,
18892
18893
  showFolder = true
18893
18894
  }) {
18894
18895
  var _a, _b;
@@ -18920,6 +18921,9 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
18920
18921
  } else {
18921
18922
  q = q.orderByDescending(x => x.isFolder).thenBy(x => x.name);
18922
18923
  }
18924
+ if (!showSnapShot) {
18925
+ q = q.where(x => x.contentType !== "snapshot");
18926
+ }
18923
18927
  const files = yield q.toArray({
18924
18928
  cancelToken
18925
18929
  });
@@ -35422,10 +35426,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
35422
35426
 
35423
35427
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/pages/websites/manage/ManageWebSitePage");
35424
35428
 
35425
- System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/view-model/Action", "@web-atoms/core/dist/core/types"], function (_export, _context) {
35429
+ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/view-model/Action", "@web-atoms/core/dist/core/types", "@web-atoms/core/dist/services/FetchBuilder"], function (_export, _context) {
35426
35430
  "use strict";
35427
35431
 
35428
- var __awaiter, __decorate, __metadata, PopupWindowPage, XNode, Action, UMD, ChooseWebSiteTemplatePage;
35432
+ var __awaiter, __decorate, __metadata, PopupWindowPage, XNode, Action, UMD, FetchBuilder, ChooseWebSiteTemplatePage;
35429
35433
  _export("default", void 0);
35430
35434
  return {
35431
35435
  setters: [function (_tslib) {
@@ -35440,6 +35444,8 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
35440
35444
  Action = _webAtomsCoreDistViewModelAction.default;
35441
35445
  }, function (_webAtomsCoreDistCoreTypes) {
35442
35446
  UMD = _webAtomsCoreDistCoreTypes.UMD;
35447
+ }, function (_webAtomsCoreDistServicesFetchBuilder) {
35448
+ FetchBuilder = _webAtomsCoreDistServicesFetchBuilder.default;
35443
35449
  }],
35444
35450
  execute: function () {
35445
35451
  _export("default", ChooseWebSiteTemplatePage = class ChooseWebSiteTemplatePage extends PopupWindowPage {
@@ -35453,14 +35459,15 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
35453
35459
  }
35454
35460
  createTemplate() {
35455
35461
  return __awaiter(this, void 0, void 0, function* () {
35456
- const path = UMD.resolvePath("@social-mail/social-mail-client/content/templates/plain/index.html");
35457
- const rs = yield fetch(path);
35458
- const text = yield rs.text();
35459
- yield this.upload("index.html", text);
35462
+ const template = "plain";
35463
+ yield this.upload("index.html", template);
35464
+ yield this.upload("styles/vars.css", template);
35460
35465
  });
35461
35466
  }
35462
- upload(fileName, content) {
35467
+ upload(fileName, template) {
35463
35468
  return __awaiter(this, void 0, void 0, function* () {
35469
+ const path = UMD.resolvePath(`@social-mail/social-mail-client/content/templates/${template}/${fileName}`);
35470
+ const content = yield FetchBuilder.get(path).responseAsText();
35464
35471
  const url = `/api/upload?parentID=${this.parameters.appFileID}`;
35465
35472
  const body = new FormData();
35466
35473
  body.append(fileName, new Blob([content], {