@jahia/create-module 0.0.2 → 0.0.4
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/.github/workflows/lint.yml +5 -3
- package/.github/workflows/publish-release.yml +2 -2
- package/.yarn/releases/yarn-4.5.0.cjs +925 -0
- package/.yarnrc.yml +3 -0
- package/README.md +9 -4
- package/index.js +34 -67
- package/package.json +7 -10
- package/template/.babelrc +9 -0
- package/template/.yarn/releases/yarn-4.3.1.cjs +894 -0
- package/template/.yarnrc.yml +3 -0
- package/{jsx → template}/README.md +20 -0
- package/{handlebars → template}/dotenv +1 -1
- package/template/dotgitignore +18 -0
- package/{jsx → template}/dotnpmignore +1 -1
- package/{jsx → template}/package.json +16 -16
- package/template/settings/README.md +30 -0
- package/{jsx → template/settings}/definitions.cnd +6 -0
- package/template/settings/locales/de.json +5 -0
- package/template/settings/locales/en.json +5 -0
- package/template/settings/locales/fr.json +5 -0
- package/template/src/server/templates/page/PageHome.jsx +29 -0
- package/template/src/server/views/hello/HelloDefault.jsx +19 -0
- package/{jsx → template}/webpack.config.js +49 -23
- package/babel.config.cjs.disabled +0 -3
- package/handlebars/README.md +0 -11
- package/handlebars/components/MODULE_NAMESPACE/hello/hello.cnd +0 -6
- package/handlebars/components/MODULE_NAMESPACE/hello/hello.default.hbs +0 -1
- package/handlebars/components/MODULE_NAMESPACE/hello/hello.icon.png +0 -0
- package/handlebars/components/jnt/page/page.home.hbs +0 -18
- package/handlebars/components/jnt/page/page.home.png +0 -0
- package/handlebars/components/jnt/page/page.home.properties +0 -2
- package/handlebars/definitions.cnd +0 -8
- package/handlebars/doteslintrc.cjs +0 -29
- package/handlebars/dotgitignore +0 -15
- package/handlebars/dotnpmignore +0 -4
- package/handlebars/import.xml +0 -8
- package/handlebars/locales/de.json +0 -3
- package/handlebars/locales/en.json +0 -3
- package/handlebars/locales/fr.json +0 -3
- package/handlebars/package.json +0 -41
- package/handlebars/resources/MODULE_NAME.properties +0 -2
- package/handlebars/resources/MODULE_NAME_fr.properties +0 -2
- package/handlebars/settings/README.txt +0 -9
- package/handlebars/src/index.js +0 -0
- package/handlebars/webpack.config.js +0 -49
- package/jsx/dotenv +0 -4
- package/jsx/dotgitignore +0 -15
- package/jsx/locales/de.json +0 -4
- package/jsx/locales/en.json +0 -4
- package/jsx/locales/fr.json +0 -4
- package/jsx/settings/README.txt +0 -9
- package/jsx/src/server/templates/page/PageHome.jsx +0 -24
- package/jsx/src/server/views/hello/HelloDefault.jsx +0 -18
- package/jsx/yarn.lock +0 -0
- /package/{jsx → template}/css/styles.css +0 -0
- /package/{jsx → template}/doteslintrc.cjs +0 -0
- /package/{jsx → template/settings}/import.xml +0 -0
- /package/{jsx → template/settings}/resources/MODULE_NAME.properties +0 -0
- /package/{jsx → template/settings}/resources/MODULE_NAME_fr.properties +0 -0
- /package/{jsx → template}/src/client/index.jsx +0 -0
- /package/{jsx → template}/src/server/components/index.js +0 -0
- /package/{jsx → template}/src/server/index.js +0 -0
- /package/{jsx → template}/src/server/templates/index.js +0 -0
- /package/{jsx → template}/src/server/templates/page/index.js +0 -0
- /package/{jsx → template}/src/server/views/hello/index.js +0 -0
- /package/{jsx → template}/src/server/views/index.js +0 -0
- /package/{handlebars → template}/yarn.lock +0 -0
package/jsx/locales/en.json
DELETED
package/jsx/locales/fr.json
DELETED
package/jsx/settings/README.txt
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
In this directory you can put directly :
|
|
2
|
-
- Rule files (*.drl, *.dsl)
|
|
3
|
-
- URL rewrite XML files
|
|
4
|
-
|
|
5
|
-
In the configurations directory you can put :
|
|
6
|
-
- OSGi configuration files (*.cfg, *.yml)
|
|
7
|
-
|
|
8
|
-
In the jahia-content-editor-forms you can put content editor form and field set overrides,
|
|
9
|
-
see examples here : https://academy.jahia.com/documentation/jahia/jahia-8/developer/extending-and-customizing-jahia-ui/customizing-content-editor-forms/examples-of-content-definition-json-overrides
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {Area, AddResources} from '@jahia/js-server-core';
|
|
3
|
-
|
|
4
|
-
export const PageHome = () => {
|
|
5
|
-
return (<>
|
|
6
|
-
<head>
|
|
7
|
-
<AddResources type='css' resources='styles.css' />
|
|
8
|
-
<title>Home</title>
|
|
9
|
-
</head>
|
|
10
|
-
<body>
|
|
11
|
-
<h1>Home Template</h1>
|
|
12
|
-
<main>
|
|
13
|
-
<Area name="pagecontent" />
|
|
14
|
-
</main>
|
|
15
|
-
</body>
|
|
16
|
-
</>);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
PageHome.jahiaComponent = { // This object is used to register the template in Jahia
|
|
20
|
-
nodeType: 'jnt:page', // The content node type the template applies to
|
|
21
|
-
name: 'home', // The name of the template
|
|
22
|
-
displayName: 'Home page', // The display name of the page template
|
|
23
|
-
componentType: 'template' // the component type is set to template (as opposed to view component types)
|
|
24
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { useServerContext, getNodeProps } from '@jahia/js-server-core'
|
|
3
|
-
|
|
4
|
-
export const HelloDefault = () => {
|
|
5
|
-
const { currentNode } = useServerContext();
|
|
6
|
-
const props = getNodeProps(currentNode, ['textHello']);
|
|
7
|
-
return (
|
|
8
|
-
<div>
|
|
9
|
-
<h2>{props.textHello}</h2>
|
|
10
|
-
</div>
|
|
11
|
-
)
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
HelloDefault.jahiaComponent = { // this object is used to register the view in Jahia
|
|
15
|
-
nodeType: '$$MODULE_NAMESPACE$$:hello', // The content node type the template applies to
|
|
16
|
-
displayName: 'Hello (default)', // The display name of the view
|
|
17
|
-
componentType: 'view' // the component type is set to view (as opposed to template component types)
|
|
18
|
-
}
|
package/jsx/yarn.lock
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|