@benev/web 0.1.0-3 → 0.1.0-5
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/package.json +10 -7
- package/s/bconfig.ts +9 -0
- package/s/css/parts/common.csstext.ts +37 -0
- package/s/css/parts/core.csstext.ts +1 -1
- package/s/css/parts/vars.csstext.ts +2 -2
- package/s/dom/account/account.ts +7 -0
- package/s/dom/account/style.css.ts +6 -0
- package/s/dom/account/view.ts +16 -0
- package/s/dom/footer/style.css.ts +6 -0
- package/s/dom/footer/view.ts +13 -0
- package/s/dom/header/view.ts +8 -14
- package/s/dom/loader/loader.ts +2 -2
- package/s/dom/loader/style.css.ts +25 -15
- package/s/dom/loader/view.ts +6 -3
- package/s/dom/menu/view.ts +1 -1
- package/s/dom/tools/shadow-duplex.ts +17 -0
- package/s/index-ssg.ts +4 -0
- package/s/index.html.ts +5 -2
- package/s/index.ts +2 -1
- package/s/ssg/top-nav.ts +18 -0
- package/s/types.ts +5 -0
- package/s/vitals/setup.ts +17 -9
- package/s/vitals/shell.ts +3 -3
- package/x/bconfig.d.ts +11 -0
- package/x/bconfig.js +8 -0
- package/x/bconfig.js.map +1 -0
- package/x/css/parts/common.csstext.js +37 -0
- package/x/css/parts/common.csstext.js.map +1 -1
- package/x/css/parts/core.csstext.js +1 -1
- package/x/css/parts/vars.csstext.js +2 -2
- package/x/css/parts/vars.csstext.js.map +1 -1
- package/x/dom/account/account.d.ts +5 -0
- package/x/dom/account/account.js +7 -0
- package/x/dom/account/account.js.map +1 -0
- package/x/dom/account/style.css.d.ts +2 -0
- package/x/dom/account/style.css.js +5 -0
- package/x/dom/account/style.css.js.map +1 -0
- package/x/dom/account/view.d.ts +2 -0
- package/x/dom/account/view.js +11 -0
- package/x/dom/account/view.js.map +1 -0
- package/x/dom/footer/style.css.d.ts +2 -0
- package/x/dom/footer/style.css.js +5 -0
- package/x/dom/footer/style.css.js.map +1 -0
- package/x/dom/footer/view.d.ts +1 -0
- package/x/dom/footer/view.js +10 -0
- package/x/dom/footer/view.js.map +1 -0
- package/x/dom/header/view.d.ts +1 -2
- package/x/dom/header/view.js +5 -12
- package/x/dom/header/view.js.map +1 -1
- package/x/dom/loader/loader.js +2 -2
- package/x/dom/loader/loader.js.map +1 -1
- package/x/dom/loader/style.css.js +25 -15
- package/x/dom/loader/style.css.js.map +1 -1
- package/x/dom/loader/view.js +5 -3
- package/x/dom/loader/view.js.map +1 -1
- package/x/dom/menu/view.d.ts +1 -1
- package/x/dom/menu/view.js +1 -1
- package/x/dom/tools/shadow-duplex.d.ts +2 -0
- package/x/dom/tools/shadow-duplex.js +10 -0
- package/x/dom/tools/shadow-duplex.js.map +1 -0
- package/x/index-ssg.d.ts +3 -0
- package/x/index-ssg.js +3 -0
- package/x/index-ssg.js.map +1 -1
- package/x/index.d.ts +2 -1
- package/x/index.html +46 -4
- package/x/index.html.js +5 -2
- package/x/index.html.js.map +1 -1
- package/x/index.js +2 -1
- package/x/index.js.map +1 -1
- package/x/main.bundle.min.js +395 -70
- package/x/main.bundle.min.js.LEGAL.txt +7 -0
- package/x/main.bundle.min.js.map +4 -4
- package/x/ssg/top-nav.d.ts +2 -0
- package/x/ssg/top-nav.js +12 -0
- package/x/ssg/top-nav.js.map +1 -0
- package/x/types.d.ts +2 -0
- package/x/types.js +2 -0
- package/x/types.js.map +1 -0
- package/x/vitals/setup.d.ts +7 -2
- package/x/vitals/setup.js +16 -9
- package/x/vitals/setup.js.map +1 -1
- package/x/vitals/shell.js +3 -3
- package/x/vitals/shell.js.map +1 -1
- package/s/consts.ts +0 -5
- package/x/consts.d.ts +0 -3
- package/x/consts.js +0 -4
- package/x/consts.js.map +0 -1
package/x/ssg/top-nav.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { html } from "@e280/scute";
|
|
2
|
+
import { bconfig } from "../bconfig.js";
|
|
3
|
+
export function topNav(currentZone) {
|
|
4
|
+
return html `
|
|
5
|
+
${navlink(currentZone, "games")}
|
|
6
|
+
${navlink(currentZone, "devlog")}
|
|
7
|
+
`;
|
|
8
|
+
}
|
|
9
|
+
const navlink = (currentZone, zone) => ((zone === currentZone)
|
|
10
|
+
? html `<a href="${bconfig.zones[zone].path}" data-active>${zone}</a>`
|
|
11
|
+
: html `<a href="${bconfig.zones[zone].path}">${zone}</a>`);
|
|
12
|
+
//# sourceMappingURL=top-nav.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"top-nav.js","sourceRoot":"","sources":["../../s/ssg/top-nav.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAA;AAEhC,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAA;AAErC,MAAM,UAAU,MAAM,CAAC,WAAiB;IACvC,OAAO,IAAI,CAAA;IACR,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC;IAC7B,OAAO,CAAC,WAAW,EAAE,QAAQ,CAAC;EAChC,CAAA;AACF,CAAC;AAED,MAAM,OAAO,GAAG,CAAC,WAAmB,EAAE,IAAU,EAAE,EAAE,CAAC,CACpD,CAAC,IAAI,KAAK,WAAW,CAAC;IACrB,CAAC,CAAC,IAAI,CAAA,YAAY,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,iBAAiB,IAAI,MAAM;IACrE,CAAC,CAAC,IAAI,CAAA,YAAY,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,IAAI,MAAM,CAC1D,CAAA"}
|
package/x/types.d.ts
ADDED
package/x/types.js
ADDED
package/x/types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../s/types.ts"],"names":[],"mappings":""}
|
package/x/vitals/setup.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { Shell } from "./shell.js";
|
|
2
|
+
import { Account } from "../dom/account/account.js";
|
|
2
3
|
export declare function setupBenev(): Promise<{
|
|
4
|
+
account: Account;
|
|
3
5
|
shell: Shell;
|
|
4
6
|
elements: {
|
|
5
|
-
BenevHeader: new () => HTMLElement;
|
|
6
|
-
BenevMenu: new () => HTMLElement;
|
|
7
7
|
BenevLoader: new () => HTMLElement;
|
|
8
|
+
BenevFooter: new () => HTMLElement;
|
|
9
|
+
BenevMenu: new () => HTMLElement;
|
|
10
|
+
BenevHeader: new () => HTMLElement;
|
|
11
|
+
BenevAccount: new () => HTMLElement;
|
|
12
|
+
BenevAuth: new () => HTMLElement;
|
|
8
13
|
};
|
|
9
14
|
}>;
|
package/x/vitals/setup.js
CHANGED
|
@@ -1,17 +1,24 @@
|
|
|
1
|
+
import { Auth, makeAuthWidget } from "@e280/authlocal";
|
|
1
2
|
import { Shell } from "./shell.js";
|
|
3
|
+
import { Account } from "../dom/account/account.js";
|
|
2
4
|
import { BenevLoader } from "../dom/loader/view.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
+
import { makeBenevMenu } from "../dom/menu/view.js";
|
|
6
|
+
import { makeBenevFooter } from "../dom/footer/view.js";
|
|
7
|
+
import { makeBenevHeader } from "../dom/header/view.js";
|
|
8
|
+
import { makeBenevAccount } from "../dom/account/view.js";
|
|
5
9
|
export async function setupBenev() {
|
|
6
10
|
const shell = new Shell();
|
|
11
|
+
const auth = new Auth();
|
|
12
|
+
const account = new Account(auth);
|
|
7
13
|
const elements = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
elements,
|
|
14
|
+
BenevLoader,
|
|
15
|
+
BenevFooter: makeBenevFooter(),
|
|
16
|
+
BenevMenu: makeBenevMenu(shell),
|
|
17
|
+
BenevHeader: makeBenevHeader(shell),
|
|
18
|
+
BenevAccount: makeBenevAccount(account),
|
|
19
|
+
BenevAuth: makeAuthWidget(account.auth),
|
|
15
20
|
};
|
|
21
|
+
await auth.remember();
|
|
22
|
+
return { account, shell, elements };
|
|
16
23
|
}
|
|
17
24
|
//# sourceMappingURL=setup.js.map
|
package/x/vitals/setup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../s/vitals/setup.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,KAAK,EAAC,MAAM,YAAY,CAAA;AAChC,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAA;AACjD,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../s/vitals/setup.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAE,cAAc,EAAC,MAAM,iBAAiB,CAAA;AACpD,OAAO,EAAC,KAAK,EAAC,MAAM,YAAY,CAAA;AAChC,OAAO,EAAC,OAAO,EAAC,MAAM,2BAA2B,CAAA;AACjD,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAA;AACjD,OAAO,EAAC,eAAe,EAAC,MAAM,uBAAuB,CAAA;AACrD,OAAO,EAAC,eAAe,EAAC,MAAM,uBAAuB,CAAA;AACrD,OAAO,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAA;AAEvD,MAAM,CAAC,KAAK,UAAU,UAAU;IAC/B,MAAM,KAAK,GAAG,IAAI,KAAK,EAAE,CAAA;IACzB,MAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAA;IACvB,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IAEjC,MAAM,QAAQ,GAAG;QAChB,WAAW;QACX,WAAW,EAAE,eAAe,EAAE;QAC9B,SAAS,EAAE,aAAa,CAAC,KAAK,CAAC;QAC/B,WAAW,EAAE,eAAe,CAAC,KAAK,CAAC;QACnC,YAAY,EAAE,gBAAgB,CAAC,OAAO,CAAC;QACvC,SAAS,EAAE,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC;KACvC,CAAA;IAED,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAA;IAErB,OAAO,EAAC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAC,CAAA;AAClC,CAAC"}
|
package/x/vitals/shell.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { tracker } from "@e280/strata";
|
|
2
1
|
import { got, nap } from "@e280/stz";
|
|
3
|
-
import {
|
|
2
|
+
import { tracker } from "@e280/strata";
|
|
3
|
+
import { bconfig } from "../bconfig.js";
|
|
4
4
|
export class Shell {
|
|
5
5
|
#dialog;
|
|
6
6
|
#closeToken = 0;
|
|
@@ -39,7 +39,7 @@ export class Shell {
|
|
|
39
39
|
return;
|
|
40
40
|
const token = ++this.#closeToken;
|
|
41
41
|
dialog.setAttribute("data-closing", "");
|
|
42
|
-
nap(
|
|
42
|
+
nap(bconfig.anim).then(() => {
|
|
43
43
|
if (token !== this.#closeToken)
|
|
44
44
|
return;
|
|
45
45
|
if (dialog.hasAttribute("data-closing"))
|
package/x/vitals/shell.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shell.js","sourceRoot":"","sources":["../../s/vitals/shell.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"shell.js","sourceRoot":"","sources":["../../s/vitals/shell.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAE,GAAG,EAAC,MAAM,WAAW,CAAA;AAClC,OAAO,EAAC,OAAO,EAAC,MAAM,cAAc,CAAA;AACpC,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAA;AAErC,MAAM,OAAO,KAAK;IACjB,OAAO,CAAoB;IAC3B,WAAW,GAAG,CAAC,CAAA;IAEf,IAAI,MAAM;QACT,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAClB,OAAO,IAAI,CAAC,OAAO,CAAA;I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CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;YAC3B,IAAI,KAAK,KAAK,IAAI,CAAC,WAAW;gBAC7B,OAAM;YAEP,IAAI,MAAM,CAAC,YAAY,CAAC,cAAc,CAAC;gBACtC,MAAM,CAAC,KAAK,EAAE,CAAA;YAEf,MAAM,CAAC,eAAe,CAAC,cAAc,CAAC,CAAA;YACtC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;QACpB,CAAC,CAAC,CAAA;IACH,CAAC;CACD"}
|
package/s/consts.ts
DELETED
package/x/consts.d.ts
DELETED
package/x/consts.js
DELETED
package/x/consts.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../s/consts.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,MAAM,GAAG;IACrB,IAAI,EAAE,GAAG;CACT,CAAA"}
|