roda-kabk 1.0.1 → 1.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d27536425bdf1e8615cec4da82ca3db024d3af288abf56fd52b58046539d2fa9
4
- data.tar.gz: eba3784e32fb18d50d4b28fdd71c5e1a41787192aca260d4e5b4a09d6f8e1290
3
+ metadata.gz: f7f7945ce2a5625326dd3c9057bca23fd64e6c2c8de06de37217f6fcd3842b47
4
+ data.tar.gz: f14bcea41e4fb4c70d044ef515788e9f629cc4fbd7b396168de8fb7521073b05
5
5
  SHA512:
6
- metadata.gz: 875da794e05174b27fc5445c8866ccd2e64ed1df8c849a85924eb8b832513dbd484d47e3b093ef6fd6eb6656d63876717cb4588a211e5fce86d1694af838a056
7
- data.tar.gz: d1ea468f5e982c41227df72dad4d29d34dc35bc3c36eecee0db9345c57d1966f59992ae9ae97b716aa57414be9f721fb7ea30388d103b258c665a800f13286c7
6
+ metadata.gz: 4b1ffc0544294cefec2f2b5e59c549f8172770dbf23fff16270cd50a8de08ef470b431adab577af0dcdd06e3adc6fc29568e86433e53d1a094194a0e26136f7f
7
+ data.tar.gz: 963655c33496a3a1e7bb3ff2c9706df770aeebdf7b266da803fdd93c2d952d90cef3e2486d3beb0cacd88fc535115fce2b1c26a3832b15b21d0f1d19dd608000
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- roda-kabk (1.0.1)
4
+ roda-kabk (1.0.2)
5
5
  kabk (~> 1.0)
6
6
  roda (~> 3.0)
7
7
 
@@ -66,7 +66,7 @@ CHECKSUMS
66
66
  rack-test (2.2.0) sha256=005a36692c306ac0b4a9350355ee080fd09ddef1148a5f8b2ac636c720f5c463
67
67
  rackup (2.3.1) sha256=6c79c26753778e90983761d677a48937ee3192b3ffef6bc963c0950f94688868
68
68
  roda (3.106.0) sha256=1a1cfb13c6690db158a3929e9c9ece88e697fb23b05baae63f07b0773e3bbade
69
- roda-kabk (1.0.1)
69
+ roda-kabk (1.0.2)
70
70
  rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
71
71
  rspec-core (3.13.6) sha256=a8823c6411667b60a8bca135364351dda34cd55e44ff94c4be4633b37d828b2d
72
72
  rspec-expectations (3.13.5) sha256=33a4d3a1d95060aea4c94e9f237030a8f9eae5615e9bd85718fe3a09e4b58836
data/README.md CHANGED
@@ -107,28 +107,30 @@ class App < Roda
107
107
  plugin :sessions, secret: ENV.fetch("SESSION_SECRET", "super_secret_key_that_is_long_enough_for_session")
108
108
  plugin :json
109
109
  plugin :kabk,
