@fleetbase/registry-bridge-engine 0.0.3 → 0.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.
- package/addon/controllers/developers/payments/index.js +1 -0
- package/addon/templates/purchased.hbs +5 -23
- package/composer.json +1 -1
- package/extension.json +1 -1
- package/package.json +1 -1
- package/server/src/Providers/RegistryBridgeServiceProvider.php +11 -2
- package/addon/components/progress-bar.hbs +0 -12
- package/addon/components/progress-bar.js +0 -8
- package/app/components/progress-bar.js +0 -1
|
@@ -4,29 +4,11 @@
|
|
|
4
4
|
<div class="m-auto p-8">
|
|
5
5
|
<div class="extension-card-grid-container">
|
|
6
6
|
{{#each @model as |extension|}}
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
<div class="flex flex-col">
|
|
13
|
-
<div class="font-semibold text-sm block">{{extension.name}}</div>
|
|
14
|
-
<div class="text-xs">{{n-a extension.description}}</div>
|
|
15
|
-
</div>
|
|
16
|
-
{{#if extension.is_installed}}
|
|
17
|
-
<Badge @status="success" @hideStatusDot={{true}} class="mt-1"><FaIcon @icon="check" class="mr-1" /> Installed</Badge>
|
|
18
|
-
{{/if}}
|
|
19
|
-
<div class="pt-1 space-y-2">
|
|
20
|
-
<Button
|
|
21
|
-
@type="default"
|
|
22
|
-
@text={{t "registry-bridge.common.about-extension" extensionName=extension.name}}
|
|
23
|
-
@icon="circle-info"
|
|
24
|
-
@onClick={{fn this.about extension}}
|
|
25
|
-
class="w-full"
|
|
26
|
-
/>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
7
|
+
<ExtensionCard @extension={{extension}}>
|
|
8
|
+
{{#if extension.is_installed}}
|
|
9
|
+
<Badge @status="success" @hideStatusDot={{true}} class="mt-1"><FaIcon @icon="check" class="mr-1" /> Installed</Badge>
|
|
10
|
+
{{/if}}
|
|
11
|
+
</ExtensionCard>
|
|
30
12
|
{{/each}}
|
|
31
13
|
</div>
|
|
32
14
|
</div>
|
package/composer.json
CHANGED
package/extension.json
CHANGED
package/package.json
CHANGED
|
@@ -4,7 +4,6 @@ namespace Fleetbase\RegistryBridge\Providers;
|
|
|
4
4
|
|
|
5
5
|
use Fleetbase\Models\Setting;
|
|
6
6
|
use Fleetbase\Providers\CoreServiceProvider;
|
|
7
|
-
use Fleetbase\RegistryBridge\Support\Utils;
|
|
8
7
|
|
|
9
8
|
if (!class_exists(CoreServiceProvider::class)) {
|
|
10
9
|
throw new \Exception('Registry Bridge cannot be loaded without `fleetbase/core-api` installed!');
|
|
@@ -72,7 +71,6 @@ class RegistryBridgeServiceProvider extends CoreServiceProvider
|
|
|
72
71
|
*/
|
|
73
72
|
public function boot()
|
|
74
73
|
{
|
|
75
|
-
Utils::bootRegistryAuth();
|
|
76
74
|
$this->registerCommands();
|
|
77
75
|
$this->registerMiddleware();
|
|
78
76
|
$this->registerExpansionsFrom(__DIR__ . '/../Expansions');
|
|
@@ -82,6 +80,17 @@ class RegistryBridgeServiceProvider extends CoreServiceProvider
|
|
|
82
80
|
$this->mergeConfigFromSettings();
|
|
83
81
|
}
|
|
84
82
|
|
|
83
|
+
/**
|
|
84
|
+
* Merge configuration settings from the database into the application configuration.
|
|
85
|
+
*
|
|
86
|
+
* This function checks if there is a database connection available. If a connection exists,
|
|
87
|
+
* it retrieves the 'registry-bridge.registry.host' and 'registry-bridge.registry.token' values
|
|
88
|
+
* from the settings table and merges them into the application's configuration. If the settings
|
|
89
|
+
* are not available or the database connection does not exist, the function will return without
|
|
90
|
+
* making any changes.
|
|
91
|
+
*
|
|
92
|
+
* @return void
|
|
93
|
+
*/
|
|
85
94
|
public function mergeConfigFromSettings()
|
|
86
95
|
{
|
|
87
96
|
if (Setting::doesntHaveConnection()) {
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
<div class="mb-2 flex justify-between items-center">
|
|
3
|
-
<h3 class="text-sm font-semibold text-gray-800 dark:text-white">{{@title}}</h3>
|
|
4
|
-
<span class="text-sm text-gray-800 dark:text-white">{{@percent}}%</span>
|
|
5
|
-
</div>
|
|
6
|
-
<div class="flex w-full h-2 bg-gray-200 rounded-full overflow-hidden dark:bg-neutral-700" role="progressbar" aria-valuenow={{@percent}} aria-valuemin="0" aria-valuemax="100">
|
|
7
|
-
<div
|
|
8
|
-
class="flex flex-col justify-center rounded-full overflow-hidden bg-blue-600 text-xs text-white text-center whitespace-nowrap transition duration-500 dark:bg-blue-500"
|
|
9
|
-
{{did-update this.setProgress @percent}}
|
|
10
|
-
></div>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '@fleetbase/registry-bridge-engine/components/progress-bar';
|