create-digigov-app 0.5.0 → 0.6.3
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/CHANGELOG.json +62 -0
- package/CHANGELOG.md +27 -1
- package/package.json +4 -4
- package/template/_package.json +4 -1
- package/template/javascript/index.css +3 -4
- package/template/javascript/src/components/CommonLayout.js +37 -0
- package/template/javascript/src/pages/404.js +5 -5
- package/template/javascript/src/pages/index.js +12 -8
- package/template/typescript/index.css +3 -0
- package/template/typescript/src/components/CommonLayout.tsx +37 -0
- package/template/typescript/src/pages/404.tsx +5 -5
- package/template/typescript/src/pages/index.tsx +12 -8
- package/template/javascript/base.css +0 -4
- package/template/javascript/components.css +0 -15
- package/template/javascript/src/components/Layout.js +0 -42
- package/template/javascript/utilities.css +0 -4
- package/template/typescript/src/components/Layout.tsx +0 -42
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,68 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-digigov-app",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.6.3",
|
|
6
|
+
"tag": "create-digigov-app_v0.6.3",
|
|
7
|
+
"date": "Thu, 10 Feb 2022 13:45:56 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"dependency": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Updating dependency \"@digigov/cli\" from `0.5.25` to `0.5.26`"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"comment": "Updating dependency \"@digigov/cli-lint\" from `0.5.27` to `0.5.28`"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"comment": "Updating dependency \"@digigov/cli-test\" from `0.5.25` to `0.5.26`"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"version": "0.6.2",
|
|
24
|
+
"tag": "create-digigov-app_v0.6.2",
|
|
25
|
+
"date": "Tue, 08 Feb 2022 15:21:11 GMT",
|
|
26
|
+
"comments": {
|
|
27
|
+
"dependency": [
|
|
28
|
+
{
|
|
29
|
+
"comment": "Updating dependency \"@digigov/cli-lint\" from `0.5.26` to `0.5.27`"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"version": "0.6.1",
|
|
36
|
+
"tag": "create-digigov-app_v0.6.1",
|
|
37
|
+
"date": "Wed, 02 Feb 2022 15:44:29 GMT",
|
|
38
|
+
"comments": {
|
|
39
|
+
"dependency": [
|
|
40
|
+
{
|
|
41
|
+
"comment": "Updating dependency \"@digigov/cli-lint\" from `0.5.25` to `0.5.26`"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"comment": "Updating dependency \"@digigov/cli-test\" from `0.5.24` to `0.5.25`"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"version": "0.6.0",
|
|
51
|
+
"tag": "create-digigov-app_v0.6.0",
|
|
52
|
+
"date": "Mon, 31 Jan 2022 13:42:21 GMT",
|
|
53
|
+
"comments": {
|
|
54
|
+
"patch": [
|
|
55
|
+
{
|
|
56
|
+
"comment": "Add and remove css files for ts and js projects and add needed dependencies"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"minor": [
|
|
60
|
+
{
|
|
61
|
+
"comment": "Refactor templates to use @digigov/react-core"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
},
|
|
4
66
|
{
|
|
5
67
|
"version": "0.5.0",
|
|
6
68
|
"tag": "create-digigov-app_v0.5.0",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,32 @@
|
|
|
1
1
|
# Change Log - create-digigov-app
|
|
2
2
|
|
|
3
|
-
This log was last generated on Thu,
|
|
3
|
+
This log was last generated on Thu, 10 Feb 2022 13:45:56 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.6.3
|
|
6
|
+
Thu, 10 Feb 2022 13:45:56 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
9
|
+
|
|
10
|
+
## 0.6.2
|
|
11
|
+
Tue, 08 Feb 2022 15:21:11 GMT
|
|
12
|
+
|
|
13
|
+
_Version update only_
|
|
14
|
+
|
|
15
|
+
## 0.6.1
|
|
16
|
+
Wed, 02 Feb 2022 15:44:29 GMT
|
|
17
|
+
|
|
18
|
+
_Version update only_
|
|
19
|
+
|
|
20
|
+
## 0.6.0
|
|
21
|
+
Mon, 31 Jan 2022 13:42:21 GMT
|
|
22
|
+
|
|
23
|
+
### Minor changes
|
|
24
|
+
|
|
25
|
+
- Refactor templates to use @digigov/react-core
|
|
26
|
+
|
|
27
|
+
### Patches
|
|
28
|
+
|
|
29
|
+
- Add and remove css files for ts and js projects and add needed dependencies
|
|
4
30
|
|
|
5
31
|
## 0.5.0
|
|
6
32
|
Thu, 30 Dec 2021 12:54:03 GMT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-digigov-app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "Create a DigiGOV App with ease",
|
|
5
5
|
"bin": "cli.js",
|
|
6
6
|
"files": [
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"validate-npm-package-name": "3.0.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@digigov/cli": "0.5.
|
|
29
|
-
"@digigov/cli-lint": "0.5.
|
|
30
|
-
"@digigov/cli-test": "0.5.
|
|
28
|
+
"@digigov/cli": "0.5.26",
|
|
29
|
+
"@digigov/cli-lint": "0.5.28",
|
|
30
|
+
"@digigov/cli-test": "0.5.26",
|
|
31
31
|
"typescript": "4.2.3"
|
|
32
32
|
},
|
|
33
33
|
"license": "MIT",
|
package/template/_package.json
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@import './utilities.css';
|
|
1
|
+
@tailwind base;
|
|
2
|
+
@tailwind components;
|
|
3
|
+
@tailwind utilities;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Head from 'next/head';
|
|
3
|
+
import { useTranslation } from '@digigov/ui/app/i18n';
|
|
4
|
+
import {
|
|
5
|
+
Layout,
|
|
6
|
+
Top,
|
|
7
|
+
Container,
|
|
8
|
+
Bottom,
|
|
9
|
+
Header,
|
|
10
|
+
GovGRFooter,
|
|
11
|
+
GovGRLogo,
|
|
12
|
+
} from '@digigov/react-core';
|
|
13
|
+
|
|
14
|
+
const CommonLayout = ({ children }) => {
|
|
15
|
+
const { t } = useTranslation();
|
|
16
|
+
return (
|
|
17
|
+
<Layout>
|
|
18
|
+
<Head>
|
|
19
|
+
<title>{t('app.name')}</title>
|
|
20
|
+
</Head>
|
|
21
|
+
<Top>
|
|
22
|
+
<Header>
|
|
23
|
+
<GovGRLogo />
|
|
24
|
+
{/* <HeaderTitle>
|
|
25
|
+
{t('app.name')}
|
|
26
|
+
</HeaderTitle> */}
|
|
27
|
+
</Header>
|
|
28
|
+
</Top>
|
|
29
|
+
<Container>{children}</Container>
|
|
30
|
+
<Bottom>
|
|
31
|
+
<GovGRFooter />
|
|
32
|
+
</Bottom>
|
|
33
|
+
</Layout>
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export default CommonLayout;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import NotFound from '@digigov/ui/app/NotFound';
|
|
3
|
-
import { Main,
|
|
4
|
-
import
|
|
3
|
+
import { Main, ASide } from '@digigov/react-core'
|
|
4
|
+
import CommonLayout from '<%= name %>/components/CommonLayout';
|
|
5
5
|
|
|
6
6
|
const NotFoundPage = () => {
|
|
7
7
|
return (
|
|
8
|
-
<
|
|
8
|
+
<CommonLayout>
|
|
9
9
|
<Main>
|
|
10
10
|
<NotFound />
|
|
11
11
|
</Main>
|
|
12
|
-
<
|
|
13
|
-
</
|
|
12
|
+
<ASide></ASide>
|
|
13
|
+
</CommonLayout>
|
|
14
14
|
);
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useTranslation } from '@digigov/ui/app/i18n';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import {
|
|
4
|
+
Main,
|
|
5
|
+
Aside,
|
|
6
|
+
PageTitle,
|
|
7
|
+
PageTitleHeading,
|
|
8
|
+
CallToAction,
|
|
9
|
+
Paragraph,
|
|
10
|
+
} from '@digigov/react-core';
|
|
11
|
+
import CommonLayout from '<%= name %>/components/CommonLayout';
|
|
8
12
|
|
|
9
13
|
const Home = () => {
|
|
10
14
|
const { t } = useTranslation();
|
|
11
15
|
return (
|
|
12
|
-
<
|
|
16
|
+
<CommonLayout>
|
|
13
17
|
<Main>
|
|
14
18
|
<PageTitle>
|
|
15
19
|
<PageTitleHeading>{t('app.name')}</PageTitleHeading>
|
|
@@ -17,8 +21,8 @@ const Home = () => {
|
|
|
17
21
|
<Paragraph>{t('app.intro_text')}</Paragraph>
|
|
18
22
|
<CallToAction href="/login">{t('button.start')}</CallToAction>
|
|
19
23
|
</Main>
|
|
20
|
-
<
|
|
21
|
-
</
|
|
24
|
+
<Aside></Aside>
|
|
25
|
+
</CommonLayout>
|
|
22
26
|
);
|
|
23
27
|
};
|
|
24
28
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Head from 'next/head';
|
|
3
|
+
import { useTranslation } from '@digigov/ui/app/i18n';
|
|
4
|
+
import {
|
|
5
|
+
Layout,
|
|
6
|
+
Top,
|
|
7
|
+
Container,
|
|
8
|
+
Bottom,
|
|
9
|
+
Header,
|
|
10
|
+
GovGRFooter,
|
|
11
|
+
GovGRLogo,
|
|
12
|
+
} from '@digigov/react-core';
|
|
13
|
+
|
|
14
|
+
const CommonLayout: React.FC = ({ children }) => {
|
|
15
|
+
const { t } = useTranslation();
|
|
16
|
+
return (
|
|
17
|
+
<Layout>
|
|
18
|
+
<Head>
|
|
19
|
+
<title>{t('app.name')}</title>
|
|
20
|
+
</Head>
|
|
21
|
+
<Top>
|
|
22
|
+
<Header>
|
|
23
|
+
<GovGRLogo />
|
|
24
|
+
{/* <HeaderTitle>
|
|
25
|
+
{t('app.name')}
|
|
26
|
+
</HeaderTitle> */}
|
|
27
|
+
</Header>
|
|
28
|
+
</Top>
|
|
29
|
+
<Container>{children}</Container>
|
|
30
|
+
<Bottom>
|
|
31
|
+
<GovGRFooter />
|
|
32
|
+
</Bottom>
|
|
33
|
+
</Layout>
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export default CommonLayout;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import NotFound from '@digigov/ui/app/NotFound';
|
|
3
|
-
import { Main,
|
|
4
|
-
import
|
|
3
|
+
import { Main, Aside } from '@digigov/react-core'
|
|
4
|
+
import CommonLayout from '<%= name %>/components/CommonLayout';
|
|
5
5
|
|
|
6
6
|
const NotFoundPage: React.FC = () => {
|
|
7
7
|
return (
|
|
8
|
-
<
|
|
8
|
+
<CommonLayout>
|
|
9
9
|
<Main>
|
|
10
10
|
<NotFound />
|
|
11
11
|
</Main>
|
|
12
|
-
<
|
|
13
|
-
</
|
|
12
|
+
<Aside></Aside>
|
|
13
|
+
</CommonLayout>
|
|
14
14
|
);
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useTranslation } from '@digigov/ui/app/i18n';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import {
|
|
4
|
+
Main,
|
|
5
|
+
Aside,
|
|
6
|
+
PageTitle,
|
|
7
|
+
PageTitleHeading,
|
|
8
|
+
CallToAction,
|
|
9
|
+
Paragraph,
|
|
10
|
+
} from '@digigov/react-core';
|
|
11
|
+
import CommonLayout from '<%= name %>/components/CommonLayout';
|
|
8
12
|
|
|
9
13
|
const Home: React.FC = () => {
|
|
10
14
|
const { t } = useTranslation();
|
|
11
15
|
return (
|
|
12
|
-
<
|
|
16
|
+
<CommonLayout>
|
|
13
17
|
<Main>
|
|
14
18
|
<PageTitle>
|
|
15
19
|
<PageTitleHeading>{t('app.name')}</PageTitleHeading>
|
|
@@ -17,8 +21,8 @@ const Home: React.FC = () => {
|
|
|
17
21
|
<Paragraph>{t('app.intro_text')}</Paragraph>
|
|
18
22
|
<CallToAction href="/login">{t('button.start')}</CallToAction>
|
|
19
23
|
</Main>
|
|
20
|
-
<
|
|
21
|
-
</
|
|
24
|
+
<Aside></Aside>
|
|
25
|
+
</CommonLayout>
|
|
22
26
|
);
|
|
23
27
|
};
|
|
24
28
|
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
@tailwind components;
|
|
2
|
-
@layer components {
|
|
3
|
-
@import "@digigov/css/src/components/accordion.css";
|
|
4
|
-
@import "@digigov/css/src/components/button.css";
|
|
5
|
-
@import "@digigov/css/src/components/components.css";
|
|
6
|
-
@import "@digigov/css/src/components/form.css";
|
|
7
|
-
@import "@digigov/css/src/components/checkboxes.css";
|
|
8
|
-
@import "@digigov/css/src/components/radios.css";
|
|
9
|
-
@import "@digigov/css/src/components/general.css";
|
|
10
|
-
@import "@digigov/css/src/components/header.css";
|
|
11
|
-
@import "@digigov/css/src/components/footer.css";
|
|
12
|
-
@import "@digigov/css/src/components/layout.css";
|
|
13
|
-
@import "@digigov/css/src/components/nav.css";
|
|
14
|
-
@import "@digigov/css/src/components/typography.css";
|
|
15
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Head from 'next/head';
|
|
3
|
-
import { useTranslation } from '@digigov/ui/app/i18n';
|
|
4
|
-
|
|
5
|
-
import BasicLayout, {
|
|
6
|
-
Top,
|
|
7
|
-
Content,
|
|
8
|
-
Bottom,
|
|
9
|
-
} from '@digigov/ui/layouts/Basic';
|
|
10
|
-
import Header /* , { HeaderTitle } */ from '@digigov/ui/app/Header';
|
|
11
|
-
/* import ServiceBadge from '@digigov/ui/core/ServiceBadge'; */
|
|
12
|
-
import GovGRLogo from '@digigov/ui/govgr/Logo';
|
|
13
|
-
import GovGRFooter from '@digigov/ui/govgr/Footer';
|
|
14
|
-
|
|
15
|
-
const Layout = ({ children }) => {
|
|
16
|
-
const { t } = useTranslation();
|
|
17
|
-
return (
|
|
18
|
-
<BasicLayout>
|
|
19
|
-
<Head>
|
|
20
|
-
<title>{t('app.name')}</title>
|
|
21
|
-
</Head>
|
|
22
|
-
<Top>
|
|
23
|
-
<Header>
|
|
24
|
-
<GovGRLogo />
|
|
25
|
-
{/* Use the HeaderTitle with a service name if your service is more than 5 pages long - this can help users understand which service they are using. */}
|
|
26
|
-
{/* <HeaderTitle>
|
|
27
|
-
{t('app.name')}
|
|
28
|
-
<ServiceBadge label="ALPHA" />
|
|
29
|
-
</HeaderTitle> */}
|
|
30
|
-
</Header>
|
|
31
|
-
</Top>
|
|
32
|
-
<Content>
|
|
33
|
-
{children}
|
|
34
|
-
</Content>
|
|
35
|
-
<Bottom>
|
|
36
|
-
<GovGRFooter />
|
|
37
|
-
</Bottom>
|
|
38
|
-
</BasicLayout>
|
|
39
|
-
);
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export default Layout;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Head from 'next/head';
|
|
3
|
-
import { useTranslation } from '@digigov/ui/app/i18n';
|
|
4
|
-
|
|
5
|
-
import BasicLayout, {
|
|
6
|
-
Top,
|
|
7
|
-
Content,
|
|
8
|
-
Bottom,
|
|
9
|
-
} from '@digigov/ui/layouts/Basic';
|
|
10
|
-
import Header /* , { HeaderTitle } */ from '@digigov/ui/app/Header';
|
|
11
|
-
/* import ServiceBadge from '@digigov/ui/core/ServiceBadge'; */
|
|
12
|
-
import GovGRLogo from '@digigov/ui/govgr/Logo';
|
|
13
|
-
import GovGRFooter from '@digigov/ui/govgr/Footer';
|
|
14
|
-
|
|
15
|
-
const Layout: React.FC = ({ children }) => {
|
|
16
|
-
const { t } = useTranslation();
|
|
17
|
-
return (
|
|
18
|
-
<BasicLayout>
|
|
19
|
-
<Head>
|
|
20
|
-
<title>{t('app.name')}</title>
|
|
21
|
-
</Head>
|
|
22
|
-
<Top>
|
|
23
|
-
<Header>
|
|
24
|
-
<GovGRLogo />
|
|
25
|
-
{/* Use the HeaderTitle with a service name if your service is more than 5 pages long - this can help users understand which service they are using. */}
|
|
26
|
-
{/* <HeaderTitle>
|
|
27
|
-
{t('app.name')}
|
|
28
|
-
<ServiceBadge label="ALPHA" />
|
|
29
|
-
</HeaderTitle> */}
|
|
30
|
-
</Header>
|
|
31
|
-
</Top>
|
|
32
|
-
<Content>
|
|
33
|
-
{children}
|
|
34
|
-
</Content>
|
|
35
|
-
<Bottom>
|
|
36
|
-
<GovGRFooter />
|
|
37
|
-
</Bottom>
|
|
38
|
-
</BasicLayout>
|
|
39
|
-
);
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export default Layout;
|