@ng-cn/core 1.0.3 → 1.0.5

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.
@@ -0,0 +1,30 @@
1
+ import os
2
+ import re
3
+
4
+ def process_html_file(file_path):
5
+ with open(file_path, 'r', encoding='utf-8') as file:
6
+ content = file.read()
7
+
8
+ # Replace classes
9
+ new_content = re.sub(r'\bmr-', 'me-', content)
10
+ new_content = re.sub(r'\bml-', 'ms-', new_content)
11
+ new_content = re.sub(r'\btext-left\b', 'text-start', new_content)
12
+ new_content = re.sub(r'\btext-right\b', 'text-end', new_content)
13
+
14
+ if new_content != content:
15
+ with open(file_path, 'w', encoding='utf-8') as file:
16
+ file.write(new_content)
17
+ return True
18
+ return False
19
+
20
+ def traverse_and_process(directory):
21
+ for root, _, files in os.walk(directory):
22
+ for file in files:
23
+ if file.endswith('.html'):
24
+ file_path = os.path.join(root, file)
25
+ if process_html_file(file_path):
26
+ print(f"Changes made to: {file_path}")
27
+
28
+ if __name__ == "__main__":
29
+ src_directory = 'src'
30
+ traverse_and_process(src_directory)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-cn/core",
3
- "version": "1.0.03",
3
+ "version": "1.0.05",
4
4
  "description": "Beautifully designed Angular components built with Tailwind CSS v4 - The official Angular port of shadcn/ui",
5
5
  "keywords": [
6
6
  "angular",
@@ -62,10 +62,12 @@
62
62
  "@angular/router": "^21.0.6",
63
63
  "@angular/ssr": "^21.0.4",
64
64
  "@tailwindcss/postcss": "^4.1.18",
65
+ "apexcharts": "^5.3.6",
65
66
  "class-variance-authority": "^0.7.1",
66
67
  "clsx": "^2.1.1",
67
68
  "express": "^5.1.0",
68
69
  "lucide-angular": "^0.562.0",
70
+ "ng-apexcharts": "^2.0.4",
69
71
  "postcss": "^8.5.6",
70
72
  "rxjs": "~7.8.0",
71
73
  "shiki": "^3.20.0",
@@ -0,0 +1,34 @@
1
+ # https://www.robotstxt.org/robotstxt.html
2
+ User-agent: *
3
+ Allow: /
4
+
5
+ # Sitemaps
6
+ Sitemap: https://shadcn-angular.dev/sitemap.xml
7
+
8
+ # Disallow admin and internal paths
9
+ Disallow: /api/
10
+ Disallow: /_/
11
+ Disallow: /admin/
12
+
13
+ # Allow all major search engines
14
+ User-agent: Googlebot
15
+ Allow: /
16
+
17
+ User-agent: Bingbot
18
+ Allow: /
19
+
20
+ User-agent: Slurp
21
+ Allow: /
22
+
23
+ User-agent: DuckDuckBot
24
+ Allow: /
25
+
26
+ User-agent: Baiduspider
27
+ Allow: /
28
+
29
+ User-agent: YandexBot
30
+ Allow: /
31
+
32
+ # Crawl-delay for less aggressive crawlers
33
+ User-agent: *
34
+ Crawl-delay: 1
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "shadcn-angular",
3
+ "short_name": "shadcn-ng",
4
+ "description": "Beautiful, accessible, and customizable UI components for Angular. Built with Tailwind CSS.",
5
+ "start_url": "/",
6
+ "display": "standalone",
7
+ "background_color": "#ffffff",
8
+ "theme_color": "#18181B",
9
+ "orientation": "portrait-primary",
10
+ "scope": "/",
11
+ "lang": "en",
12
+ "categories": ["developer tools", "productivity", "utilities"],
13
+ "icons": [
14
+ {
15
+ "src": "/android-chrome-192x192.png",
16
+ "sizes": "192x192",
17
+ "type": "image/png",
18
+ "purpose": "any maskable"
19
+ },
20
+ {
21
+ "src": "/android-chrome-512x512.png",
22
+ "sizes": "512x512",
23
+ "type": "image/png",
24
+ "purpose": "any maskable"
25
+ }
26
+ ],
27
+ "screenshots": [
28
+ {
29
+ "src": "/screenshots/home.png",
30
+ "sizes": "1280x720",
31
+ "type": "image/png",
32
+ "form_factor": "wide",
33
+ "label": "Home page showing component library overview"
34
+ },
35
+ {
36
+ "src": "/screenshots/components.png",
37
+ "sizes": "1280x720",
38
+ "type": "image/png",
39
+ "form_factor": "wide",
40
+ "label": "Components documentation page"
41
+ }
42
+ ],
43
+ "related_applications": [],
44
+ "prefer_related_applications": false
45
+ }