Commit a1407a3a authored by Romain Bioteau's avatar Romain Bioteau Committed by abirembaut
Browse files

chore(cleaning): remove legacy artifacts

* remove bootswatch themes
* update npm deps for `bonita-theme` and `default-theme`
* remove `bonita-theme-archetype` as it has been extracted from this
project a while ago
(https://github.com/bonitasoft/bonita-theme-archetype)
* remove groovy compiler dependencies as we are not building rest api
extensions anymore
parent cbeb4513
......@@ -141,7 +141,7 @@
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.9.1</version>
<version>1.12.0</version>
</plugin>
</plugins>
</pluginManagement>
......
target
node_modules
node
\ No newline at end of file
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.bonitasoft.web</groupId>
<artifactId>bonita-theme-archetype</artifactId>
<name>Bonita Default Theme Archetype</name>
<version>7.13.0-SNAPSHOT</version>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-archetype-plugin</artifactId>
<version>3.0.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-archetype-plugin</artifactId>
<configuration>
<ignoreEOLStyle>true</ignoreEOLStyle>
<skip>${skipTests}</skip>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
</goals>
<phase>integration-test</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<deployAtEnd>true</deployAtEnd>
<skip>false</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<archetype-descriptor
xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd"
xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<fileSets>
<fileSet filtered="false" encoding="UTF-8">
<directory>dist</directory>
<includes>
<include>**/*</include>
</includes>
</fileSet>
<fileSet filtered="false" encoding="UTF-8">
<directory>src</directory>
<includes>
<include>**/*</include>
</includes>
</fileSet>
<fileSet filtered="false" encoding="UTF-8">
<directory>test</directory>
<includes>
<include>**/*</include>
</includes>
</fileSet>
<fileSet filtered="true" encoding="UTF-8">
<directory/>
<includes>
<include>page.properties</include>
</includes>
</fileSet>
<fileSet filtered="true" encoding="UTF-8">
<directory/>
<includes>
<include>package.json</include>
</includes>
</fileSet>
<fileSet filtered="false" encoding="UTF-8">
<directory/>
<includes>
<include>content.xml</include>
</includes>
</fileSet>
</fileSets>
<requiredProperties>
<requiredProperty key="themeDisplayName">
<defaultValue>My Theme</defaultValue>
</requiredProperty>
<requiredProperty key="themeName">
<defaultValue>myTheme</defaultValue>
</requiredProperty>
<requiredProperty key="themeDesc">
<defaultValue>My Theme description</defaultValue>
</requiredProperty>
</requiredProperties>
</archetype-descriptor>
<assembly>
<id>page-package</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>${project.basedir}/dist</directory>
<outputDirectory>resources</outputDirectory>
<includes>
<include>**/*</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.basedir}</directory>
<outputDirectory/>
<includes>
<include>page.properties</include>
</includes>
<filtered>true</filtered>
</fileSet>
</fileSets>
</assembly>
\ No newline at end of file
{
"name": "$artifactId",
"version": "0.0.1",
"description": "$themeDesc",
"license": "GPL-2.0-or-later",
"scripts": {
"build": "node-sass --precision 8 --output-style compressed --omit-source-map-url true --include-path ./node_modules/bootstrap-sass/assets/stylesheets/ src/scss/main.scss target/theme.noprefix.css && postcss target/theme.noprefix.css --no-map --use autoprefixer -b \"last 2 versions\" -o dist/theme.css"
},
"devDependencies": {
"node-sass": "4.11.0",
"postcss-cli": "6.1.2",
"autoprefixer": "9.5.0",
"bootstrap-sass": "3.3.7"
}
}
\ No newline at end of file
displayName=${project.name}
name=custompage_${project.artifactId}
description=${project.description}
contentType=theme
\ No newline at end of file
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>
<version>${version}</version>
<packaging>pom</packaging>
<name>${themeDisplayName}</name>
<description>${themeDesc}</description>
<properties>
<node.version>v10.16.3</node.version>
<npm.version>6.9.0</npm.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.7.5</version>
<configuration>
<installDirectory>${session.executionRootDirectory}</installDirectory>
<nodeVersion>${node.version}</nodeVersion>
<npmVersion>${npm.version}</npmVersion>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
<goal>npm</goal>
</goals>
</execution>
<execution>
<id>npm build</id>
<goals>
<goal>npm</goal>
</goals>
<phase>prepare-package</phase>
<configuration>
<arguments>run build</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>page-content</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<inherited>false</inherited>
<configuration>
<ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>content.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
.btn {
&.btn-primary {
&.disabled,
&[disabled],
fieldset[disabled] & {
background-color: $btn-primary-disabled-bg;
border-color: $btn-primary-disabled-border;
color: $btn-primary-disabled-color;
}
}
}
//
// Pager pagination
// --------------------------------------------------
.pager {
li {
> a,
> span {
color: $pager-color;
}
> a:hover,
> a:focus {
color: $pager-hover-color;
}
}
}
\ No newline at end of file
//Predifined variables can be found here (need to run a build first):
//${project.basedir}/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_variable.scss
//Brand colors
$brand-primary: #2c3e50;
$brand-success: #008000;
$brand-info: #033c73;
$brand-warning: #dd5600;
$brand-danger: #c71c22;
$gray-light: #999999;
$white: #ffffff;
//Text
$text-color: $brand-primary;
$headings-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
$headings-line-height: 1.2;
$state-success-text: #468847;
$state-info-text: #3a87ad;
$state-warning-text: #c09853;
$state-danger-text: #b94a48;
//Components
$padding-large-vertical: 14px;
//Input
$input-color: $text-color;
$input-height-large: 54px;
//Modals
$modal-inner-padding : 20px;
//Buttons
$btn-default-color: $text-color;
$btn-default-border: rgba(0, 0, 0, 0.1);
$btn-primary-border: $brand-primary;
$btn-success-border: $brand-success;
$btn-info-border: $brand-info;
$btn-warning-border: $brand-warning;
$btn-danger-border: $brand-danger;
$btn-primary-disabled-bg: #95a5a6;
$btn-primary-disabled-border: $btn-primary-disabled-bg;
$btn-primary-disabled-color: #ffffff;
//Navbar
$navbar-default-color: #dddddd;
$navbar-default-bg: $brand-primary;
$navbar-default-link-color: $white;
$navbar-default-brand-hover-color: $white;
$navbar-default-link-hover-color: $white;
$navbar-default-link-hover-bg: #1a242f;
$navbar-default-link-active-bg: #1a242f;
$navbar-default-link-active-color: $white;
$navbar-default-link-disabled-color: #dddddd;
$navbar-default-toggle-hover-bg: #1a242f;
$navbar-default-toggle-icon-bar-bg: $white;
$navbar-default-toggle-border-color: #1a242f;
$navbar-inverse-bg: #033c73;
$navbar-inverse-color: $white;
$navbar-inverse-link-color: $white;
$navbar-inverse-link-hover-bg: #022f5a;
$navbar-inverse-link-active-bg: #022f5a;
$navbar-inverse-link-disabled-color: #cccccc;
$navbar-inverse-toggle-border-color: #022f5a;
$navbar-inverse-toggle-hover-bg: #022f5a;
$navbar-inverse-toggle-icon-bar-bg: $white;
//Dropdown
$dropdown-link-hover-color: $white;
$dropdown-link-hover-bg: #2c3e50;
//Pagination
$pagination-color: $white;
$pagination-bg: $brand-primary;
$pagination-border: transparent;
$pagination-hover-color: $pagination-color;
$pagination-hover-bg: darken($brand-primary, 15%);
$pagination-hover-border: transparent;
$pagination-active-bg: darken($brand-primary, 15%);
$pagination-active-border: transparent;
$pagination-disabled-color: #ecf0f1;
$pagination-disabled-bg: #476481;
$pagination-disabled-border: transparent;
//Pager
$pager-color: $pagination-color;
$pager-bg: $brand-primary;
$pager-hover-color: $pagination-hover-color;
//Badge
$badge-bg: $brand-primary;
//Panel
$panel-border-color: #dddddd;
$panel-primary-border: $panel-border-color;
$panel-primary-text: #fff;
$panel-success-border: $panel-border-color;
$panel-success-text: $panel-primary-text;
$panel-info-border: $panel-border-color;
$panel-info-text: $panel-primary-text;
$panel-warning-border: $panel-border-color;
$panel-warning-text: $panel-primary-text;
$panel-danger-border: $panel-border-color;
$panel-danger-text: $panel-primary-text;
$panel-success-heading-bg: $brand-success;
$panel-info-heading-bg: $brand-info;
$panel-warning-heading-bg: $brand-warning;
$panel-danger-heading-bg: $brand-danger;
//Glyphicons fonts
$icon-font-path: "./fonts/";
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment