# georchestra-header
**Repository Path**: mirrors_geosolutions-it/georchestra-header
## Basic Information
- **Project Name**: georchestra-header
- **Description**: Sources for the header webcomponent
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2025-05-28
- **Last Updated**: 2026-02-28
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# geOrchestra header
The geOrchestra header is built using Vue and published as a web component called `geor-header`.
## Usage
The web component is distributed as a static JS file on the `dist` branch of this repository. It can easily be accessed using a service such as JsDelivr with the following url:
https://cdn.jsdelivr.net/gh/georchestra/header@dist/header.js
To include it in an existing application:
1. add a `script` tag pointing to the JS file:
```html
```
2. include the header component:
```html
```
Note: unlike with iframes there is no need to specify a height, the component will decide of its own size and "push" the content around accordingly.
Iframe can still be set with defining `legacy-url` attribute, style can also be set with `legacy-style` attribute :
```html
```
Attributes available :
| Attribute | Description | Example | For new header | For legacy header (iframe) |
|-------------|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------| -------------- |----------------------------|
| active-app | Use this attribute to set the active class in menu | `` | | v |
| config-file | Use this attribute to set the config file for the new header (not legacy one). See [CONFIG.md](./CONFIG.md) | `` | v | |
| stylesheet | adds this stylesheet to the new header (not legacy one). | `` | v | |
| height | sets the height of the header (in pixels) | `` | v | v |
| legacy-header | Use this attribute to enable the legacy header `iframe` tag. Needs `legacy-url`. | `` | | v |
| legacy-url | Legacy URL: if set, activates iframe with src attribute pointing to this URL. Needs `legacy-header`. | `` | | v |
| logo-url | Use this attribute to set the logo for the new header (not legacy one). | `` | v | |
3. Provide a custom stylesheet
Example :
```css
/* Example of custom stylesheet */
header {
--georchestra-header-primary: #e20714;
--georchestra-header-secondary: #333;
--georchestra-header-primary-light: white;
--georchestra-header-secondary-light: #eee;
}
.admin-dropdown > li.active {
background-color: red;
color: white;
}
```
## Development
On every new commit on main the `header.js` file on the `dist` branch is updated automatically.
### Recommended IDE Setup
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
### Customize configuration
See [Vite Configuration Reference](https://vitejs.dev/config/).
### Project Setup
```sh
npm install
```
#### Compile and Hot-Reload for Development
```sh
npm run dev
```
#### Compile and Minify for Production
```sh
npm run build
```
#### Lint with [ESLint](https://eslint.org/)
```sh
npm run lint
```