From bda5d446f1d4acb8b87fd1244f52ea85e8cec779 Mon Sep 17 00:00:00 2001 From: Quentin Date: Fri, 23 Aug 2024 18:54:47 +0200 Subject: [PATCH] Tikui: new organism (Project actions) --- .../organism/landscape/landscape.mixin.pug | 24 ++----------------- .../modules-patch/modules-patch.mixin.pug | 3 ++- src/main/style/organism/organism.pug | 4 +++- .../project-actions/project-actions.code.pug | 3 +++ .../project-actions/project-actions.md | 1 + .../project-actions/project-actions.mixin.pug | 21 ++++++++++++++++ .../project-actions.render.pug | 4 ++++ 7 files changed, 36 insertions(+), 24 deletions(-) create mode 100644 src/main/style/organism/project-actions/project-actions.code.pug create mode 100644 src/main/style/organism/project-actions/project-actions.md create mode 100644 src/main/style/organism/project-actions/project-actions.mixin.pug create mode 100644 src/main/style/organism/project-actions/project-actions.render.pug diff --git a/src/main/style/organism/landscape/landscape.mixin.pug b/src/main/style/organism/landscape/landscape.mixin.pug index cc153cb57c1..e2708f13e2d 100644 --- a/src/main/style/organism/landscape/landscape.mixin.pug +++ b/src/main/style/organism/landscape/landscape.mixin.pug @@ -1,6 +1,6 @@ -include /atom/icon/icon.mixin.pug include /organism/module-properties/module-properties.mixin.pug include /organism/landscape-module/landscape-module.mixin.pug +include /organism/project-actions/project-actions.mixin.pug mixin jhlite-landscape .jhipster-landscape.jhlite-menu-content-template @@ -51,24 +51,4 @@ mixin jhlite-landscape .jhlite-vertical-space--line +jhlite-module-properties .jhlite-side-menu--slot - // TODO: ProjectActionsVue - .jhipster-side-form--actions - .jhlite-vertical-space.-paragraph - // SLOT - .jhlite-vertical-space--line - button.jhlite-button.-block - +jhlite-icon('play-circled') - span  Apply new - .jhlite-vertical-space--line - button.jhlite-button.-block - +jhlite-icon('play-circled') - span  Apply selected - // END SLOT - .jhlite-vertical-space--line - button.jhlite-button.-block - +jhlite-icon('code') - span  Format - .jhlite-vertical-space--line - button.jhlite-button.-block - +jhlite-icon('download') - span  Download + +jhlite-project-actions diff --git a/src/main/style/organism/modules-patch/modules-patch.mixin.pug b/src/main/style/organism/modules-patch/modules-patch.mixin.pug index da3a1aa0445..3492098d7d0 100644 --- a/src/main/style/organism/modules-patch/modules-patch.mixin.pug +++ b/src/main/style/organism/modules-patch/modules-patch.mixin.pug @@ -2,6 +2,7 @@ include /atom/icon/icon.mixin.pug include /molecule/tag-filter/tag-filter.mixin.pug include /organism/module-parameters/module-parameters.mixin.pug include /organism/module-properties/module-properties.mixin.pug +include /organism/project-actions/project-actions.mixin.pug mixin jhlite-modules-patch .jhipster-modules-patch.jhlite-menu-content-template @@ -35,4 +36,4 @@ mixin jhlite-modules-patch .jhlite-side-menu--slot.-expand +jhlite-module-properties .jhlite-side-menu--slot - // TODO: ProjectActionsVue + +jhlite-project-actions diff --git a/src/main/style/organism/organism.pug b/src/main/style/organism/organism.pug index 10465c4931e..b772faf30ea 100644 --- a/src/main/style/organism/organism.pug +++ b/src/main/style/organism/organism.pug @@ -25,11 +25,13 @@ block content .tikui-vertical-spacing--line include:componentDoc(height=230) module-parameters/module-parameters.md .tikui-vertical-spacing--line - include:componentDoc(height=700) modules-patch/modules-patch.md + include:componentDoc(height=870) modules-patch/modules-patch.md .tikui-vertical-spacing--line include:componentDoc(height=700) module-patch-loader/module-patch-loader.md .tikui-vertical-spacing--line include:componentDoc(height=600) module-properties/module-properties.md + .tikui-vertical-spacing--line + include:componentDoc(height=230) project-actions/project-actions.md .tikui-vertical-spacing--line include:componentDoc(height=300) side-menu/side-menu.md .tikui-vertical-spacing--line diff --git a/src/main/style/organism/project-actions/project-actions.code.pug b/src/main/style/organism/project-actions/project-actions.code.pug new file mode 100644 index 00000000000..ec84c4ade40 --- /dev/null +++ b/src/main/style/organism/project-actions/project-actions.code.pug @@ -0,0 +1,3 @@ +include project-actions.mixin.pug + ++jhlite-project-actions diff --git a/src/main/style/organism/project-actions/project-actions.md b/src/main/style/organism/project-actions/project-actions.md new file mode 100644 index 00000000000..7a388781a5d --- /dev/null +++ b/src/main/style/organism/project-actions/project-actions.md @@ -0,0 +1 @@ +## Project actions diff --git a/src/main/style/organism/project-actions/project-actions.mixin.pug b/src/main/style/organism/project-actions/project-actions.mixin.pug new file mode 100644 index 00000000000..407241403dc --- /dev/null +++ b/src/main/style/organism/project-actions/project-actions.mixin.pug @@ -0,0 +1,21 @@ +include /atom/icon/icon.mixin.pug + +mixin jhlite-project-actions + .jhipster-side-form--actions + .jhlite-vertical-space.-paragraph + .jhlite-vertical-space--line + button.jhlite-button.-block + +jhlite-icon('play-circled') + span  Apply new + .jhlite-vertical-space--line + button.jhlite-button.-block + +jhlite-icon('play-circled') + span  Apply selected + .jhlite-vertical-space--line + button.jhlite-button.-block + +jhlite-icon('code') + span  Format + .jhlite-vertical-space--line + button.jhlite-button.-block + +jhlite-icon('download') + span  Download diff --git a/src/main/style/organism/project-actions/project-actions.render.pug b/src/main/style/organism/project-actions/project-actions.render.pug new file mode 100644 index 00000000000..38187267639 --- /dev/null +++ b/src/main/style/organism/project-actions/project-actions.render.pug @@ -0,0 +1,4 @@ +extends /layout + +block body + include project-actions.code.pug