add 7.0.0.0 sourceGuardian PHP 8

This commit is contained in:
2024-02-09 18:33:48 +01:00
commit a9c6407c4f
444 changed files with 32491 additions and 0 deletions

13
build/Gruntfile.js Normal file
View File

@ -0,0 +1,13 @@
module.exports = function(grunt) {
// measures the time each task takes
require('time-grunt')(grunt);
var path = require('path');
// load grunt config
require('load-grunt-config')(grunt, {
configPath: path.join(process.cwd(), 'grunt')
});
};

40
build/README.md Normal file
View File

@ -0,0 +1,40 @@
# rebuild assets
All module related CSS/JavaScript files can be found in `build` directory. To regenerate the modules assets, the `grunt` tasks should be used. Please install `grunt` and run grunt's default task to regenerate all minimized `css` and `js` files:
1. To use `grunt`, `npm` is required. Check `nodejs` website for installation instructions (https://nodejs.org/en/download/package-manager/). Please make sure you have the latest version of `npm` installed (run `npm install -g npm` to update).
2. Go to "build" directory and install `grunt` and all related `grunt` plugins:
```
npm install
```
3. Try to run `grunt --version`. If the message "Command not found" appears, install grunt-cli globally:
```
npm install -g grunt-cli
```
4. The module-specific LESS/SASS files use the LESS/SASS variables of the shops Flow or Wave theme.
If the LESS/SASS files of the parent theme are missing, re-install it with Composer and the `--prefer-source` option:
- delete the desired package in the vendor directory
- reinstall it with "composer update oxid-esales/*-theme --prefer-source"
If you have customized these, you may need to recreate the module assets. Please note, that CSS and JavaScript files were overwritten by module updates. Then run the generation again or better store your customizations in own files.
5. Compile assets from sources (Wave, Flow or Azure theme or its childs)
Make a full checkout (not an export) of the relevant tag from themes repository at [Github](https://github.com/OXID-eSales/) and copy additional files (especially `build` folder, `Gruntfile.js` and `packages.json`) to Application/views/wave or install theme with prefer-dist option in Composer.
Now it's possible to regenerate module assets by running Grunts default task (`production`) while being in "build" directory:
```
grunt
```
Optionally use one of the following Grunt tasks
- `grunt production`
- `grunt development` (generate unminified assets with source maps instead)

13
build/grunt/aliases.yaml Normal file
View File

@ -0,0 +1,13 @@
production:
# - "jshint:module"
- "less:module"
- "less:module_unminified"
- "uglify:module"
development:
- "less:module_sourcemap"
- "less:module_unminified"
- "uglify:module"
default:
- "production"

18
build/grunt/jshint.js Normal file
View File

@ -0,0 +1,18 @@
module.exports = {
options: {
curly: true,
eqeqeq: false,
eqnull: true,
browser: true,
globals: {
jQuery: true
}
},
module: {
src: [
"origin/js/*.js"
]
}
};

50
build/grunt/less.js Normal file
View File

@ -0,0 +1,50 @@
module.exports = {
options: {
yuicompress: true,
optimization: 2,
plugins: [
new (require('less-plugin-autoprefix'))({
browsers: [
"last 10 versions",
"> 0.2%",
"> 0.1% in DE"
]
})
]
},
module: {
options: {
sourceMap: false,
sourceMapFileInline: false,
compress: true
},
files: {
"../out/admin/src/d3_mod_cfg.min.css": "origin/less/styles_admin.less"
}
},
module_sourcemap: {
options: {
sourceMap: true,
sourceMapFileInline: true,
compress: true
},
files: {
"../out/admin/src/d3_mod_cfg.min.css": "origin/less/styles_admin.less"
}
},
module_unminified: {
options: {
sourceMap: false,
sourceMapFileInline: false,
compress: false
},
files: {
"../out/admin/src/d3_mod_cfg.css": "origin/less/styles_admin.less"
}
}
};

22
build/grunt/uglify.js Normal file
View File

@ -0,0 +1,22 @@
module.exports = {
options: {
preserveComments: 'some'
},
module: {
options: {
sourceMap: false
},
files: [
{
expand: true,
src: "*.js",
cwd: "origin/js/",
dest: "../out/admin/src/js/",
ext: ".min.js",
extDot: "last"
}
]
}
};

8
build/grunt/watch.js Normal file
View File

@ -0,0 +1,8 @@
module.exports = {
development: {
files: [ "origin/**/*.js", "origin/**/*.less" ],
tasks: [ "development" ]
}
};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

View File

@ -0,0 +1,12 @@
/**
* This Software is the property of Data Development and is protected
* by copyright law - it is NOT Freeware.
* Any unauthorized use of this software without a valid license
* is a violation of the license agreement and will be prosecuted by
* civil and criminal law.
* https://www.d3data.de
*
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
* @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
* @link http://www.oxidmodule.com
*/

View File

@ -0,0 +1,3 @@
// @d3_oxid_path: "../../../../../../Application/views/@{d3_current_theme_folder}/build/less";
// @import (optional, reference) "@{d3_oxid_path}/flow";

View File

@ -0,0 +1,129 @@
.d3loader-1 {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
.d3loader-circle {
width: 5rem;
height: 5rem;
border: solid 0.5rem #f9f9f9;
border-radius: 50%;
border-right: solid 0.7rem #006ab4;
animation: spinner-loader-1 2s infinite;
}
}
@keyframes spinner-loader-1 {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}
/*
<h1>Spinner</h1>
<div class="d3loader-1">
<div class="d3loader-circle"></div>
</div>
*/
.d3loader-2 {
display: flex;
justify-content: center;
align-items: center;
position: relative;
.d3loader-spinner {
position: relative;
width: 10rem;
height: 10rem;
.d3loader-circle-1,
.d3loader-circle-2,
.d3loader-circle-3 {
position: absolute;
border-radius: 50%;
border: transparent 0.3rem solid;
border-right: @d3_shopcolor_ee 0.3rem solid;
}
.d3loader-circle-1 {
top: 0.5rem;
left: 0.5rem;
width: 9rem;
height: 9rem;
animation: spinner-loader-2 1.5s infinite;
}
.d3loader-circle-2 {
top: 1.5rem;
left: 1.5rem;
width: 7rem;
height: 7rem;
border-right-color: @d3_shopcolor_pe;
animation: spinner-loader-2 1.5s 200ms infinite;
}
.d3loader-circle-3 {
top: 2.5rem;
left: 2.5rem;
width: 5rem;
height: 5rem;
border-right-color: @d3_shopcolor_ce;
animation: spinner-loader-2 1.5s 350ms infinite;
}
}
&.small {
.d3loader-spinner {
width: 5rem;
height: 5rem;
.d3loader-circle-1 {
top: 0.25rem;
left: 0.25rem;
width: 4.5rem;
height: 4.5rem;
border-right-width: 0.2rem;
}
.d3loader-circle-2 {
top: 0.75rem;
left: 0.75rem;
width: 3.5rem;
height: 3.5rem;
border-right-width: 0.2rem;
}
.d3loader-circle-3 {
top: 1.25rem;
left: 1.25rem;
width: 2.5rem;
height: 2.5rem;
border-right-width: 0.2rem;
}
}
}
}
@keyframes spinner-loader-2 {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}
/*
<div class="d3loader-2 small">
<div class="d3loader-spinner">
<div class="d3loader-circle-1"></div>
<div class="d3loader-circle-2"></div>
<div class="d3loader-circle-3"></div>
</div>
</div>
*/

View File

@ -0,0 +1,39 @@
.colored-icon-button(@color, @lightColor, @inactiveColor) {
background: @color;
input,
button {
background: @color;
}
&:hover,
&:hover input,
&:hover button {
background: @lightColor;
}
&_inactive,
&_inactive input,
&_inactive button {
background: @inactiveColor;
}
&_inactive:hover,
&_inactive:hover input,
&_inactive:hover button,
&_inactive:active,
&_inactive:active input,
&_inactive:active button {
margin: 0 auto 2px auto;
box-shadow: none;
}
}
.d3lighten(@color) {
@lightColor: lighten(@color, 14%);
}
.d3desaturate(@color) {
@boolLight: boolean(lightness(@color) > 55%);
@lightenvalue: if(@boolLight, 15%, 30%);
@desatColor: lighten(desaturate(@color, 100%), @lightenvalue);
}

View File

@ -0,0 +1,31 @@
.text-shadow (@string: 0 1px 3px rgba(0, 0, 0, 0.25)) {
text-shadow: @string;
}
.box-shadow (@string) {
-webkit-box-shadow: @string;
-moz-box-shadow: @string;
box-shadow: @string;
}
.box-sizing (@type: border-box) {
-webkit-box-sizing: @type;
-moz-box-sizing: @type;
box-sizing: @type;
}
.border-radius (@radius: 5px) {
-webkit-border-radius: @radius;
-moz-border-radius: @radius;
border-radius: @radius;
-moz-background-clip: padding;
-webkit-background-clip: padding-box;
background-clip: padding-box;
}
.opacity (@opacity: 0.5) {
-webkit-opacity: @opacity;
-moz-opacity: @opacity;
opacity: @opacity;
}

View File

@ -0,0 +1,27 @@
// *** paths ***
@d3_imgpath_bg: "../bg";
@d3_imgpath_img: "../../img";
// *** colors ***
@d3_color_blue: #028fe8;
@d3_color_green: #1db11a;
@d3_color_yellow: #dbc457;
@d3_color_red: #ff1212;
@d3_color_orange: #ff9703;
@d3_color_unzer: #fc1154;
@d3_color_white: #FFFFFF;
@d3_color_gray_light: #E2E2E2;
@d3_color_gray_medium: #999;
@d3_color_gray_dark: #545454;
@d3_color_gray_shadow: #AAA;
@d3_color_gray_disabled: #BBB;
@d3_color_black: #000;
@d3_transparency_shadow: 60%;
@d3_shopcolor_ee: #006ab4;
@d3_shopcolor_pe: #c02124;
@d3_shopcolor_ce: #ff3600;

View File

@ -0,0 +1,10 @@
@import (inline) "ressources/copyright.less";
@import "ressources/includes";
@import "ressources/mixins_lib";
@import "ressources/variables";
@import "ressources/mixins";
@import "ressources/loaders";
@import "layout/default";
@import "themes/admin";

View File

@ -0,0 +1,5 @@
@import "admin_xs";
@import "admin_sm";
@import "admin_md";
@import "admin_lg";

View File

View File

View File

View File

@ -0,0 +1,301 @@
.d3modcfg_btn {
.colored-icon-button(@d3_color_blue, .d3lighten(@d3_color_blue)[@lightColor], .d3desaturate(@d3_color_blue)[@desatColor]);
display: block;
border: 0 none;
float: left;
height: 22px;
line-height: 1;
margin: 0 auto 2px auto;
padding: 0;
width: auto;
max-width: 300px;
position: relative;
white-space: normal;
-webkit-box-shadow: 2px 2px 0 0 @d3_color_gray_shadow;
-moz-box-shadow: 2px 2px 0 0 @d3_color_gray_shadow;
box-shadow: 2px 2px 0 0 @d3_color_gray_shadow;
&[disabled] {
background-color: @d3_color_gray_medium !important;
margin: 0 auto 2px auto;
box-shadow: none;
}
&:hover {
-webkit-box-shadow: 1px 1px 0 0 @d3_color_gray_shadow;
-moz-box-shadow: 1px 1px 0 0 @d3_color_gray_shadow;
box-shadow: 1px 1px 0 0 @d3_color_gray_shadow;
margin: 1px auto 1px 1px;
}
&:active {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
margin: 2px auto 0 2px;
}
&.fixed {
margin: 0;
}
input,
button {
border: 0 none;
color: @d3_color_white;
cursor: pointer;
font-weight: bold;
font: 12px Trebuchet MS, Tahoma, Verdana, Arial, Helvetica, sans-serif;
height: 22px;
line-height: 1;
padding: 0 6px;
width: 100%;
margin: 0;
}
&.icon {
input {
padding-left: 23px;
}
button {
line-height: 1.7;
i,
svg {
float: left;
padding-right: 6px;
font-size: 1.3em;
line-height: 1.3em;
margin-top: 3px;
}
}
div,
span {
float: left;
height: 20px;
position: absolute;
top: 0;
width: 20px;
margin: 1px 0 1px 3px;
left: 0;
&.fa {
background: none;
}
}
&.d3color-blue {
.colored-icon-button(@d3_color_blue, .d3lighten(@d3_color_blue)[@lightColor], .d3desaturate(@d3_color_blue)[@desatColor]);
}
&.d3color-green {
.colored-icon-button(@d3_color_green, .d3lighten(@d3_color_green)[@lightColor], .d3desaturate(@d3_color_green)[@desatColor]);
}
&.d3color-yellow {
.colored-icon-button(@d3_color_yellow, .d3lighten(@d3_color_yellow)[@lightColor], .d3desaturate(@d3_color_yellow)[@desatColor]);
}
&.d3color-red {
.colored-icon-button(@d3_color_red, .d3lighten(@d3_color_red)[@lightColor], .d3desaturate(@d3_color_red)[@desatColor]);
}
&.d3color-orange {
.colored-icon-button(@d3_color_orange, .d3lighten(@d3_color_orange)[@lightColor], .d3desaturate(@d3_color_orange)[@desatColor]);
}
}
button {
&[disabled],
&[disabled="disabled"] {
&:extend(.d3modcfg_btn[disabled]);
cursor: auto;
}
&.disabled {
&:extend(.d3modcfg_btn[disabled]);
}
}
input {
&[disabled],
&[disabled="disabled"] {
&:extend(.d3modcfg_btn[disabled]);
&:extend(.d3modcfg_btn button[disabled]);
}
&.disabled {
&:extend(.d3modcfg_btn[disabled]);
}
}
}
.svg-inline--fa {
&.d3fa-color-disabled {
color: @d3_color_gray_disabled;
}
&.d3fa-color-blue {
color: @d3_color_blue;
}
&.d3fa-color-green {
color: @d3_color_green;
}
&.d3fa-color-red {
color: @d3_color_red;
}
&.d3fa-color-orange {
color: @d3_color_orange;
}
&.d3fa-color-unzer {
color: @d3_color_unzer;
}
&.d3fa-17x {
font-size: 1.7em;
}
}
.fa {
&.fa-d3color-disabled {
&:extend(.svg-inline--fa.d3fa-color-disabled);
}
&.fa-d3color-blue {
&:extend(.svg-inline--fa.d3fa-color-blue);
}
&.fa-d3color-green {
&:extend(.svg-inline--fa.d3fa-color-green);
}
&.fa-d3color-red {
&:extend(.svg-inline--fa.d3fa-color-red);
}
&.fa-d3color-orange {
&:extend(.svg-inline--fa.d3fa-color-orange);
}
&.fa-d3color-unzer {
&:extend(.svg-inline--fa.d3fa-color-unzer);
}
&.fa-17x {
&:extend(.svg-inline--fa.d3fa-17x);
}
}
#mask, #popup, #popup2 {
display: none;
visibility: hidden;
}
#mask.on {
z-index: 1500;
width: 100%;
visibility: visible;
top: 0;
position: fixed;
opacity: 0.7;
left: 0;
height: 100%;
display: block;
background-color: @d3_color_white;
cursor: wait;
}
#popup.on,
#popup2.on {
z-index: 2000;
width: auto;
visibility: visible;
top: 50%;
position: fixed;
padding: 60px 50px;
margin-top: -75px;
margin-left: -190px;
left: 50%;
height: 50px;
display: block;
border: 2px solid @d3_color_blue;
background-color: @d3_color_white;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
cursor: wait;
span {
font-weight: bold;
line-height: 4;
}
}
#popup2.on {
border: none;
background-color: transparent;
height: 10rem;
top: 40%;
&.small {
height: 5rem;
}
}
.extension_error, .extension_warning, .extension_info, .extension_notice {
border: 2px solid darkred;
background-color: lightPink;
text-align: center;
padding: 3px 10px;
font-weight: bold;
white-space: normal;
margin-top: 7px;
margin-bottom: 7px;
}
.extension_warning {
border-color: BurlyWood;
background-color: lightyellow;
}
.extension_info {
border-color: darkgreen;
background-color: lightgreen;
}
.extension_notice {
border-color: black;
background-color: #EEE;
}
.groupExp dd.spacer {
clear: both;
height: 1px;
overflow: hidden;
}
.groupExp div a.rc span {
background: url("../../../../../../out/admin/src/bg/grouping.gif") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
color: #535353;
padding-left: 15px;
}
.zero_placeholder {
clear: both;
float: none;
height: 0;
line-height: 0.1pt;
}
.act .rc b i.fa {
color: @d3_color_white;
}
button.fa {
border: none;
background-color: transparent;
}
.fa-d3:before {
content: "\f2e1";
}
.fa-d3unzer:before {
content: "\f2e2";
}
html#nav ul li > a.rc b {
padding-right: 0 !important;
}

19
build/package.json Normal file
View File

@ -0,0 +1,19 @@
{
"name": "d3modcfg_lib",
"version": "1.0.0",
"description": "",
"main": "Gruntfile.js",
"keywords": [],
"author": "D3 Data Development (Inh. Thomas Dartsch)",
"devDependencies": {
"grunt": "^1.3.0",
"grunt-cli": "^1.3.2",
"grunt-contrib-jshint": "^0.11.2",
"grunt-contrib-less": "^2.0.0",
"grunt-contrib-uglify": "^5.0.0",
"grunt-contrib-watch": "^1.1.0",
"less-plugin-autoprefix": "^1.5.1",
"load-grunt-config": "^1.0.2",
"time-grunt": "^1.1.1"
}
}