update 2023-05-22 02:53:53

This commit is contained in:
Robot 2023-05-22 02:54:03 +02:00
parent 8619eb0c48
commit 88c5f02183
Signed by: Robot
GPG Key ID: 14DECD44E7E1BB95
2 changed files with 65 additions and 208 deletions

153
README.md
View File

@ -29,7 +29,12 @@ This repository contains an index (see below) of all the approved powers within
- **class JavaScript** | [Details](src/ef6438c4-76db-4aa1-bb15-bc97583bcd2e) | [Code](src/ef6438c4-76db-4aa1-bb15-bc97583bcd2e/code.php) | [Settings](src/ef6438c4-76db-4aa1-bb15-bc97583bcd2e/settings.json) | Super__ef6438c4_76db_4aa1_bb15_bc97583bcd2e__Power
- **Namespace**: [VDM\Minify\Abstraction](#vdm-minify-abstraction)
- **abstract class BasicException** | [Details](src/47448ada-54df-45f3-b05d-1c66c584b1bd) | [Code](src/47448ada-54df-45f3-b05d-1c66c584b1bd/code.php) | [Settings](src/47448ada-54df-45f3-b05d-1c66c584b1bd/settings.json) | Super__47448ada_54df_45f3_b05d_1c66c584b1bd__Power
- **abstract class Minify** | [Details](src/d2b8599a-d5ce-49b1-b992-764bb7d55137) | [Code](src/d2b8599a-d5ce-49b1-b992-764bb7d55137/code.php) | [Settings](src/d2b8599a-d5ce-49b1-b992-764bb7d55137/settings.json) | Super__d2b8599a_d5ce_49b1_b992_764bb7d55137__Power
- **Namespace**: [VDM\Minify\Exceptions](#vdm-minify-exceptions)
- **class FileImportException** | [Details](src/b34dbbeb-89bd-4f01-8bbd-f7ba0fb6280b) | [Code](src/b34dbbeb-89bd-4f01-8bbd-f7ba0fb6280b/code.php) | [Settings](src/b34dbbeb-89bd-4f01-8bbd-f7ba0fb6280b/settings.json) | Super__b34dbbeb_89bd_4f01_8bbd_f7ba0fb6280b__Power
- **class IOException** | [Details](src/44b4a9cf-62e6-48af-ab30-5b3d2715728e) | [Code](src/44b4a9cf-62e6-48af-ab30-5b3d2715728e/code.php) | [Settings](src/44b4a9cf-62e6-48af-ab30-5b3d2715728e/settings.json) | Super__44b4a9cf_62e6_48af_ab30_5b3d2715728e__Power
- **Namespace**: [VDM\Minify\Path](#vdm-minify-path)
- **class Converter** | [Details](src/39f8957f-cc73-4da5-8b60-6cf25d4ab058) | [Code](src/39f8957f-cc73-4da5-8b60-6cf25d4ab058/code.php) | [Settings](src/39f8957f-cc73-4da5-8b60-6cf25d4ab058/settings.json) | Super__39f8957f_cc73_4da5_8b60_6cf25d4ab058__Power
@ -40,154 +45,6 @@ This repository contains an index (see below) of all the approved powers within
- **abstract class Minify** | [Details](src/b591855d-d106-4fe5-90ad-8e706f6267cf) | [Code](src/b591855d-d106-4fe5-90ad-8e706f6267cf/code.php) | [Settings](src/b591855d-d106-4fe5-90ad-8e706f6267cf/settings.json) | Super__b591855d_d106_4fe5_90ad_8e706f6267cf__Power
# Class Diagrams
## VDM Minify
> namespace VDM\Minify
```uml
@startuml
namespace VDM\Minify #Azure {
class Css #Gold {
# $maxImportSize
+ setMaxImportSize()
+ setImportExtensions()
# moveImportsToTop() : string
# combineImports() : string
# importFiles() : string
+ execute() : string
# move() : string
# shortenColors() : string
# shortenFontWeights() : string
# shortenZeroes() : string
# stripEmptyTags() : string
# stripComments()
# stripWhitespace() : string
# extractMath()
# extractCustomProperties()
# canImportBySize() : bool
# canImportByPath() : bool
# getPathConverter() : ConverterInterface
}
class JavaScript #Gold {
# $keywordsReserved
# $keywordsBefore
# $keywordsAfter
# $operatorsBefore
+ execute() : string
# stripComments()
# extractRegex()
# stripWhitespace() : string
# getOperatorsForRegex() : string[]
# getKeywordsForRegex() : string[]
# propertyNotation() : string
# shortenBools() : string
}
}
@enduml
```
## VDM Minify Abstraction
> namespace VDM\Minify\Abstraction
```uml
@startuml
namespace VDM\Minify\Abstraction #DarkCyan {
abstract Minify #Orange {
# $data
# $patterns
+ $extracted
+ __construct()
+ add() : static
+ addFile() : static
+ minify() : string
+ gzip() : string
+ cache() : CacheItemInterface
+ {abstract} execute() : string
# load() : string
# save()
# registerPattern()
# replace() : string
# executeReplacement() : string
# extractStrings()
# restoreExtractedData() : string
# canImportFile() : bool
# openFileForWriting() : resource
# writeToFile()
# {static} str_replace_first()
}
}
@enduml
```
## VDM Minify Path
> namespace VDM\Minify\Path
```uml
@startuml
namespace VDM\Minify\Path #DarkCyan {
class Converter #Gold {
# $from
# $to
+ __construct()
# normalize() : string
# shared() : string
+ convert() : string
# dirname() : string
}
}
@enduml
```
## VDM Minify Path Interfaces
> namespace VDM\Minify\Path\Interfaces
```uml
@startuml
namespace VDM\Minify\Path\Interfaces #Olive {
interface ConverterInterface #Lavender {
+ convert() : string
}
}
@enduml
```
## VDM Joomla Componentbuilder Compiler Utilities
> namespace VDM\Joomla\Componentbuilder\Compiler\Utilities
```uml
@startuml
namespace VDM\Joomla\Componentbuilder\Compiler\Utilities #LightGreen {
abstract Minify #Orange {
+ {static} js() : string
+ {static} css() : string
}
}
@enduml
```
---
```
██╗ ██████╗ ██████╗ ███╗ ███╗██╗ █████╗

View File

@ -1,14 +1,14 @@
{
"47448ada-54df-45f3-b05d-1c66c584b1bd": {
"name": "BasicException",
"type": "abstract class",
"namespace": "VDM\\Minify\\Abstraction",
"code": "src\/47448ada-54df-45f3-b05d-1c66c584b1bd\/code.php",
"power": "src\/47448ada-54df-45f3-b05d-1c66c584b1bd\/code.power",
"settings": "src\/47448ada-54df-45f3-b05d-1c66c584b1bd\/settings.json",
"path": "src\/47448ada-54df-45f3-b05d-1c66c584b1bd",
"spk": "Super__47448ada_54df_45f3_b05d_1c66c584b1bd__Power",
"guid": "47448ada-54df-45f3-b05d-1c66c584b1bd"
"39f8957f-cc73-4da5-8b60-6cf25d4ab058": {
"name": "Converter",
"type": "class",
"namespace": "VDM\\Minify\\Path",
"code": "src\/39f8957f-cc73-4da5-8b60-6cf25d4ab058\/code.php",
"power": "src\/39f8957f-cc73-4da5-8b60-6cf25d4ab058\/code.power",
"settings": "src\/39f8957f-cc73-4da5-8b60-6cf25d4ab058\/settings.json",
"path": "src\/39f8957f-cc73-4da5-8b60-6cf25d4ab058",
"spk": "Super__39f8957f_cc73_4da5_8b60_6cf25d4ab058__Power",
"guid": "39f8957f-cc73-4da5-8b60-6cf25d4ab058"
},
"44b4a9cf-62e6-48af-ab30-5b3d2715728e": {
"name": "IOException",
@ -21,49 +21,16 @@
"spk": "Super__44b4a9cf_62e6_48af_ab30_5b3d2715728e__Power",
"guid": "44b4a9cf-62e6-48af-ab30-5b3d2715728e"
},
"d2b8599a-d5ce-49b1-b992-764bb7d55137": {
"name": "Minify",
"47448ada-54df-45f3-b05d-1c66c584b1bd": {
"name": "BasicException",
"type": "abstract class",
"namespace": "VDM\\Minify\\Abstraction",
"code": "src\/d2b8599a-d5ce-49b1-b992-764bb7d55137\/code.php",
"power": "src\/d2b8599a-d5ce-49b1-b992-764bb7d55137\/code.power",
"settings": "src\/d2b8599a-d5ce-49b1-b992-764bb7d55137\/settings.json",
"path": "src\/d2b8599a-d5ce-49b1-b992-764bb7d55137",
"spk": "Super__d2b8599a_d5ce_49b1_b992_764bb7d55137__Power",
"guid": "d2b8599a-d5ce-49b1-b992-764bb7d55137"
},
"b34dbbeb-89bd-4f01-8bbd-f7ba0fb6280b": {
"name": "FileImportException",
"type": "class",
"namespace": "VDM\\Minify\\Exceptions",
"code": "src\/b34dbbeb-89bd-4f01-8bbd-f7ba0fb6280b\/code.php",
"power": "src\/b34dbbeb-89bd-4f01-8bbd-f7ba0fb6280b\/code.power",
"settings": "src\/b34dbbeb-89bd-4f01-8bbd-f7ba0fb6280b\/settings.json",
"path": "src\/b34dbbeb-89bd-4f01-8bbd-f7ba0fb6280b",
"spk": "Super__b34dbbeb_89bd_4f01_8bbd_f7ba0fb6280b__Power",
"guid": "b34dbbeb-89bd-4f01-8bbd-f7ba0fb6280b"
},
"cc482882-5eef-476c-b835-7b0c5a17c0db": {
"name": "ConverterInterface",
"type": "interface",
"namespace": "VDM\\Minify\\Path\\Interfaces",
"code": "src\/cc482882-5eef-476c-b835-7b0c5a17c0db\/code.php",
"power": "src\/cc482882-5eef-476c-b835-7b0c5a17c0db\/code.power",
"settings": "src\/cc482882-5eef-476c-b835-7b0c5a17c0db\/settings.json",
"path": "src\/cc482882-5eef-476c-b835-7b0c5a17c0db",
"spk": "Super__cc482882_5eef_476c_b835_7b0c5a17c0db__Power",
"guid": "cc482882-5eef-476c-b835-7b0c5a17c0db"
},
"39f8957f-cc73-4da5-8b60-6cf25d4ab058": {
"name": "Converter",
"type": "class",
"namespace": "VDM\\Minify\\Path",
"code": "src\/39f8957f-cc73-4da5-8b60-6cf25d4ab058\/code.php",
"power": "src\/39f8957f-cc73-4da5-8b60-6cf25d4ab058\/code.power",
"settings": "src\/39f8957f-cc73-4da5-8b60-6cf25d4ab058\/settings.json",
"path": "src\/39f8957f-cc73-4da5-8b60-6cf25d4ab058",
"spk": "Super__39f8957f_cc73_4da5_8b60_6cf25d4ab058__Power",
"guid": "39f8957f-cc73-4da5-8b60-6cf25d4ab058"
"code": "src\/47448ada-54df-45f3-b05d-1c66c584b1bd\/code.php",
"power": "src\/47448ada-54df-45f3-b05d-1c66c584b1bd\/code.power",
"settings": "src\/47448ada-54df-45f3-b05d-1c66c584b1bd\/settings.json",
"path": "src\/47448ada-54df-45f3-b05d-1c66c584b1bd",
"spk": "Super__47448ada_54df_45f3_b05d_1c66c584b1bd__Power",
"guid": "47448ada-54df-45f3-b05d-1c66c584b1bd"
},
"70530246-2903-4c02-af9a-61182e4d97b8": {
"name": "Css",
@ -76,16 +43,16 @@
"spk": "Super__70530246_2903_4c02_af9a_61182e4d97b8__Power",
"guid": "70530246-2903-4c02-af9a-61182e4d97b8"
},
"ef6438c4-76db-4aa1-bb15-bc97583bcd2e": {
"name": "JavaScript",
"b34dbbeb-89bd-4f01-8bbd-f7ba0fb6280b": {
"name": "FileImportException",
"type": "class",
"namespace": "VDM\\Minify",
"code": "src\/ef6438c4-76db-4aa1-bb15-bc97583bcd2e\/code.php",
"power": "src\/ef6438c4-76db-4aa1-bb15-bc97583bcd2e\/code.power",
"settings": "src\/ef6438c4-76db-4aa1-bb15-bc97583bcd2e\/settings.json",
"path": "src\/ef6438c4-76db-4aa1-bb15-bc97583bcd2e",
"spk": "Super__ef6438c4_76db_4aa1_bb15_bc97583bcd2e__Power",
"guid": "ef6438c4-76db-4aa1-bb15-bc97583bcd2e"
"namespace": "VDM\\Minify\\Exceptions",
"code": "src\/b34dbbeb-89bd-4f01-8bbd-f7ba0fb6280b\/code.php",
"power": "src\/b34dbbeb-89bd-4f01-8bbd-f7ba0fb6280b\/code.power",
"settings": "src\/b34dbbeb-89bd-4f01-8bbd-f7ba0fb6280b\/settings.json",
"path": "src\/b34dbbeb-89bd-4f01-8bbd-f7ba0fb6280b",
"spk": "Super__b34dbbeb_89bd_4f01_8bbd_f7ba0fb6280b__Power",
"guid": "b34dbbeb-89bd-4f01-8bbd-f7ba0fb6280b"
},
"b591855d-d106-4fe5-90ad-8e706f6267cf": {
"name": "Minify",
@ -97,5 +64,38 @@
"path": "src\/b591855d-d106-4fe5-90ad-8e706f6267cf",
"spk": "Super__b591855d_d106_4fe5_90ad_8e706f6267cf__Power",
"guid": "b591855d-d106-4fe5-90ad-8e706f6267cf"
},
"cc482882-5eef-476c-b835-7b0c5a17c0db": {
"name": "ConverterInterface",
"type": "interface",
"namespace": "VDM\\Minify\\Path\\Interfaces",
"code": "src\/cc482882-5eef-476c-b835-7b0c5a17c0db\/code.php",
"power": "src\/cc482882-5eef-476c-b835-7b0c5a17c0db\/code.power",
"settings": "src\/cc482882-5eef-476c-b835-7b0c5a17c0db\/settings.json",
"path": "src\/cc482882-5eef-476c-b835-7b0c5a17c0db",
"spk": "Super__cc482882_5eef_476c_b835_7b0c5a17c0db__Power",
"guid": "cc482882-5eef-476c-b835-7b0c5a17c0db"
},
"d2b8599a-d5ce-49b1-b992-764bb7d55137": {
"name": "Minify",
"type": "abstract class",
"namespace": "VDM\\Minify\\Abstraction",
"code": "src\/d2b8599a-d5ce-49b1-b992-764bb7d55137\/code.php",
"power": "src\/d2b8599a-d5ce-49b1-b992-764bb7d55137\/code.power",
"settings": "src\/d2b8599a-d5ce-49b1-b992-764bb7d55137\/settings.json",
"path": "src\/d2b8599a-d5ce-49b1-b992-764bb7d55137",
"spk": "Super__d2b8599a_d5ce_49b1_b992_764bb7d55137__Power",
"guid": "d2b8599a-d5ce-49b1-b992-764bb7d55137"
},
"ef6438c4-76db-4aa1-bb15-bc97583bcd2e": {
"name": "JavaScript",
"type": "class",
"namespace": "VDM\\Minify",
"code": "src\/ef6438c4-76db-4aa1-bb15-bc97583bcd2e\/code.php",
"power": "src\/ef6438c4-76db-4aa1-bb15-bc97583bcd2e\/code.power",
"settings": "src\/ef6438c4-76db-4aa1-bb15-bc97583bcd2e\/settings.json",
"path": "src\/ef6438c4-76db-4aa1-bb15-bc97583bcd2e",
"spk": "Super__ef6438c4_76db_4aa1_bb15_bc97583bcd2e__Power",
"guid": "ef6438c4-76db-4aa1-bb15-bc97583bcd2e"
}
}