110
- system_config: {
111
- title: { en: "Admin Dashboard", fa: "پنل مدیریت" },
112
- default_locale: "en",
113
- supported_locales: ["en", "fa"],
114
- direction: "ltr",
115
- endpoints: {
116
- upload: "/admin/api/uploads"
117
- },
118
- auth: {
119
- strategy: "session",
120
- sso_redirect_url: nil,
121
- login_url: "/admin/api/auth/login",
122
- me_url: "/admin/api/auth/me",
123
- logout_url: "/admin/api/auth/logout",
124
- refresh_url: "/admin/api/auth/refresh",
125
- show_demo_credentials: false,
126
- login_fields: [
127
- { name: "username", label: { en: "Username", fa: "نام کاربری" }, type: "text", required: true },
128
- { name: "password", label: { en: "Password", fa: "کلمه عبور" }, type: "password", required: true }
129
- ]
130
- }
131
- },
110
+ system_config: {
111
+ title: { en: "Admin Dashboard", fa: "پنل مدیریت" },
112
+ subtitle: { en: "Content & Data Management System", fa: "سامانه مدیریت محتوا و داده‌ها" },
113
+ default_locale: "en",
114
+ supported_locales: ["en", "fa"],
115
+ direction: "ltr",
116
+ endpoints: {
117
+ upload: "/admin/api/uploads"
118
+ },
119
+ auth: {
120
+ strategy: "session",
121
+ sso_redirect_url: nil,
122
+ login_url: "/admin/api/auth/login",
123
+ me_url: "/admin/api/auth/me",
124
+ logout_url: "/admin/api/auth/logout",
125
+ refresh_url: "/admin/api/auth/refresh",
126
+ show_demo_credentials: false,
127
+ subtitle: { en: "Sign in to Admin Dashboard", fa: "ورود به پنل مدیریت" },
128
+ login_fields: [
129
+ { name: "username", label: { en: "Username", fa: "نام کاربری" }, type: "text", required: true },
130
+ { name: "password", label: { en: "Password", fa: "کلمه عبور" }, type: "password", required: true }
131
+ ]
132
+ }
133
+ },
132
134
  upload_handler: ->(file_param, req) {
133
135
  {
134
136
  url: "/uploads/#{file_param[:filename]}",
data/TUTORIAL.md CHANGED
@@ -22,12 +22,14 @@ class AdminApp < Roda
22
22
  plugin :kabk,
23
23
  system_config: {
24
24
  title: { en: "Simurgh Panel", fa: "پنل مدیریت سیمرغ" },
25
+ subtitle: { en: "Content & Data Management System", fa: "سامانه مدیریت محتوا و داده‌ها" },
25
26
  logo_url: "https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?w=100&h=100&fit=crop&crop=faces",
26
27
  default_locale: "en",
27
28
  supported_locales: ["en", "fa"],
28
29
  direction: "ltr",
29
30
  auth: {
30
- show_demo_credentials: false
31
+ show_demo_credentials: false,
32
+ subtitle: { en: "Sign in to Simurgh Admin Panel", fa: "ورود به پنل ادمین سیمرغ" }
31
33
  },
32
34
  custom_fonts: [
33
35
  {
data/examples/app.rb CHANGED
@@ -130,6 +130,7 @@ class App < Roda
130
130
  plugin :kabk,
131
131
  system_config: {
132
132
  title: { en: "Simurgh Panel", fa: "پنل مدیریت سیمرغ" },
133
+ subtitle: { en: "Content & Data Management System", fa: "سامانه مدیریت محتوا و داده‌ها" },
133
134
  default_locale: "en",
134
135
  supported_locales: ["en", "fa"],
135
136
  direction: "ltr",
@@ -139,6 +140,7 @@ class App < Roda
139
140
  },
140
141
  auth: {
141
142
  show_demo_credentials: false,
143
+ subtitle: { en: "Sign in to Simurgh Admin Panel", fa: "ورود به پنل ادمین سیمرغ" },
142
144
  login_url: "/api/admin/auth/login",
143
145
  logout_url: "/api/admin/auth/logout",
144
146
  me_url: "/api/admin/auth/me"
@@ -55,6 +55,7 @@ module RodaPlugins
55
55
  me_url: "/auth/me",
56
56
  refresh_url: "/auth/refresh",
57
57
  show_demo_credentials: false,
58
+ subtitle: { en: "Sign in to Simurgh Admin Panel", fa: "ورود به پنل ادمین سیمرغ" },
58
59
  login_fields: [
59
60
  {
60
61
  name: "username",
@@ -78,6 +79,7 @@ module RodaPlugins
78
79
  end
79
80
 
80
81
  base_defaults = {
82
+ subtitle: { en: "Content & Data Management System", fa: "سامانه مدیریت محتوا و داده‌ها" },
81
83
  direction: "ltr",
82
84
  default_locale: "en",
83
85
  supported_locales: ["en", "fa"]
@@ -4,7 +4,7 @@ class Roda
4
4
  module RodaPlugins
5
5
  module Kabk
6
6
  # Current version of the roda-kabk gem
7
- VERSION = "1.0.1"
7
+ VERSION = "1.0.2"
8
8
  end
9
9
  end
10
10
  end