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
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>org.company.theme</groupId>
<artifactId>my-custom-theme</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<name>My Custom Theme</name>
<description>My Custom Theme description</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
//Bonita variables
@import "bonita_variables";
// Bootstrap
@import "bootstrap";
@import "bonita_buttons";
@import "bonita_pager";
# Bootstrap page example
## Purpose
This html page can be used to preview the look of your custom theme for bootstrap components.
It is not meant for other purposes.
Additional assets in the `js` and `css` folder are only used for this page and must not be added in the built archive.
All bootstrap javascript dependencies are already provided by the Bonita runtime environment.
## References
This page is greatly inspired by the [bootswatch](https://github.com/thomaspark/bootswatch/tree/v3.3.7/default) theme preview.
body{padding-top:50px}body>.navbar{-webkit-transition:background-color .3s ease-in;transition:background-color .3s ease-in}@media (min-width:768px){body>.navbar-transparent{background-color:transparent}body>.navbar-transparent .navbar-nav>.open>a{background-color:transparent!important}}#home{padding-top:0}#home .navbar-brand{padding:13.5px 15px 12.5px}#home .navbar-brand>img{display:inline;margin:0 10px;height:100%}#banner{min-height:300px;border-bottom:none}.table-of-contents{margin-top:1em}.page-header h1{font-size:4em}.bs-docs-section{margin-top:6em}.bs-docs-section h1{padding-top:100px}.bs-component{position:relative}.bs-component .modal{position:relative;top:auto;right:auto;left:auto;bottom:auto;z-index:1;display:block}.bs-component .modal-dialog{width:90%}.bs-component .popover{position:relative;display:inline-block;width:220px;margin:20px}#source-button{position:absolute;top:0;right:0;z-index:100;font-weight:700}.nav-tabs{margin-bottom:15px}.progress{margin-bottom:10px}footer{margin:5em 0}footer li{float:left;margin-right:1.5em;margin-bottom:1.5em}footer p{clear:left;margin-bottom:0}.splash{padding:9em 0 2em;background-color:#141d27;background-image:url(../img/bg.jpg);background-size:cover;background-attachment:fixed;color:#fff;text-align:center}.splash .logo{width:160px}.splash h1{font-size:3em}.splash #social{margin:2em 0}.splash .alert{margin:2em 0}.section-tout{padding:4em 0 3em;border-bottom:1px solid rgba(0,0,0,.05);background-color:#eaf1f1}.section-tout .fa{margin-right:.5em}.section-tout p{margin-bottom:3em}.section-preview{padding:4em 0 4em}.section-preview .preview{margin-bottom:4em;background-color:#eaf1f1}.section-preview .preview .image{position:relative}.section-preview .preview .image:before{box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);position:absolute;top:0;left:0;width:100%;height:100%;content:"";pointer-events:none}.section-preview .preview .options{padding:1em 2em 2em;border:1px solid rgba(0,0,0,.05);border-top:none;text-align:center}.section-preview .preview .options p{margin-bottom:2em}.section-preview .dropdown-menu{text-align:left}.section-preview .lead{margin-bottom:2em}@media (max-width:767px){.section-preview .image img{width:100%}}.sponsor #carbonads{max-width:240px;margin:0 auto}.sponsor .carbon-text{display:block;margin-top:1em;font-size:12px}.sponsor .carbon-poweredby{float:right;margin-top:1em;font-size:10px}@media (max-width:767px){.splash{padding-top:4em}.splash .logo{width:100px}.splash h1{font-size:2em}#banner{margin-bottom:2em;text-align:center}}
\ No newline at end of file
(function(){
$(window).scroll(function () {
var top = $(document).scrollTop();
$('.splash').css({
'background-position': '0px -'+(top/3).toFixed(2)+'px'
});
if(top > 50)
$('#home > .navbar').removeClass('navbar-transparent');
else
$('#home > .navbar').addClass('navbar-transparent');
});
$("a[href='#']").click(function(e) {
e.preventDefault();
});
var $button = $("<div id='source-button' class='btn btn-primary btn-xs'>&lt; &gt;</div>").click(function(){
var html = $(this).parent().html();
html = cleanSource(html);
$("#source-modal pre").text(html);
$("#source-modal").modal();
});
$('.bs-component [data-toggle="popover"]').popover();
$('.bs-component [data-toggle="tooltip"]').tooltip();
$(".bs-component").hover(function(){
$(this).append($button);
$button.show();
}, function(){
$button.hide();
});
function cleanSource(html) {
html = html.replace(/×/g, "&times;")
.replace(/«/g, "&laquo;")
.replace(/»/g, "&raquo;")
.replace(/←/g, "&larr;")
.replace(/→/g, "&rarr;");
var lines = html.split(/\n/);
lines.shift();
lines.splice(-1, 1);
var indentSize = lines[0].length - lines[0].trim().length,
re = new RegExp(" {" + indentSize + "}");
lines = lines.map(function(line){
if (line.match(re)) {
line = line.substring(indentSize);
}
return line;
});
lines = lines.join("\n");
return lines;
}
})();
This diff is collapsed.
This diff is collapsed.
......@@ -7,9 +7,10 @@
"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"
"node-sass": "6.0.1",
"postcss-cli": "8.3.1",
"postcss": "8.3.6",
"autoprefixer": "10.3.1",
"bootstrap-sass": "3.4.1"
}
}
......@@ -9,8 +9,8 @@
<packaging>pom</packaging>
<properties>
<node.version>v10.16.3</node.version>
<npm.version>6.9.0</npm.version>
<node.version>v14.17.3</node.version>
<npm.version>6.14.13</npm.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
......
......@@ -7,9 +7,10 @@
"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"
"node-sass": "6.0.1",
"postcss-cli": "8.3.1",
"postcss": "8.3.6",
"autoprefixer": "10.3.1",
"bootstrap-sass": "3.4.1"
}
}
......@@ -2,17 +2,15 @@
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>
<parent>
<groupId>org.bonitasoft.distrib</groupId>
<artifactId>resources</artifactId>
<version>7.13.0-SNAPSHOT</version>
</parent>
<groupId>org.bonitasoft.distrib</groupId>
<artifactId>bootstrap-default-theme</artifactId>
<version>7.13.0-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
<node.version>v10.16.3</node.version>
<npm.version>6.9.0</npm.version>
<node.version>v14.17.3</node.version>
<npm.version>6.14.13</npm.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
......@@ -22,7 +20,7 @@
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.7.5</version>
<version>1.12.0</version>
<configuration>
<installDirectory>${session.executionRootDirectory}</installDirectory>
<nodeVersion>${node.version}</nodeVersion>
......
Supports Markdown
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