create-switch-framework-app 0.1.0
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/README.md +25 -0
- package/bin/create-switch-framework-app.js +502 -0
- package/package.json +31 -0
- package/templates/electron/base/app/(tabs)/+not-found.js +158 -0
- package/templates/electron/base/app/(tabs)/_layout.js +125 -0
- package/templates/electron/base/app/(tabs)/explore.js +44 -0
- package/templates/electron/base/app/(tabs)/index.js +218 -0
- package/templates/electron/base/app/(tabs)/register.js +12 -0
- package/templates/electron/base/app/+not-found.js +158 -0
- package/templates/electron/base/app/_layout.js +50 -0
- package/templates/electron/base/app/index.js +265 -0
- package/templates/electron/base/app/register.js +12 -0
- package/templates/electron/base/assets/files/Profile.jpg +0 -0
- package/templates/electron/base/assets/files/fingerprint-icon.svg +4 -0
- package/templates/electron/base/assets/fonts/DMSans-Black.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans-BlackItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans-Bold.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans-BoldItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans-ExtraBold.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans-ExtraBoldItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans-ExtraLight.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans-ExtraLightItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans-Italic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans-Light.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans-LightItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans-Medium.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans-MediumItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans-Regular.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans-SemiBold.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans-SemiBoldItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans-Thin.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans-ThinItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_18pt-Black.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_18pt-BlackItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_18pt-Bold.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_18pt-BoldItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_18pt-ExtraBold.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_18pt-ExtraBoldItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_18pt-ExtraLight.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_18pt-ExtraLightItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_18pt-Italic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_18pt-Light.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_18pt-LightItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_18pt-Medium.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_18pt-MediumItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_18pt-Regular.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_18pt-SemiBold.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_18pt-SemiBoldItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_18pt-Thin.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_18pt-ThinItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_24pt-Black.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_24pt-BlackItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_24pt-Bold.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_24pt-BoldItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_24pt-ExtraBold.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_24pt-ExtraBoldItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_24pt-ExtraLight.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_24pt-ExtraLightItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_24pt-Italic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_24pt-Light.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_24pt-LightItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_24pt-Medium.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_24pt-MediumItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_24pt-Regular.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_24pt-SemiBold.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_24pt-SemiBoldItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_24pt-Thin.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_24pt-ThinItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_36pt-Black.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_36pt-BlackItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_36pt-Bold.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_36pt-BoldItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_36pt-ExtraBold.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_36pt-ExtraBoldItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_36pt-ExtraLight.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_36pt-ExtraLightItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_36pt-Italic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_36pt-Light.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_36pt-LightItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_36pt-Medium.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_36pt-MediumItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_36pt-Regular.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_36pt-SemiBold.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_36pt-SemiBoldItalic.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_36pt-Thin.ttf +0 -0
- package/templates/electron/base/assets/fonts/DMSans_36pt-ThinItalic.ttf +0 -0
- package/templates/electron/base/assets/icons/fonts/switch-icons.eot +0 -0
- package/templates/electron/base/assets/icons/fonts/switch-icons.svg +2881 -0
- package/templates/electron/base/assets/icons/fonts/switch-icons.ttf +0 -0
- package/templates/electron/base/assets/icons/fonts/switch-icons.woff +0 -0
- package/templates/electron/base/assets/icons/style.css +8583 -0
- package/templates/electron/base/assets/logo.svg +5 -0
- package/templates/electron/base/assets/script/states.js +38 -0
- package/templates/electron/base/assets/script/themechanger.js +14 -0
- package/templates/electron/base/assets/styles/styles.css +131 -0
- package/templates/electron/base/components/SwSplashScreen.js +1 -0
- package/templates/electron/base/components/SwStarterSplashScreen.js +140 -0
- package/templates/electron/base/components/SwTabBar.js +153 -0
- package/templates/electron/base/electron/electron-builder.json +19 -0
- package/templates/electron/base/electron/main.js +30 -0
- package/templates/electron/base/electron/preload.js +5 -0
- package/templates/electron/base/hooks/checkIntro.js +14 -0
- package/templates/electron/base/index.html +14 -0
- package/templates/electron/base/index.js +5 -0
- package/templates/electron/base/main.js +1 -0
- package/templates/electron/base/preload.js +1 -0
- package/templates/electron/base/routes/api.js +1 -0
- package/templates/electron/base/server.js +42 -0
- package/templates/web/base/app/(tabs)/+not-found.js +158 -0
- package/templates/web/base/app/(tabs)/_layout.js +125 -0
- package/templates/web/base/app/(tabs)/explore.js +44 -0
- package/templates/web/base/app/(tabs)/index.js +218 -0
- package/templates/web/base/app/(tabs)/register.js +12 -0
- package/templates/web/base/app/+not-found.js +158 -0
- package/templates/web/base/app/_layout.js +50 -0
- package/templates/web/base/app/index.js +265 -0
- package/templates/web/base/app/register.js +12 -0
- package/templates/web/base/assets/files/Profile.jpg +0 -0
- package/templates/web/base/assets/files/fingerprint-icon.svg +4 -0
- package/templates/web/base/assets/fonts/DMSans-Black.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans-BlackItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans-Bold.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans-BoldItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans-ExtraBold.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans-ExtraBoldItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans-ExtraLight.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans-ExtraLightItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans-Italic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans-Light.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans-LightItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans-Medium.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans-MediumItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans-Regular.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans-SemiBold.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans-SemiBoldItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans-Thin.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans-ThinItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_18pt-Black.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_18pt-BlackItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_18pt-Bold.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_18pt-BoldItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_18pt-ExtraBold.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_18pt-ExtraBoldItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_18pt-ExtraLight.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_18pt-ExtraLightItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_18pt-Italic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_18pt-Light.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_18pt-LightItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_18pt-Medium.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_18pt-MediumItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_18pt-Regular.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_18pt-SemiBold.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_18pt-SemiBoldItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_18pt-Thin.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_18pt-ThinItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_24pt-Black.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_24pt-BlackItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_24pt-Bold.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_24pt-BoldItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_24pt-ExtraBold.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_24pt-ExtraBoldItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_24pt-ExtraLight.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_24pt-ExtraLightItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_24pt-Italic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_24pt-Light.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_24pt-LightItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_24pt-Medium.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_24pt-MediumItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_24pt-Regular.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_24pt-SemiBold.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_24pt-SemiBoldItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_24pt-Thin.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_24pt-ThinItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_36pt-Black.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_36pt-BlackItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_36pt-Bold.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_36pt-BoldItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_36pt-ExtraBold.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_36pt-ExtraBoldItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_36pt-ExtraLight.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_36pt-ExtraLightItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_36pt-Italic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_36pt-Light.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_36pt-LightItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_36pt-Medium.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_36pt-MediumItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_36pt-Regular.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_36pt-SemiBold.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_36pt-SemiBoldItalic.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_36pt-Thin.ttf +0 -0
- package/templates/web/base/assets/fonts/DMSans_36pt-ThinItalic.ttf +0 -0
- package/templates/web/base/assets/icons/fonts/switch-icons.eot +0 -0
- package/templates/web/base/assets/icons/fonts/switch-icons.svg +2881 -0
- package/templates/web/base/assets/icons/fonts/switch-icons.ttf +0 -0
- package/templates/web/base/assets/icons/fonts/switch-icons.woff +0 -0
- package/templates/web/base/assets/icons/style.css +8583 -0
- package/templates/web/base/assets/logo.svg +5 -0
- package/templates/web/base/assets/script/states.js +38 -0
- package/templates/web/base/assets/script/themechanger.js +14 -0
- package/templates/web/base/assets/styles/styles.css +131 -0
- package/templates/web/base/components/SwSplashScreen.js +1 -0
- package/templates/web/base/components/SwStarterSplashScreen.js +140 -0
- package/templates/web/base/components/SwTabBar.js +153 -0
- package/templates/web/base/hooks/checkIntro.js +14 -0
- package/templates/web/base/index.html +14 -0
- package/templates/web/base/index.js +5 -0
- package/templates/web/base/routes/api.js +1 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
export const screen = {
|
|
2
|
+
name: '+not-found',
|
|
3
|
+
path: '/+not-found',
|
|
4
|
+
title: 'Not Found',
|
|
5
|
+
tag: 'sw-user-not-found-screen',
|
|
6
|
+
layout: 'stack'
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export class SwUserNotFoundScreen extends HTMLElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super();
|
|
12
|
+
this.attachShadow({ mode: 'open' });
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
static get observedAttributes() {
|
|
16
|
+
return ['path'];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
connectedCallback() {
|
|
20
|
+
this.render();
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attributeChangedCallback() {
|
|
24
|
+
this.render();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
render() {
|
|
28
|
+
const path = this.getAttribute('path') || window.location.pathname || '';
|
|
29
|
+
|
|
30
|
+
this.shadowRoot.innerHTML = `
|
|
31
|
+
${this.styleSheet()}
|
|
32
|
+
<div class="wrap">
|
|
33
|
+
<div class="card">
|
|
34
|
+
<div class="code">404</div>
|
|
35
|
+
<div class="h">This screen does not exist</div>
|
|
36
|
+
<div class="p">No screen is registered for:</div>
|
|
37
|
+
<div class="path">${path}</div>
|
|
38
|
+
|
|
39
|
+
<div class="row">
|
|
40
|
+
<button class="btn" id="home">Go to Home</button>
|
|
41
|
+
<button class="btn secondary" id="back">Go Back</button>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
`;
|
|
46
|
+
|
|
47
|
+
this.shadowRoot.getElementById('home')?.addEventListener('click', () => {
|
|
48
|
+
const navigate = globalStates?.getState ? globalStates.getState('navigate') : null;
|
|
49
|
+
if (typeof navigate === 'function') navigate('home');
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
this.shadowRoot.getElementById('back')?.addEventListener('click', () => {
|
|
53
|
+
const goBack = globalStates?.getState ? globalStates.getState('go_back') : null;
|
|
54
|
+
if (typeof goBack === 'function') goBack();
|
|
55
|
+
else window.history.back();
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
styleSheet() {
|
|
60
|
+
return `
|
|
61
|
+
<style>
|
|
62
|
+
:host {
|
|
63
|
+
display: block;
|
|
64
|
+
width: 100%;
|
|
65
|
+
min-height: 100dvh;
|
|
66
|
+
font-family: var(--font);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
* {
|
|
70
|
+
box-sizing: border-box;
|
|
71
|
+
font-family: inherit;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.wrap {
|
|
75
|
+
min-height: 100vh;
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
padding: 18px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.card {
|
|
83
|
+
width: min(680px, 100%);
|
|
84
|
+
background: transparent;
|
|
85
|
+
border: none;
|
|
86
|
+
border-radius: 18px;
|
|
87
|
+
padding: 18px;
|
|
88
|
+
box-shadow: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.code {
|
|
92
|
+
font-weight: 1000;
|
|
93
|
+
font-size: 44px;
|
|
94
|
+
line-height: 1;
|
|
95
|
+
color: var(--main_text);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.h {
|
|
99
|
+
margin-top: 10px;
|
|
100
|
+
font-weight: 1000;
|
|
101
|
+
font-size: 20px;
|
|
102
|
+
color: var(--main_text);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.p {
|
|
106
|
+
margin-top: 6px;
|
|
107
|
+
color: var(--sub_text);
|
|
108
|
+
font-weight: 800;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.path {
|
|
112
|
+
margin-top: 10px;
|
|
113
|
+
padding: 10px 12px;
|
|
114
|
+
border-radius: 14px;
|
|
115
|
+
background: var(--surface_2);
|
|
116
|
+
border: 1px solid var(--border_light);
|
|
117
|
+
font-weight: 900;
|
|
118
|
+
color: var(--main_text);
|
|
119
|
+
word-break: break-word;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.row {
|
|
123
|
+
margin-top: 14px;
|
|
124
|
+
display: flex;
|
|
125
|
+
gap: 10px;
|
|
126
|
+
flex-wrap: wrap;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.btn {
|
|
130
|
+
border: none;
|
|
131
|
+
background: linear-gradient(135deg, #0091ff 0%, #0073e6 100%);
|
|
132
|
+
color: #fff;
|
|
133
|
+
font-weight: 1000;
|
|
134
|
+
border-radius: 999px;
|
|
135
|
+
padding: 10px 14px;
|
|
136
|
+
cursor: pointer;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.btn:hover {
|
|
140
|
+
opacity: 0.9;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.btn.secondary {
|
|
144
|
+
background: var(--surface_2);
|
|
145
|
+
color: var(--main_text);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.btn.secondary:hover {
|
|
149
|
+
background: var(--surface_3);
|
|
150
|
+
}
|
|
151
|
+
</style>
|
|
152
|
+
`;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
if (!customElements.get('sw-user-not-found-screen')) {
|
|
157
|
+
customElements.define('sw-user-not-found-screen', SwUserNotFoundScreen);
|
|
158
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { Tabs } from '/switch-framework/index.js';
|
|
2
|
+
|
|
3
|
+
export const tabsLayout = Tabs({
|
|
4
|
+
name: 'sw-tabs-layout',
|
|
5
|
+
initialTab: 'home',
|
|
6
|
+
tabs: [
|
|
7
|
+
{
|
|
8
|
+
name: 'home',
|
|
9
|
+
title: 'Home',
|
|
10
|
+
icon: 'home',
|
|
11
|
+
path: '/home',
|
|
12
|
+
screen: 'sw-home-screen',
|
|
13
|
+
match: ['home']
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'explore',
|
|
17
|
+
title: 'Explore',
|
|
18
|
+
icon: 'compass',
|
|
19
|
+
path: '/explore',
|
|
20
|
+
screen: 'sw-explore-screen',
|
|
21
|
+
match: ['explore']
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
options: {
|
|
25
|
+
position: 'bottom'
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export class SwTabsLayout extends HTMLElement {
|
|
30
|
+
constructor() {
|
|
31
|
+
super();
|
|
32
|
+
this.attachShadow({ mode: 'open' });
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
connectedCallback() {
|
|
36
|
+
this.render();
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
getContentContainer() {
|
|
40
|
+
return this.shadowRoot.querySelector('.tabcontainer');
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
render() {
|
|
44
|
+
this.shadowRoot.innerHTML = `
|
|
45
|
+
${this.styleSheet()}
|
|
46
|
+
<div class="layout">
|
|
47
|
+
<div class="tabcontainer"></div>
|
|
48
|
+
<div class="tabbar">
|
|
49
|
+
<sw-tab-bar></sw-tab-bar>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
`;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
styleSheet() {
|
|
56
|
+
return `
|
|
57
|
+
<style>
|
|
58
|
+
:host {
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
width: 100%;
|
|
62
|
+
height: inherit;
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
* {
|
|
68
|
+
box-sizing: border-box;
|
|
69
|
+
font-family: inherit
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
.layout {
|
|
74
|
+
min-height: 0;
|
|
75
|
+
height: 100%;
|
|
76
|
+
display: grid;
|
|
77
|
+
grid-template-rows: minmax(0, 1fr) auto;
|
|
78
|
+
overflow: hidden;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.tabbar {
|
|
82
|
+
height: auto;
|
|
83
|
+
position: sticky;
|
|
84
|
+
bottom: 0;
|
|
85
|
+
z-index: 50;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
.tabcontainer {
|
|
90
|
+
z-index: 1;
|
|
91
|
+
min-height: 0;
|
|
92
|
+
overflow: auto;
|
|
93
|
+
overflow-x: hidden;
|
|
94
|
+
padding-bottom: calc(12px + 56px + env(safe-area-inset-bottom, 0px));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
</style>
|
|
98
|
+
`;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if (!customElements.get('sw-tabs-layout')) {
|
|
103
|
+
customElements.define('sw-tabs-layout', SwTabsLayout);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export const screens = [
|
|
107
|
+
Tabs.screen({
|
|
108
|
+
name: 'home',
|
|
109
|
+
path: '/home',
|
|
110
|
+
title: 'Home',
|
|
111
|
+
tag: 'sw-home-screen',
|
|
112
|
+
layout: 'tabs'
|
|
113
|
+
}),
|
|
114
|
+
Tabs.screen({
|
|
115
|
+
name: 'explore',
|
|
116
|
+
path: '/explore',
|
|
117
|
+
title: 'Explore',
|
|
118
|
+
tag: 'sw-explore-screen',
|
|
119
|
+
layout: 'tabs'
|
|
120
|
+
})
|
|
121
|
+
];
|
|
122
|
+
|
|
123
|
+
tabsLayout.screens = screens;
|
|
124
|
+
|
|
125
|
+
export default tabsLayout;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export const screen = {
|
|
2
|
+
name: 'explore',
|
|
3
|
+
path: '/explore',
|
|
4
|
+
title: 'Explore',
|
|
5
|
+
tag: 'sw-explore-screen',
|
|
6
|
+
layout: 'tabs'
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export class SwExploreScreen extends HTMLElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super();
|
|
12
|
+
this.attachShadow({ mode: 'open' });
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
connectedCallback() {
|
|
16
|
+
this.render();
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
render() {
|
|
20
|
+
this.shadowRoot.innerHTML = `
|
|
21
|
+
${this.styleSheet()}
|
|
22
|
+
<div class="wrap">
|
|
23
|
+
<div class="h">Explore</div>
|
|
24
|
+
<div class="p">This is a placeholder tab. Replace it with whatever you want.</div>
|
|
25
|
+
</div>
|
|
26
|
+
`;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
styleSheet() {
|
|
30
|
+
return `
|
|
31
|
+
<style>
|
|
32
|
+
:host{display:block;padding:18px;font-family:var(--font)}
|
|
33
|
+
*{box-sizing:border-box;font-family:inherit}
|
|
34
|
+
.wrap{max-width:900px;margin:0 auto;display:flex;flex-direction:column;gap:10px}
|
|
35
|
+
.h{font-weight:1000;font-size:22px;color:var(--main_text)}
|
|
36
|
+
.p{color:var(--sub_text);font-weight:800;line-height:1.5}
|
|
37
|
+
</style>
|
|
38
|
+
`;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (!customElements.get('sw-explore-screen')) {
|
|
43
|
+
customElements.define('sw-explore-screen', SwExploreScreen);
|
|
44
|
+
}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
export const screen = {
|
|
2
|
+
name: 'home',
|
|
3
|
+
path: '/home',
|
|
4
|
+
title: 'Home',
|
|
5
|
+
tag: 'sw-home-screen',
|
|
6
|
+
layout: 'tabs'
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export class SwHomeScreen extends HTMLElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super();
|
|
12
|
+
this.attachShadow({ mode: 'open' });
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
connectedCallback() {
|
|
16
|
+
this.render();
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
render() {
|
|
20
|
+
this.shadowRoot.innerHTML = `
|
|
21
|
+
${this.styleSheet()}
|
|
22
|
+
<div class="wrap">
|
|
23
|
+
<div class="spacer-top"></div>
|
|
24
|
+
|
|
25
|
+
<div class="hero">
|
|
26
|
+
<div class="logo-container">
|
|
27
|
+
<img class="logo" src="/assets/logo.svg" alt="Expo" />
|
|
28
|
+
</div>
|
|
29
|
+
<div class="title">Tabs View</div>
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<div class="spacer-middle"></div>
|
|
33
|
+
|
|
34
|
+
<div class="section">
|
|
35
|
+
<div class="label">GET STARTED</div>
|
|
36
|
+
|
|
37
|
+
<div class="card">
|
|
38
|
+
<div class="row">
|
|
39
|
+
<div class="l">Try editing</div>
|
|
40
|
+
<div class="r">src/app/index.tsx</div>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="row">
|
|
43
|
+
<div class="l">Dev tools</div>
|
|
44
|
+
<div class="r">cmd+d</div>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="row">
|
|
47
|
+
<div class="l">Fresh start</div>
|
|
48
|
+
<div class="r">npm reset project</div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<div class="spacer-bottom"></div>
|
|
54
|
+
</div>
|
|
55
|
+
`;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
styleSheet() {
|
|
59
|
+
return `
|
|
60
|
+
<style>
|
|
61
|
+
:host {
|
|
62
|
+
display: block;
|
|
63
|
+
padding: 0;
|
|
64
|
+
font-family: var(--font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
|
|
65
|
+
height: 100%;
|
|
66
|
+
background: var(--bg, #fff);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
* {
|
|
70
|
+
box-sizing: border-box;
|
|
71
|
+
font-family: inherit;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.wrap {
|
|
75
|
+
width: 100%;
|
|
76
|
+
height: 100%;
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
align-items: center;
|
|
80
|
+
padding: 0 16px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.spacer-top {
|
|
84
|
+
flex: 1;
|
|
85
|
+
min-height: 40px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.hero {
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
align-items: center;
|
|
92
|
+
gap: 20px;
|
|
93
|
+
text-align: center;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.logo-container {
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
justify-content: center;
|
|
100
|
+
width: 120px;
|
|
101
|
+
height: 120px;
|
|
102
|
+
background: linear-gradient(135deg, #0091ff 0%, #0073e6 100%);
|
|
103
|
+
border-radius: 32px;
|
|
104
|
+
box-shadow: 0 20px 40px rgba(0, 145, 255, 0.3);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.logo {
|
|
108
|
+
width: 70px;
|
|
109
|
+
height: 70px;
|
|
110
|
+
filter: brightness(0) invert(1);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.title {
|
|
114
|
+
font-weight: 700;
|
|
115
|
+
color: var(--main_text, #000);
|
|
116
|
+
font-size: 36px;
|
|
117
|
+
line-height: 1.1;
|
|
118
|
+
letter-spacing: -0.5px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.spacer-middle {
|
|
122
|
+
flex: 0.8;
|
|
123
|
+
min-height: 20px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.section {
|
|
127
|
+
width: 100%;
|
|
128
|
+
display: flex;
|
|
129
|
+
flex-direction: column;
|
|
130
|
+
gap: 12px;
|
|
131
|
+
max-width: 400px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.label {
|
|
135
|
+
font-weight: 600;
|
|
136
|
+
font-size: 12px;
|
|
137
|
+
letter-spacing: 1.2px;
|
|
138
|
+
color: var(--sub_text, #666);
|
|
139
|
+
text-transform: uppercase;
|
|
140
|
+
padding: 0 12px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.card {
|
|
144
|
+
width: 100%;
|
|
145
|
+
background: #f5f5f5;
|
|
146
|
+
border-radius: 20px;
|
|
147
|
+
padding: 8px;
|
|
148
|
+
display: flex;
|
|
149
|
+
flex-direction: column;
|
|
150
|
+
gap: 0;
|
|
151
|
+
overflow: hidden;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
:root[data-theme="dark"] .card {
|
|
155
|
+
background: rgba(255, 255, 255, 0.08);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.row {
|
|
159
|
+
width: 100%;
|
|
160
|
+
display: flex;
|
|
161
|
+
align-items: center;
|
|
162
|
+
justify-content: space-between;
|
|
163
|
+
gap: 12px;
|
|
164
|
+
padding: 12px 14px;
|
|
165
|
+
border-radius: 16px;
|
|
166
|
+
transition: background 0.2s ease;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.row:active {
|
|
170
|
+
background: rgba(0, 0, 0, 0.08);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
:root[data-theme="dark"] .row {
|
|
174
|
+
background: rgba(255, 255, 255, 0.06);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
:root[data-theme="dark"] .row:active {
|
|
178
|
+
background: rgba(255, 255, 255, 0.12);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.l {
|
|
182
|
+
font-weight: 600;
|
|
183
|
+
color: var(--main_text, #000);
|
|
184
|
+
font-size: 14px;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.r {
|
|
188
|
+
font-weight: 500;
|
|
189
|
+
color: var(--sub_text, #666);
|
|
190
|
+
background: rgba(0, 0, 0, 0.05);
|
|
191
|
+
padding: 6px 12px;
|
|
192
|
+
border-radius: 999px;
|
|
193
|
+
font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
|
|
194
|
+
font-size: 11px;
|
|
195
|
+
white-space: nowrap;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
:root[data-theme="dark"] .r {
|
|
199
|
+
background: rgba(255, 255, 255, 0.1);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.spacer-bottom {
|
|
203
|
+
flex: 1;
|
|
204
|
+
min-height: 20px;
|
|
205
|
+
}
|
|
206
|
+
@media (max-width: 600px) {
|
|
207
|
+
.title {
|
|
208
|
+
font-size: 32px;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
</style>
|
|
212
|
+
`;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
if (!customElements.get('sw-home-screen')) {
|
|
217
|
+
customElements.define('sw-home-screen', SwHomeScreen);
|
|
218
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export async function appRegisters() {
|
|
2
|
+
await Promise.all([
|
|
3
|
+
import('../components/SwStarterSplashScreen.js'),
|
|
4
|
+
import('../components/SwTabBar.js'),
|
|
5
|
+
|
|
6
|
+
import('./index.js'),
|
|
7
|
+
import('./+not-found.js'),
|
|
8
|
+
import('./(tabs)/_layout.js'),
|
|
9
|
+
import('./(tabs)/index.js'),
|
|
10
|
+
import('./(tabs)/explore.js')
|
|
11
|
+
]);
|
|
12
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
export const screen = {
|
|
2
|
+
name: '+not-found',
|
|
3
|
+
path: '/+not-found',
|
|
4
|
+
title: 'Not Found',
|
|
5
|
+
tag: 'sw-user-not-found-screen',
|
|
6
|
+
layout: 'stack'
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export class SwUserNotFoundScreen extends HTMLElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super();
|
|
12
|
+
this.attachShadow({ mode: 'open' });
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
static get observedAttributes() {
|
|
16
|
+
return ['path'];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
connectedCallback() {
|
|
20
|
+
this.render();
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attributeChangedCallback() {
|
|
24
|
+
this.render();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
render() {
|
|
28
|
+
const path = this.getAttribute('path') || window.location.pathname || '';
|
|
29
|
+
|
|
30
|
+
this.shadowRoot.innerHTML = `
|
|
31
|
+
${this.styleSheet()}
|
|
32
|
+
<div class="wrap">
|
|
33
|
+
<div class="card">
|
|
34
|
+
<div class="code">404</div>
|
|
35
|
+
<div class="h">This screen does not exist</div>
|
|
36
|
+
<div class="p">No screen is registered for:</div>
|
|
37
|
+
<div class="path">${path}</div>
|
|
38
|
+
|
|
39
|
+
<div class="row">
|
|
40
|
+
<button class="btn" id="home">Go to Home</button>
|
|
41
|
+
<button class="btn secondary" id="back">Go Back</button>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
`;
|
|
46
|
+
|
|
47
|
+
this.shadowRoot.getElementById('home')?.addEventListener('click', () => {
|
|
48
|
+
const navigate = globalStates?.getState ? globalStates.getState('navigate') : null;
|
|
49
|
+
if (typeof navigate === 'function') navigate('home');
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
this.shadowRoot.getElementById('back')?.addEventListener('click', () => {
|
|
53
|
+
const goBack = globalStates?.getState ? globalStates.getState('go_back') : null;
|
|
54
|
+
if (typeof goBack === 'function') goBack();
|
|
55
|
+
else window.history.back();
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
styleSheet() {
|
|
60
|
+
return `
|
|
61
|
+
<style>
|
|
62
|
+
:host {
|
|
63
|
+
display: block;
|
|
64
|
+
width: 100%;
|
|
65
|
+
min-height: 100dvh;
|
|
66
|
+
font-family: var(--font);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
* {
|
|
70
|
+
box-sizing: border-box;
|
|
71
|
+
font-family: inherit;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.wrap {
|
|
75
|
+
min-height: 100vh;
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
padding: 18px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.card {
|
|
83
|
+
width: min(680px, 100%);
|
|
84
|
+
background: transparent;
|
|
85
|
+
border: none;
|
|
86
|
+
border-radius: 18px;
|
|
87
|
+
padding: 18px;
|
|
88
|
+
box-shadow: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.code {
|
|
92
|
+
font-weight: 1000;
|
|
93
|
+
font-size: 44px;
|
|
94
|
+
line-height: 1;
|
|
95
|
+
color: var(--main_text);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.h {
|
|
99
|
+
margin-top: 10px;
|
|
100
|
+
font-weight: 1000;
|
|
101
|
+
font-size: 20px;
|
|
102
|
+
color: var(--main_text);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.p {
|
|
106
|
+
margin-top: 6px;
|
|
107
|
+
color: var(--sub_text);
|
|
108
|
+
font-weight: 800;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.path {
|
|
112
|
+
margin-top: 10px;
|
|
113
|
+
padding: 10px 12px;
|
|
114
|
+
border-radius: 14px;
|
|
115
|
+
background: var(--surface_2);
|
|
116
|
+
border: 1px solid var(--border_light);
|
|
117
|
+
font-weight: 900;
|
|
118
|
+
color: var(--main_text);
|
|
119
|
+
word-break: break-word;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.row {
|
|
123
|
+
margin-top: 14px;
|
|
124
|
+
display: flex;
|
|
125
|
+
gap: 10px;
|
|
126
|
+
flex-wrap: wrap;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.btn {
|
|
130
|
+
border: none;
|
|
131
|
+
background: linear-gradient(135deg, #0091ff 0%, #0073e6 100%);
|
|
132
|
+
color: #fff;
|
|
133
|
+
font-weight: 1000;
|
|
134
|
+
border-radius: 999px;
|
|
135
|
+
padding: 10px 14px;
|
|
136
|
+
cursor: pointer;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.btn:hover {
|
|
140
|
+
opacity: 0.9;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.btn.secondary {
|
|
144
|
+
background: var(--surface_2);
|
|
145
|
+
color: var(--main_text);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.btn.secondary:hover {
|
|
149
|
+
background: var(--surface_3);
|
|
150
|
+
}
|
|
151
|
+
</style>
|
|
152
|
+
`;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
if (!customElements.get('sw-user-not-found-screen')) {
|
|
157
|
+
customElements.define('sw-user-not-found-screen', SwUserNotFoundScreen);
|
|
158
|
+
}
|