plutonium 0.15.5 → 0.15.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/plutonium.css +1 -1
  3. data/app/assets/plutonium.ico +0 -0
  4. data/app/assets/plutonium.png +0 -0
  5. data/docs/.vitepress/config.ts +61 -0
  6. data/docs/.vitepress/theme/custom.css +61 -0
  7. data/docs/.vitepress/theme/index.ts +4 -0
  8. data/docs/api-examples.md +49 -0
  9. data/docs/guide/getting-started/authorization.md +296 -0
  10. data/docs/guide/getting-started/core-concepts.md +432 -0
  11. data/docs/guide/getting-started/index.md +18 -0
  12. data/docs/guide/getting-started/installation.md +269 -0
  13. data/docs/guide/getting-started/resources.md +254 -0
  14. data/docs/guide/what-is-plutonium.md +211 -0
  15. data/docs/index.md +43 -0
  16. data/docs/markdown-examples.md +85 -0
  17. data/docs/public/android-chrome-192x192.png +0 -0
  18. data/docs/public/android-chrome-512x512.png +0 -0
  19. data/docs/public/apple-touch-icon.png +0 -0
  20. data/docs/public/favicon-16x16.png +0 -0
  21. data/docs/public/favicon-32x32.png +0 -0
  22. data/docs/public/favicon.ico +0 -0
  23. data/docs/public/plutonium.png +0 -0
  24. data/docs/public/site.webmanifest +1 -0
  25. data/docs/public/templates/plutonium.rb +21 -0
  26. data/lib/generators/pu/core/assets/assets_generator.rb +2 -3
  27. data/lib/generators/pu/core/assets/templates/tailwind.config.js +2 -2
  28. data/lib/generators/pu/core/install/install_generator.rb +9 -1
  29. data/lib/generators/pu/core/install/templates/config/initializers/plutonium.rb +0 -1
  30. data/lib/plutonium/core/controllers/authorizable.rb +1 -1
  31. data/lib/plutonium/railtie.rb +0 -10
  32. data/lib/plutonium/resource/controllers/crud_actions.rb +1 -1
  33. data/lib/plutonium/resource/policy.rb +4 -5
  34. data/lib/plutonium/resource/register.rb +3 -0
  35. data/lib/plutonium/ui/action_button.rb +34 -19
  36. data/lib/plutonium/ui/form/resource.rb +2 -1
  37. data/lib/plutonium/ui/table/components/search_bar.rb +1 -1
  38. data/lib/plutonium/version.rb +1 -1
  39. data/package-lock.json +5767 -1851
  40. data/package.json +10 -4
  41. data/src/js/core.js +0 -1
  42. data/tailwind.options.js +89 -11
  43. metadata +27 -11
  44. data/app/assets/plutonium-original.png +0 -0
  45. data/app/assets/plutonium-white.png +0 -0
  46. data/public/plutonium-assets/fonts/bootstrap-icons.woff +0 -0
  47. data/public/plutonium-assets/fonts/bootstrap-icons.woff2 +0 -0
  48. /data/{templates → docs/public/templates}/base.rb +0 -0
data/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "type": "git",
17
17
  "url": "git+https://github.com/radioactive-labs/plutonium-core.git"
18
18
  },
19
- "homepage": "https://github.com/radioactive-labs/plutonium-core#readme",
19
+ "homepage": "https://radioactive-labs.github.io/plutonium-core/",
20
20
  "dependencies": {
21
21
  "@hotwired/stimulus": "^3.2.2",
22
22
  "@hotwired/turbo": "^8.0.4",
@@ -30,18 +30,24 @@
30
30
  "cssnano": "^7.0.2",
31
31
  "esbuild": "^0.20.1",
32
32
  "esbuild-plugin-manifest": "^1.0.3",
33
+ "mermaid": "^11.4.0",
33
34
  "postcss": "^8.4.35",
34
35
  "postcss-cli": "^11.0.0",
35
36
  "postcss-hash": "^3.0.0",
36
- "tailwindcss": "^3.4.1"
37
+ "tailwindcss": "^3.4.1",
38
+ "vitepress": "^1.4.1",
39
+ "vitepress-plugin-mermaid": "^2.0.17"
37
40
  },
