create-ng-tailwind 2.1.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +55 -0
- package/README.md +34 -0
- package/lib/managers/ProjectManager.js +17 -25
- package/lib/templates/starter/advanced-features.js +9 -10
- package/lib/templates/starter/features.js +180 -55
- package/lib/templates/starter/index.js +174 -191
- package/lib/templates/starter/seo-assets.js +6 -6
- package/lib/templates/starter/ui-features.js +1 -2
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ function createDefaultOGImage(projectName) {
|
|
|
11
11
|
<defs>
|
|
12
12
|
<linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
13
13
|
<stop offset="0%" style="stop-color:#3b82f6;stop-opacity:1" />
|
|
14
|
-
<stop offset="100%" style="stop-color:#
|
|
14
|
+
<stop offset="100%" style="stop-color:#a855f7;stop-opacity:1" />
|
|
15
15
|
</linearGradient>
|
|
16
16
|
</defs>
|
|
17
17
|
<rect width="1200" height="630" fill="url(#grad)"/>
|
|
@@ -38,7 +38,7 @@ function createFavicon(projectName) {
|
|
|
38
38
|
<defs>
|
|
39
39
|
<linearGradient id="faviconGrad" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
40
40
|
<stop offset="0%" style="stop-color:#3b82f6;stop-opacity:1" />
|
|
41
|
-
<stop offset="100%" style="stop-color:#
|
|
41
|
+
<stop offset="100%" style="stop-color:#a855f7;stop-opacity:1" />
|
|
42
42
|
</linearGradient>
|
|
43
43
|
</defs>
|
|
44
44
|
<rect width="32" height="32" rx="6" fill="url(#faviconGrad)"/>
|
|
@@ -58,7 +58,7 @@ function createAppleTouchIcon(projectName) {
|
|
|
58
58
|
<defs>
|
|
59
59
|
<linearGradient id="appleGrad" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
60
60
|
<stop offset="0%" style="stop-color:#3b82f6;stop-opacity:1" />
|
|
61
|
-
<stop offset="100%" style="stop-color:#
|
|
61
|
+
<stop offset="100%" style="stop-color:#a855f7;stop-opacity:1" />
|
|
62
62
|
</linearGradient>
|
|
63
63
|
</defs>
|
|
64
64
|
<rect width="180" height="180" rx="40" fill="url(#appleGrad)"/>
|
|
@@ -78,7 +78,7 @@ function createAndroidIcon(projectName) {
|
|
|
78
78
|
<defs>
|
|
79
79
|
<linearGradient id="androidGrad" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
80
80
|
<stop offset="0%" style="stop-color:#3b82f6;stop-opacity:1" />
|
|
81
|
-
<stop offset="100%" style="stop-color:#
|
|
81
|
+
<stop offset="100%" style="stop-color:#a855f7;stop-opacity:1" />
|
|
82
82
|
</linearGradient>
|
|
83
83
|
</defs>
|
|
84
84
|
<rect width="192" height="192" rx="48" fill="url(#androidGrad)"/>
|
|
@@ -98,7 +98,7 @@ function createAndroidIconLarge(projectName) {
|
|
|
98
98
|
<defs>
|
|
99
99
|
<linearGradient id="androidLargeGrad" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
100
100
|
<stop offset="0%" style="stop-color:#3b82f6;stop-opacity:1" />
|
|
101
|
-
<stop offset="100%" style="stop-color:#
|
|
101
|
+
<stop offset="100%" style="stop-color:#a855f7;stop-opacity:1" />
|
|
102
102
|
</linearGradient>
|
|
103
103
|
</defs>
|
|
104
104
|
<rect width="512" height="512" rx="128" fill="url(#androidLargeGrad)"/>
|
|
@@ -118,7 +118,7 @@ function createLogo(projectName) {
|
|
|
118
118
|
<defs>
|
|
119
119
|
<linearGradient id="logoGrad" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
120
120
|
<stop offset="0%" style="stop-color:#3b82f6;stop-opacity:1" />
|
|
121
|
-
<stop offset="100%" style="stop-color:#
|
|
121
|
+
<stop offset="100%" style="stop-color:#a855f7;stop-opacity:1" />
|
|
122
122
|
</linearGradient>
|
|
123
123
|
</defs>
|
|
124
124
|
<rect width="50" height="50" x="5" y="5" rx="10" fill="url(#logoGrad)"/>
|
|
@@ -90,13 +90,12 @@ export class ModalService {
|
|
|
90
90
|
|
|
91
91
|
async function createModalComponent(config) {
|
|
92
92
|
const modalComponent = `import { Component, inject, HostListener } from '@angular/core';
|
|
93
|
-
import { CommonModule } from '@angular/common';
|
|
94
93
|
import { ModalService } from '@core/services/modal.service';
|
|
95
94
|
import { ButtonComponent } from '@shared/components/button/button.component';
|
|
96
95
|
|
|
97
96
|
@Component({
|
|
98
97
|
selector: 'app-modal',
|
|
99
|
-
imports: [
|
|
98
|
+
imports: [ButtonComponent],
|
|
100
99
|
template: \`
|
|
101
100
|
@if (modalService.isOpen()) {
|
|
102
101
|
<!-- Backdrop -->
|