![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
gentics-ui-core
Advanced tools
This is the common core framework for the Gentics CMS and Mesh UI, and other Angular applications.
This is the common core framework for the Gentics CMS and Mesh UI, and other Angular applications.
npm install gentics-ui-core --save
// app.module.ts
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { GenticsUICoreModule } from 'gentics-ui-core';
@NgModule({
// ...
imports: [
FormsModule,
GenticsUICoreModule.forRoot(),
ReactiveFormsModule
]
}
export class AppModule { }
<gtx-overlay-host>
component to your AppComponent's template if you want to use components that have overlay parts:<!-- app.component.html -->
<!-- ... -->
<gtx-overlay-host></gtx-overlay-host>
preserveWhitespaces
to true
in your tsconfig.json
or tsconfig.app.json
.
This is necessary for the default spacing between components.{
...
"angularCompilerOptions": {
"preserveWhitespaces": true
},
...
}
main.ts
file enable preservation of whitespaces in the call to bootstrapModule()
:// main.ts
platformBrowserDynamic().bootstrapModule(AppModule,
// Enable preservation of whitespaces for default spacing between components.
{ preserveWhitespaces: true }
).catch(err => console.error(err));
Do not use any ViewEncapsulation other than ViewEncapsulation.None
(which is the default), because some UI Core components use the CSS /deep/
selector.
If you are using lazy loading of routes, the singleton services need to be provided again in the lazily loaded module, because otherwise they will not be found. For example:
// my-lazily-loaded.module.ts
// ...
@NgModule({
// ...
providers: [
ModalService,
OverlayHostService
// ...
]
})
export class MyLazilyLoadedModule {
// ...
}
my-example
in the folder ./my-example
, use me
as the prefix for components, set up a routing module, and use SCSS for defining styles. Please note that while a custom prefix and the routing module are optional, SCSS must be used for the styles in order to be compatible with Gentics UI Core.ng new my-example --prefix=me --routing=true --style=scss
polyfills.ts
and add the following assignment in that file:/***************************************************************************************************
* APPLICATION IMPORTS
*/
// This is necessary, because GUIC uses the Intl library, which requires a global object (like in Node.js).
(window as any).global = window;
Follow the steps from Using ui-core in a project.
Add the following imports to your global styles SCSS:
// styles.scss
@import "~gentics-ui-core/styles/variables";
@import "~gentics-ui-core/styles/mixins";
@import "~gentics-ui-core/styles/core";
// ...
You can see the _variables.scss file for a list of variables, which you can override before importing the variables file.
Full documentation and examples are available at https://gentics.github.io/gentics-ui-core/
The following sections are intended for people, who want to contribute to Gentics UI Core.
The build system for the project is angular-cli with a custom directory structure (to maintain the previous directory structure before the migration to angular-cli)
and a custom post-build gulp script. For full documentation on available commands, see https://angular.io/cli.
Due to the post-build gulp script it is important to not use ng build
directly, but always use npm run build
.
The builder configured in angular.json is not the default one from angular-cli, but ngx-build-plus, because we need to be able to customize the webpack configuration.
There are two important branches in this project: master and maintenance-v6.x. From which one of these you need to create a new branch for development depends on what you want to work on:
master
branchmaintenance-v6.x
branchmaster
branchImportant: After merging a bugfix into the maintenance-v6.x
branch:
maintenance-v6.x
into the master
branch.master
branch.master
branch.master
branch.To execute a single test run for the gentics-ui-core library and the docs app, execute:
npm test
To run tests in watch mode for the gentics-ui-core library, execute:
ng test gentics-ui-core
To run tests in watch mode for the docs app, execute:
ng test docs
Although the UI Core is intended to be consumed in a raw (uncompiled) state, there is a demo app
included under src/demo
which will serve as a "living style guide"
as well as a way to manually test each of the core components.
npm install
npm start
This will rebuild the docs app on every change to the source files and serve the output on http://localhost:4200.
projects/gentics-ui-core/package.json
to the desired valuegit commit -am 'vX.Y.Z'
git tag vX.Y.Z
git reset --hard HEAD^
git push origin vX.Y.Z master
npm run build -- gentics-ui-core
npm publish ./dist/gentics-ui-core
Documentation is built as a static Angular app into "docs" and maintained on the branch "gh-pages". The easiest way to manage the branch is to check it out in the "docs" subfolder:
# check out ui-core twice, master in ./ and gh-pages in ./docs
git clone -o github -b gh-pages git@github.com:gentics/gentics-ui-core ./docs
# build the docs (if you want to create separate version of the docs, you need to append --docsVersion=vX.x param)
npm run build -- docs --prod=true
# commit and push gh-pages
cd docs
git add .
git commit -m "Update latest docs to vX.Y.Z"
git push github
FAQs
This is the common core framework for the Gentics CMS and Mesh UI, and other Angular applications.
The npm package gentics-ui-core receives a total of 0 weekly downloads. As such, gentics-ui-core popularity was classified as not popular.
We found that gentics-ui-core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.