mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-26 19:15:09 +00:00
* WB * Push * More responsive * Update headerContent.jelly * Push * Update logo.jelly * Update _page-header.scss * Update _page-header.scss * Update header * Tidy up breadcrumbs * Tidy up focus * Update _breadcrumbs.scss * Update configure.jelly * push * Add badges * Tidy * Push * Update headerContent.jelly * Update ManageJenkinsAction.java * Update headerContent.jelly * Working! * WB * Tidy up * Fixes * Update sidepanel.jelly * Lint * Tidy up * Update ManageJenkinsAction.java * Simplify * Update _side-panel-tasks.scss * Update _side-panel-tasks.scss * Update UserAction.java * Update Jenkins.java * Add border to account image * Tidy up avatars * Update _side-panel-tasks.scss * Init * Tidy up * Hide behind flag * Update sidepanel.jelly * Push * Tidy up * Update logo.jelly * Accessibility * Update _breadcrumbs-new.scss * Fix dropdown theme * Update _breadcrumbs.scss * Update _header.scss * Update ManageJenkinsAction.java * Remove flag * Tidy up * Update with HeaderAction * Revert "Update with HeaderAction" This reverts commit2ea0b1f867. * Tidy * Update RootAction.java * Update _breadcrumbs.scss * Push * Update _header.scss * Update _header.scss * Fix invisible actions not actually being invisible, make avatar huge to please Tim * Tidy * Push * Fix breadcrumbs + notification * Update jumplist.jelly * Getting there 🚀 * WB * Update index.jelly * Update headerContent.jelly * Responsive * Push * Push * Push * Update index.js * Push * Tidy up * Tidy up * Tidy * Update logo.jelly * Delete NewHeaderUserExperimentalFlag.java * Lint * Update index.js * Update index.js * Fix some tests * Update headerContent.jelly * Update headerContent.jelly * Remove bravo test - need to confirm this * Update Security3349Test.java * Update pom.xml * Fix SpotBugs + i18n * Add doc for header scroll, support prefers contrast * Add overflow menu for actions, improve accessibility * Update actions-overflow.js * Fix tests + accessibility * Fix JS * Update breadcrumbs-overflow.js * Update breadcrumbs-overflow.js * Add breadcrumb menu on hover, fix issues on mobile * Update _breadcrumbs.scss * i18n * Update pom.xml * Add tab support for user dropdown * Squashed commit of the following: commit847981ebcbMerge:0ea6dcff0e23f2b9ef59Author: Kris Stern <krisstern@outlook.com> Date: Wed Feb 26 09:16:52 2025 +0800 Merge branch 'master' into add-groups-to-command-palette commit0ea6dcff0eMerge:c0777dbe7968425e2cd4Author: Kris Stern <krisstern@outlook.com> Date: Wed Feb 26 01:06:33 2025 +0800 Merge branch 'master' into add-groups-to-command-palette commitc0777dbe79Merge:1638afe17ec37293c52dAuthor: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Mon Feb 24 13:40:35 2025 +0000 Merge branch 'master' into add-groups-to-command-palette commit1638afe17eMerge:c987a9e536b97764d3fdAuthor: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Fri Feb 21 11:49:03 2025 +0000 Merge branch 'master' into add-groups-to-command-palette commitc987a9e536Merge:f909eec0d416748f4413Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Thu Feb 20 08:17:19 2025 +0000 Merge branch 'master' into add-groups-to-command-palette commitf909eec0d4Merge:85eedb7e88217b0f5742Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Wed Feb 19 16:12:45 2025 +0000 Merge branch 'master' into add-groups-to-command-palette commit85eedb7e88Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Wed Feb 19 16:11:24 2025 +0000 Move to Item commit8f4f117bacAuthor: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Wed Feb 19 15:43:50 2025 +0000 Tighten up animations + improve contrast commitd7b7d6388dMerge:8750f7cb924fa61274f9Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Wed Feb 19 08:50:45 2025 +0000 Merge branch 'master' into add-groups-to-command-palette commit8750f7cb92Merge:7b527340a2a05c33f797Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Tue Feb 18 21:42:31 2025 +0000 Merge branch 'master' into add-groups-to-command-palette commit7b527340a2Merge:e2c133d1283505fb3540Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Mon Feb 17 20:59:02 2025 +0000 Merge branch 'master' into add-groups-to-command-palette commite2c133d128Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Sun Feb 16 18:23:14 2025 +0000 Update require-changelog-label.yml commitd32a61c1eaAuthor: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Sun Feb 16 17:11:18 2025 +0000 Update _theme.scss commit42ecfcac5cAuthor: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Sun Feb 16 17:10:48 2025 +0000 Rename to Items commitcc3779171aMerge:0f1cb2187c2b9d4d62a6Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Sun Feb 16 17:10:25 2025 +0000 Merge branch 'master' into add-groups-to-command-palette commit0f1cb2187cMerge:04dc6cd2229474c89bf1Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Wed Feb 12 20:42:01 2025 +0000 Merge branch 'master' into add-groups-to-command-palette commit04dc6cd222Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Tue Feb 11 17:06:31 2025 +0000 Reduce spacing a touch, fix icon spacing commit0ab3665587Merge:7c9e172b2f848ac9b66aAuthor: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Tue Feb 11 14:44:03 2025 +0000 Merge branch 'master' into add-groups-to-command-palette commit7c9e172b2fAuthor: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Tue Feb 11 11:23:27 2025 +0000 Update Messages.properties commitec6a5e5ee0Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Tue Feb 11 08:51:16 2025 +0000 Fix test commit14a64885a2Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Mon Feb 10 16:44:39 2025 +0000 Tidy up commit46a9e5681aAuthor: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Mon Feb 10 16:28:15 2025 +0000 Tidy commitd7270b1fa4Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Mon Feb 10 16:06:04 2025 +0000 Tidy commitb2da3f8d39Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Mon Feb 10 16:03:37 2025 +0000 Tidy up commitb746fba008Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Mon Feb 10 15:53:53 2025 +0000 Move to extensionpoint commit7827304ae1Merge:cac127d119d03a2e11c9Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Mon Feb 10 15:45:28 2025 +0000 Merge branch 'master' into add-groups-to-command-palette commitcac127d119Merge:add75bf6a9e3e3c45270Author: Tim Jacomb <21194782+timja@users.noreply.github.com> Date: Mon Jan 13 11:03:10 2025 +0000 Merge branch 'jenkinsci:master' into add-groups-to-command-palette commitadd75bf6a9Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Sat Jan 11 19:02:52 2025 +0000 Update _command-palette.scss commiteb4073f4fbAuthor: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Sat Jan 11 18:59:37 2025 +0000 Tidy up commit323e48fddfAuthor: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Sat Jan 11 18:47:34 2025 +0000 Update Job.java commit3cbdfbc4b5Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Sat Jan 11 18:47:13 2025 +0000 Update _command-palette.scss commit8fecf0d880Merge:428e826fcd331c7685caAuthor: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Sat Jan 11 18:45:30 2025 +0000 Merge branch 'master' into add-groups-to-command-palette commit428e826fcdMerge:5657369d95f1b6d31272Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Mon Dec 16 20:53:15 2024 +0000 Merge branch 'master' into add-groups-to-command-palette commit5657369d95Merge:26f17a277f674d5085c3Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Fri Dec 13 09:46:35 2024 +0000 Merge branch 'add-icons-to-command-palette' into add-groups-to-command-palette commit674d5085c3Merge:809d2e61207020e80af8Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Fri Dec 13 09:42:59 2024 +0000 Merge branch 'master' into add-icons-to-command-palette commit26f17a277fAuthor: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Wed Dec 11 22:10:56 2024 +0000 Update _command-palette.scss commit2b6ffc85f3Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Wed Dec 11 22:09:09 2024 +0000 Init commit809d2e6120Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Wed Dec 11 21:37:47 2024 +0000 Make iconXml private, rename to icon commit3d45ca7c39Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Wed Dec 11 21:29:27 2024 +0000 Add group field commit80f24cbfdcAuthor: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Wed Dec 11 21:25:23 2024 +0000 Init commit1b9faa8fb0Merge:d6868c970a26738449cdAuthor: Tim Jacomb <timjacomb1@gmail.com> Date: Wed Dec 11 21:11:56 2024 +0000 Merge branch 'add-icons-to-command-palette' of github.com:janfaracik/jenkins into add-icons-to-command-palette commitd6868c970aAuthor: Tim Jacomb <timjacomb1@gmail.com> Date: Wed Dec 11 21:11:41 2024 +0000 Reword javadoc commit26738449cdAuthor: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Wed Dec 11 21:03:29 2024 +0000 Implement IconSpec in IComputer commit57910109f3Merge:661f99478305ed7560fdAuthor: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Wed Dec 11 20:23:58 2024 +0000 Merge branch 'master' into add-icons-to-command-palette commit661f994783Merge:23570203eadad5ef3266Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Wed Dec 11 20:15:22 2024 +0000 Merge branch 'refine-command-palette' into add-icons-to-command-palette commit23570203eaMerge:436a02b9d3788ae63c50Author: Tim Jacomb <timjacomb1@gmail.com> Date: Wed Dec 11 16:35:43 2024 +0000 Merge branch 'add-icons-to-command-palette' of github.com:janfaracik/jenkins into add-icons-to-command-palette commit436a02b9d3Author: Tim Jacomb <timjacomb1@gmail.com> Date: Wed Dec 11 16:35:24 2024 +0000 Add support for images commita3fdb3e0c7Merge:ea67d6a554d22cc2fa3cAuthor: Tim Jacomb <timjacomb1@gmail.com> Date: Wed Dec 11 15:27:12 2024 +0000 Merge branch 'master' into add-icons-to-command-palette commit788ae63c50Merge:ea67d6a554d22cc2fa3cAuthor: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Wed Dec 11 10:00:04 2024 +0000 Merge branch 'jenkinsci:master' into add-icons-to-command-palette commitdad5ef3266Merge:cc63c9c8e5d22cc2fa3cAuthor: Tim Jacomb <21194782+timja@users.noreply.github.com> Date: Wed Dec 11 09:07:05 2024 +0000 Merge branch 'master' into refine-command-palette commitea67d6a554Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Tue Dec 10 22:26:16 2024 +0000 Update Search.java commita9aadbab30Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Tue Dec 10 22:25:40 2024 +0000 Revert "Update Search.java" This reverts commit24837ea667. commit24837ea667Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Tue Dec 10 21:59:03 2024 +0000 Update Search.java commitd43a8d3b2fAuthor: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Tue Dec 10 21:54:23 2024 +0000 Init commitcc63c9c8e5Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Tue Dec 10 21:37:09 2024 +0000 Refine command palette * Move logo * Revert "Move logo" This reverts commit25647d6a04. * Move actions to taglib * Split logo from breadcrumbs * Fix sticky app bar * Update _page-header.scss * Update HudsonTest.java * Update _page-header.scss * Move breadcrumb loading above setting mode to header * Reduce header height * Increase logo height * Move getActions to Header * Update header avatar with jenkins-avatar * Squashed commit of the following: commit5060044fcdMerge:0ea3e49fa12fb523ffe3Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Sat Mar 22 17:56:53 2025 +0000 Merge branch 'master' into improve-tooltips-dropdowns commit0ea3e49fa1Merge:3dd0b9f421a1f9d3e7e2Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Sat Mar 22 12:24:49 2025 +0000 Merge branch 'master' into improve-tooltips-dropdowns commit3dd0b9f421Merge:7f5f814aa573185b257dAuthor: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Fri Mar 21 09:57:52 2025 +0000 Merge branch 'master' into improve-tooltips-dropdowns commit7f5f814aa5Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Thu Mar 20 10:26:32 2025 +0000 Update _dropdowns.scss commite9eee3c0a4Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Thu Mar 20 10:25:35 2025 +0000 Update _theme.scss commitce11fd1fb3Author: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Thu Mar 20 10:22:07 2025 +0000 Init * Delete idea files * Update core/src/main/java/jenkins/views/Header.java Co-authored-by: Markus Winter <m.winter@sap.com> * Sort actions manually in header * Update markup and CSS * Handle that dodgy SVG messing up the label * Fix new computer missing sidepanel * Update core/src/main/resources/lib/layout/header/actions.jelly Co-authored-by: Markus Winter <m.winter@sap.com> * Update core/src/main/java/jenkins/views/Header.java Co-authored-by: Markus Winter <m.winter@sap.com> * Update core/src/main/resources/lib/layout/header/actions.jelly Co-authored-by: Markus Winter <m.winter@sap.com> * Update Header.java --------- Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com> Co-authored-by: Kris Stern <krisstern@outlook.com> Co-authored-by: Markus Winter <m.winter@sap.com>
184 lines
5.5 KiB
JavaScript
184 lines
5.5 KiB
JavaScript
const path = require("path");
|
|
const MiniCSSExtractPlugin = require("mini-css-extract-plugin");
|
|
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
|
|
const RemoveEmptyScriptsPlugin = require("webpack-remove-empty-scripts");
|
|
const { CleanWebpackPlugin: CleanPlugin } = require("clean-webpack-plugin");
|
|
|
|
module.exports = (env, argv) => ({
|
|
mode: "development",
|
|
entry: {
|
|
pluginSetupWizard: [
|
|
path.join(__dirname, "src/main/js/pluginSetupWizard.js"),
|
|
path.join(__dirname, "src/main/scss/pluginSetupWizard.scss"),
|
|
],
|
|
"plugin-manager-ui": [
|
|
path.join(__dirname, "src/main/js/plugin-manager-ui.js"),
|
|
],
|
|
"add-item": [
|
|
path.join(__dirname, "src/main/js/add-item.js"),
|
|
path.join(__dirname, "src/main/js/add-item.scss"),
|
|
],
|
|
"pages/computer-set": [
|
|
path.join(__dirname, "src/main/js/pages/computer-set"),
|
|
],
|
|
"pages/dashboard": [path.join(__dirname, "src/main/js/pages/dashboard")],
|
|
"pages/manage-jenkins/system-information": [
|
|
path.join(
|
|
__dirname,
|
|
"src/main/js/pages/manage-jenkins/system-information",
|
|
),
|
|
],
|
|
app: [path.join(__dirname, "src/main/js/app.js")],
|
|
header: [path.join(__dirname, "src/main/js/components/header/index.js")],
|
|
"pages/cloud-set": [
|
|
path.join(__dirname, "src/main/js/pages/cloud-set/index.js"),
|
|
path.join(__dirname, "src/main/js/pages/cloud-set/index.scss"),
|
|
],
|
|
"pages/manage-jenkins": [
|
|
path.join(__dirname, "src/main/js/pages/manage-jenkins"),
|
|
],
|
|
"pages/register": [path.join(__dirname, "src/main/js/pages/register")],
|
|
"keyboard-shortcuts": [
|
|
path.join(__dirname, "src/main/js/keyboard-shortcuts.js"),
|
|
],
|
|
"sortable-drag-drop": [
|
|
path.join(__dirname, "src/main/js/sortable-drag-drop.js"),
|
|
],
|
|
"section-to-sidebar-items": [
|
|
path.join(__dirname, "src/main/js/section-to-sidebar-items.js"),
|
|
],
|
|
"section-to-tabs": [path.join(__dirname, "src/main/js/section-to-tabs.js")],
|
|
"components/row-selection-controller": [
|
|
path.join(__dirname, "src/main/js/components/row-selection-controller"),
|
|
],
|
|
"pages/project/builds-card": [
|
|
path.join(__dirname, "src/main/js/pages/project/builds-card.js"),
|
|
],
|
|
"simple-page": [path.join(__dirname, "src/main/scss/simple-page.scss")],
|
|
styles: [path.join(__dirname, "src/main/scss/styles.scss")],
|
|
},
|
|
output: {
|
|
path: path.join(__dirname, "war/src/main/webapp/jsbundles"),
|
|
},
|
|
devtool:
|
|
argv.mode === "production"
|
|
? "source-map"
|
|
: "inline-cheap-module-source-map",
|
|
plugins: [
|
|
new RemoveEmptyScriptsPlugin({}),
|
|
new MiniCSSExtractPlugin({
|
|
filename: "[name].css",
|
|
}),
|
|
// Clean all assets within the specified output.
|
|
// It will not clean copied fonts
|
|
new CleanPlugin(),
|
|
],
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.(css|scss)$/,
|
|
use: [
|
|
"style-loader",
|
|
{
|
|
loader: MiniCSSExtractPlugin.loader,
|
|
options: {
|
|
esModule: false,
|
|
},
|
|
},
|
|
{
|
|
loader: "css-loader",
|
|
options: {
|
|
sourceMap: true,
|
|
// ignore the URLS on the base styles as they are picked
|
|
// from the war/src/main/webapp/images dir
|
|
url: {
|
|
filter: (url, resourcePath) => {
|
|
return !resourcePath.includes("styles.scss");
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
loader: "postcss-loader",
|
|
options: {
|
|
sourceMap: true,
|
|
},
|
|
},
|
|
{
|
|
loader: "sass-loader",
|
|
options: {
|
|
sourceMap: true,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
{
|
|
test: /\.(woff(2)?|ttf|eot|svg)(\?v=\d+\.\d+\.\d+)?$/,
|
|
type: "asset/resource",
|
|
generator: {
|
|
filename: "fonts/[name].[ext]",
|
|
},
|
|
},
|
|
{
|
|
test: /\.hbs$/,
|
|
loader: "handlebars-loader",
|
|
options: {
|
|
// The preferred option for adding handlebars helpers is putting them
|
|
// inside this helpers directory
|
|
helperDirs: path.join(__dirname, "src/main/js/handlebars-helpers"),
|
|
precompileOptions: {
|
|
knownHelpersOnly: false,
|
|
// Helpers registered with Handlebars.registerHelper must be listed so that
|
|
// handlebars-loader will expect them when compiling the templates.
|
|
// This helpers cannot be moved to the helpers directory because they are closures
|
|
knownHelpers: [
|
|
"pluginCountForCategory",
|
|
"totalPluginCount",
|
|
"inSelectedPlugins",
|
|
"dependencyCount",
|
|
"eachDependency",
|
|
"ifVisibleDependency",
|
|
],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
test: /\.js$/,
|
|
exclude: /node_modules/,
|
|
loader: "babel-loader",
|
|
},
|
|
],
|
|
},
|
|
optimization: {
|
|
splitChunks: {
|
|
chunks: "async",
|
|
cacheGroups: {
|
|
commons: {
|
|
test: /[\\/]node_modules[\\/]/,
|
|
name: "vendors",
|
|
chunks: "all",
|
|
},
|
|
},
|
|
},
|
|
minimizer: [
|
|
new CssMinimizerPlugin({
|
|
minimizerOptions: {
|
|
preset: [
|
|
"default",
|
|
{
|
|
svgo: { exclude: true },
|
|
},
|
|
],
|
|
},
|
|
}),
|
|
],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "src/main/js"),
|
|
// Needed to be able to register helpers at runtime
|
|
handlebars: "handlebars/runtime",
|
|
},
|
|
},
|
|
});
|