foreman_theme_custom 0.1.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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f3c0ade0fbed5e24b75571278851c084c38666552ecad2c506461031033c5ed1
4
+ data.tar.gz: f086711fad0d83e6bf1c39a14cce0422e6e18c7f7f3daac26d23a5be5c36e22a
5
+ SHA512:
6
+ metadata.gz: 8adf1ea7f5117782816720fb0ec129973a6b36ec746935cedb437c3d7f9dbf0a75be5c6746bc20a9f12cae3f646d8656cbbe85d12fbf2d47535f4fd005d19c99
7
+ data.tar.gz: c0d331089eb89342a9c9a13d9f8612054cd3d5bfad0c5cfb756e3ee981e5d131d42c8a4d7c127553d55c5bd16913240297fc89a473986b9b462672dbd5447807
data/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # Foreman Theme Custom
2
+
3
+ Bu plugin, Foreman arayüzünde renkleri ve logoları override etmek için basit bir tema sunar.
4
+
5
+ ## Kurulum
6
+
7
+ 1. Gem'i Foreman'a ekleyin (yerel dizinden ya da git):
8
+
9
+ ```ruby
10
+ # /etc/foreman/plugins/foreman_theme_custom.rb veya bundler.d/*.rb icine
11
+ gem 'foreman_theme_custom', path: '/opt/foreman_theme_custom' # ya da git: 'https://...'
12
+ ```
13
+
14
+ 2. Üretim için assetleri derleyin ve servisi yeniden başlatın:
15
+
16
+ ```bash
17
+ foreman-rake assets:precompile RAILS_ENV=production
18
+ systemctl restart httpd || systemctl restart foreman
19
+ ```
20
+
21
+ ## Özelleştirme
22
+
23
+ - Renkler: `app/assets/stylesheets/foreman_theme_custom.scss` içindeki `:root` değişkenlerini güncelleyin.
24
+ - Logolar: `app/assets/images/logo_header.svg` ve `app/assets/images/logo_login.svg` dosyalarını kendi logolarınızla değiştirin.
25
+
26
+ ## Notlar
27
+
28
+ - Stil dosyası varsayılanlardan sonra yüklenecek şekilde kayıtlıdır; gerektiğinde `!important` kullanılmıştır.
29
+ - Foreman/PF sürümüne göre sınıf seçicileri değişebilir. Gerekirse `.navbar-brand img`, `.login-pf-brand` gibi seçicileri uyarlayın.
30
+
31
+
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="160" height="32" viewBox="0 0 160 32" fill="none">
2
+ <rect width="160" height="32" rx="4" fill="#0052CC"/>
3
+ <text x="12" y="22" font-family="Arial, Helvetica, sans-serif" font-size="16" fill="#FFFFFF">YourBrand</text>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="220" height="60" viewBox="0 0 220 60" fill="none">
2
+ <rect width="220" height="60" rx="8" fill="#0052CC"/>
3
+ <text x="20" y="38" font-family="Arial, Helvetica, sans-serif" font-size="28" fill="#FFFFFF">YourBrand</text>
4
+ </svg>
@@ -0,0 +1,32 @@
1
+ // Foreman tema override'lari
2
+ // Ornek renk degiskenleri (PatternFly/Bootstrap uzerine gelir)
3
+
4
+ :root {
5
+ --pf-global--primary-color--100: #0052cc; // primary
6
+ --pf-global--link--Color: #0052cc;
7
+ --pf-global--danger-color--100: #d04141;
8
+ }
9
+
10
+ // Navbar ve butonlar
11
+ .navbar-pf {
12
+ background-color: var(--pf-global--primary-color--100) !important;
13
+ }
14
+
15
+ .btn-primary {
16
+ background-color: var(--pf-global--primary-color--100) !important;
17
+ border-color: var(--pf-global--primary-color--100) !important;
18
+ }
19
+
20
+ // Login sayfasi logo ve arka plan
21
+ .login-pf-page .login-pf-brand {
22
+ background-image: image-url('logo_login.svg') !important;
23
+ background-size: contain;
24
+ }
25
+
26
+ // Header icin logo
27
+ .navbar-brand img, .branding .brand {
28
+ content: url(asset-path('logo_header.svg'));
29
+ height: 24px;
30
+ }
31
+
32
+
@@ -0,0 +1,4 @@
1
+ Rails.application.config.assets.paths << File.expand_path('../../app/assets/images', __dir__)
2
+ Rails.application.config.assets.paths << File.expand_path('../../app/assets/stylesheets', __dir__)
3
+
4
+
@@ -0,0 +1,24 @@
1
+ require 'rails/engine'
2
+
3
+ module ForemanThemeCustom
4
+ class Engine < ::Rails::Engine
5
+ engine_name 'foreman_theme_custom'
6
+
7
+ initializer 'foreman_theme_custom.assets.precompile' do |app|
8
+ app.config.assets.precompile += %w[
9
+ foreman_theme_custom.css
10
+ logo_header.svg
11
+ logo_login.svg
12
+ ]
13
+ end
14
+
15
+ initializer 'foreman_theme_custom.assets' do
16
+ # Foreman asset pipeline icine SCSS'imizi dahil et
17
+ Foreman::Plugin.register :foreman_theme_custom do
18
+ register_stylesheet('foreman_theme_custom.css')
19
+ end
20
+ end
21
+ end
22
+ end
23
+
24
+
@@ -0,0 +1,6 @@
1
+ require "foreman_theme_custom/engine"
2
+
3
+ module ForemanThemeCustom
4
+ end
5
+
6
+
metadata ADDED
@@ -0,0 +1,79 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: foreman_theme_custom
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Ender K
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2025-08-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: foreman
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: railties
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '6.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '6.0'
41
+ description: Foreman icin renkleri, SCSS degiskenlerini ve logolari override eden
42
+ basit bir tema plugini.
43
+ email:
44
+ - ender.k@gmail.com
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - README.md
50
+ - app/assets/images/logo_header.svg
51
+ - app/assets/images/logo_login.svg
52
+ - app/assets/stylesheets/foreman_theme_custom.scss
53
+ - config/initializers/assets.rb
54
+ - lib/foreman_theme_custom.rb
55
+ - lib/foreman_theme_custom/engine.rb
56
+ homepage: https://github.com/enderk/foreman_theme_custom
57
+ licenses:
58
+ - MIT
59
+ metadata: {}
60
+ post_install_message:
61
+ rdoc_options: []
62
+ require_paths:
63
+ - lib
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '2.7'
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ requirements: []
75
+ rubygems_version: 3.4.19
76
+ signing_key:
77
+ specification_version: 4
78
+ summary: Foreman tema ve logo ozellestirme plugini
79
+ test_files: []