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
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
---
|
|
2
|
-
layout: home
|
|
3
|
-
title: 文档演示
|
|
4
|
-
sidemenu-width: 260px
|
|
5
|
-
github-title: GitHub 仓库
|
|
6
|
-
github-link: https://github.com/uuware/lupine.js
|
|
7
|
-
|
|
8
|
-
lang:
|
|
9
|
-
title: 简体中文
|
|
10
|
-
id: zh
|
|
11
|
-
|
|
12
|
-
hero:
|
|
13
|
-
name: 文档演示
|
|
14
|
-
text: 一个演示用的文档项目
|
|
15
|
-
tagline: 这是一个用来展示如何构建文档的演示项目。
|
|
16
|
-
actions:
|
|
17
|
-
- theme: brand
|
|
18
|
-
text: 快速开始
|
|
19
|
-
link: /zh/guide/started
|
|
20
|
-
- theme: alt
|
|
21
|
-
text: GitHub 仓库
|
|
22
|
-
link: https://github.com/uuware/lupine.js
|
|
23
|
-
|
|
24
|
-
nav:
|
|
25
|
-
- text: 指南
|
|
26
|
-
link: /zh/guide/started
|
|
27
|
-
- text: API
|
|
28
|
-
link: /zh/essentials/list
|
|
29
|
-
|
|
30
|
-
sidebar:
|
|
31
|
-
- text: 指南
|
|
32
|
-
items:
|
|
33
|
-
- /zh/guide/started
|
|
34
|
-
- /zh/guide/install
|
|
35
|
-
- submenu: /zh/essentials
|
|
36
|
-
|
|
37
|
-
features:
|
|
38
|
-
- title: 演示特性 1
|
|
39
|
-
details: 这是一个演示特性的描述。
|
|
40
|
-
- title: 演示特性 2
|
|
41
|
-
details: 这是另一个演示特性的描述。
|
|
42
|
-
---
|
|
1
|
+
---
|
|
2
|
+
layout: home
|
|
3
|
+
title: 文档演示
|
|
4
|
+
sidemenu-width: 260px
|
|
5
|
+
github-title: GitHub 仓库
|
|
6
|
+
github-link: https://github.com/uuware/lupine.js
|
|
7
|
+
|
|
8
|
+
lang:
|
|
9
|
+
title: 简体中文
|
|
10
|
+
id: zh
|
|
11
|
+
|
|
12
|
+
hero:
|
|
13
|
+
name: 文档演示
|
|
14
|
+
text: 一个演示用的文档项目
|
|
15
|
+
tagline: 这是一个用来展示如何构建文档的演示项目。
|
|
16
|
+
actions:
|
|
17
|
+
- theme: brand
|
|
18
|
+
text: 快速开始
|
|
19
|
+
link: /zh/guide/started
|
|
20
|
+
- theme: alt
|
|
21
|
+
text: GitHub 仓库
|
|
22
|
+
link: https://github.com/uuware/lupine.js
|
|
23
|
+
|
|
24
|
+
nav:
|
|
25
|
+
- text: 指南
|
|
26
|
+
link: /zh/guide/started
|
|
27
|
+
- text: API
|
|
28
|
+
link: /zh/essentials/list
|
|
29
|
+
|
|
30
|
+
sidebar:
|
|
31
|
+
- text: 指南
|
|
32
|
+
items:
|
|
33
|
+
- /zh/guide/started
|
|
34
|
+
- /zh/guide/install
|
|
35
|
+
- submenu: /zh/essentials
|
|
36
|
+
|
|
37
|
+
features:
|
|
38
|
+
- title: 演示特性 1
|
|
39
|
+
details: 这是一个演示特性的描述。
|
|
40
|
+
- title: 演示特性 2
|
|
41
|
+
details: 这是另一个演示特性的描述。
|
|
42
|
+
---
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "lupine-template-doc-starter-web",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"dependencies": {},
|
|
5
|
-
"devDependencies": {}
|
|
1
|
+
{
|
|
2
|
+
"name": "lupine-template-doc-starter-web",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"dependencies": {},
|
|
5
|
+
"devDependencies": {}
|
|
6
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export const enum ClientEnvKeys {
|
|
2
|
-
API_PORT = 'API_PORT',
|
|
3
|
-
API_BASE_URL = 'API_BASE_URL',
|
|
4
|
-
NODE_ENV = 'NODE_ENV',
|
|
5
|
-
}
|
|
1
|
+
export const enum ClientEnvKeys {
|
|
2
|
+
API_PORT = 'API_PORT',
|
|
3
|
+
API_BASE_URL = 'API_BASE_URL',
|
|
4
|
+
NODE_ENV = 'NODE_ENV',
|
|
5
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html data-theme="<!--META-THEME-->">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<title><!--META-TITLE--></title>
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
-
<!--META-ENV-START-->
|
|
8
|
-
<!--META-ENV-END-->
|
|
9
|
-
<link rel="shortcut icon" href="{SUBDIR}/assets/favicon.ico?t={hash}" type="image/x-icon" />
|
|
10
|
-
<link rel="stylesheet" type="text/css" href="{SUBDIR}/index.css?t={hash}" />
|
|
11
|
-
<script defer src="{SUBDIR}/index.js?t={hash}"></script>
|
|
12
|
-
</head>
|
|
13
|
-
<body>
|
|
14
|
-
<div class="lupine-root"></div>
|
|
15
|
-
</body>
|
|
16
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html data-theme="<!--META-THEME-->">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<title><!--META-TITLE--></title>
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
+
<!--META-ENV-START-->
|
|
8
|
+
<!--META-ENV-END-->
|
|
9
|
+
<link rel="shortcut icon" href="{SUBDIR}/assets/favicon.ico?t={hash}" type="image/x-icon" />
|
|
10
|
+
<link rel="stylesheet" type="text/css" href="{SUBDIR}/index.css?t={hash}" />
|
|
11
|
+
<script defer src="{SUBDIR}/index.js?t={hash}"></script>
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
<div class="lupine-root"></div>
|
|
15
|
+
</body>
|
|
16
|
+
</html>
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
bindRouter,
|
|
3
|
-
PageRouter,
|
|
4
|
-
bindTheme,
|
|
5
|
-
setDefaultPageTitle,
|
|
6
|
-
isFrontEnd,
|
|
7
|
-
debugWatch,
|
|
8
|
-
webEnv,
|
|
9
|
-
bindAppGlobalStyle,
|
|
10
|
-
} from 'lupine.components';
|
|
11
|
-
import { bindPressData, PressPage, pressThemes } from 'lupine.press';
|
|
12
|
-
import { markdownConfig } from './markdown-built/markdown-config';
|
|
13
|
-
import { ClientEnvKeys } from './client-env-keys';
|
|
14
|
-
import { baseCss } from './styles/base-css';
|
|
15
|
-
|
|
16
|
-
if (isFrontEnd() && webEnv(ClientEnvKeys.NODE_ENV, '') === 'development') {
|
|
17
|
-
debugWatch(webEnv(ClientEnvKeys.API_PORT, 0));
|
|
18
|
-
}
|
|
19
|
-
bindTheme('light', pressThemes);
|
|
20
|
-
bindAppGlobalStyle('comm-css', baseCss, false, true);
|
|
21
|
-
setDefaultPageTitle('Lupine.js Doc');
|
|
22
|
-
|
|
23
|
-
bindPressData(markdownConfig);
|
|
24
|
-
|
|
25
|
-
const pageRouter = new PageRouter();
|
|
26
|
-
pageRouter.use('*', PressPage);
|
|
27
|
-
|
|
28
|
-
bindRouter(pageRouter);
|
|
1
|
+
import {
|
|
2
|
+
bindRouter,
|
|
3
|
+
PageRouter,
|
|
4
|
+
bindTheme,
|
|
5
|
+
setDefaultPageTitle,
|
|
6
|
+
isFrontEnd,
|
|
7
|
+
debugWatch,
|
|
8
|
+
webEnv,
|
|
9
|
+
bindAppGlobalStyle,
|
|
10
|
+
} from 'lupine.components';
|
|
11
|
+
import { bindPressData, PressPage, pressThemes } from 'lupine.press';
|
|
12
|
+
import { markdownConfig } from './markdown-built/markdown-config';
|
|
13
|
+
import { ClientEnvKeys } from './client-env-keys';
|
|
14
|
+
import { baseCss } from './styles/base-css';
|
|
15
|
+
|
|
16
|
+
if (isFrontEnd() && webEnv(ClientEnvKeys.NODE_ENV, '') === 'development') {
|
|
17
|
+
debugWatch(webEnv(ClientEnvKeys.API_PORT, 0));
|
|
18
|
+
}
|
|
19
|
+
bindTheme('light', pressThemes);
|
|
20
|
+
bindAppGlobalStyle('comm-css', baseCss, false, true);
|
|
21
|
+
setDefaultPageTitle('Lupine.js Doc');
|
|
22
|
+
|
|
23
|
+
bindPressData(markdownConfig);
|
|
24
|
+
|
|
25
|
+
const pageRouter = new PageRouter();
|
|
26
|
+
pageRouter.use('*', PressPage);
|
|
27
|
+
|
|
28
|
+
bindRouter(pageRouter);
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
-
<title>Page Not Found</title>
|
|
7
|
-
<style>
|
|
8
|
-
main {
|
|
9
|
-
display: flex;
|
|
10
|
-
height: 100vh;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
align-items: center;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
}
|
|
15
|
-
.header404 {
|
|
16
|
-
font-size: 48px;
|
|
17
|
-
}
|
|
18
|
-
</style>
|
|
19
|
-
<script type="text/javascript">
|
|
20
|
-
// Single Page Apps for GitHub Pages, change all "/lupine-template-doc-starter/" to your github project name
|
|
21
|
-
if (window.location.pathname.includes("/lupine-template-doc-starter/")) {
|
|
22
|
-
window.location.href =
|
|
23
|
-
"/lupine-template-doc-starter/?redirect=" + window.location.pathname;
|
|
24
|
-
}
|
|
25
|
-
</script>
|
|
26
|
-
</head>
|
|
27
|
-
<body>
|
|
28
|
-
<main>
|
|
29
|
-
<h4 class="header404">404</h4>
|
|
30
|
-
<div class="content-404">
|
|
31
|
-
Uh-oh! We couldn't find the page you are looking for.
|
|
32
|
-
</div>
|
|
33
|
-
<p>
|
|
34
|
-
<a href="/lupine-template-doc-starter/">Check our home page</a>
|
|
35
|
-
</p>
|
|
36
|
-
</main>
|
|
37
|
-
</body>
|
|
38
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Page Not Found</title>
|
|
7
|
+
<style>
|
|
8
|
+
main {
|
|
9
|
+
display: flex;
|
|
10
|
+
height: 100vh;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
align-items: center;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
}
|
|
15
|
+
.header404 {
|
|
16
|
+
font-size: 48px;
|
|
17
|
+
}
|
|
18
|
+
</style>
|
|
19
|
+
<script type="text/javascript">
|
|
20
|
+
// Single Page Apps for GitHub Pages, change all "/lupine-template-doc-starter/" to your github project name
|
|
21
|
+
if (window.location.pathname.includes("/lupine-template-doc-starter/")) {
|
|
22
|
+
window.location.href =
|
|
23
|
+
"/lupine-template-doc-starter/?redirect=" + window.location.pathname;
|
|
24
|
+
}
|
|
25
|
+
</script>
|
|
26
|
+
</head>
|
|
27
|
+
<body>
|
|
28
|
+
<main>
|
|
29
|
+
<h4 class="header404">404</h4>
|
|
30
|
+
<div class="content-404">
|
|
31
|
+
Uh-oh! We couldn't find the page you are looking for.
|
|
32
|
+
</div>
|
|
33
|
+
<p>
|
|
34
|
+
<a href="/lupine-template-doc-starter/">Check our home page</a>
|
|
35
|
+
</p>
|
|
36
|
+
</main>
|
|
37
|
+
</body>
|
|
38
|
+
</html>
|
package/templates/lupine-template-doc-starter/web/src/lupine-template-doc-starter/index.html
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html data-theme="<!--META-THEME-->">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<title><!--META-TITLE--></title>
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
-
<!--META-ENV-START-->
|
|
8
|
-
<!--META-ENV-END-->
|
|
9
|
-
<link
|
|
10
|
-
rel="shortcut icon"
|
|
11
|
-
href="{SUBDIR}/assets/favicon.ico?t={hash}"
|
|
12
|
-
type="image/x-icon"
|
|
13
|
-
/>
|
|
14
|
-
<link rel="stylesheet" type="text/css" href="{SUBDIR}/index.css?t={hash}" />
|
|
15
|
-
<script defer src="{SUBDIR}/index.js?t={hash}"></script>
|
|
16
|
-
<!-- Cloudflare Web Analytics -->
|
|
17
|
-
<script
|
|
18
|
-
defer
|
|
19
|
-
src="https://static.cloudflareinsights.com/beacon.min.js"
|
|
20
|
-
data-cf-beacon='{"token": "c8ceda8f16c54b6cbfbbf7229dbecf02"}'
|
|
21
|
-
></script>
|
|
22
|
-
<!-- End Cloudflare Web Analytics -->
|
|
23
|
-
</head>
|
|
24
|
-
<body>
|
|
25
|
-
<div class="lupine-root"></div>
|
|
26
|
-
</body>
|
|
27
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html data-theme="<!--META-THEME-->">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<title><!--META-TITLE--></title>
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
+
<!--META-ENV-START-->
|
|
8
|
+
<!--META-ENV-END-->
|
|
9
|
+
<link
|
|
10
|
+
rel="shortcut icon"
|
|
11
|
+
href="{SUBDIR}/assets/favicon.ico?t={hash}"
|
|
12
|
+
type="image/x-icon"
|
|
13
|
+
/>
|
|
14
|
+
<link rel="stylesheet" type="text/css" href="{SUBDIR}/index.css?t={hash}" />
|
|
15
|
+
<script defer src="{SUBDIR}/index.js?t={hash}"></script>
|
|
16
|
+
<!-- Cloudflare Web Analytics -->
|
|
17
|
+
<script
|
|
18
|
+
defer
|
|
19
|
+
src="https://static.cloudflareinsights.com/beacon.min.js"
|
|
20
|
+
data-cf-beacon='{"token": "c8ceda8f16c54b6cbfbbf7229dbecf02"}'
|
|
21
|
+
></script>
|
|
22
|
+
<!-- End Cloudflare Web Analytics -->
|
|
23
|
+
</head>
|
|
24
|
+
<body>
|
|
25
|
+
<div class="lupine-root"></div>
|
|
26
|
+
</body>
|
|
27
|
+
</html>
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
bindRouter,
|
|
3
|
-
PageRouter,
|
|
4
|
-
bindTheme,
|
|
5
|
-
setDefaultPageTitle,
|
|
6
|
-
isFrontEnd,
|
|
7
|
-
debugWatch,
|
|
8
|
-
webEnv,
|
|
9
|
-
bindAppGlobalStyle,
|
|
10
|
-
} from 'lupine.components';
|
|
11
|
-
import { bindPressData, PressPage, pressThemes, setPressSubDir } from 'lupine.press';
|
|
12
|
-
import { ClientEnvKeys } from '../client-env-keys';
|
|
13
|
-
import { baseCss } from '../styles/base-css';
|
|
14
|
-
import { markdownConfig } from '../markdown-built/markdown-config';
|
|
15
|
-
|
|
16
|
-
if (isFrontEnd() && webEnv(ClientEnvKeys.NODE_ENV, '') === 'development') {
|
|
17
|
-
debugWatch(webEnv(ClientEnvKeys.API_PORT, 0));
|
|
18
|
-
}
|
|
19
|
-
bindTheme('light', pressThemes);
|
|
20
|
-
bindAppGlobalStyle('comm-css', baseCss, false, true);
|
|
21
|
-
setDefaultPageTitle('Doc Starter');
|
|
22
|
-
|
|
23
|
-
bindPressData(markdownConfig);
|
|
24
|
-
setPressSubDir('/lupine-template-doc-starter');
|
|
25
|
-
|
|
26
|
-
const pageRouter = new PageRouter();
|
|
27
|
-
pageRouter.setSubDir('/lupine-template-doc-starter');
|
|
28
|
-
pageRouter.use('*', PressPage);
|
|
29
|
-
|
|
30
|
-
bindRouter(pageRouter);
|
|
1
|
+
import {
|
|
2
|
+
bindRouter,
|
|
3
|
+
PageRouter,
|
|
4
|
+
bindTheme,
|
|
5
|
+
setDefaultPageTitle,
|
|
6
|
+
isFrontEnd,
|
|
7
|
+
debugWatch,
|
|
8
|
+
webEnv,
|
|
9
|
+
bindAppGlobalStyle,
|
|
10
|
+
} from 'lupine.components';
|
|
11
|
+
import { bindPressData, PressPage, pressThemes, setPressSubDir } from 'lupine.press';
|
|
12
|
+
import { ClientEnvKeys } from '../client-env-keys';
|
|
13
|
+
import { baseCss } from '../styles/base-css';
|
|
14
|
+
import { markdownConfig } from '../markdown-built/markdown-config';
|
|
15
|
+
|
|
16
|
+
if (isFrontEnd() && webEnv(ClientEnvKeys.NODE_ENV, '') === 'development') {
|
|
17
|
+
debugWatch(webEnv(ClientEnvKeys.API_PORT, 0));
|
|
18
|
+
}
|
|
19
|
+
bindTheme('light', pressThemes);
|
|
20
|
+
bindAppGlobalStyle('comm-css', baseCss, false, true);
|
|
21
|
+
setDefaultPageTitle('Doc Starter');
|
|
22
|
+
|
|
23
|
+
bindPressData(markdownConfig);
|
|
24
|
+
setPressSubDir('/lupine-template-doc-starter');
|
|
25
|
+
|
|
26
|
+
const pageRouter = new PageRouter();
|
|
27
|
+
pageRouter.setSubDir('/lupine-template-doc-starter');
|
|
28
|
+
pageRouter.use('*', PressPage);
|
|
29
|
+
|
|
30
|
+
bindRouter(pageRouter);
|
package/templates/lupine-template-doc-starter/web/src/markdown-built/en/essentials/list.html
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<blockquote>
|
|
2
|
-
<p>[!NOTE]
|
|
3
|
-
This is a demo document.</p>
|
|
4
|
-
</blockquote>
|
|
5
|
-
<h1 id="essentials-list"><a class="header-anchor" href="#essentials-list">#</a>Essentials List</h1><p>This is a simplified essentials list doc for demo purposes.</p>
|
|
6
|
-
<h2 id="feature-overview"><a class="header-anchor" href="#feature-overview">#</a>Feature Overview</h2><p>Here is an example listing key features:</p>
|
|
7
|
-
<pre><code class="language-tsx">const features = ['Fast', 'Reliable', 'Easy to use'];
|
|
8
|
-
</code></pre>
|
|
1
|
+
<blockquote>
|
|
2
|
+
<p>[!NOTE]
|
|
3
|
+
This is a demo document.</p>
|
|
4
|
+
</blockquote>
|
|
5
|
+
<h1 id="essentials-list"><a class="header-anchor" href="#essentials-list">#</a>Essentials List</h1><p>This is a simplified essentials list doc for demo purposes.</p>
|
|
6
|
+
<h2 id="feature-overview"><a class="header-anchor" href="#feature-overview">#</a>Feature Overview</h2><p>Here is an example listing key features:</p>
|
|
7
|
+
<pre><code class="language-tsx">const features = ['Fast', 'Reliable', 'Easy to use'];
|
|
8
|
+
</code></pre>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<blockquote>
|
|
2
|
-
<p>[!NOTE]
|
|
3
|
-
This is a demo document.</p>
|
|
4
|
-
</blockquote>
|
|
5
|
-
<h1 id="installation"><a class="header-anchor" href="#installation">#</a>Installation</h1><p>This is a simplified installation guide for demo purposes.</p>
|
|
6
|
-
<h2 id="basic-install"><a class="header-anchor" href="#basic-install">#</a>Basic Install</h2><p>Run the following command:</p>
|
|
7
|
-
<pre><code class="language-bash">npm install my-project
|
|
8
|
-
</code></pre>
|
|
1
|
+
<blockquote>
|
|
2
|
+
<p>[!NOTE]
|
|
3
|
+
This is a demo document.</p>
|
|
4
|
+
</blockquote>
|
|
5
|
+
<h1 id="installation"><a class="header-anchor" href="#installation">#</a>Installation</h1><p>This is a simplified installation guide for demo purposes.</p>
|
|
6
|
+
<h2 id="basic-install"><a class="header-anchor" href="#basic-install">#</a>Basic Install</h2><p>Run the following command:</p>
|
|
7
|
+
<pre><code class="language-bash">npm install my-project
|
|
8
|
+
</code></pre>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<blockquote>
|
|
2
|
-
<p>[!NOTE]
|
|
3
|
-
This is a demo document.</p>
|
|
4
|
-
</blockquote>
|
|
5
|
-
<h1 id="getting-started"><a class="header-anchor" href="#getting-started">#</a>Getting Started</h1><p>This is a simplified getting started guide for demo purposes.</p>
|
|
6
|
-
<h2 id="quick-start"><a class="header-anchor" href="#quick-start">#</a>Quick Start</h2><p>Initialize your project:</p>
|
|
7
|
-
<pre><code class="language-javascript">import { init } from 'my-project';
|
|
8
|
-
|
|
9
|
-
init({
|
|
10
|
-
debug: true,
|
|
11
|
-
});
|
|
12
|
-
</code></pre>
|
|
1
|
+
<blockquote>
|
|
2
|
+
<p>[!NOTE]
|
|
3
|
+
This is a demo document.</p>
|
|
4
|
+
</blockquote>
|
|
5
|
+
<h1 id="getting-started"><a class="header-anchor" href="#getting-started">#</a>Getting Started</h1><p>This is a simplified getting started guide for demo purposes.</p>
|
|
6
|
+
<h2 id="quick-start"><a class="header-anchor" href="#quick-start">#</a>Quick Start</h2><p>Initialize your project:</p>
|
|
7
|
+
<pre><code class="language-javascript">import { init } from 'my-project';
|
|
8
|
+
|
|
9
|
+
init({
|
|
10
|
+
debug: true,
|
|
11
|
+
});
|
|
12
|
+
</code></pre>
|
package/templates/lupine-template-doc-starter/web/src/markdown-built/zh/essentials/list.html
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<blockquote>
|
|
2
|
-
<p>[!NOTE]
|
|
3
|
-
This is a demo document.</p>
|
|
4
|
-
</blockquote>
|
|
5
|
-
<h1 id="核心要点列表"><a class="header-anchor" href="#核心要点列表">#</a>核心要点列表</h1><p>This is a simplified essentials list doc for demo purposes.</p>
|
|
6
|
-
<h2 id="核心要点概述"><a class="header-anchor" href="#核心要点概述">#</a>核心要点概述</h2><p>Here is an example listing key features:</p>
|
|
7
|
-
<pre><code class="language-tsx">const features = ['Fast', 'Reliable', 'Easy to use'];
|
|
8
|
-
</code></pre>
|
|
1
|
+
<blockquote>
|
|
2
|
+
<p>[!NOTE]
|
|
3
|
+
This is a demo document.</p>
|
|
4
|
+
</blockquote>
|
|
5
|
+
<h1 id="核心要点列表"><a class="header-anchor" href="#核心要点列表">#</a>核心要点列表</h1><p>This is a simplified essentials list doc for demo purposes.</p>
|
|
6
|
+
<h2 id="核心要点概述"><a class="header-anchor" href="#核心要点概述">#</a>核心要点概述</h2><p>Here is an example listing key features:</p>
|
|
7
|
+
<pre><code class="language-tsx">const features = ['Fast', 'Reliable', 'Easy to use'];
|
|
8
|
+
</code></pre>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<blockquote>
|
|
2
|
-
<p>[!NOTE]
|
|
3
|
-
This is a demo document.</p>
|
|
4
|
-
</blockquote>
|
|
5
|
-
<h1 id="安装"><a class="header-anchor" href="#安装">#</a>安装</h1><p>This is a simplified installation guide for demo purposes.</p>
|
|
6
|
-
<h2 id="基本安装"><a class="header-anchor" href="#基本安装">#</a>基本安装</h2><p>Run the following command:</p>
|
|
7
|
-
<pre><code class="language-bash">npm install my-project
|
|
8
|
-
</code></pre>
|
|
1
|
+
<blockquote>
|
|
2
|
+
<p>[!NOTE]
|
|
3
|
+
This is a demo document.</p>
|
|
4
|
+
</blockquote>
|
|
5
|
+
<h1 id="安装"><a class="header-anchor" href="#安装">#</a>安装</h1><p>This is a simplified installation guide for demo purposes.</p>
|
|
6
|
+
<h2 id="基本安装"><a class="header-anchor" href="#基本安装">#</a>基本安装</h2><p>Run the following command:</p>
|
|
7
|
+
<pre><code class="language-bash">npm install my-project
|
|
8
|
+
</code></pre>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<blockquote>
|
|
2
|
-
<p>[!NOTE]
|
|
3
|
-
This is a demo document.</p>
|
|
4
|
-
</blockquote>
|
|
5
|
-
<h1 id="简介"><a class="header-anchor" href="#简介">#</a>简介</h1><p>This is a simplified getting started guide for demo purposes.</p>
|
|
6
|
-
<h2 id="快速开始"><a class="header-anchor" href="#快速开始">#</a>快速开始</h2><p>Initialize your project:</p>
|
|
7
|
-
<pre><code class="language-javascript">import { init } from 'my-project';
|
|
8
|
-
|
|
9
|
-
init({
|
|
10
|
-
debug: true,
|
|
11
|
-
});
|
|
12
|
-
</code></pre>
|
|
1
|
+
<blockquote>
|
|
2
|
+
<p>[!NOTE]
|
|
3
|
+
This is a demo document.</p>
|
|
4
|
+
</blockquote>
|
|
5
|
+
<h1 id="简介"><a class="header-anchor" href="#简介">#</a>简介</h1><p>This is a simplified getting started guide for demo purposes.</p>
|
|
6
|
+
<h2 id="快速开始"><a class="header-anchor" href="#快速开始">#</a>快速开始</h2><p>Initialize your project:</p>
|
|
7
|
+
<pre><code class="language-javascript">import { init } from 'my-project';
|
|
8
|
+
|
|
9
|
+
init({
|
|
10
|
+
debug: true,
|
|
11
|
+
});
|
|
12
|
+
</code></pre>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export const baseCss = {
|
|
2
|
-
a: {
|
|
3
|
-
textDecoration: 'none',
|
|
4
|
-
color: 'inherit',
|
|
5
|
-
'&:hover': { color: 'var(--press-brand-color)' },
|
|
6
|
-
},
|
|
7
|
-
body: {
|
|
8
|
-
backgroundColor: 'var(--primary-bg-color)',
|
|
9
|
-
color: 'var(--primary-color)',
|
|
10
|
-
fontSize: 'var(--font-size-base)',
|
|
11
|
-
lineHeight: 'var(--line-height-base)',
|
|
12
|
-
fontFamily: 'var(--font-family-base)',
|
|
13
|
-
fontWeight: 'var(--font-weight-base)',
|
|
14
|
-
},
|
|
15
|
-
};
|
|
1
|
+
export const baseCss = {
|
|
2
|
+
a: {
|
|
3
|
+
textDecoration: 'none',
|
|
4
|
+
color: 'inherit',
|
|
5
|
+
'&:hover': { color: 'var(--press-brand-color)' },
|
|
6
|
+
},
|
|
7
|
+
body: {
|
|
8
|
+
backgroundColor: 'var(--primary-bg-color)',
|
|
9
|
+
color: 'var(--primary-color)',
|
|
10
|
+
fontSize: 'var(--font-size-base)',
|
|
11
|
+
lineHeight: 'var(--line-height-base)',
|
|
12
|
+
fontFamily: 'var(--font-family-base)',
|
|
13
|
+
fontWeight: 'var(--font-weight-base)',
|
|
14
|
+
},
|
|
15
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#-- sql queries to create tables
|
|
2
|
-
#-- Never name a table with plural (such as "users")
|
|
3
|
-
#-- Never name a table using a reserved keyword (such as "user")
|
|
1
|
+
#-- sql queries to create tables
|
|
2
|
+
#-- Never name a table with plural (such as "users")
|
|
3
|
+
#-- Never name a table using a reserved keyword (such as "user")
|
|
4
4
|
#-- Never prefix your table name with "tbl" or some other object type prefix
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiModule } from 'lupine.api';
|
|
2
|
-
import { RootApi } from './service/root-api';
|
|
3
|
-
|
|
4
|
-
export const apiModule = new ApiModule(new RootApi());
|
|
1
|
+
import { ApiModule } from 'lupine.api';
|
|
2
|
+
import { RootApi } from './service/root-api';
|
|
3
|
+
|
|
4
|
+
export const apiModule = new ApiModule(new RootApi());
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { IApiBase, StaticServer, ApiRouter } from 'lupine.api';
|
|
2
|
-
|
|
3
|
-
export class RootApi implements IApiBase {
|
|
4
|
-
protected router = new ApiRouter();
|
|
5
|
-
|
|
6
|
-
constructor() {
|
|
7
|
-
this.mountDashboard();
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
public getRouter(): ApiRouter {
|
|
11
|
-
return this.router;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
protected mountDashboard() {
|
|
15
|
-
const staticServer = new StaticServer();
|
|
16
|
-
this.router.use('*', staticServer.processRequest.bind(staticServer));
|
|
17
|
-
}
|
|
18
|
-
}
|
|
1
|
+
import { IApiBase, StaticServer, ApiRouter } from 'lupine.api';
|
|
2
|
+
|
|
3
|
+
export class RootApi implements IApiBase {
|
|
4
|
+
protected router = new ApiRouter();
|
|
5
|
+
|
|
6
|
+
constructor() {
|
|
7
|
+
this.mountDashboard();
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public getRouter(): ApiRouter {
|
|
11
|
+
return this.router;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
protected mountDashboard() {
|
|
15
|
+
const staticServer = new StaticServer();
|
|
16
|
+
this.router.use('*', staticServer.processRequest.bind(staticServer));
|
|
17
|
+
}
|
|
18
|
+
}
|