create-lupine 1.0.28 → 1.0.30

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.
Files changed (113) hide show
  1. package/index.js +410 -411
  2. package/package.json +17 -17
  3. package/templates/common/.env.development +7 -7
  4. package/templates/common/.env.mobile +9 -9
  5. package/templates/common/.env.production +7 -7
  6. package/templates/common/_env +58 -58
  7. package/templates/common/_gitignore +25 -25
  8. package/templates/common/apps/server/src/index.ts +78 -76
  9. package/templates/common/apps/server/src/server-env-keys.ts +0 -9
  10. package/templates/common/dev/cp-folder.js +45 -45
  11. package/templates/common/tsconfig.json +128 -128
  12. package/templates/lupine-template-cv-starter/api/package.json +5 -5
  13. package/templates/lupine-template-cv-starter/api/resources/config_default.json +6 -6
  14. package/templates/lupine-template-cv-starter/api/resources/install.sqlite.sql +3 -3
  15. package/templates/lupine-template-cv-starter/api/src/index.ts +15 -15
  16. package/templates/lupine-template-cv-starter/lupine.json +40 -38
  17. package/templates/lupine-template-cv-starter/web/markdown/en/01-experience/index.md +32 -32
  18. package/templates/lupine-template-cv-starter/web/markdown/en/02-projects/index.md +36 -36
  19. package/templates/lupine-template-cv-starter/web/markdown/en/03-skills/index.md +28 -28
  20. package/templates/lupine-template-cv-starter/web/markdown/en/04-education/index.md +16 -16
  21. package/templates/lupine-template-cv-starter/web/markdown/en/index.md +41 -41
  22. package/templates/lupine-template-cv-starter/web/markdown/index.md +7 -7
  23. package/templates/lupine-template-cv-starter/web/markdown/zh/01-experience/index.md +32 -32
  24. package/templates/lupine-template-cv-starter/web/markdown/zh/02-projects/index.md +36 -36
  25. package/templates/lupine-template-cv-starter/web/markdown/zh/03-skills/index.md +28 -28
  26. package/templates/lupine-template-cv-starter/web/markdown/zh/04-education/index.md +17 -17
  27. package/templates/lupine-template-cv-starter/web/markdown/zh/index.md +41 -41
  28. package/templates/lupine-template-cv-starter/web/package.json +5 -5
  29. package/templates/lupine-template-cv-starter/web/src/client-env-keys.ts +5 -5
  30. package/templates/lupine-template-cv-starter/web/src/index.html +16 -16
  31. package/templates/lupine-template-cv-starter/web/src/index.tsx +28 -28
  32. package/templates/lupine-template-cv-starter/web/src/lupine-template-cv-starter/404.html +38 -38
  33. package/templates/lupine-template-cv-starter/web/src/lupine-template-cv-starter/index.html +73 -73
  34. package/templates/lupine-template-cv-starter/web/src/lupine-template-cv-starter/index.tsx +30 -30
  35. package/templates/lupine-template-cv-starter/web/src/markdown-built/en/01-experience/index.html +20 -20
  36. package/templates/lupine-template-cv-starter/web/src/markdown-built/en/02-projects/index.html +28 -28
  37. package/templates/lupine-template-cv-starter/web/src/markdown-built/en/03-skills/index.html +18 -18
  38. package/templates/lupine-template-cv-starter/web/src/markdown-built/en/04-education/index.html +10 -10
  39. package/templates/lupine-template-cv-starter/web/src/markdown-built/en/index.html +20 -20
  40. package/templates/lupine-template-cv-starter/web/src/markdown-built/zh/01-experience/index.html +20 -20
  41. package/templates/lupine-template-cv-starter/web/src/markdown-built/zh/02-projects/index.html +28 -28
  42. package/templates/lupine-template-cv-starter/web/src/markdown-built/zh/03-skills/index.html +18 -18
  43. package/templates/lupine-template-cv-starter/web/src/markdown-built/zh/04-education/index.html +11 -11
  44. package/templates/lupine-template-cv-starter/web/src/markdown-built/zh/index.html +20 -20
  45. package/templates/lupine-template-cv-starter/web/src/styles/base-css.ts +15 -15
  46. package/templates/lupine-template-doc-starter/api/package.json +5 -5
  47. package/templates/lupine-template-doc-starter/api/resources/config_default.json +6 -6
  48. package/templates/lupine-template-doc-starter/api/resources/install.sqlite.sql +3 -3
  49. package/templates/lupine-template-doc-starter/api/src/index.ts +15 -15
  50. package/templates/lupine-template-doc-starter/api/src/resources/config_default.json +6 -6
  51. package/templates/lupine-template-doc-starter/api/src/resources/install.sqlite.sql +3 -3
  52. package/templates/lupine-template-doc-starter/lupine.json +40 -38
  53. package/templates/lupine-template-doc-starter/web/markdown/en/essentials/index.md +6 -6
  54. package/templates/lupine-template-doc-starter/web/markdown/en/essentials/list.md +18 -18
  55. package/templates/lupine-template-doc-starter/web/markdown/en/guide/install.md +18 -18
  56. package/templates/lupine-template-doc-starter/web/markdown/en/guide/started.md +22 -22
  57. package/templates/lupine-template-doc-starter/web/markdown/en/index.md +42 -42
  58. package/templates/lupine-template-doc-starter/web/markdown/index.md +7 -7
  59. package/templates/lupine-template-doc-starter/web/markdown/zh/essentials/index.md +6 -6
  60. package/templates/lupine-template-doc-starter/web/markdown/zh/essentials/list.md +18 -18
  61. package/templates/lupine-template-doc-starter/web/markdown/zh/guide/install.md +18 -18
  62. package/templates/lupine-template-doc-starter/web/markdown/zh/guide/started.md +22 -22
  63. package/templates/lupine-template-doc-starter/web/markdown/zh/index.md +42 -42
  64. package/templates/lupine-template-doc-starter/web/package.json +5 -5
  65. package/templates/lupine-template-doc-starter/web/src/client-env-keys.ts +5 -5
  66. package/templates/lupine-template-doc-starter/web/src/index.html +16 -16
  67. package/templates/lupine-template-doc-starter/web/src/index.tsx +28 -28
  68. package/templates/lupine-template-doc-starter/web/src/lupine-template-doc-starter/404.html +38 -38
  69. package/templates/lupine-template-doc-starter/web/src/lupine-template-doc-starter/index.html +27 -27
  70. package/templates/lupine-template-doc-starter/web/src/lupine-template-doc-starter/index.tsx +30 -30
  71. package/templates/lupine-template-doc-starter/web/src/markdown-built/en/essentials/list.html +8 -8
  72. package/templates/lupine-template-doc-starter/web/src/markdown-built/en/guide/install.html +8 -8
  73. package/templates/lupine-template-doc-starter/web/src/markdown-built/en/guide/started.html +12 -12
  74. package/templates/lupine-template-doc-starter/web/src/markdown-built/zh/essentials/list.html +8 -8
  75. package/templates/lupine-template-doc-starter/web/src/markdown-built/zh/guide/install.html +8 -8
  76. package/templates/lupine-template-doc-starter/web/src/markdown-built/zh/guide/started.html +12 -12
  77. package/templates/lupine-template-doc-starter/web/src/styles/base-css.ts +15 -15
  78. package/templates/lupine-template-hello-world/api/resources/install.sqlite.sql +3 -3
  79. package/templates/lupine-template-hello-world/api/src/index.ts +4 -4
  80. package/templates/lupine-template-hello-world/api/src/service/root-api.ts +18 -18
  81. package/templates/lupine-template-hello-world/lupine.json +23 -23
  82. package/templates/lupine-template-hello-world/web/package.json +6 -6
  83. package/templates/lupine-template-hello-world/web/src/index.html +16 -16
  84. package/templates/lupine-template-hello-world/web/src/index.tsx +73 -73
  85. package/templates/lupine-template-responsive-starter/api/resources/install.sqlite.sql +3 -3
  86. package/templates/lupine-template-responsive-starter/api/src/index.ts +4 -4
  87. package/templates/lupine-template-responsive-starter/api/src/service/root-api.ts +18 -18
  88. package/templates/lupine-template-responsive-starter/lupine.json +7 -7
  89. package/templates/lupine-template-responsive-starter/web/src/app-icons.ts +76 -76
  90. package/templates/lupine-template-responsive-starter/web/src/components/input-history-component.tsx +93 -93
  91. package/templates/lupine-template-responsive-starter/web/src/components/mine-about-page.tsx +86 -86
  92. package/templates/lupine-template-responsive-starter/web/src/components/mine-premium-page.tsx +80 -80
  93. package/templates/lupine-template-responsive-starter/web/src/components/mine-settings-page.tsx +220 -219
  94. package/templates/lupine-template-responsive-starter/web/src/components/mobile-top-search-menu.tsx +119 -119
  95. package/templates/lupine-template-responsive-starter/web/src/components/note-detail.tsx +116 -116
  96. package/templates/lupine-template-responsive-starter/web/src/components/note-edit.tsx +154 -154
  97. package/templates/lupine-template-responsive-starter/web/src/components/note-search-page.tsx +193 -193
  98. package/templates/lupine-template-responsive-starter/web/src/components/search-input.tsx +95 -95
  99. package/templates/lupine-template-responsive-starter/web/src/components/side-menu-content.tsx +182 -182
  100. package/templates/lupine-template-responsive-starter/web/src/frames/app-responsive-frame.tsx +52 -52
  101. package/templates/lupine-template-responsive-starter/web/src/index.html +16 -16
  102. package/templates/lupine-template-responsive-starter/web/src/index.tsx +39 -39
  103. package/templates/lupine-template-responsive-starter/web/src/lupine-template-responsive-starter/404.html +35 -35
  104. package/templates/lupine-template-responsive-starter/web/src/lupine-template-responsive-starter/index.html +49 -49
  105. package/templates/lupine-template-responsive-starter/web/src/lupine-template-responsive-starter/index.tsx +32 -32
  106. package/templates/lupine-template-responsive-starter/web/src/pages/about-page.tsx +43 -43
  107. package/templates/lupine-template-responsive-starter/web/src/pages/finance-page.tsx +46 -46
  108. package/templates/lupine-template-responsive-starter/web/src/pages/home-page.tsx +452 -452
  109. package/templates/lupine-template-responsive-starter/web/src/pages/mine-page.tsx +325 -325
  110. package/templates/lupine-template-responsive-starter/web/src/pages/tools-page.tsx +46 -46
  111. package/templates/lupine-template-responsive-starter/web/src/services/local-notes-service.ts +87 -87
  112. package/templates/lupine-template-responsive-starter/web/src/services/mine-service.ts +45 -45
  113. package/templates/common/dev/dev-watch.js +0 -389
