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.
- package/index.js +410 -411
- package/package.json +17 -17
- package/templates/common/.env.development +7 -7
- package/templates/common/.env.mobile +9 -9
- package/templates/common/.env.production +7 -7
- package/templates/common/_env +58 -58
- package/templates/common/_gitignore +25 -25
- package/templates/common/apps/server/src/index.ts +78 -76
- package/templates/common/apps/server/src/server-env-keys.ts +0 -9
- package/templates/common/dev/cp-folder.js +45 -45
- package/templates/common/tsconfig.json +128 -128
- package/templates/lupine-template-cv-starter/api/package.json +5 -5
- package/templates/lupine-template-cv-starter/api/resources/config_default.json +6 -6
- package/templates/lupine-template-cv-starter/api/resources/install.sqlite.sql +3 -3
- package/templates/lupine-template-cv-starter/api/src/index.ts +15 -15
- package/templates/lupine-template-cv-starter/lupine.json +40 -38
- package/templates/lupine-template-cv-starter/web/markdown/en/01-experience/index.md +32 -32
- package/templates/lupine-template-cv-starter/web/markdown/en/02-projects/index.md +36 -36
- package/templates/lupine-template-cv-starter/web/markdown/en/03-skills/index.md +28 -28
- package/templates/lupine-template-cv-starter/web/markdown/en/04-education/index.md +16 -16
- package/templates/lupine-template-cv-starter/web/markdown/en/index.md +41 -41
- package/templates/lupine-template-cv-starter/web/markdown/index.md +7 -7
- package/templates/lupine-template-cv-starter/web/markdown/zh/01-experience/index.md +32 -32
- package/templates/lupine-template-cv-starter/web/markdown/zh/02-projects/index.md +36 -36
- package/templates/lupine-template-cv-starter/web/markdown/zh/03-skills/index.md +28 -28
- package/templates/lupine-template-cv-starter/web/markdown/zh/04-education/index.md +17 -17
- package/templates/lupine-template-cv-starter/web/markdown/zh/index.md +41 -41
- package/templates/lupine-template-cv-starter/web/package.json +5 -5
- package/templates/lupine-template-cv-starter/web/src/client-env-keys.ts +5 -5
- package/templates/lupine-template-cv-starter/web/src/index.html +16 -16
- package/templates/lupine-template-cv-starter/web/src/index.tsx +28 -28
- package/templates/lupine-template-cv-starter/web/src/lupine-template-cv-starter/404.html +38 -38
- package/templates/lupine-template-cv-starter/web/src/lupine-template-cv-starter/index.html +73 -73
- package/templates/lupine-template-cv-starter/web/src/lupine-template-cv-starter/index.tsx +30 -30
- package/templates/lupine-template-cv-starter/web/src/markdown-built/en/01-experience/index.html +20 -20
- package/templates/lupine-template-cv-starter/web/src/markdown-built/en/02-projects/index.html +28 -28
- package/templates/lupine-template-cv-starter/web/src/markdown-built/en/03-skills/index.html +18 -18
- package/templates/lupine-template-cv-starter/web/src/markdown-built/en/04-education/index.html +10 -10
- package/templates/lupine-template-cv-starter/web/src/markdown-built/en/index.html +20 -20
- package/templates/lupine-template-cv-starter/web/src/markdown-built/zh/01-experience/index.html +20 -20
- package/templates/lupine-template-cv-starter/web/src/markdown-built/zh/02-projects/index.html +28 -28
- package/templates/lupine-template-cv-starter/web/src/markdown-built/zh/03-skills/index.html +18 -18
- package/templates/lupine-template-cv-starter/web/src/markdown-built/zh/04-education/index.html +11 -11
- package/templates/lupine-template-cv-starter/web/src/markdown-built/zh/index.html +20 -20
- package/templates/lupine-template-cv-starter/web/src/styles/base-css.ts +15 -15
- package/templates/lupine-template-doc-starter/api/package.json +5 -5
- package/templates/lupine-template-doc-starter/api/resources/config_default.json +6 -6
- package/templates/lupine-template-doc-starter/api/resources/install.sqlite.sql +3 -3
- package/templates/lupine-template-doc-starter/api/src/index.ts +15 -15
- package/templates/lupine-template-doc-starter/api/src/resources/config_default.json +6 -6
- package/templates/lupine-template-doc-starter/api/src/resources/install.sqlite.sql +3 -3
- package/templates/lupine-template-doc-starter/lupine.json +40 -38
- package/templates/lupine-template-doc-starter/web/markdown/en/essentials/index.md +6 -6
- package/templates/lupine-template-doc-starter/web/markdown/en/essentials/list.md +18 -18
- package/templates/lupine-template-doc-starter/web/markdown/en/guide/install.md +18 -18
- package/templates/lupine-template-doc-starter/web/markdown/en/guide/started.md +22 -22
- package/templates/lupine-template-doc-starter/web/markdown/en/index.md +42 -42
- package/templates/lupine-template-doc-starter/web/markdown/index.md +7 -7
- package/templates/lupine-template-doc-starter/web/markdown/zh/essentials/index.md +6 -6
- package/templates/lupine-template-doc-starter/web/markdown/zh/essentials/list.md +18 -18
- package/templates/lupine-template-doc-starter/web/markdown/zh/guide/install.md +18 -18
- package/templates/lupine-template-doc-starter/web/markdown/zh/guide/started.md +22 -22
- package/templates/lupine-template-doc-starter/web/markdown/zh/index.md +42 -42
- package/templates/lupine-template-doc-starter/web/package.json +5 -5
- package/templates/lupine-template-doc-starter/web/src/client-env-keys.ts +5 -5
- package/templates/lupine-template-doc-starter/web/src/index.html +16 -16
- package/templates/lupine-template-doc-starter/web/src/index.tsx +28 -28
- package/templates/lupine-template-doc-starter/web/src/lupine-template-doc-starter/404.html +38 -38
- package/templates/lupine-template-doc-starter/web/src/lupine-template-doc-starter/index.html +27 -27
- package/templates/lupine-template-doc-starter/web/src/lupine-template-doc-starter/index.tsx +30 -30
- package/templates/lupine-template-doc-starter/web/src/markdown-built/en/essentials/list.html +8 -8
- package/templates/lupine-template-doc-starter/web/src/markdown-built/en/guide/install.html +8 -8
- package/templates/lupine-template-doc-starter/web/src/markdown-built/en/guide/started.html +12 -12
- package/templates/lupine-template-doc-starter/web/src/markdown-built/zh/essentials/list.html +8 -8
- package/templates/lupine-template-doc-starter/web/src/markdown-built/zh/guide/install.html +8 -8
- package/templates/lupine-template-doc-starter/web/src/markdown-built/zh/guide/started.html +12 -12
- package/templates/lupine-template-doc-starter/web/src/styles/base-css.ts +15 -15
- package/templates/lupine-template-hello-world/api/resources/install.sqlite.sql +3 -3
- package/templates/lupine-template-hello-world/api/src/index.ts +4 -4
- package/templates/lupine-template-hello-world/api/src/service/root-api.ts +18 -18
- package/templates/lupine-template-hello-world/lupine.json +23 -23
- package/templates/lupine-template-hello-world/web/package.json +6 -6
- package/templates/lupine-template-hello-world/web/src/index.html +16 -16
- package/templates/lupine-template-hello-world/web/src/index.tsx +73 -73
- package/templates/lupine-template-responsive-starter/api/resources/install.sqlite.sql +3 -3
- package/templates/lupine-template-responsive-starter/api/src/index.ts +4 -4
- package/templates/lupine-template-responsive-starter/api/src/service/root-api.ts +18 -18
- package/templates/lupine-template-responsive-starter/lupine.json +7 -7
- package/templates/lupine-template-responsive-starter/web/src/app-icons.ts +76 -76
- package/templates/lupine-template-responsive-starter/web/src/components/input-history-component.tsx +93 -93
- package/templates/lupine-template-responsive-starter/web/src/components/mine-about-page.tsx +86 -86
- package/templates/lupine-template-responsive-starter/web/src/components/mine-premium-page.tsx +80 -80
- package/templates/lupine-template-responsive-starter/web/src/components/mine-settings-page.tsx +220 -219
- package/templates/lupine-template-responsive-starter/web/src/components/mobile-top-search-menu.tsx +119 -119
- package/templates/lupine-template-responsive-starter/web/src/components/note-detail.tsx +116 -116
- package/templates/lupine-template-responsive-starter/web/src/components/note-edit.tsx +154 -154
- package/templates/lupine-template-responsive-starter/web/src/components/note-search-page.tsx +193 -193
- package/templates/lupine-template-responsive-starter/web/src/components/search-input.tsx +95 -95
- package/templates/lupine-template-responsive-starter/web/src/components/side-menu-content.tsx +182 -182
- package/templates/lupine-template-responsive-starter/web/src/frames/app-responsive-frame.tsx +52 -52
- package/templates/lupine-template-responsive-starter/web/src/index.html +16 -16
- package/templates/lupine-template-responsive-starter/web/src/index.tsx +39 -39
- package/templates/lupine-template-responsive-starter/web/src/lupine-template-responsive-starter/404.html +35 -35
- package/templates/lupine-template-responsive-starter/web/src/lupine-template-responsive-starter/index.html +49 -49
- package/templates/lupine-template-responsive-starter/web/src/lupine-template-responsive-starter/index.tsx +32 -32
- package/templates/lupine-template-responsive-starter/web/src/pages/about-page.tsx +43 -43
- package/templates/lupine-template-responsive-starter/web/src/pages/finance-page.tsx +46 -46
- package/templates/lupine-template-responsive-starter/web/src/pages/home-page.tsx +452 -452
- package/templates/lupine-template-responsive-starter/web/src/pages/mine-page.tsx +325 -325
- package/templates/lupine-template-responsive-starter/web/src/pages/tools-page.tsx +46 -46
- package/templates/lupine-template-responsive-starter/web/src/services/local-notes-service.ts +87 -87
- package/templates/lupine-template-responsive-starter/web/src/services/mine-service.ts +45 -45
- package/templates/common/dev/dev-watch.js +0 -389
package/templates/lupine-template-responsive-starter/web/src/components/input-history-component.tsx
CHANGED
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
import { bindGlobalStyle, CssProps } from 'lupine.components';
|
|
2
|
-
|
|
3
|
-
export const getHistoryList = (key: string): string[] => {
|
|
4
|
-
try {
|
|
5
|
-
const hist = localStorage.getItem(`search_history_${key}`);
|
|
6
|
-
return hist ? JSON.parse(hist) : [];
|
|
7
|
-
} catch (e) {
|
|
8
|
-
return [];
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export const addHistoryItem = (key: string, item: string) => {
|
|
13
|
-
const current = getHistoryList(key);
|
|
14
|
-
const filtered = current.filter((x) => x !== item);
|
|
15
|
-
filtered.unshift(item);
|
|
16
|
-
// keep max 20
|
|
17
|
-
if (filtered.length > 20) {
|
|
18
|
-
filtered.pop();
|
|
19
|
-
}
|
|
20
|
-
localStorage.setItem(`search_history_${key}`, JSON.stringify(filtered));
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export const clearHistoryList = (key: string) => {
|
|
24
|
-
localStorage.removeItem(`search_history_${key}`);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const InputHistoryComponent = (props: {
|
|
28
|
-
label?: string;
|
|
29
|
-
historyKey: string;
|
|
30
|
-
onClearHistory: () => void;
|
|
31
|
-
onItemClick: (item: string) => void;
|
|
32
|
-
}) => {
|
|
33
|
-
const list = getHistoryList(props.historyKey);
|
|
34
|
-
const css: CssProps = {
|
|
35
|
-
padding: '4px 0',
|
|
36
|
-
'.history-c-header': {
|
|
37
|
-
display: 'flex',
|
|
38
|
-
flexDirection: 'row',
|
|
39
|
-
justifyContent: 'space-between',
|
|
40
|
-
alignItems: 'center',
|
|
41
|
-
padding: '4px 0',
|
|
42
|
-
},
|
|
43
|
-
'.history-c-h-title': {
|
|
44
|
-
fontSize: '12px',
|
|
45
|
-
},
|
|
46
|
-
'.history-c-h-icon': {
|
|
47
|
-
fontSize: '16px',
|
|
48
|
-
cursor: 'pointer',
|
|
49
|
-
},
|
|
50
|
-
'.history-c-body': {
|
|
51
|
-
display: 'flex',
|
|
52
|
-
flexWrap: 'wrap',
|
|
53
|
-
gap: '8px',
|
|
54
|
-
marginTop: '8px',
|
|
55
|
-
},
|
|
56
|
-
'.history-c-item': {
|
|
57
|
-
padding: '4px 12px',
|
|
58
|
-
borderRadius: '6px',
|
|
59
|
-
border: '1px solid var(--secondary-border-color)',
|
|
60
|
-
backgroundColor: 'var(--secondary-bg-color)',
|
|
61
|
-
color: 'var(--primary-color)',
|
|
62
|
-
fontSize: '13px',
|
|
63
|
-
width: 'fit-content',
|
|
64
|
-
cursor: 'pointer',
|
|
65
|
-
},
|
|
66
|
-
'.history-c-item:hover': {
|
|
67
|
-
backgroundColor: 'var(--activatable-bg-color-hover, rgba(0,0,0,0.04))',
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
bindGlobalStyle('history-c-box', css);
|
|
71
|
-
|
|
72
|
-
if (list.length === 0) {
|
|
73
|
-
return <></>;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
return (
|
|
77
|
-
<div css={css} class='history-c-box'>
|
|
78
|
-
<div class='history-c-header'>
|
|
79
|
-
<div class='history-c-h-title'>{props.label || 'History Search List'}</div>
|
|
80
|
-
<div class='history-c-h-icon'>
|
|
81
|
-
<i class='ifc-icon ma-delete-off-outline' onClick={props.onClearHistory}></i>
|
|
82
|
-
</div>
|
|
83
|
-
</div>
|
|
84
|
-
<div class='history-c-body'>
|
|
85
|
-
{list.map((item) => (
|
|
86
|
-
<div class='history-c-item' onClick={() => props.onItemClick(item)}>
|
|
87
|
-
{item}
|
|
88
|
-
</div>
|
|
89
|
-
))}
|
|
90
|
-
</div>
|
|
91
|
-
</div>
|
|
92
|
-
);
|
|
93
|
-
};
|
|
1
|
+
import { bindGlobalStyle, CssProps } from 'lupine.components';
|
|
2
|
+
|
|
3
|
+
export const getHistoryList = (key: string): string[] => {
|
|
4
|
+
try {
|
|
5
|
+
const hist = localStorage.getItem(`search_history_${key}`);
|
|
6
|
+
return hist ? JSON.parse(hist) : [];
|
|
7
|
+
} catch (e) {
|
|
8
|
+
return [];
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const addHistoryItem = (key: string, item: string) => {
|
|
13
|
+
const current = getHistoryList(key);
|
|
14
|
+
const filtered = current.filter((x) => x !== item);
|
|
15
|
+
filtered.unshift(item);
|
|
16
|
+
// keep max 20
|
|
17
|
+
if (filtered.length > 20) {
|
|
18
|
+
filtered.pop();
|
|
19
|
+
}
|
|
20
|
+
localStorage.setItem(`search_history_${key}`, JSON.stringify(filtered));
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const clearHistoryList = (key: string) => {
|
|
24
|
+
localStorage.removeItem(`search_history_${key}`);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const InputHistoryComponent = (props: {
|
|
28
|
+
label?: string;
|
|
29
|
+
historyKey: string;
|
|
30
|
+
onClearHistory: () => void;
|
|
31
|
+
onItemClick: (item: string) => void;
|
|
32
|
+
}) => {
|
|
33
|
+
const list = getHistoryList(props.historyKey);
|
|
34
|
+
const css: CssProps = {
|
|
35
|
+
padding: '4px 0',
|
|
36
|
+
'.history-c-header': {
|
|
37
|
+
display: 'flex',
|
|
38
|
+
flexDirection: 'row',
|
|
39
|
+
justifyContent: 'space-between',
|
|
40
|
+
alignItems: 'center',
|
|
41
|
+
padding: '4px 0',
|
|
42
|
+
},
|
|
43
|
+
'.history-c-h-title': {
|
|
44
|
+
fontSize: '12px',
|
|
45
|
+
},
|
|
46
|
+
'.history-c-h-icon': {
|
|
47
|
+
fontSize: '16px',
|
|
48
|
+
cursor: 'pointer',
|
|
49
|
+
},
|
|
50
|
+
'.history-c-body': {
|
|
51
|
+
display: 'flex',
|
|
52
|
+
flexWrap: 'wrap',
|
|
53
|
+
gap: '8px',
|
|
54
|
+
marginTop: '8px',
|
|
55
|
+
},
|
|
56
|
+
'.history-c-item': {
|
|
57
|
+
padding: '4px 12px',
|
|
58
|
+
borderRadius: '6px',
|
|
59
|
+
border: '1px solid var(--secondary-border-color)',
|
|
60
|
+
backgroundColor: 'var(--secondary-bg-color)',
|
|
61
|
+
color: 'var(--primary-color)',
|
|
62
|
+
fontSize: '13px',
|
|
63
|
+
width: 'fit-content',
|
|
64
|
+
cursor: 'pointer',
|
|
65
|
+
},
|
|
66
|
+
'.history-c-item:hover': {
|
|
67
|
+
backgroundColor: 'var(--activatable-bg-color-hover, rgba(0,0,0,0.04))',
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
bindGlobalStyle('history-c-box', css);
|
|
71
|
+
|
|
72
|
+
if (list.length === 0) {
|
|
73
|
+
return <></>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return (
|
|
77
|
+
<div css={css} class='history-c-box'>
|
|
78
|
+
<div class='history-c-header'>
|
|
79
|
+
<div class='history-c-h-title'>{props.label || 'History Search List'}</div>
|
|
80
|
+
<div class='history-c-h-icon'>
|
|
81
|
+
<i class='ifc-icon ma-delete-off-outline' onClick={props.onClearHistory}></i>
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
<div class='history-c-body'>
|
|
85
|
+
{list.map((item) => (
|
|
86
|
+
<div class='history-c-item' onClick={() => props.onItemClick(item)}>
|
|
87
|
+
{item}
|
|
88
|
+
</div>
|
|
89
|
+
))}
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
);
|
|
93
|
+
};
|
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
import { CssProps, HeaderWithBackFrame, SliderFrameHookProps } from 'lupine.components';
|
|
2
|
-
|
|
3
|
-
export const MineAboutContent = () => {
|
|
4
|
-
const css: CssProps = {
|
|
5
|
-
flex: 1,
|
|
6
|
-
overflowY: 'auto',
|
|
7
|
-
padding: '32px 24px',
|
|
8
|
-
backgroundColor: 'var(--primary-bg-color)',
|
|
9
|
-
display: 'flex',
|
|
10
|
-
flexDirection: 'column',
|
|
11
|
-
alignItems: 'center',
|
|
12
|
-
|
|
13
|
-
'.about-logo': {
|
|
14
|
-
width: '80px',
|
|
15
|
-
height: '80px',
|
|
16
|
-
borderRadius: '20px',
|
|
17
|
-
backgroundColor: 'var(--primary-accent-color)',
|
|
18
|
-
color: 'white',
|
|
19
|
-
display: 'flex',
|
|
20
|
-
alignItems: 'center',
|
|
21
|
-
justifyContent: 'center',
|
|
22
|
-
fontSize: '48px',
|
|
23
|
-
marginBottom: '16px',
|
|
24
|
-
boxShadow: '0 4px 12px rgba(24, 144, 255, 0.3)',
|
|
25
|
-
},
|
|
26
|
-
'.about-title': {
|
|
27
|
-
fontSize: '24px',
|
|
28
|
-
fontWeight: 'bold',
|
|
29
|
-
color: 'var(--primary-color)',
|
|
30
|
-
marginBottom: '8px',
|
|
31
|
-
},
|
|
32
|
-
'.about-version': {
|
|
33
|
-
fontSize: '14px',
|
|
34
|
-
color: 'var(--secondary-color)',
|
|
35
|
-
marginBottom: '32px',
|
|
36
|
-
},
|
|
37
|
-
'.about-content': {
|
|
38
|
-
fontSize: '16px',
|
|
39
|
-
color: 'var(--primary-color)',
|
|
40
|
-
lineHeight: '1.8',
|
|
41
|
-
textAlign: 'center',
|
|
42
|
-
marginBottom: '32px',
|
|
43
|
-
maxWidth: '500px',
|
|
44
|
-
whiteSpace: 'pre-wrap',
|
|
45
|
-
},
|
|
46
|
-
'.about-link': {
|
|
47
|
-
color: 'var(--primary-accent-color)',
|
|
48
|
-
textDecoration: 'none',
|
|
49
|
-
fontWeight: 'bold',
|
|
50
|
-
padding: '12px 24px',
|
|
51
|
-
border: '1px solid var(--primary-accent-color)',
|
|
52
|
-
borderRadius: '24px',
|
|
53
|
-
transition: 'all 0.2s',
|
|
54
|
-
'&:active': {
|
|
55
|
-
backgroundColor: 'rgba(24, 144, 255, 0.1)',
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
const textContent = `This is a demo application built for the full-stack framework Lupine.js.
|
|
61
|
-
Using this template alongside AI, you can rapidly build and deploy cross-platform applications.`;
|
|
62
|
-
|
|
63
|
-
return (
|
|
64
|
-
<div css={css} class='about-page-wrapper no-scrollbar-container flex-col h-100'>
|
|
65
|
-
<div class='about-logo'>
|
|
66
|
-
<i class='ifc-icon ma-text-box-outline'></i>
|
|
67
|
-
</div>
|
|
68
|
-
<div class='about-title'>Lupine Note Starter</div>
|
|
69
|
-
<div class='about-version'>Version 1.0.0</div>
|
|
70
|
-
|
|
71
|
-
<div class='about-content'>{textContent}</div>
|
|
72
|
-
|
|
73
|
-
<a class='about-link' href='https://github.com/uuware/lupine.js' target='_blank'>
|
|
74
|
-
Learn More
|
|
75
|
-
</a>
|
|
76
|
-
</div>
|
|
77
|
-
);
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
export const MineAboutPage = (props: { sliderFrameHook?: SliderFrameHookProps }) => {
|
|
81
|
-
return (
|
|
82
|
-
<HeaderWithBackFrame title='About' onBack={(e: Event) => props.sliderFrameHook?.close!(e)}>
|
|
83
|
-
<MineAboutContent />
|
|
84
|
-
</HeaderWithBackFrame>
|
|
85
|
-
);
|
|
86
|
-
};
|
|
1
|
+
import { CssProps, HeaderWithBackFrame, SliderFrameHookProps } from 'lupine.components';
|
|
2
|
+
|
|
3
|
+
export const MineAboutContent = () => {
|
|
4
|
+
const css: CssProps = {
|
|
5
|
+
flex: 1,
|
|
6
|
+
overflowY: 'auto',
|
|
7
|
+
padding: '32px 24px',
|
|
8
|
+
backgroundColor: 'var(--primary-bg-color)',
|
|
9
|
+
display: 'flex',
|
|
10
|
+
flexDirection: 'column',
|
|
11
|
+
alignItems: 'center',
|
|
12
|
+
|
|
13
|
+
'.about-logo': {
|
|
14
|
+
width: '80px',
|
|
15
|
+
height: '80px',
|
|
16
|
+
borderRadius: '20px',
|
|
17
|
+
backgroundColor: 'var(--primary-accent-color)',
|
|
18
|
+
color: 'white',
|
|
19
|
+
display: 'flex',
|
|
20
|
+
alignItems: 'center',
|
|
21
|
+
justifyContent: 'center',
|
|
22
|
+
fontSize: '48px',
|
|
23
|
+
marginBottom: '16px',
|
|
24
|
+
boxShadow: '0 4px 12px rgba(24, 144, 255, 0.3)',
|
|
25
|
+
},
|
|
26
|
+
'.about-title': {
|
|
27
|
+
fontSize: '24px',
|
|
28
|
+
fontWeight: 'bold',
|
|
29
|
+
color: 'var(--primary-color)',
|
|
30
|
+
marginBottom: '8px',
|
|
31
|
+
},
|
|
32
|
+
'.about-version': {
|
|
33
|
+
fontSize: '14px',
|
|
34
|
+
color: 'var(--secondary-color)',
|
|
35
|
+
marginBottom: '32px',
|
|
36
|
+
},
|
|
37
|
+
'.about-content': {
|
|
38
|
+
fontSize: '16px',
|
|
39
|
+
color: 'var(--primary-color)',
|
|
40
|
+
lineHeight: '1.8',
|
|
41
|
+
textAlign: 'center',
|
|
42
|
+
marginBottom: '32px',
|
|
43
|
+
maxWidth: '500px',
|
|
44
|
+
whiteSpace: 'pre-wrap',
|
|
45
|
+
},
|
|
46
|
+
'.about-link': {
|
|
47
|
+
color: 'var(--primary-accent-color)',
|
|
48
|
+
textDecoration: 'none',
|
|
49
|
+
fontWeight: 'bold',
|
|
50
|
+
padding: '12px 24px',
|
|
51
|
+
border: '1px solid var(--primary-accent-color)',
|
|
52
|
+
borderRadius: '24px',
|
|
53
|
+
transition: 'all 0.2s',
|
|
54
|
+
'&:active': {
|
|
55
|
+
backgroundColor: 'rgba(24, 144, 255, 0.1)',
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
const textContent = `This is a demo application built for the full-stack framework Lupine.js.
|
|
61
|
+
Using this template alongside AI, you can rapidly build and deploy cross-platform applications.`;
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<div css={css} class='about-page-wrapper no-scrollbar-container flex-col h-100'>
|
|
65
|
+
<div class='about-logo'>
|
|
66
|
+
<i class='ifc-icon ma-text-box-outline'></i>
|
|
67
|
+
</div>
|
|
68
|
+
<div class='about-title'>Lupine Note Starter</div>
|
|
69
|
+
<div class='about-version'>Version 1.0.0</div>
|
|
70
|
+
|
|
71
|
+
<div class='about-content'>{textContent}</div>
|
|
72
|
+
|
|
73
|
+
<a class='about-link' href='https://github.com/uuware/lupine.js' target='_blank'>
|
|
74
|
+
Learn More
|
|
75
|
+
</a>
|
|
76
|
+
</div>
|
|
77
|
+
);
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export const MineAboutPage = (props: { sliderFrameHook?: SliderFrameHookProps }) => {
|
|
81
|
+
return (
|
|
82
|
+
<HeaderWithBackFrame title='About' onBack={(e: Event) => props.sliderFrameHook?.close!(e)}>
|
|
83
|
+
<MineAboutContent />
|
|
84
|
+
</HeaderWithBackFrame>
|
|
85
|
+
);
|
|
86
|
+
};
|
package/templates/lupine-template-responsive-starter/web/src/components/mine-premium-page.tsx
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import { CssProps, HeaderWithBackFrame, SliderFrameHookProps } from 'lupine.components';
|
|
2
|
-
|
|
3
|
-
export const MinePremiumPage = (props: { sliderFrameHook: SliderFrameHookProps }) => {
|
|
4
|
-
const css: CssProps = {
|
|
5
|
-
flex: 1,
|
|
6
|
-
overflowY: 'auto',
|
|
7
|
-
padding: '32px 24px',
|
|
8
|
-
backgroundColor: 'var(--primary-bg-color)',
|
|
9
|
-
display: 'flex',
|
|
10
|
-
flexDirection: 'column',
|
|
11
|
-
alignItems: 'center',
|
|
12
|
-
|
|
13
|
-
'.premium-logo': {
|
|
14
|
-
width: '80px',
|
|
15
|
-
height: '80px',
|
|
16
|
-
borderRadius: '20px',
|
|
17
|
-
background: 'linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%)',
|
|
18
|
-
color: '#FFD700',
|
|
19
|
-
display: 'flex',
|
|
20
|
-
alignItems: 'center',
|
|
21
|
-
justifyContent: 'center',
|
|
22
|
-
fontSize: '48px',
|
|
23
|
-
marginBottom: '16px',
|
|
24
|
-
boxShadow: '0 4px 12px rgba(255, 154, 158, 0.3)',
|
|
25
|
-
},
|
|
26
|
-
'.premium-title': {
|
|
27
|
-
fontSize: '24px',
|
|
28
|
-
fontWeight: 'bold',
|
|
29
|
-
color: 'var(--primary-color)',
|
|
30
|
-
marginBottom: '8px',
|
|
31
|
-
},
|
|
32
|
-
'.premium-version': {
|
|
33
|
-
fontSize: '14px',
|
|
34
|
-
color: 'var(--secondary-color)',
|
|
35
|
-
marginBottom: '32px',
|
|
36
|
-
},
|
|
37
|
-
'.premium-content': {
|
|
38
|
-
fontSize: '16px',
|
|
39
|
-
color: 'var(--primary-color)',
|
|
40
|
-
lineHeight: '1.8',
|
|
41
|
-
textAlign: 'center',
|
|
42
|
-
marginBottom: '32px',
|
|
43
|
-
maxWidth: '500px',
|
|
44
|
-
whiteSpace: 'pre-wrap',
|
|
45
|
-
},
|
|
46
|
-
'.premium-link': {
|
|
47
|
-
color: 'var(--primary-accent-color)',
|
|
48
|
-
textDecoration: 'none',
|
|
49
|
-
fontWeight: 'bold',
|
|
50
|
-
padding: '12px 24px',
|
|
51
|
-
border: '1px solid var(--primary-accent-color)',
|
|
52
|
-
borderRadius: '24px',
|
|
53
|
-
transition: 'all 0.2s',
|
|
54
|
-
'&:active': {
|
|
55
|
-
backgroundColor: 'rgba(24, 144, 255, 0.1)',
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
const textContent = `This is a demo application built for the full-stack framework Lupine.js.
|
|
61
|
-
If you need customized special functions or premium features, please click the button below to open the github open source link and raise an issue.`;
|
|
62
|
-
|
|
63
|
-
return (
|
|
64
|
-
<HeaderWithBackFrame title='Premium Demo' onBack={(e: Event) => props.sliderFrameHook.close!(e)}>
|
|
65
|
-
<div css={css} class='premium-page-wrapper no-scrollbar-container flex-col h-100'>
|
|
66
|
-
<div class='premium-logo'>
|
|
67
|
-
<i class='ifc-icon ma-star'></i>
|
|
68
|
-
</div>
|
|
69
|
-
<div class='premium-title'>Premium Features</div>
|
|
70
|
-
<div class='premium-version'>Unlock the Full Potential</div>
|
|
71
|
-
|
|
72
|
-
<div class='premium-content'>{textContent}</div>
|
|
73
|
-
|
|
74
|
-
<a class='premium-link' href='https://github.com/uuware/lupine.js/issues/new' target='_blank'>
|
|
75
|
-
Request Custom Features
|
|
76
|
-
</a>
|
|
77
|
-
</div>
|
|
78
|
-
</HeaderWithBackFrame>
|
|
79
|
-
);
|
|
80
|
-
};
|
|
1
|
+
import { CssProps, HeaderWithBackFrame, SliderFrameHookProps } from 'lupine.components';
|
|
2
|
+
|
|
3
|
+
export const MinePremiumPage = (props: { sliderFrameHook: SliderFrameHookProps }) => {
|
|
4
|
+
const css: CssProps = {
|
|
5
|
+
flex: 1,
|
|
6
|
+
overflowY: 'auto',
|
|
7
|
+
padding: '32px 24px',
|
|
8
|
+
backgroundColor: 'var(--primary-bg-color)',
|
|
9
|
+
display: 'flex',
|
|
10
|
+
flexDirection: 'column',
|
|
11
|
+
alignItems: 'center',
|
|
12
|
+
|
|
13
|
+
'.premium-logo': {
|
|
14
|
+
width: '80px',
|
|
15
|
+
height: '80px',
|
|
16
|
+
borderRadius: '20px',
|
|
17
|
+
background: 'linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%)',
|
|
18
|
+
color: '#FFD700',
|
|
19
|
+
display: 'flex',
|
|
20
|
+
alignItems: 'center',
|
|
21
|
+
justifyContent: 'center',
|
|
22
|
+
fontSize: '48px',
|
|
23
|
+
marginBottom: '16px',
|
|
24
|
+
boxShadow: '0 4px 12px rgba(255, 154, 158, 0.3)',
|
|
25
|
+
},
|
|
26
|
+
'.premium-title': {
|
|
27
|
+
fontSize: '24px',
|
|
28
|
+
fontWeight: 'bold',
|
|
29
|
+
color: 'var(--primary-color)',
|
|
30
|
+
marginBottom: '8px',
|
|
31
|
+
},
|
|
32
|
+
'.premium-version': {
|
|
33
|
+
fontSize: '14px',
|
|
34
|
+
color: 'var(--secondary-color)',
|
|
35
|
+
marginBottom: '32px',
|
|
36
|
+
},
|
|
37
|
+
'.premium-content': {
|
|
38
|
+
fontSize: '16px',
|
|
39
|
+
color: 'var(--primary-color)',
|
|
40
|
+
lineHeight: '1.8',
|
|
41
|
+
textAlign: 'center',
|
|
42
|
+
marginBottom: '32px',
|
|
43
|
+
maxWidth: '500px',
|
|
44
|
+
whiteSpace: 'pre-wrap',
|
|
45
|
+
},
|
|
46
|
+
'.premium-link': {
|
|
47
|
+
color: 'var(--primary-accent-color)',
|
|
48
|
+
textDecoration: 'none',
|
|
49
|
+
fontWeight: 'bold',
|
|
50
|
+
padding: '12px 24px',
|
|
51
|
+
border: '1px solid var(--primary-accent-color)',
|
|
52
|
+
borderRadius: '24px',
|
|
53
|
+
transition: 'all 0.2s',
|
|
54
|
+
'&:active': {
|
|
55
|
+
backgroundColor: 'rgba(24, 144, 255, 0.1)',
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
const textContent = `This is a demo application built for the full-stack framework Lupine.js.
|
|
61
|
+
If you need customized special functions or premium features, please click the button below to open the github open source link and raise an issue.`;
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<HeaderWithBackFrame title='Premium Demo' onBack={(e: Event) => props.sliderFrameHook.close!(e)}>
|
|
65
|
+
<div css={css} class='premium-page-wrapper no-scrollbar-container flex-col h-100'>
|
|
66
|
+
<div class='premium-logo'>
|
|
67
|
+
<i class='ifc-icon ma-star'></i>
|
|
68
|
+
</div>
|
|
69
|
+
<div class='premium-title'>Premium Features</div>
|
|
70
|
+
<div class='premium-version'>Unlock the Full Potential</div>
|
|
71
|
+
|
|
72
|
+
<div class='premium-content'>{textContent}</div>
|
|
73
|
+
|
|
74
|
+
<a class='premium-link' href='https://github.com/uuware/lupine.js/issues/new' target='_blank'>
|
|
75
|
+
Request Custom Features
|
|
76
|
+
</a>
|
|
77
|
+
</div>
|
|
78
|
+
</HeaderWithBackFrame>
|
|
79
|
+
);
|
|
80
|
+
};
|