38
41
  "scripts": {
39
- "build": "npm run js:prod && npm run css:prod",
40
42
  "dev": "concurrently \"npm run css:dev\" \"npm run js:dev\"",
43
+ "build": "npm run js:prod && npm run css:prod",
44
+ "prepare": "npm run build",
41
45
  "css:dev": "postcss src/css/plutonium.css -o src/build/plutonium.css --watch --dev",
42
46
  "js:dev": "node esbuild.config.js --dev",
43
47
  "css:prod": "postcss src/css/plutonium.css -o app/assets/plutonium.css && postcss src/css/plutonium.css -o src/dist/css/plutonium.css",
44
48
  "js:prod": "node esbuild.config.js",
45
- "prepare": "npm run build"
49
+ "docs:dev": "vitepress dev docs",
50
+ "docs:build": "vitepress build docs",
51
+ "docs:preview": "vitepress preview docs"
46
52
  }
47
53
  }
data/src/js/core.js CHANGED
@@ -1,4 +1,3 @@
1
1
  import registerControllers from "./controllers/register_controllers.js"
2
2
 
3
-
4
3
  export { registerControllers }
data/tailwind.options.js CHANGED
@@ -18,17 +18,95 @@ export const theme = {
18
18
  extend: {
19
19
  colors: {
20
20
  primary: {
21
- '50': '#f0f7fe',
22
- '100': '#ddecfc',
23
- '200': '#c3dffa',
24
- '300': '#99ccf7',
25
- '400': '#69b0f1',
26
- '500': '#4691eb',
27
- '600': '#3174df',
28
- '700': '#285fcc',
29
- '800': '#274ea6',
30
- '900': '#244484',
31
- '950': '#1b2b50',
21
+ 50: '#F0FDFD',
22
+ 100: '#E0FAFA',
23
+ 200: '#BAF3F5',
24
+ 300: '#7DE8EC',
25
+ 400: '#40D9DE',
26
+ 500: '#17B8BE', // Turquoise
27
+ 600: '#0E8F94',
28
+ 700: '#0B6D71',
29
+ 800: '#0A5558',
30
+ 900: '#084547',
31
+ 950: '#042F30',
32
+ },
33
+ secondary: {
34
+ 50: '#F2F5F8',
35
+ 100: '#E6ECF1',
36
+ 200: '#C7D5E1',
37
+ 300: '#9DB3C7',
38
+ 400: '#678CAB',
39
+ 500: '#1E3D59', // Navy
40
+ 600: '#1A3549',
41
+ 700: '#152C3D',
42
+ 800: '#102231',
43
+ 900: '#0C1B26',
44
+ 950: '#080F15',
45
+ },
46
+ success: {
47
+ 50: '#F0FDF4',
48
+ 100: '#DCFCE7',
49
+ 200: '#BBF7D0',
50
+ 300: '#86EFAC',
51
+ 400: '#4ADE80',
52
+ 500: '#22C55E', // Base color
53
+ 600: '#16A34A',
54
+ 700: '#15803D',
55
+ 800: '#166534',
56
+ 900: '#14532D',
57
+ 950: '#052E16',
58
+ },
59
+ info: {
60
+ 50: '#F0F9FF',
61
+ 100: '#E0F2FE',
62
+ 200: '#BAE6FD',
63
+ 300: '#7DD3FC',
64
+ 400: '#38BDF8',
65
+ 500: '#0EA5E9', // Base color
66
+ 600: '#0284C7',
67
+ 700: '#0369A1',
68
+ 800: '#075985',
69
+ 900: '#0C4A6E',
70
+ 950: '#082F49',
71
+ },
72
+ warning: {
73
+ 50: '#FFFBEB',
74
+ 100: '#FEF3C7',
75
+ 200: '#FDE68A',
76
+ 300: '#FCD34D',
77
+ 400: '#FBBF24',
78
+ 500: '#F59E0B', // Base color
79
+ 600: '#D97706',
80
+ 700: '#B45309',
81
+ 800: '#92400E',
82
+ 900: '#78350F',
83
+ 950: '#451A03',
84
+ },
85
+ danger: {
86
+ 50: '#FEF2F2',
87
+ 100: '#FEE2E2',
88
+ 200: '#FECACA',
89
+ 300: '#FCA5A5',
90
+ 400: '#F87171',
91
+ 500: '#EF4444', // Base color
92
+ 600: '#DC2626',
93
+ 700: '#B91C1C',
94
+ 800: '#991B1B',
95
+ 900: '#7F1D1D',
96
+ 950: '#450A0A',
97
+ },
98
+ accent: {
99
+ 50: '#FFF1F3',
100
+ 100: '#FFE4E7',
101
+ 200: '#FFCCD2',
102
+ 300: '#FFB1BA',
103
+ 400: '#FF9EAA',
104
+ 500: '#FF8394', // Coral Pink
105
+ 600: '#FF647A',
106
+ 700: '#E73D55',
107
+ 800: '#D12D44',
108
+ 900: '#B02438',
109
+ 950: '#8E1525',
32
110
  },
33
111
  },
34
112
  screens: {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plutonium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.5
4
+ version: 0.15.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Froelich
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-28 00:00:00.000000000 Z
11
+ date: 2024-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zeitwerk
@@ -892,8 +892,6 @@ files:
892
892
  - app/assets/icons/solid/youtube.svg
893
893
  - app/assets/icons/solid/zoom-in.svg
894
894
  - app/assets/icons/solid/zoom-out.svg
895
- - app/assets/plutonium-original.png
896
- - app/assets/plutonium-white.png
897
895
  - app/assets/plutonium.css
898
896
  - app/assets/plutonium.ico
899
897
  - app/assets/plutonium.js
@@ -1032,6 +1030,28 @@ files:
1032
1030
  - config/initializers/pagy.rb
1033
1031
  - config/initializers/rabl.rb
1034
1032
  - config/initializers/simple_form.rb
1033
+ - docs/.vitepress/config.ts
1034
+ - docs/.vitepress/theme/custom.css
1035
+ - docs/.vitepress/theme/index.ts
1036
+ - docs/api-examples.md
1037
+ - docs/guide/getting-started/authorization.md
1038
+ - docs/guide/getting-started/core-concepts.md
1039
+ - docs/guide/getting-started/index.md
1040
+ - docs/guide/getting-started/installation.md
1041
+ - docs/guide/getting-started/resources.md
1042
+ - docs/guide/what-is-plutonium.md
1043
+ - docs/index.md
1044
+ - docs/markdown-examples.md
1045
+ - docs/public/android-chrome-192x192.png
1046
+ - docs/public/android-chrome-512x512.png
1047
+ - docs/public/apple-touch-icon.png
1048
+ - docs/public/favicon-16x16.png
1049
+ - docs/public/favicon-32x32.png
1050
+ - docs/public/favicon.ico
1051
+ - docs/public/plutonium.png
1052
+ - docs/public/site.webmanifest
1053
+ - docs/public/templates/base.rb
1054
+ - docs/public/templates/plutonium.rb
1035
1055
  - esbuild.config.js
1036
1056
  - exe/pug
1037
1057
  - gemfiles/rails_7.gemfile
@@ -1367,8 +1387,6 @@ files:
1367
1387
  - postcss.config.js
1368
1388
  - public/.keep
1369
1389
  - public/plutonium-assets/application.js
1370
- - public/plutonium-assets/fonts/bootstrap-icons.woff
1371
- - public/plutonium-assets/fonts/bootstrap-icons.woff2
1372
1390
  - public/plutonium-assets/plutonium-logo-original.png
1373
1391
  - public/plutonium-assets/plutonium-logo-white.png
1374
1392
  - public/plutonium-assets/plutonium-logo.png
@@ -1407,13 +1425,12 @@ files:
1407
1425
  - src/js/turbo/turbo_frame_monkey_patch.js
1408
1426
  - tailwind.config.js
1409
1427
  - tailwind.options.js
1410
- - templates/base.rb
1411
- homepage: https://github.com/radioactive-labs/plutonium-core
1428
+ homepage: https://radioactive-labs.github.io/plutonium-core/
1412
1429
  licenses:
1413
1430
  - MIT
1414
1431
  metadata:
1415
1432
  allowed_push_host: https://rubygems.org
1416
- homepage_uri: https://github.com/radioactive-labs/plutonium-core
1433
+ homepage_uri: https://radioactive-labs.github.io/plutonium-core/
1417
1434
  source_code_uri: https://github.com/radioactive-labs/plutonium-core
1418
1435
  post_install_message:
1419
1436
  rdoc_options: []
@@ -1433,6 +1450,5 @@ requirements: []
1433
1450
  rubygems_version: 3.4.10
1434
1451
  signing_key:
1435
1452
  specification_version: 4
1436
- summary: The ultimate Rapid Application Development Toolkit (RADKit) for Rails application
1437
- development
1453
+ summary: The Ultimate Rapid Application Development Toolkit (RADKit) for Rails
1438
1454
  test_files: []
Binary file
Binary file
File without changes