@@ -1,219 +1,220 @@
1
- import {
2
- ActionSheetSelect,
3
- CssProps,
4
- HeaderWithBackFrame,
5
- HtmlVar,
6
- NotificationColor,
7
- NotificationMessage,
8
- RefProps,
9
- SliderFrame,
10
- SliderFrameHookProps,
11
- ToggleSwitch,
12
- ToggleSwitchSize,
13
- } from 'lupine.components';
14
- import { MineService } from '../services/mine-service';
15
- import { MineAboutPage } from './mine-about-page';
16
-
17
- export const MineSettingsPage = (props: { sliderFrameHook: SliderFrameHookProps; onDataChanged: () => void }) => {
18
- const innerSliderHook: SliderFrameHookProps = {};
19
-
20
- const onClearAll = async () => {
21
- await ActionSheetSelect.show({
22
- title: 'DANGER: Are you sure you want to permanently delete ALL local data? This cannot be undone.',
23
- options: ['Erase Everything'],
24
- cancelButtonText: 'Cancel',
25
- handleClicked: async (index: number, close: () => void) => {
26
- close();
27
- if (index === 0) {
28
- MineService.clearAllData();
29
- props.onDataChanged();
30
- }
31
- },
32
- });
33
- };
34
-
35
- const onClearCache = async () => {
36
- // Fake mock loading for UX
37
- const loader = document.createElement('div');
38
- loader.style.position = 'fixed';
39
- loader.style.top = '50%';
40
- loader.style.left = '50%';
41
- loader.style.transform = 'translate(-50%, -50%)';
42
- loader.style.background = 'rgba(0,0,0,0.8)';
43
- loader.style.color = '#fff';
44
- loader.style.padding = '16px 24px';
45
- loader.style.borderRadius = '8px';
46
- loader.style.zIndex = '9999';
47
- loader.innerText = 'Clearing cache...';
48
- document.body.appendChild(loader);
49
-
50
- setTimeout(() => {
51
- document.body.removeChild(loader);
52
- NotificationMessage.sendMessage('Cache cleared.', NotificationColor.Success);
53
- }, 800);
54
- };
55
-
56
- const renderContent = () => {
57
- const css: CssProps = {
58
- display: 'flex',
59
- flexDirection: 'column',
60
- flex: '1',
61
- padding: '0 16px',
62
- backgroundColor: 'var(--secondary-bg-color)',
63
- overflowY: 'auto',
64
-
65
- '.setting-section-group': {
66
- marginBottom: '24px',
67
- },
68
- '.setting-section-title': {
69
- fontSize: '14px',
70
- color: 'var(--secondary-color)',
71
- marginBottom: '8px',
72
- paddingLeft: '16px',
73
- marginTop: '16px',
74
- },
75
- '.setting-section-block': {
76
- backgroundColor: 'var(--primary-bg-color)',
77
- borderRadius: '12px',
78
- overflow: 'hidden',
79
- },
80
- '.setting-section-item': {
81
- display: 'flex',
82
- alignItems: 'center',
83
- justifyContent: 'space-between',
84
- padding: '16px',
85
- borderBottom: '1px solid var(--primary-border-color)',
86
- cursor: 'pointer',
87
- transition: 'background-color 0.2s',
88
- },
89
- '.setting-section-item:last-child': {
90
- borderBottom: 'none',
91
- },
92
- '.setting-section-item:active': {
93
- backgroundColor: 'rgba(0,0,0,0.02)',
94
- },
95
- '.setting-section-item-text': {
96
- fontSize: '16px',
97
- color: 'var(--primary-color)',
98
- },
99
- '.setting-section-item-text.danger': {
100
- color: '#ff4d4f',
101
- },
102
- '.setting-section-item-icon': {
103
- color: 'var(--secondary-color)',
104
- opacity: 0.5,
105
- },
106
- 'a.setting-section-item': {
107
- textDecoration: 'none',
108
- },
109
- };
110
-
111
- const ref: RefProps = {
112
- onLoad: async (el: Element) => {
113
- // any sub loaders
114
- },
115
- };
116
-
117
- return (
118
- <div css={css} ref={ref} class='user-settings-top'>
119
- <div class='setting-section-group'>
120
- <div class='setting-section-title'>App Layout</div>
121
- <div class='setting-section-block'>
122
- <div class='setting-section-item'>
123
- <div class='setting-section-item-text'>
124
- <div style={{ fontWeight: 'bold' }}>Desktop Menu</div>
125
- <div style={{ fontSize: '14px', color: 'var(--secondary-color)', marginTop: '4px' }}>
126
- {(localStorage.getItem('app-layout') || 'tabs') === 'sidemenu' ? 'Sidebar Menu' : 'Bottom Tabs'}
127
- </div>
128
- </div>
129
- <div class='setting-section-item-icon' style={{ opacity: 1 }}>
130
- <ToggleSwitch
131
- size={ToggleSwitchSize.Medium}
132
- checked={(localStorage.getItem('app-layout') || 'tabs') === 'sidemenu'}
133
- disabled={false}
134
- onClick={async (v) => {
135
- const newLayout = v ? 'sidemenu' : 'tabs';
136
- localStorage.setItem('app-layout', newLayout);
137
- dom.value = renderContent(); // Re-render first
138
-
139
- await ActionSheetSelect.show({
140
- title: 'Layout changed. Restart app to apply?',
141
- options: ['Restart Now'],
142
- cancelButtonText: 'Later',
143
- handleClicked: async (index: number, close: () => void) => {
144
- close();
145
- if (index === 0) {
146
- window.location.href = '/';
147
- }
148
- },
149
- });
150
- }}
151
- />
152
- </div>
153
- </div>
154
- </div>
155
- </div>
156
-
157
- <div class='setting-section-group'>
158
- <div class='setting-section-title'>Application</div>
159
- <div class='setting-section-block'>
160
- <a
161
- class='setting-section-item'
162
- href='javascript:void(0)'
163
- onClick={() => {
164
- innerSliderHook.load!(<MineAboutPage sliderFrameHook={innerSliderHook} />);
165
- }}
166
- >
167
- <div class='setting-section-item-text'>Feedback & Support</div>
168
- <div class='setting-section-item-icon'>
169
- <i class='ifc-icon ma-chevron-right' />
170
- </div>
171
- </a>
172
- <div class='setting-section-item' onClick={onClearCache}>
173
- <div class='setting-section-item-text'>Clear Temporary Cache</div>
174
- <div class='setting-section-item-icon'>
175
- <i class='ifc-icon ma-chevron-right' />
176
- </div>
177
- </div>
178
- <div
179
- class='setting-section-item'
180
- onClick={() => {
181
- // props.sliderFrameHook.addClass!('desktop-slide-left');
182
- // innerSliderHook.addClass!('desktop-slide-right');
183
- innerSliderHook.load!(<MineAboutPage sliderFrameHook={innerSliderHook} />);
184
- }}
185
- >
186
- <div class='setting-section-item-text'>About</div>
187
- <div class='setting-section-item-icon'>
188
- <i class='ifc-icon ma-chevron-right' />
189
- </div>
190
- </div>
191
- </div>
192
- </div>
193
-
194
- <div class='setting-section-group'>
195
- <div class='setting-section-title text-danger'>Danger Zone</div>
196
- <div class='setting-section-block'>
197
- <div class='setting-section-item' onClick={onClearAll}>
198
- <div class='setting-section-item-text danger'>Clear All Application Data</div>
199
- <div class='setting-section-item-icon'>
200
- <i class='ifc-icon ma-delete-outline text-danger' />
201
- </div>
202
- </div>
203
- </div>
204
- </div>
205
- </div>
206
- );
207
- };
208
-
209
- const dom = new HtmlVar(renderContent());
210
-
211
- return (
212
- <HeaderWithBackFrame title='Settings' onBack={(event) => props.sliderFrameHook.close!(event)}>
213
- <>
214
- <SliderFrame hook={innerSliderHook} />
215
- {dom.node}
216
- </>
217
- </HeaderWithBackFrame>
218
- );
219
- };
1
+ import {
2
+ ActionSheetSelect,
3
+ CssProps,
4
+ HeaderWithBackFrame,
5
+ HtmlVar,
6
+ NotificationColor,
7
+ NotificationMessage,
8
+ RefProps,
9
+ refreshPage,
10
+ SliderFrame,
11
+ SliderFrameHookProps,
12
+ ToggleSwitch,
13
+ ToggleSwitchSize,
14
+ } from 'lupine.components';
15
+ import { MineService } from '../services/mine-service';
16
+ import { MineAboutPage } from './mine-about-page';
17
+
18
+ export const MineSettingsPage = (props: { sliderFrameHook: SliderFrameHookProps; onDataChanged: () => void }) => {
19
+ const innerSliderHook: SliderFrameHookProps = {};
20
+
21
+ const onClearAll = async () => {
22
+ await ActionSheetSelect.show({
23
+ title: 'DANGER: Are you sure you want to permanently delete ALL local data? This cannot be undone.',
24
+ options: ['Erase Everything'],
25
+ cancelButtonText: 'Cancel',
26
+ handleClicked: async (index: number, close: () => void) => {
27
+ close();
28
+ if (index === 0) {
29
+ MineService.clearAllData();
30
+ props.onDataChanged();
31
+ }
32
+ },
33
+ });
34
+ };
35
+
36
+ const onClearCache = async () => {
37
+ // Fake mock loading for UX
38
+ const loader = document.createElement('div');
39
+ loader.style.position = 'fixed';
40
+ loader.style.top = '50%';
41
+ loader.style.left = '50%';
42
+ loader.style.transform = 'translate(-50%, -50%)';
43
+ loader.style.background = 'rgba(0,0,0,0.8)';
44
+ loader.style.color = '#fff';
45
+ loader.style.padding = '16px 24px';
46
+ loader.style.borderRadius = '8px';
47
+ loader.style.zIndex = '9999';
48
+ loader.innerText = 'Clearing cache...';
49
+ document.body.appendChild(loader);
50
+
51
+ setTimeout(() => {
52
+ document.body.removeChild(loader);
53
+ NotificationMessage.sendMessage('Cache cleared.', NotificationColor.Success);
54
+ }, 800);
55
+ };
56
+
57
+ const renderContent = () => {
58
+ const css: CssProps = {
59
+ display: 'flex',
60
+ flexDirection: 'column',
61
+ flex: '1',
62
+ padding: '0 16px',
63
+ backgroundColor: 'var(--secondary-bg-color)',
64
+ overflowY: 'auto',
65
+
66
+ '.setting-section-group': {
67
+ marginBottom: '24px',
68
+ },
69
+ '.setting-section-title': {
70
+ fontSize: '14px',
71
+ color: 'var(--secondary-color)',
72
+ marginBottom: '8px',
73
+ paddingLeft: '16px',
74
+ marginTop: '16px',
75
+ },
76
+ '.setting-section-block': {
77
+ backgroundColor: 'var(--primary-bg-color)',
78
+ borderRadius: '12px',
79
+ overflow: 'hidden',
80
+ },
81
+ '.setting-section-item': {
82
+ display: 'flex',
83
+ alignItems: 'center',
84
+ justifyContent: 'space-between',
85
+ padding: '16px',
86
+ borderBottom: '1px solid var(--primary-border-color)',
87
+ cursor: 'pointer',
88
+ transition: 'background-color 0.2s',
89
+ },
90
+ '.setting-section-item:last-child': {
91
+ borderBottom: 'none',
92
+ },
93
+ '.setting-section-item:active': {
94
+ backgroundColor: 'rgba(0,0,0,0.02)',
95
+ },
96
+ '.setting-section-item-text': {
97
+ fontSize: '16px',
98
+ color: 'var(--primary-color)',
99
+ },
100
+ '.setting-section-item-text.danger': {
101
+ color: '#ff4d4f',
102
+ },
103
+ '.setting-section-item-icon': {
104
+ color: 'var(--secondary-color)',
105
+ opacity: 0.5,
106
+ },
107
+ 'a.setting-section-item': {
108
+ textDecoration: 'none',
109
+ },
110
+ };
111
+
112
+ const ref: RefProps = {
113
+ onLoad: async (el: Element) => {
114
+ // any sub loaders
115
+ },
116
+ };
117
+
118
+ return (
119
+ <div css={css} ref={ref} class='user-settings-top'>
120
+ <div class='setting-section-group'>
121
+ <div class='setting-section-title'>App Layout</div>
122
+ <div class='setting-section-block'>
123
+ <div class='setting-section-item'>
124
+ <div class='setting-section-item-text'>
125
+ <div style={{ fontWeight: 'bold' }}>Desktop Menu</div>
126
+ <div style={{ fontSize: '14px', color: 'var(--secondary-color)', marginTop: '4px' }}>
127
+ {(localStorage.getItem('app-layout') || 'tabs') === 'sidemenu' ? 'Sidebar Menu' : 'Bottom Tabs'}
128
+ </div>
129
+ </div>
130
+ <div class='setting-section-item-icon' style={{ opacity: 1 }}>
131
+ <ToggleSwitch
132
+ size={ToggleSwitchSize.Medium}
133
+ checked={(localStorage.getItem('app-layout') || 'tabs') === 'sidemenu'}
134
+ disabled={false}
135
+ onClick={async (v) => {
136
+ const newLayout = v ? 'sidemenu' : 'tabs';
137
+ localStorage.setItem('app-layout', newLayout);
138
+ dom.value = renderContent(); // Re-render first
139
+
140
+ await ActionSheetSelect.show({
141
+ title: 'Layout changed. Restart app to apply?',
142
+ options: ['Restart Now'],
143
+ cancelButtonText: 'Later',
144
+ handleClicked: async (index: number, close: () => void) => {
145
+ close();
146
+ if (index === 0) {
147
+ await refreshPage('/');
148
+ }
149
+ },
150
+ });
151
+ }}
152
+ />
153
+ </div>
154
+ </div>
155
+ </div>
156
+ </div>
157
+
158
+ <div class='setting-section-group'>
159
+ <div class='setting-section-title'>Application</div>
160
+ <div class='setting-section-block'>
161
+ <a
162
+ class='setting-section-item'
163
+ href='javascript:void(0)'
164
+ onClick={() => {
165
+ innerSliderHook.load!(<MineAboutPage sliderFrameHook={innerSliderHook} />);
166
+ }}
167
+ >
168
+ <div class='setting-section-item-text'>Feedback & Support</div>
169
+ <div class='setting-section-item-icon'>
170
+ <i class='ifc-icon ma-chevron-right' />
171
+ </div>
172
+ </a>
173
+ <div class='setting-section-item' onClick={onClearCache}>
174
+ <div class='setting-section-item-text'>Clear Temporary Cache</div>
175
+ <div class='setting-section-item-icon'>
176
+ <i class='ifc-icon ma-chevron-right' />
177
+ </div>
178
+ </div>
179
+ <div
180
+ class='setting-section-item'
181
+ onClick={() => {
182
+ // props.sliderFrameHook.addClass!('desktop-slide-left');
183
+ // innerSliderHook.addClass!('desktop-slide-right');
184
+ innerSliderHook.load!(<MineAboutPage sliderFrameHook={innerSliderHook} />);
185
+ }}
186
+ >
187
+ <div class='setting-section-item-text'>About</div>
188
+ <div class='setting-section-item-icon'>
189
+ <i class='ifc-icon ma-chevron-right' />
190
+ </div>
191
+ </div>
192
+ </div>
193
+ </div>
194
+
195
+ <div class='setting-section-group'>
196
+ <div class='setting-section-title text-danger'>Danger Zone</div>
197
+ <div class='setting-section-block'>
198
+ <div class='setting-section-item' onClick={onClearAll}>
199
+ <div class='setting-section-item-text danger'>Clear All Application Data</div>
200
+ <div class='setting-section-item-icon'>
201
+ <i class='ifc-icon ma-delete-outline text-danger' />
202
+ </div>
203
+ </div>
204
+ </div>
205
+ </div>
206
+ </div>
207
+ );
208
+ };
209
+
210
+ const dom = new HtmlVar(renderContent());
211
+
212
+ return (
213
+ <HeaderWithBackFrame title='Settings' onBack={(event) => props.sliderFrameHook.close!(event)}>
214
+ <>
215
+ <SliderFrame hook={innerSliderHook} />
216
+ {dom.node}
217
+ </>
218
+ </HeaderWithBackFrame>
219
+ );
220
+ };